/* ひより工務店 スクロール連動サンプル */
:root {
  --paper: #f6f2ea;
  --paper-2: #efe8dc;
  --ink: #1b2a3a;
  --ink-2: #4a5866;
  --navy: #14263a;
  --wood: #a8754a;
  --gold: #c39a5f;
  --line: rgba(27, 42, 58, .14);
  --white: #fffdf9;
  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
.sp { display: none; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  font-family: var(--en); font-size: 15px; letter-spacing: .32em; color: var(--wood);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.sec-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.45; letter-spacing: .08em; margin-top: 14px;
}
.sec-head { padding: 0 var(--gut); margin-bottom: clamp(36px, 6vw, 72px); }
.note { font-size: 12px; color: var(--ink-2); margin-top: 28px; padding: 0 var(--gut); letter-spacing: .06em; }

/* ---------- 読み込み中 ---------- */
.loader {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; pointer-events: none;
  transition: opacity .6s, transform .6s var(--ease);
}
.loader.is-done { opacity: 0; transform: translate(-50%, 12px); }
.no-js .loader, html:not(.motion) .loader { display: none; }
.loader-tape {
  width: 160px; height: 10px; border-radius: 2px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(27,42,58,.35) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat, rgba(255,253,249,.7);
  box-shadow: 0 0 0 1px var(--line);
}
.loader-tape i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); opacity: .85; }
.loader-num { font-family: var(--en); font-size: 15px; color: var(--ink); min-width: 48px; }
.loader-num small { font-size: 11px; margin-left: 2px; }

/* ---------- ヘッダー ---------- */
.hdr {
  position: fixed; inset: 14px 14px auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(246, 242, 234, .74); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(27,42,58,.08), 0 10px 30px -18px rgba(20,38,58,.35);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 34px; height: 31px; color: var(--ink); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .14em; }
.brand-txt small { font-family: var(--en); font-size: 10px; letter-spacing: .3em; color: var(--wood); }
.gnav { display: flex; gap: 4px; margin-left: auto; }
.gnav a { text-decoration: none; font-size: 14px; padding: 10px 14px; border-radius: 999px; transition: background .3s; }
.gnav a:hover { background: rgba(27,42,58,.07); }
.hdr-cta {
  text-decoration: none; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; white-space: nowrap; transition: background .3s;
}
.hdr-cta:hover { background: var(--wood); }
.magnet { display: inline-block; will-change: transform; }
.magnet > span { display: inline-block; pointer-events: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: .08em; border: 0; cursor: pointer;
  transition: background .35s, color .35s, box-shadow .35s;
}
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--wood); }
.btn-line { box-shadow: inset 0 0 0 1px currentColor; background: rgba(255,253,249,.4); }
.btn-line:hover { background: var(--white); }
.btn-wide { width: 100%; }

/* ---------- ① 映像ストーリー ---------- */
.film { position: relative; height: 1000vh; background: var(--paper); }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-poster img, .film-gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-gl { opacity: 0; transition: opacity .8s; }
.gl-on .film-gl { opacity: 1; }
.gl-on .film-poster { visibility: hidden; transition: visibility 0s .8s; }
.film-scrim { position: absolute; inset: 0; pointer-events: none;
  /* 最後の章：中央に紙の白をのせて線画の上でも読めるように */
  background: radial-gradient(ellipse 62% 58% at 50% 52%, rgba(246,242,234,calc(.94 * var(--end, 0))) 30%, rgba(246,242,234,calc(.6 * var(--end, 0))) 62%, rgba(246,242,234,0) 88%);
}
.film-scrim::before, .film-scrim::after { content: ""; position: absolute; inset: 0; }
.film-scrim::before { /* 白文字の章：左側を暗く */
  background: linear-gradient(90deg, rgba(12,22,34,.78) 0%, rgba(12,22,34,.5) 34%, rgba(12,22,34,0) 64%),
              linear-gradient(0deg, rgba(12,22,34,.45), rgba(12,22,34,0) 40%);
  opacity: var(--dark, 0);
}
.film-scrim::after { /* 墨文字の章：紙の白を少し足す */
  background: radial-gradient(ellipse 70% 80% at 22% 55%, rgba(246,242,234,.82), rgba(246,242,234,0) 70%);
  opacity: var(--lite, 1);
}

