/* YGDRASIL LP — design tokens */
:root {
  --navy-950: #071526;
  --navy-900: #0b1d33;
  --navy-800: #12294a;
  --navy-700: #1b3a63;
  --teal-700: #0b6b72;
  --teal-600: #0e7e86;
  --teal-500: #139aa1;
  --teal-100: #dff2f2;
  --leaf: #37c46a;
  --ink: #12202f;
  --text: #2c3a4a;
  --muted: #5d6b7b;
  --line: #dde6ee;
  --bg: #ffffff;
  --bg-soft: #f3f7fa;
  --bg-mist: #eaf1f6;
  --on-dark: #e8eef5;
  --on-dark-muted: #a9b8c9;

  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-script: "Allura", "Segoe Script", cursive;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(11, 29, 51, .06), 0 12px 32px -16px rgba(11, 29, 51, .22);
  --shadow-lift: 0 2px 4px rgba(11, 29, 51, .06), 0 24px 48px -20px rgba(11, 29, 51, .32);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pc-only { display: none; }
@media (min-width: 900px) { .pc-only { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: var(--btn-h); padding: 0 1.8em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .04em; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .icon:last-child { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn--sm { --btn-h: 42px; font-size: 14px; padding: 0 1.3em; }
.btn--lg { --btn-h: 60px; font-size: 16px; padding: 0 2.1em; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  box-shadow: 0 10px 24px -10px rgba(14, 126, 134, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(14, 126, 134, .8); }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-card); }
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-700); transform: translateY(-2px); }
.btn--outline { color: var(--teal-700); border-color: var(--teal-600); background: #fff; }
.btn--outline:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); }
.btn--light { color: var(--navy-900); background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .14); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 0 0 10px rgba(255, 255, 255, .12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 29, 51, .5); }
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); }
.brand img { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-weight: 800; font-size: 23px; letter-spacing: .08em; }
.brand__sub { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); margin-top: 4px; }
.brand--light { color: #fff; }
.brand--light .brand__sub { color: var(--on-dark-muted); }

.gnav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.gnav ul { display: flex; gap: 26px; }
.gnav ul a {
  position: relative; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 6px 0;
}
.gnav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--teal-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.gnav ul a:hover::after, .gnav ul a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .brand img { width: 38px; height: 38px; }
  .brand__name { font-size: 20px; }
  .menu-btn {
    display: grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--bg-mist); cursor: pointer;
  }
  .menu-btn__bar, .menu-btn__bar::before, .menu-btn__bar::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy-900);
    transition: transform .3s var(--ease), background-color .2s;
  }
  .menu-btn__bar { position: relative; }
  .menu-btn__bar::before, .menu-btn__bar::after { content: ""; position: absolute; left: 0; }
  .menu-btn__bar::before { top: -6px; }
  .menu-btn__bar::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bar { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bar::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px var(--gutter) 28px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(11, 29, 51, .4);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .gnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { display: block; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .gnav ul a::after { display: none; }
  .gnav__cta { --btn-h: 54px; font-size: 15px; }

  /* JS無効時：開閉ボタンを出さず、メニューを横スクロールの一列で常時表示 */
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding: 10px 0 0; row-gap: 6px; }
  html:not(.js) .gnav {
    position: static; visibility: visible; opacity: 1; transform: none; flex-basis: 100%;
    padding: 0; background: none; border: 0; box-shadow: none; overflow-x: auto; max-height: none;
  }
  html:not(.js) .gnav ul { flex-direction: row; gap: 18px; }
  html:not(.js) .gnav ul a { border: 0; padding: 8px 0; font-size: 14px; white-space: nowrap; }
  html:not(.js) .gnav__cta { display: none; }
}

