/* ===== CANVIA株式会社 共通スタイル =====
   ブランドボードの配色・書体に合わせています。
   色を変えるときは、下の :root の値を書き換えてください。 */
:root {
  --navy: #1C3349;      /* 濃紺：見出し・フッター */
  --ink: #222C31;       /* 本文の文字 */
  --sky: #7BA5CC;       /* ロゴの青 */
  --mist: #A9BCD0;      /* 淡い青 */
  --sand: #CDB6A6;      /* ロゴのベージュ */
  --stone: #ECEAE6;     /* 淡いグレー：区切りの背景 */
  --paper: #F8F6F2;     /* 生成り：基本の背景 */
  --muted: #5E6870;     /* 補足の文字 */
  --line: rgba(28, 51, 73, 0.14);
  --ribbon: linear-gradient(90deg, #7BA5CC 0%, #A9BCD0 45%, #CDB6A6 76%, #B6A194 100%);

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --latin: "Lato", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.25em; }
a:hover { color: var(--sky); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.en { font-family: var(--latin); font-weight: 300; letter-spacing: 0.18em; }
.pc { display: inline; }
@media (max-width: 760px) { .pc { display: none; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--paper); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ----- ヘッダー ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: auto; height: 48px; }
.nav ul { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sky); }
.nav-contact a {
  display: inline-block; padding: 6px 22px; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy);
}
.nav-contact a:hover { background: var(--navy); color: var(--paper); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .site-header .wrap { height: 64px; }
  .brand img { height: 36px; }
  .menu-btn {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .menu-btn span { display: block; width: 24px; height: 1px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-contact a { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--navy); }
}

/* ----- トップ：メインビジュアル ----- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 820px);
  display: flex; align-items: center;
  background: #F3E7DC;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero .wrap { position: relative; width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; padding-block: clamp(72px, 12vh, 120px) clamp(200px, 30vh, 300px); }
.hero-title {
  margin: 0;
  font-family: var(--mincho); font-weight: 500;
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  line-height: 1.55; letter-spacing: 0.16em; color: var(--navy);
}
.hero-tag { display: flex; align-items: center; gap: 18px; margin: 28px 0 0; font-family: var(--latin); font-weight: 400; font-size: clamp(0.875rem, 1.2vw, 1rem); letter-spacing: 0.2em; color: var(--ink); }
.hero-tag::before { content: ""; width: 40px; height: 1px; background: var(--navy); }
.hero-lead { margin: 0; justify-self: end; font-family: var(--mincho); font-size: clamp(0.9375rem, 1.3vw, 1.0625rem); line-height: 2.2; letter-spacing: 0.14em; color: var(--ink); }
.hero-lead .btn { margin-top: 28px; font-family: var(--sans); letter-spacing: 0.08em; }
.hero-in { animation: rise 1.4s .2s ease-out both; }
.hero-in.late { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-in { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 56px 220px; }
  .hero-lead { justify-self: start; }
}

/* ----- ボタン ----- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 30px; border-radius: 999px;
  background: var(--navy); color: var(--paper); text-decoration: none; font-size: 0.9375rem;
  transition: background .25s;
}
.btn::after { content: "→"; font-family: var(--latin); }
.btn:hover { background: #2B4A68; color: var(--paper); }
.btn.light { background: var(--paper); color: var(--navy); }
.btn.light:hover { background: #fff; color: var(--navy); }

/* ----- セクション共通 ----- */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section.tint { background: var(--stone); }
.eyebrow { display: block; margin: 0 0 14px; font-family: var(--latin); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.24em; color: var(--sky); text-transform: uppercase; }
.section-title { margin: 0 0 clamp(40px, 6vw, 64px); font-family: var(--mincho); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.125rem); letter-spacing: 0.12em; line-height: 1.6; color: var(--navy); }
.more { margin: 48px 0 0; }
.more a { font-size: 0.9375rem; }
.more a::after { content: " →"; font-family: var(--latin); }

/* ----- トップ：想い ----- */
.concept { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.concept-mark { position: relative; }
.concept-mark img { width: 100%; max-width: 440px; }
.concept-mark p { margin: 18px 0 0; font-family: var(--latin); font-weight: 300; letter-spacing: 0.22em; color: var(--muted); font-size: 0.875rem; }
.concept-body h2 { margin: 0 0 32px; font-family: var(--mincho); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.125rem); letter-spacing: 0.12em; line-height: 1.7; color: var(--navy); }
.concept-body p { margin: 0 0 1.3em; max-width: 34em; }
@media (max-width: 860px) { .concept { grid-template-columns: 1fr; } .concept-mark img { max-width: 220px; } }

/* ----- トップ：事業内容 ----- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(20px, 3vw, 32px); }
/* 1段目は3枚、2段目は2枚を横いっぱいに並べる */
.service { grid-column: span 2; }
.service:nth-child(n+4) { grid-column: span 3; }
.service {
  background: var(--paper); padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 34px) 32px;
  position: relative; min-width: 0;
}
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ribbon); }
.service .num { font-family: var(--latin); font-weight: 300; font-size: 0.875rem; letter-spacing: 0.2em; color: var(--sky); margin: 0 0 18px; }
.service h3 { margin: 0; font-family: var(--mincho); font-weight: 600; font-size: 1.3125rem; letter-spacing: 0.08em; color: var(--navy); line-height: 1.6; }
.service .en { margin: 4px 0 20px; font-size: 0.8125rem; color: var(--muted); }
.service p { margin: 0 0 1em; font-size: 0.9375rem; }
.service ul { margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.service li { padding: 9px 0 9px 1.2em; border-top: 1px solid var(--line); position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 6px; height: 1px; background: var(--sky); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } .service, .service:nth-child(n+4) { grid-column: auto; } }