.chap { position: absolute; z-index: 2; }
.motion .chap { opacity: 0; visibility: hidden; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ln > i { display: block; font-style: normal; will-change: transform; }

.chap-a { left: var(--gut); top: 50%; transform: translateY(-50%); max-width: min(92vw, 1000px); color: var(--ink); }
.chap-eyebrow { font-family: var(--en); font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .34em; color: var(--wood); margin-bottom: 22px; }
.chap-title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, min(6.2vw, 10.5vh), 104px); line-height: 1.22; letter-spacing: .06em; }
.chap-lead { font-family: var(--serif); font-size: clamp(15px, 1.5vw, 20px); margin-top: 26px; letter-spacing: .14em; }
.chap-cue { display: flex; align-items: center; gap: 14px; margin-top: 48px; font-family: var(--en); font-size: 12px; letter-spacing: .4em; }
.chap-cue i { width: 72px; height: 1px; background: rgba(27,42,58,.3); position: relative; overflow: hidden; }
.chap-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.chap-side { left: var(--gut); bottom: clamp(110px, 16vh, 170px); max-width: min(780px, 62vw); color: var(--white); }
.chap-no { font-family: var(--en); font-size: clamp(56px, 6vw, 88px); line-height: 1; color: rgba(255,253,249,.92); display: flex; align-items: baseline; gap: 18px; }
.chap-no small { font-family: var(--sans); font-size: 14px; letter-spacing: .24em; padding: 6px 14px; border: 1px solid rgba(255,253,249,.55); border-radius: 999px; }
.chap-h { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, min(4vw, 7vh), 60px); line-height: 1.38; letter-spacing: .06em; margin-top: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.chap-body { margin-top: 20px; font-size: clamp(14px, 1.2vw, 16px); line-height: 2; color: rgba(255,253,249,.9); }

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; max-width: 460px; position: relative; }
.meter::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: rgba(255,253,249,.3); }
.meter::after { content: ""; position: absolute; left: 6px; top: 6px; height: 1px; width: calc((100% - 12px) * var(--m, 0)); background: var(--gold); }
.meter li { position: relative; padding-top: 22px; font-size: 13px; letter-spacing: .14em; color: rgba(255,253,249,.55); transition: color .4s; }
.meter li i { position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 1px rgba(255,253,249,.5); transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.meter li.on { color: var(--white); }
.meter li.on i { background: var(--gold); box-shadow: 0 0 0 5px rgba(195,154,95,.25); transform: scale(1.1); }

.chap-end { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--ink); width: min(92vw, 820px); }
.chap-end .chap-no { justify-content: center; color: var(--wood); font-size: clamp(40px, 4vw, 60px); }
.chap-end .chap-no small { border-color: rgba(168,117,74,.5); color: var(--wood); }
.chap-end .chap-h { text-shadow: none; }
.chap-end .chap-body { color: var(--ink-2); }
.chap-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.hud { position: absolute; left: var(--gut); right: 220px; bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 20px; color: var(--hud, var(--ink)); transition: color .5s; }
.hud-tc { display: flex; align-items: baseline; gap: 12px; font-size: 12px; letter-spacing: .2em; white-space: nowrap; }
.hud-tc b { font-family: var(--en); font-size: 20px; font-weight: 500; letter-spacing: .08em; min-width: 56px; }
.hud-bar { flex: 1; max-width: 360px; height: 1px; background: currentColor; opacity: .5; position: relative; }
.hud-bar i { position: absolute; inset: -1px auto -1px 0; width: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); }