/* ---------- Common section parts ---------- */
.section { padding-block: var(--section); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .28em; color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #6fd6cf; }
.section-title {
  font-family: var(--font-serif); font-weight: 800; color: var(--ink);
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.4; letter-spacing: .04em; margin-top: 10px;
}
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-head__note { color: var(--muted); font-size: 14.5px; line-height: 1.9; max-width: 36em; }
.empty-note { padding: 40px; text-align: center; background: var(--bg-soft); border-radius: var(--radius); color: var(--muted); }

/* ---------- Hero ---------- */
/* 背景：フッター前の CTA と同じ濃紺のグラデーションと山並みで、ページの最初と最後を揃える。
   上部には社名の由来であるトネリコ（世界樹ユグドラシルの木）の小枝を1本だけ（tools/make-hero-ash.mjs で生成した淡色の線画） */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark); --muted: var(--on-dark-muted);
  background: linear-gradient(180deg, #2b5b86 0%, #1c4068 45%, var(--navy-900) 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; }
.hero .hero__eyebrow, .hero .hero__lead { color: var(--on-dark); }
.hero .hero__title, .hero .hero__keys, .hero .hero__promises b { color: #fff; }
.hero .hero__keys i { color: #6fd6cf; }
.hero .hero__script { color: var(--on-dark); opacity: .7; }
.hero__ash {
  /* 枝は上端から入り、デバイスの奥を通る。見えるのは上の余白とコピー・デバイスの間 */
  position: absolute; top: -36px; left: calc(50% - 231px); width: 760px; max-width: none; height: auto; opacity: .55;
}
@media (max-width: 1365px) { .hero__ash { left: calc(50% - 110px); width: 600px; } }
.hero__inner {
  position: relative;
  width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 32px;
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 7vw, 104px);
}
.hero__eyebrow { color: var(--muted); font-size: 15px; letter-spacing: .12em; line-height: 1.8; }
.hero__title {
  font-family: var(--font-serif); font-weight: 800; color: var(--navy-900);
  font-size: clamp(38px, 5.4vw, 72px); line-height: 1.24; letter-spacing: .02em; margin: 18px 0 22px;
}
.hero__title span { white-space: nowrap; }
.hero__keys { font-weight: 700; color: var(--ink); font-size: 15px; letter-spacing: .06em; }
.hero__keys span { white-space: nowrap; } /* 折り返すときは語の途中で切らない */
.hero__keys i { font-style: normal; color: var(--teal-500); margin: 0 .5em; }
.hero__lead { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__promises { display: flex; gap: clamp(16px, 3vw, 36px); margin-top: 36px; }
.hero__promises li {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 22px;
  text-align: center; line-height: 1.3;
}
.hero__promises li::before, .hero__promises li::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 40px; transform: translateY(-50%);
  border: 2px solid #c6a45a; border-radius: 50%;
  -webkit-mask: linear-gradient(90deg, #000 50%, transparent 50%); mask: linear-gradient(90deg, #000 50%, transparent 50%);
}
.hero__promises li::before { left: 0; }
.hero__promises li::after { right: 0; transform: translateY(-50%) scaleX(-1); }
.hero__promises span { font-size: 11.5px; color: var(--muted); letter-spacing: .1em; }
.hero__promises b { font-family: var(--font-serif); font-size: 20px; color: var(--navy-900); margin-top: 4px; }

/* FV のデバイス（正面配置・PC奥／スマホ手前）。高さは aspect-ratio で先に確保し、画像の読込や切替でレイアウトが動かない */
.hero__visual { position: relative; }
.hero__stage { position: relative; aspect-ratio: 100 / 74; }
.hero__floor {
  position: absolute; left: 4%; right: -2%; bottom: 1%; height: 9%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 29, 51, .26), rgba(11, 29, 51, 0));
  filter: blur(4px);
}
.device-laptop { position: absolute; right: 0; top: 0; width: 86%; }
.device-laptop__lid {
  position: relative; padding: 2.4% 2.4% 3%;
  background: linear-gradient(180deg, #1c2532 0%, #0a0f16 100%);
  border-radius: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) 4px 4px;
  box-shadow: inset 0 0 0 1px #34404f, inset 0 0 0 3px #0a0f16, 0 24px 40px -18px rgba(11, 29, 51, .45);
}
.device-laptop__cam {
  position: absolute; left: 50%; top: 1%; width: .7%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: #2b3746; box-shadow: inset 0 0 0 1px #3d4b5c;
}
.device-laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: #e9eff4; }
.device-laptop__base {
  position: relative; margin: 0 -7%; aspect-ratio: 100 / 2.6;
  background: linear-gradient(180deg, #eef1f4 0%, #c9d0d8 40%, #a3adb8 80%, #7f8a96 100%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: 0 14px 22px -10px rgba(11, 29, 51, .45);
}
.device-laptop__base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 42%; transform: translateX(-50%);
  background: linear-gradient(180deg, #b9c1ca, #d5dbe1); border-radius: 0 0 8px 8px;
}
.device-phone {
  position: absolute; left: 1%; bottom: 3%; width: 25.5%; padding: .9%;
  background: #0b1018;
  border-radius: clamp(17px, 2.5vw, 34px);
  box-shadow: 0 0 0 1px #5b6672, 0 0 0 2px #1d242d, 0 30px 40px -16px rgba(11, 29, 51, .55), 0 10px 16px -8px rgba(11, 29, 51, .35);
}
.device-phone__btn { position: absolute; width: 3px; border-radius: 2px; background: #2c3643; }
.device-phone__btn--a { left: -3px; top: 22%; height: 10%; }
.device-phone__btn--b { right: -3px; top: 28%; height: 16%; }
.device-phone__screen {
  position: relative; aspect-ratio: 480 / 984; overflow: hidden; background: #e9eff4;
  border-radius: clamp(14px, 2.2vw, 30px);
}
.device-phone__screen::before {
  content: ""; position: absolute; z-index: 3; left: 50%; top: 1.6%; width: 30%; height: 3.3%; transform: translateX(-50%);
  border-radius: 999px; background: #0b1018;
}
/* 画面の切替は横スライド：待機中は右の外、表示中は中央、退場は左の外（JS が is-active / is-leaving を付け替える） */
.device-laptop__screen img, .device-phone__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transform: translateX(100%); transition: transform .9s cubic-bezier(.65, 0, .35, 1);
}
.device-laptop__screen img.is-active, .device-phone__screen img.is-active { transform: none; z-index: 1; }
.device-laptop__screen img.is-leaving, .device-phone__screen img.is-leaving { transform: translateX(-100%); }
.device-laptop__screen img.no-anim, .device-phone__screen img.no-anim { transition: none; }
/* 画面のわずかな映り込み */
.device-laptop__screen::after, .device-phone__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 38%);
}