/* ----- お問い合わせ帯 ----- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--paper); padding-block: clamp(72px, 9vw, 112px); }
.cta::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ribbon); }
.cta-mark { position: absolute; right: -40px; top: 50%; width: min(520px, 60vw); transform: translateY(-50%); opacity: .14; pointer-events: none; }
.cta .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 8px; font-family: var(--mincho); font-weight: 500; font-size: clamp(1.375rem, 2.6vw, 2rem); letter-spacing: 0.1em; }
.cta p { margin: 0; color: #C9D4DE; }

/* ----- フッター ----- */
.site-footer { background: #15283A; color: #C9D4DE; padding-block: 56px 32px; font-size: 0.875rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; }
.site-footer img { width: 190px; margin-bottom: 18px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; align-self: start; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--mist); }
.copyright { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 20px; border-top: 1px solid rgba(248, 246, 242, 0.15); font-family: var(--latin); letter-spacing: 0.12em; font-size: 0.75rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ----- 下層ページ見出し ----- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 10vw, 120px) clamp(80px, 11vw, 140px);
  background: linear-gradient(180deg, #E4E7EC 0%, #F3E7DC 70%, #F6E2D4 100%);
}
.page-hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; object-fit: cover; object-position: center bottom; opacity: .8; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 0; font-family: var(--mincho); font-weight: 500; font-size: clamp(1.875rem, 4vw, 2.75rem); letter-spacing: 0.16em; color: var(--navy); line-height: 1.4; }
.page-hero .en { margin: 10px 0 0; font-size: 0.875rem; color: var(--ink); }

.page-body { padding-block: clamp(64px, 9vw, 112px) clamp(88px, 12vw, 150px); }
.page-body section + section { margin-top: clamp(72px, 10vw, 120px); }
.page-body h2 { margin: 0 0 28px; font-family: var(--mincho); font-weight: 500; font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: 0.1em; color: var(--navy); line-height: 1.6; }
.lead { font-size: 1.0625rem; max-width: 36em; margin: 0 0 1em; }

/* サービス詳細 */
.service-detail { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 80px); padding-top: 36px; position: relative; }
.service-detail::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ribbon); }
.service-detail + .service-detail { margin-top: clamp(64px, 9vw, 104px); }
.service-detail .num { margin: 0 0 10px; font-family: var(--latin); font-weight: 300; letter-spacing: 0.2em; color: var(--sky); font-size: 0.875rem; }
.service-detail h2 { margin: 0 0 4px; }
.service-detail .en { margin: 0; color: var(--muted); font-size: 0.875rem; }
.service-detail p { margin: 0 0 1.2em; max-width: 36em; }
.service-detail h3 { font-size: 1rem; font-weight: 700; margin: 28px 0 8px; color: var(--navy); }
.service-detail > div { min-width: 0; }
@media (max-width: 760px) { .service-detail { grid-template-columns: 1fr; } }
.examples { margin: 0; padding: 0; list-style: none; }
.examples li { padding: 10px 0 10px 1.3em; border-bottom: 1px solid var(--line); position: relative; }
.examples li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 7px; height: 1px; background: var(--sky); }

/* 進め方 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.flow li { background: var(--stone); padding: 26px 22px; counter-increment: step; min-width: 0; }
.flow li::before { content: "STEP " counter(step); display: block; font-family: var(--latin); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--sky); margin-bottom: 8px; }
.flow h3 { margin: 0 0 8px; font-family: var(--mincho); font-size: 1.125rem; color: var(--navy); }
.flow p { margin: 0; font-size: 0.875rem; line-height: 1.9; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* 会社概要 */
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 22px 0; border-bottom: 1px solid var(--line); }
.profile tr:first-child th, .profile tr:first-child td { border-top: 1px solid var(--line); }
.profile th { width: 9em; font-weight: 500; color: var(--navy); padding-right: 24px; }
.profile ol { margin: 0; padding-left: 1.4em; }
.profile .map { font-size: 0.875rem; }
@media (max-width: 600px) {
  .profile th, .profile td { display: block; width: auto; padding: 0; border: 0; }
  .profile th { padding-top: 20px; font-size: 0.875rem; }
  .profile td { padding: 4px 0 20px; border-bottom: 1px solid var(--line); }
  .profile tr:first-child th { border-top: 1px solid var(--line); }
  .profile tr:first-child td { border-top: 0; }
}

.name-story { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.name-story img { width: clamp(160px, 22vw, 260px); }
.name-story p { margin: 0 0 1.2em; max-width: 36em; }
.name-story .tagline { font-family: var(--latin); font-weight: 300; letter-spacing: 0.2em; color: var(--muted); }
@media (max-width: 760px) { .name-story { grid-template-columns: 1fr; } }

/* お問い合わせ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-box { background: var(--stone); padding: clamp(28px, 4vw, 44px); position: relative; }
.contact-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ribbon); }
.contact-box dl { margin: 0; }
.contact-box dt { font-size: 0.8125rem; color: var(--muted); }
.contact-box dd { margin: 0 0 22px; }
.contact-box .mail { font-family: var(--latin); font-size: 1.25rem; letter-spacing: 0.06em; word-break: break-all; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