.rail { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 2px; color: var(--hud, var(--ink)); }
.rail button {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 40px;
  background: none; border: 0; cursor: pointer; padding: 0 6px; font-size: 13px; letter-spacing: .14em; opacity: .55; transition: opacity .3s;
}
.rail button::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.rail button:hover, .rail button.on { opacity: 1; }
.rail button.on::after { width: 46px; }

/* 動きなし・JSなしの受け皿：章を順に並べる */
html:not(.motion) .film { height: auto; }
html:not(.motion) .film-stage { position: relative; height: auto; overflow: visible; }
html:not(.motion) .film-poster, html:not(.motion) .film-gl, html:not(.motion) .film-scrim,
html:not(.motion) .hud, html:not(.motion) .rail, html:not(.motion) .chap-cue { display: none; }
html:not(.motion) .chap {
  position: relative; inset: auto; transform: none; max-width: none; width: auto;
  min-height: 86svh; padding: 140px var(--gut) 80px; display: flex; flex-direction: column; justify-content: flex-end;
  background-position: center; background-size: cover; background-repeat: no-repeat; text-align: left;
}
html:not(.motion) .chap-a, html:not(.motion) .chap-end { justify-content: center; }
html:not(.motion) .chap-side { box-shadow: inset 0 -60vh 80vh -20vh rgba(12,22,34,.8); }
html:not(.motion) .chap-a { box-shadow: inset 0 0 0 100vmax rgba(246,242,234,.55); }
html:not(.motion) .chap-end { box-shadow: inset 0 0 0 100vmax rgba(246,242,234,.7); text-align: center; align-items: center; }
html:not(.motion) .chap-end .chap-no { justify-content: center; }
.chap[data-bg*="aerial"] { background-image: url(../assets/img/f-aerial.webp); }
.chap[data-bg*="consult"] { background-image: url(../assets/img/f-consult.webp); }
.chap[data-bg*="frame"] { background-image: url(../assets/img/f-frame.webp); }
.chap[data-bg*="key"] { background-image: url(../assets/img/f-key.webp); }
.chap[data-bg*="final"] { background-image: url(../assets/img/f-final.webp); }
.motion .chap { background-image: none !important; }
html:not(.motion) .meter li { color: var(--white); }