.hero__caption { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; min-height: 40px; }
.hero__caption-link {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 300px;
  padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 13px; color: var(--ink);
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.hero__caption-link:hover { border-color: var(--teal-500); color: var(--teal-700); }
.hero__caption-label { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--teal-600); }
.hero__caption-title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.hero__caption-title.is-changing { opacity: 0; }
.hero__caption-toggle {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  color: var(--navy-800); background: rgba(255, 255, 255, .85); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
/* 一時停止ボタンは自動切替が動く環境（JS有効・reduceでない）でだけ、描画の最初から表示する */
html:not(.js) .hero__caption-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__caption-toggle { display: none; } }
.hero__caption-toggle:hover { border-color: var(--teal-500); color: var(--teal-700); }
.hero__caption-toggle .icon--play, .hero__caption-toggle[aria-pressed="true"] .icon--pause { display: none; }
.hero__caption-toggle[aria-pressed="true"] .icon--play { display: block; }
.hero__script {
  position: absolute; right: 0; bottom: 64px; pointer-events: none;
  font-family: var(--font-script); font-size: clamp(30px, 3vw, 44px); line-height: 1.05; width: 7.6em; height: 2.1em; white-space: nowrap; overflow: visible;
  color: var(--navy-700); text-align: right; transform: rotate(-6deg); opacity: .85;
}

/* 動き：初回の控えめな登場 → ゆっくり浮遊（reduce では停止） */
@keyframes stage-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes float-a { 50% { transform: translateY(-9px); } }
@keyframes float-b { 50% { transform: translateY(-14px); } }
@keyframes floor-breathe { 50% { transform: scaleX(.94); opacity: .8; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__stage { animation: stage-in 1.1s var(--ease) .15s backwards; }
  .device-laptop { animation: float-a 7s ease-in-out 1.3s infinite; }
  .device-phone { animation: float-b 6s ease-in-out 1.4s infinite; }
  .hero__floor { animation: floor-breathe 7s ease-in-out 1.3s infinite; }
  .hero__caption { animation: stage-in .8s var(--ease) .6s backwards; }
}

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero__caption { justify-content: center; }
  .device-laptop { right: 5.5%; width: 83%; } /* 台座の張り出し分を画面内に収める */
  .hero__script { bottom: 58px; font-size: 28px; }
  .hero__promises { justify-content: space-between; gap: 8px; }
  .hero__promises li { padding: 0 16px; }
  .hero__promises b { font-size: 17px; }
  .hero__ash { left: auto; right: -70px; top: -40px; width: 240px; transform: scaleX(-1); opacity: .5; }
}
@media (max-width: 374px) {
  .hero__ash { top: -60px; width: 200px; }
}
/* スマホは PC と別の構成（2026-10-21 ユーザー指示）：最初の画面に「見出し → 実際のサンプル画面」までを収める。
   並び：見出し → キーワード列 → デバイス（スライド）→ ボタン2つ横並び（2026-10-21 ユーザー指示で前置き・説明文も省略）。
   対応範囲・筆記体も省く（対応範囲は直下の「選ばれる理由」と重なるため） */