/* ---------- ② 約束 ---------- */
.promise { padding: clamp(110px, 16vw, 200px) var(--gut) clamp(80px, 10vw, 140px); }
.focus-text {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 46px); line-height: 1.85; letter-spacing: .08em;
  max-width: 1080px; margin-top: 30px;
}
.focus-text .ch { display: inline; }
.motion .focus-text .ch { opacity: .14; transition: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.stats > div { padding: 28px 24px 4px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stats > div:last-child { border-right: 0; margin-right: 0; }
.stats dt { font-size: 13px; letter-spacing: .2em; color: var(--ink-2); }
.stats dd { font-family: var(--en); font-size: clamp(48px, 5.6vw, 84px); line-height: 1.1; margin-top: 6px; white-space: nowrap; }
.stats dd small { font-family: var(--sans); font-size: 15px; margin: 0 4px; color: var(--ink-2); }
.promise .note { padding: 0; }

/* ---------- ③ 家づくりの流れ ---------- */
.flow { background: var(--navy); color: var(--white); }
.flow-pin { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; position: relative; }
.flow-head {
  flex: 0 0 auto; width: clamp(320px, 32vw, 470px); padding: 0 calc(var(--gut) + 30px) 0 var(--gut);
  position: relative; z-index: 3; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  /* 流れてきたカードは見出しの下にもぐって消える */
  background: linear-gradient(90deg, var(--navy) 84%, rgba(20,38,58,0));
}
.flow-head .eyebrow { color: var(--gold); }
.flow-lead { margin-top: 22px; color: rgba(255,253,249,.72); font-size: 15px; }
.flow-count { margin-top: 40px; font-family: var(--en); display: flex; align-items: baseline; gap: 10px; }
.flow-count b { font-size: 64px; font-weight: 500; line-height: 1; color: var(--gold); }
.flow-count span { font-size: 18px; color: rgba(255,253,249,.5); }
.flow-track { display: flex; gap: clamp(20px, 2.6vw, 40px); padding-right: 12vw; perspective: 1400px; will-change: transform; }
.step {
  flex: 0 0 auto; width: clamp(280px, 27vw, 400px); background: rgba(255,253,249,.04);
  border: 1px solid rgba(255,253,249,.12); border-radius: 6px; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
}
.step-img { aspect-ratio: 4 / 4.2; overflow: hidden; }
.step-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.step-txt { padding: 24px 24px 26px; }
.step-no { font-family: var(--en); font-size: 30px; color: var(--gold); line-height: 1; display: flex; align-items: baseline; gap: 12px; }
.step-no span { font-size: 11px; letter-spacing: .3em; color: rgba(255,253,249,.5); }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .1em; margin-top: 12px; }
.step p { font-size: 14px; color: rgba(255,253,249,.75); margin-top: 10px; line-height: 1.9; }
.step .chip { display: inline-block; margin-top: 16px; font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(195,154,95,.6); color: var(--gold); }
.flow-progress { position: absolute; left: var(--gut); right: var(--gut); bottom: 34px; height: 1px; background: rgba(255,253,249,.18); }
.flow-progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
html:not(.motion) .flow-pin { height: auto; display: block; padding: 120px 0; }
html:not(.motion) .flow-head { width: auto; margin-bottom: 40px; }
html:not(.motion) .flow-track { overflow-x: auto; padding: 0 var(--gut) 20px; scroll-snap-type: x mandatory; }
html:not(.motion) .step { scroll-snap-align: start; }
html:not(.motion) .flow-progress, html:not(.motion) .flow-count { display: none; }

/* ---------- ④ 選ばれる理由 ---------- */
.reasons { padding: clamp(110px, 14vw, 180px) 0 clamp(60px, 8vw, 120px); }
.reason {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 6vw, 96px); align-items: center;
  padding: 0 var(--gut); margin-bottom: clamp(80px, 12vw, 160px);
}
.reason.is-rev { grid-template-columns: 1fr 1.25fr; }
.reason.is-rev .reason-img { order: 2; }
.reason-img { aspect-ratio: 16 / 11; overflow: hidden; border-radius: 4px; }
.reason-img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.reason-no { font-family: var(--en); font-size: 14px; letter-spacing: .32em; color: var(--wood); }
.reason h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.5; letter-spacing: .08em; margin-top: 14px; }
.reason-txt > p:last-child { margin-top: 24px; color: var(--ink-2); font-size: 15px; line-height: 2.05; }

/* ---------- ⑤ 施工事例 ---------- */
.works { padding: clamp(60px, 8vw, 120px) 0 clamp(90px, 12vw, 160px); background: var(--paper-2); }
.works-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gut); }
.work { position: relative; display: block; text-decoration: none; color: var(--white); border-radius: 6px; overflow: hidden; transform-style: preserve-3d; }
.work:first-child { grid-row: span 2; }
.work-img { height: 100%; min-height: 280px; overflow: hidden; }
.work:first-child .work-img { min-height: 560px; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover .work-img img { transform: scale(1.06); }
.work-cap { position: absolute; inset: auto 0 0 0; padding: 60px 26px 24px; background: linear-gradient(0deg, rgba(12,22,34,.78), rgba(12,22,34,0)); }
.work-tag { display: inline-block; font-size: 12px; padding: 2px 12px; border-radius: 999px; background: rgba(255,253,249,.9); color: var(--ink); }
.work h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: .08em; margin-top: 10px; }
.work-cap > p:last-child { font-size: 13px; color: rgba(255,253,249,.8); }

/* ---------- ⑥ お客様の声 ---------- */
.voice { padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; }
.marquee { white-space: nowrap; margin-bottom: clamp(60px, 8vw, 110px); }
.marquee p { display: inline-block; font-family: var(--serif); font-size: clamp(56px, 9vw, 140px); line-height: 1.2; color: transparent; -webkit-text-stroke: 1px rgba(168,117,74,.55); will-change: transform; }
.voice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); padding: 0 var(--gut); }
.quote { background: var(--white); border-radius: 6px; padding: 34px 30px 28px; box-shadow: 0 0 0 1px var(--line); position: relative; }
.quote::before { content: "“"; position: absolute; top: 4px; left: 22px; font-family: var(--en); font-size: 80px; line-height: 1; color: var(--gold); opacity: .55; }
.quote blockquote { font-family: var(--serif); font-size: 18px; line-height: 2; letter-spacing: .06em; margin-top: 28px; }
.quote figcaption { margin-top: 20px; font-size: 13px; color: var(--ink-2); }

/* ---------- ⑦ 見学会 ---------- */
.events { padding: 0 0 clamp(90px, 12vw, 160px); }
.event-list { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 var(--gut); border-top: 1px solid var(--line); }
.event { padding: 34px 28px 10px 0; }
.event + .event { padding-left: 28px; border-left: 1px solid var(--line); }
.event-when { font-size: 13px; letter-spacing: .14em; color: var(--wood); }
.event h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: .1em; margin-top: 8px; }
.event p:last-child { margin-top: 12px; color: var(--ink-2); font-size: 14px; }