@media (max-width: 599px) {
  .hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 28px 0 44px; }
  .hero__copy { display: contents; }
  .hero__title { order: 1; font-size: clamp(30px, 9vw, 38px); margin: 6px 0 14px; }
  .hero__keys { order: 2; font-size: 12.5px; letter-spacing: .02em; margin-bottom: 26px; white-space: nowrap; }
  .hero__keys i { margin: 0 .3em; }
  .hero__visual { order: 3; max-width: none; margin: 0 -4px; }
  .hero__caption { margin-top: 10px; }
  .hero__actions { order: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero__actions .btn { --btn-h: 52px; width: 100%; padding: 0 .6em; font-size: 14px; gap: .4em; white-space: nowrap; }
  .hero__actions .btn svg { display: none; } /* 幅が足りないのでアイコンは省く */
  .hero__eyebrow, .hero__lead, .hero__promises, .hero__script { display: none; }
  .hero__ash { width: 200px; right: -60px; top: -50px; }
}
@media (max-width: 359px) {
  .hero__actions { grid-template-columns: 1fr; }
  .hero__keys { font-size: 12px; white-space: normal; line-height: 1.8; } /* 狭い端末では2行に折り返す */
}

/* ---------- Reason ----------
   FV から白地のまま続ける。箱に入れず、左に見出しを固定・右に罫線で区切った一覧。順番ではないので番号は付けない */
.reason { background: #fff; padding-top: clamp(56px, 7vw, 96px); }
.reason__inner { position: relative; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 110px); align-items: start; }
.reason__head { position: sticky; top: calc(var(--header-h) + 40px); }
.reason__head .section-title { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.35; }
.reason__lead { margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.reason__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.reason-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; align-content: start;
  padding: 30px 0 32px; border-top: 1px solid var(--line);
}
.reason-item__icon {
  grid-row: span 2; width: 34px; height: 34px; margin-top: 2px;
  fill: none; stroke: var(--teal-600); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.reason-item__title { font-family: var(--font-serif); font-weight: 800; font-size: 20px; line-height: 1.5; color: var(--navy-900); letter-spacing: .03em; }
.reason-item__text { margin-top: 8px; font-size: 14px; line-height: 1.9; color: var(--muted); }
@media (max-width: 1023px) {
  .reason__inner { grid-template-columns: 1fr; }
  .reason__head { position: static; }
}
@media (max-width: 639px) {
  .reason__list { grid-template-columns: 1fr; }
  .reason-item { padding: 24px 0; }
}

/* ---------- Sample cards (shared) ----------
   箱に入れず、モックアップ画像の下に直接キャプションを置くポートフォリオ型 */
.works { background: var(--bg-soft); }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(20px, 2.6vw, 36px); }
.sample-card { min-width: 0; }
.sample-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.sample-card__media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e6eef4;
  border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(11, 29, 51, .06);
}
.sample-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sample-card__link:hover .sample-card__media > img { transform: scale(1.03); }
/* ホバーでモックのPC画面の中だけをスクロールさせる（screen-scroll.webp があるサンプル）。
   枠の位置は tools/make-thumbnails.mjs のモックアップ（1200×750 中の画面 277,67／834×521）に合わせた割合 */
.sample-card--scroll .sample-card__link:hover .sample-card__media > img { transform: none; }
.sample-card__scroll {
  position: absolute; left: 23.083%; top: 8.933%; width: 69.5%; height: 69.5%;
  overflow: hidden; border-radius: 2px; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s;
  /* 手前のスマホ（モックアップ中 78,214／幅252・角丸38）に重なる左下を切り抜き、スマホが隠れないようにする */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6.35% 100%, 6.35% 35.49%, 6.01% 32.71%, 5.02% 30.33%, 3.54% 28.76%, 1.8% 28.2%, 0 28.2%);
}
.sample-card__scroll img { display: block; width: 100%; height: auto; will-change: transform; }
.sample-card.is-scrolling .sample-card__scroll { opacity: 1; }
.badge {
  position: absolute; top: 14px; left: 14px; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
.badge--new { background: var(--leaf); color: #06311a; }
.sample-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 2px 0; }
.sample-card__cat { font-size: 12.5px; font-weight: 700; color: var(--teal-600); }
.sample-card__title { font-family: var(--font-serif); font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.45; margin: 4px 0 8px; letter-spacing: .03em; }
.sample-card__desc {
  font-size: 13.5px; line-height: 1.85; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sample-card__more {
  margin-top: auto; padding-top: 14px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--teal-700);
}
.sample-card__more > :first-child { border-bottom: 1px solid currentColor; }
.sample-card__link:hover .sample-card__more { color: var(--navy-900); }
.works__more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(48px, 6vw, 72px); }
.works__count { font-size: 13px; color: var(--muted); }
.works__count b { color: var(--teal-700); font-size: 16px; }
@media (max-width: 1023px) { .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sample-grid { grid-template-columns: 1fr; } }

/* ---------- Flow ----------
   工程は順番そのものなので番号を付ける。線は丸と丸の間だけを実線でつなぐ */
.flow { background: #fff; }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.timeline__step { position: relative; padding-right: 22px; }
.timeline__step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 68px; right: 12px; height: 1px; background: #a9cfd1;
}
.timeline__dot {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 1px solid #a9cfd1; color: var(--teal-600);
}
.timeline__step:first-child .timeline__dot { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.timeline__dot svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.timeline__body { margin-top: 22px; }
.timeline__no { display: block; font-family: var(--font-serif); font-weight: 800; font-size: 30px; line-height: 1; color: var(--teal-600); letter-spacing: .02em; }
.timeline__title { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.timeline__text { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.85; }
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .timeline__step:nth-child(3n)::after { display: none; }
}
@media (max-width: 639px) {
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding: 0 0 30px; }
  .timeline__step:nth-child(3n)::after { display: block; }
  .timeline__step:not(:last-child)::after { top: 56px; bottom: 8px; left: 24px; right: auto; width: 1px; height: auto; }
  .timeline__dot { width: 48px; height: 48px; }
  .timeline__dot svg { width: 22px; height: 22px; }
  .timeline__body { margin-top: 2px; }
  .timeline__no { display: inline; font-size: 22px; margin-right: 10px; }
  .timeline__title { display: inline; margin-top: 0; font-size: 16px; }
  .timeline__text { margin-top: 6px; }
}

/* ---------- Support ----------
   3枚の独立したカードではなく、1枚のパネルを縦の罫線で3つに分ける */