/* ---------- ⑧ お問い合わせ ---------- */
.contact { position: relative; padding: clamp(100px, 12vw, 160px) var(--gut); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,242,234,.94) 0%, rgba(246,242,234,.86) 45%, rgba(246,242,234,.5) 100%); }
.contact-in { position: relative; display: grid; grid-template-columns: 1fr minmax(320px, 480px); gap: clamp(40px, 6vw, 96px); align-items: center; max-width: 1240px; margin: 0 auto; }
.contact-copy > p:not(.eyebrow) { margin-top: 22px; color: var(--ink-2); }
.tel { font-size: 14px; }
.tel b { display: block; font-family: var(--en); font-size: clamp(34px, 3.4vw, 46px); font-weight: 500; color: var(--ink); letter-spacing: .06em; line-height: 1.3; }
.tel small { font-size: 12px; }
.form { background: var(--white); border-radius: 10px; padding: clamp(24px, 3vw, 38px); box-shadow: 0 30px 60px -30px rgba(20,38,58,.35), 0 0 0 1px var(--line); display: grid; gap: 16px; }
.form-kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form-kind legend { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.form-kind label { cursor: pointer; }
.form-kind input { position: absolute; opacity: 0; pointer-events: none; }
.form-kind span { display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.form-kind input:checked + span { background: var(--ink); color: var(--white); box-shadow: none; }
.form-kind input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid transparent;
  border-radius: 6px; padding: 12px 14px; transition: border-color .3s, background .3s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field.is-err input { border-color: #b4483b; }
.form-msg { font-size: 13px; min-height: 1.5em; color: var(--wood); }

/* ---------- フッター ---------- */
.ftr { background: var(--navy); color: rgba(255,253,249,.85); padding: 0 var(--gut) 40px; overflow: hidden; }
.ftr-word { font-family: var(--en); font-size: 12.6vw; line-height: .9; letter-spacing: -.01em; color: rgba(255,253,249,.08); white-space: nowrap; margin: 0 calc(var(--gut) * -1) 0; padding-top: 50px; text-align: center; }
.ftr-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255,253,249,.14); padding-top: 34px; }
.ftr-brand b { font-family: var(--serif); font-size: 22px; letter-spacing: .16em; font-weight: 500; color: var(--white); }
.ftr-brand p { font-size: 13px; margin-top: 6px; }
.ftr-info { display: grid; gap: 6px; font-size: 13px; }
.ftr-info div { display: flex; gap: 16px; }
.ftr-info dt { color: rgba(255,253,249,.5); min-width: 6em; }
.ftr-note { margin-top: 34px; font-size: 12px; color: rgba(255,253,249,.5); }

/* ---------- 画面幅ごとの調整 ---------- */
@media (max-width: 1080px) {
  .gnav { display: none; }
  .hdr-cta { margin-left: auto; }
}
@media (max-width: 820px) {
  body { font-size: 15px; }
  .sp { display: inline; }
  .hdr { inset: 10px 10px auto; padding: 6px 6px 6px 14px; }
  .brand-mark { width: 28px; height: 26px; }
  .brand-txt b { font-size: 15px; }
  .hdr-cta { padding: 11px 16px; font-size: 13px; }

  .film { height: 900vh; }
  .chap-a { top: 15svh; transform: none; right: var(--gut); }
  .chap-eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 14px; }
  .chap-title { font-size: clamp(36px, 10.4vw, 60px); }
  .chap-lead { font-size: 13px; letter-spacing: .08em; }
  .chap-cue { margin-top: 30px; }
  .chap-end .chap-body { font-size: 12.5px; letter-spacing: .02em; }
  .chap-side { bottom: 100px; right: var(--gut); max-width: none; }
  .chap-no { font-size: 48px; }
  .chap-h { font-size: clamp(28px, 8.4vw, 40px); }
  .chap-body { font-size: 13.5px; line-height: 1.95; }
  .meter li { font-size: 12px; }
  .film-scrim::before {
    background: linear-gradient(0deg, rgba(12,22,34,.86) 0%, rgba(12,22,34,.55) 42%, rgba(12,22,34,0) 70%);
  }
  .film-scrim::after { background: radial-gradient(ellipse 140% 52% at 30% 34%, rgba(246,242,234,.92) 35%, rgba(246,242,234,0) 80%); }
  .hud { right: var(--gut); bottom: 22px; }
  .hud-tc span { display: none; }
  .rail { display: none; }
  .chap-actions .btn { width: 100%; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { margin-right: 0; padding: 22px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .stats > div:nth-child(even) { padding-left: 16px; }

  .flow-pin { flex-direction: column; align-items: stretch; justify-content: center; gap: 22px; }
  .flow-head { width: auto; align-self: auto; padding: 0 var(--gut); background: none; }
  .flow-head .sec-title { font-size: 28px; margin-top: 6px; }
  .flow-lead { display: none; }
  .flow-count { position: absolute; bottom: 50px; right: var(--gut); margin: 0; }
  .flow-count b { font-size: 40px; }
  .flow-track { padding-left: var(--gut); }
  .step { width: 76vw; }
  .step-img { aspect-ratio: 4 / 3.2; }
  .step-txt { padding: 18px 18px 20px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 13px; }

  .reason, .reason.is-rev { grid-template-columns: 1fr; }
  .reason.is-rev .reason-img { order: 0; }
  .works-grid { grid-template-columns: 1fr; }
  .work:first-child { grid-row: auto; }
  .work:first-child .work-img, .work-img { min-height: 0; aspect-ratio: 4 / 3; }
  .voice-list { grid-template-columns: 1fr; }
  .event-list { grid-template-columns: 1fr; border-top: 0; }
  .event, .event + .event { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-in { grid-template-columns: 1fr; }
  .contact-bg::after { background: rgba(246,242,234,.9); }
  .ftr-word { font-size: 12.6vw; }
}
@media (max-height: 640px) and (min-width: 821px) {
  .chap-side { bottom: 84px; }
  .chap-no { font-size: 48px; }
  .chap-h { font-size: 36px; margin-top: 10px; }
}