.support { background: var(--bg-soft); }
.draft-tag {
  display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  color: #8a5a00; background: #fff4d6; border: 1px solid #f0d58e; line-height: 1.6; vertical-align: middle;
}
.plans { background: #fff; border-radius: 28px; box-shadow: 0 1px 2px rgba(11, 29, 51, .05); }
.plans__draft { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 26px clamp(24px, 3vw, 40px) 0; font-size: 13px; color: var(--muted); }
.plans__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { padding: 28px clamp(24px, 3vw, 40px) 40px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan__art svg { width: 100%; max-width: 300px; height: auto; aspect-ratio: 360 / 170; }
.plan__title {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  font-family: var(--font-serif); font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.4; letter-spacing: .03em;
}
.plan__icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--teal-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan__lead { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
.check-list { margin-top: 18px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; font-size: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 3px; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600); transform: rotate(-45deg);
}
@media (max-width: 899px) {
  .plans__list { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan__art svg { max-width: 280px; }
}

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq__inner { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.faq-item { border-bottom: 1px solid #cfdbe5; }
.faq-item:first-child { border-top: 1px solid #cfdbe5; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 16px;
  padding: 24px 48px 24px 0; font-weight: 700; color: var(--ink); position: relative; line-height: 1.65;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600); transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-item summary:hover .faq-item__text { color: var(--teal-700); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item__q { flex: none; font-family: var(--font-serif); font-weight: 800; font-size: 20px; color: var(--teal-600); }
.faq-item p { padding: 0 48px 26px 38px; color: var(--muted); font-size: 14.5px; line-height: 1.9; }
@media (max-width: 899px) { .faq__inner { grid-template-columns: 1fr; } .faq-item p { padding-right: 8px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #2b5b86 0%, #1c4068 45%, var(--navy-900) 100%);
}
.cta-band__ridge { position: absolute; inset: auto 0 0 0; width: 100%; height: 80%; }
.cta-band__inner {
  position: relative; width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 32px 48px; flex-wrap: wrap;
  padding: clamp(72px, 8vw, 110px) 0;
}
.cta-band__title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.45; margin-top: 10px; letter-spacing: .04em; }
.cta-band__lead { margin-top: 14px; color: var(--on-dark); font-size: 15px; }
.cta-band__action { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-band__tel { font-size: 14px; color: var(--on-dark); }
.cta-band__tel a { font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; margin-left: .3em; }
.cta-band__pending {
  max-width: 360px; padding: 18px 22px; border: 1px dashed rgba(255, 255, 255, .5); border-radius: var(--radius);
  font-size: 14px; text-align: center; background: rgba(7, 21, 38, .35);
}
.cta-band__pending small { color: var(--on-dark-muted); }
@media (max-width: 599px) { .cta-band__action, .cta-band__action .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: 13.5px; }
.site-footer__inner {
  width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px;
}
.site-footer__brand p { margin-top: 16px; }
.site-footer__nav { display: flex; gap: 48px; }
.site-footer__nav ul { display: grid; gap: 10px; align-content: start; }
.site-footer__nav a { text-decoration: none; color: var(--on-dark); }
.site-footer__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__name { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; padding: 18px var(--gutter); font-size: 12px;
}
@media (max-width: 899px) { .site-footer__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

/* ---------- Gallery page ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, #1d4a72 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.page-hero__ridge { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; opacity: .9; }
.page-hero__inner { position: relative; padding: 28px 0 clamp(64px, 8vw, 96px); display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: end; }
.page-hero__inner > :not(.page-hero__stat) { grid-column: 1; }
.breadcrumb { margin-bottom: clamp(32px, 5vw, 56px); font-size: 12.5px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero__title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.3; margin-top: 10px; letter-spacing: .04em; }
.page-hero__lead { margin-top: 16px; color: var(--on-dark); font-size: 15px; }
.page-hero__stat {
  grid-column: 2; grid-row: 2 / span 3; display: flex; align-items: center; gap: 14px;
  padding: 18px 26px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px);
}
.page-hero__stat b { font-family: var(--font-serif); font-size: 52px; line-height: 1; color: #fff; }
.page-hero__stat span { font-size: 13px; color: var(--on-dark); line-height: 1.6; }
@media (max-width: 767px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__stat { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 28px; padding: 14px 20px; }
  .page-hero__stat b { font-size: 40px; }
}

.gallery { padding-top: 0; background: var(--bg-soft); }
.gallery-tools {
  position: relative; z-index: 2; margin-top: -36px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 16px; align-items: center;
  background: #fff; border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-lift);
}
.gallery-tools__search { position: relative; }
.gallery-tools__search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.gallery-tools__search input {
  width: 100%; height: 52px; padding: 0 18px 0 48px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg-soft); font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.gallery-tools__search input:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(19, 154, 161, .15); }
.gallery-tools__sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.gallery-tools__sort select {
  height: 52px; padding: 0 40px 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; color: var(--ink);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7e86' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip span em { font-style: normal; font-size: 11.5px; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 0 7px; min-width: 22px; text-align: center; }
.chip span:hover { border-color: var(--teal-500); }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip input:checked + span em { background: rgba(255, 255, 255, .16); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.gallery__status { margin: 32px 0 18px; font-size: 13.5px; color: var(--muted); }
.gallery__empty { text-align: center; padding: 56px 20px; background: #fff; border-radius: var(--radius-lg); border: 1px dashed var(--line); }
.gallery__empty p { margin-bottom: 16px; color: var(--muted); }
.gallery__more { text-align: center; margin-top: 40px; }
@media (max-width: 599px) {
  .gallery-tools { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .gallery-tools__sort { justify-content: space-between; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: thin; }
  .chip span { white-space: nowrap; }
}
.gallery-note { background: #fff; }
.gallery-note__inner { max-width: 820px; text-align: center; }
.gallery-note__title { font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--ink); line-height: 1.6; }
.gallery-note p { margin-top: 18px; color: var(--muted); }

/* ---------- 404 ---------- */
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Motion ----------
   動きは FV の登場と浮遊だけに集中させる。内容を隠すアニメーションは使わない。 */
@keyframes hero-in { from { transform: translateY(14px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: hero-in .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
  .sample-card__link:hover .sample-card__media > img { transform: none; }
  .sample-card__scroll { display: none; }
}
