/* Studio MOKUREN（自主制作・架空案件）v3 — 手書きCSS
   方針: 巨大な細字の英字セリフと小さな文字の大小差／縦書きは FV のキャッチと PC の側面ラベルの2か所だけ／
         イージングは3種に固定／罫線は 1px・透明度16%／写真は構図で変化（アーチ・額縁・画面端のはみ出し） */

/* ---------- フォント（使用文字だけのサブセットを自前配信。SIL OFL 1.1） ---------- */
@font-face {
  font-family: "Shippori Mincho B1";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/shippori-mincho-b1-500-subset.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 400;      /* 可変軸 wght を 300〜400 に限定（巨大な細字は 300、小さな英字は 400） */
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-subset.woff2") format("woff2");
}

/* ---------- 変数 ---------- */
:root {
  --bg: #FAF7F2;
  --text: #2B2A28;
  --main: #2F5D50;
  --cta: #A8441C;
  --cta-hover: #8F3A18;
  --muted: #5A574F;
  --field-border: #78746B;     /* 入力欄・選択肢の下線（UI 部品の境界。3:1 以上） */
  --tint: #E9EFEA;             /* 選択状態の薄い色のみ */
  --error: #B00020;
  --on-main: #FAF7F2;          /* 深緑の上の文字 */
  --on-main-muted: #D3DFD8;    /* 深緑の上の補助文字 */
  --ph: #EDE6DA;               /* 写真が読み込まれるまでの下地 */

  --rule: rgb(43 42 40 / .16);               /* 罫線は 1px・この色に統一 */
  --rule-on-main: rgb(250 247 242 / .24);

  /* イージングは3種だけ（既定の ease は使わない） */
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);   /* 位置・拡大・字間・高さ */
  --ease-intro: cubic-bezier(.16, 1, .3, 1);       /* 幕が開くイントロ */
  --ease-soft: cubic-bezier(.42, 0, .15, 1);       /* 透明度・ぼかし・ゆっくりしたズーム */

  --radius-btn: 2px;
  --arch: 999px 999px 0 0;

  --gutter: 20px;
  --container: 1160px;
  --header-h: 60px;
  --notice-h: 28px;

  --hd-en: clamp(3.5rem, 11vw + .5rem, 9.75rem);   /* 各セクションの英字見出し 56〜156px */

  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --font-en: "Cormorant Garamond", "Hoefler Text", Garamond, "Times New Roman", serif;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 72px; }
}

/* ---------- 出現の部品（FV のイントロ・FAQ の開閉で共通）: 透明度とぼかしは ease-soft、移動は ease-out-expo と別イージング ---------- */
@keyframes in-fade { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
@keyframes in-rise { from { transform: translateY(32px); } to { transform: none; } }

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--notice-h) + var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: .08em;
  line-break: strict;
  overflow-wrap: break-word;
  /* スマホ固定ボタンの分の余白（本文の最下部が隠れない） */
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
main { overflow-x: clip; }   /* はみ出す写真・巨大な英字で横スクロールを出さない */
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--main); }
[hidden] { display: none !important; }
p, li, dd, summary { word-break: auto-phrase; }
/* auto-phrase 非対応（Firefox・Safari）: 文節の途中では折り返さず、index.html の <wbr>（tools/add-wbr.js で挿入）の位置で折り返す */
@supports not (word-break: auto-phrase) {
  p, li, dd, summary, h1, h2, h3 { word-break: keep-all; }
  /* JS が差し込む文（エラー文・送信後の要約）には <wbr> が無い。keep-all のままだと折り返せず、grid の幅を押し広げて画面外へはみ出す */
  .field-error, .form-done__summary { overflow-wrap: anywhere; }
}
table { border-collapse: collapse; }

/* 書体: 和文の見出し・手紙＝明朝（字間広め）、英字・数字＝細字セリフ。本文はシステムゴシック */
h1, h2, h3, .ja-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: .12em;
}
h1, h2, h3 { line-height: 1.7; word-break: auto-phrase; text-wrap: balance; }
.en, .num, .brand, .footer-brand {
  font-family: var(--font-en);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  letter-spacing: .01em;
}
.brand { font-weight: 400; }

:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--text); color: #fff; padding: 12px 16px;
}
.skip-link:focus { top: 8px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.fineprint { font-size: 13px; line-height: 1.8; color: var(--muted); }
.micro { font-size: 13px; line-height: 1.8; color: var(--muted); letter-spacing: .06em; }
.photo-note { margin-top: 8px; font-size: 12px; line-height: 1.7; letter-spacing: .06em; color: var(--muted); }

/* ---------- ボタン（角の立った1種類。影なし・hover は背景色のみ） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em; flex-wrap: wrap;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--cta); border-radius: var(--radius-btn);
  background: var(--cta); color: #fff;
  font: 700 16px/1.3 var(--font-body); letter-spacing: .1em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .4s var(--ease-out-expo), border-color .4s var(--ease-out-expo);
}
.btn__arrow {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter;
  transition: transform .5s var(--ease-out-expo);
}
@media (hover: hover) {
  .btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn:focus-visible { outline-color: var(--text); }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--header { min-height: 48px; padding: 0 14px; font-size: 13px; letter-spacing: .06em; gap: .5em; flex-wrap: nowrap; white-space: nowrap; }

.btn-outline {
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--main); border-radius: var(--radius-btn);
  background: transparent; color: var(--main);
  font: 700 16px/1.3 var(--font-body); letter-spacing: .1em; cursor: pointer;
  transition: background-color .4s var(--ease-out-expo);
}
@media (hover: hover) { .btn-outline:hover { background: var(--tint); } }

/* ---------- 上部（注記帯・ヘッダー） ---------- */
.site-top { position: sticky; top: 0; z-index: 50; background: rgb(250 247 242 / .97); border-bottom: 1px solid var(--rule); }
.notice-bar {
  min-height: var(--notice-h);
  display: flex; align-items: center;
  padding: 2px max(var(--gutter), calc((100% - var(--container)) / 2));
  border-bottom: 1px solid var(--rule);
  color: var(--main); font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .08em;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); font-size: 22px; white-space: nowrap; text-decoration: none; letter-spacing: .04em; }
.gnav { display: none; margin-left: auto; }
.gnav ul { display: flex; gap: 4px; }
.gnav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  color: var(--text); font-size: 14px; letter-spacing: .1em; text-decoration: none;
}
@media (hover: hover) { .gnav a:hover { color: var(--main); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; } }
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .brand { font-size: 19px; }
  .btn--header { padding: 0 10px; font-size: 12px; }
}
@media (min-width: 960px) {
  .gnav { display: block; }
  .brand { font-size: 28px; }
  .btn--header { font-size: 15px; padding: 0 24px; letter-spacing: .08em; }
}

/* ---------- 縦書きその2: PC の画面左端に固定する小さなラベル ---------- */
.side-label { display: none; }
@media (min-width: 1100px) {
  .side-label {
    display: block; position: fixed; left: 12px; top: 50%; z-index: 30;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .15em;
    color: var(--muted); pointer-events: none;
    transition: color .8s var(--ease-soft);
  }
  .side-label.is-light { color: var(--on-main-muted); }   /* 深緑の料金セクションの上では明るい色に */
}

/* ---------- 共通の見出し: 英字は巨大で細く、和文は小さく字間広く ---------- */
.hd { margin-bottom: 40px; }
.hd__en {
  color: var(--main);
  font-size: var(--hd-en);
  line-height: .85; letter-spacing: -.005em;
}
.hd__ja { margin-top: 20px; font-size: 20px; line-height: 1.8; letter-spacing: .14em; }
.hd__lead { margin-top: 16px; max-width: 30em; color: var(--muted); }
@media (min-width: 860px) {
  .hd { margin-bottom: 72px; }
  .hd__ja { margin-top: 28px; font-size: 24px; }
  /* 英字と和文を左右に振り分ける型（理由・料金） */
  .hd--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; column-gap: 48px; }
  .hd--split .hd__ja { margin-top: 0; max-width: 13em; padding-bottom: .4em; }
  .hd--split .hd__lead { flex-basis: 100%; max-width: none; margin-top: 24px; }
}

/* ---------- 1. FV（巨大な英字をアーチ写真に被せる。PC は右に縦書きのキャッチ） ---------- */
.fv { padding: 12px 0 72px; }
.fv-stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stack" "catch" "copy"; row-gap: 28px; }
.fv-photo { grid-area: stack; min-width: 0; }
.fv-photo__frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arch); background: var(--ph); }
.fv-photo__frame picture { width: 100%; height: 100%; }
.fv-photo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.fv-photo .photo-note { margin-top: 14px; }

.fv-giant {
  grid-area: stack; align-self: start; z-index: 2; margin-top: 12%;
  color: var(--main); white-space: nowrap; pointer-events: none;
  font-size: clamp(72px, 23vw, 96px); line-height: .8; letter-spacing: -.01em;
}
.fv-giant__line { display: block; }
.fv-giant__line--2 { padding-left: .55em; }

.fv-catch {
  grid-area: catch;
  font-size: clamp(21px, 6vw, 26px); line-height: 1.75; letter-spacing: .1em;
}
.fv-catch .line { display: block; }
.tcy { text-combine-upright: all; }

.fv-copy { grid-area: copy; min-width: 0; }
.fv-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
  color: var(--main); font-weight: 400; font-size: 14px; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase;
}
.fv-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--main); }
.fv-lead { max-width: 30em; text-wrap: pretty; }
.fv-tags { display: flex; flex-wrap: wrap; margin-top: 20px; font-size: 14px; letter-spacing: .14em; }
.fv-tags li { padding: 0 16px; border-left: 1px solid var(--rule); line-height: 1.2; }
.fv-tags li:first-child { padding-left: 0; border-left: 0; }
.fv-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); display: grid; justify-items: start; gap: 16px; }
.fv-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.fv-price__label { font-size: 14px; letter-spacing: .14em; }
.fv-price__value { display: inline-flex; align-items: baseline; gap: 4px; }
.fv-price .num { color: var(--main); font-size: 64px; line-height: 1; }
.fv-price__unit { font-size: 15px; font-weight: 700; }

@media (min-width: 860px) {
  .fv { padding: 24px 0 136px; }
  .fv-stage {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) minmax(104px, 132px);
    grid-template-areas: "copy photo catch";
    column-gap: 24px; row-gap: 0; align-items: start;
  }
  .fv-photo { grid-area: photo; }
  .fv-photo__frame { aspect-ratio: 11 / 10; }
  .fv-photo__frame img { object-position: 60% 50%; }
  /* 英字はアーチの左上に被せる。左端は少し左の余白へはみ出す */
  .fv-giant { grid-area: photo; justify-self: start; margin: 40px 0 0 -72px; font-size: clamp(100px, 15.6vw, 200px); }
  /* 縦書きその1: FV のキャッチ（字間 0.14em） */
  .fv-catch {
    grid-area: catch; justify-self: end; margin-top: 8px;
    writing-mode: vertical-rl;
    font-size: clamp(26px, 2.6vw, 34px); line-height: 1.9; letter-spacing: .14em;
  }
  .fv-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
  .fv-eyebrow { margin-bottom: 0; }
  .fv-price .num { font-size: 80px; }
}

/* ---------- FV のイントロ（JS が有効で、動きを減らさない設定のときだけ） ---------- */
@keyframes fv-open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes fv-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes fv-track { from { letter-spacing: .28em; } to { letter-spacing: -.01em; } }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .fv-photo__frame { animation: fv-open 1.4s var(--ease-intro) .1s both; }
  .fv-photo__frame img { animation: fv-zoom 14s var(--ease-soft) .1s both; }

  /* 英字は写真より少し遅れて、広い字間から詰まりながら現れる */
  .fv-giant__line { animation: in-fade 1.6s var(--ease-soft) .8s both, fv-track 2.4s var(--ease-out-expo) .8s both; }
  .fv-giant__line--2 { animation-delay: .92s, .92s; }

  /* キャッチ・本文は 0.1 秒ずつずらして出る */
  .fv-catch .line { animation: in-fade 1.5s var(--ease-soft) 1.1s both, in-rise 1.6s var(--ease-out-expo) 1.1s both; }
  .fv-catch .line + .line { animation-delay: 1.22s, 1.22s; }
  .fv-eyebrow, .fv-copy__main > *, .fv-photo .photo-note { animation: in-fade 1.5s var(--ease-soft) both, in-rise 1.6s var(--ease-out-expo) both; }
  .fv-eyebrow { animation-delay: 1s, 1s; }
  .fv-copy__main > :nth-child(1) { animation-delay: 1.1s, 1.1s; }
  .fv-copy__main > :nth-child(2) { animation-delay: 1.2s, 1.2s; }
  .fv-copy__main > :nth-child(3) { animation-delay: 1.3s, 1.3s; }
  .fv-photo .photo-note { animation-delay: 1.4s, 1.4s; }
}

/* ---------- 2. 共感（左に巨大な英字と和文、右に罫線区切りのリスト） ---------- */
.worry { padding: 72px 0 24px; }
.worry-grid { display: grid; }
.worry-list { margin-top: 40px; border-top: 1px solid var(--rule); }
.worry-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.worry-list__no { color: var(--main); font-weight: 400; font-size: 20px; line-height: 1; letter-spacing: .1em; }
.worry-list p { font-size: clamp(18px, 5vw, 22px); line-height: 1.9; letter-spacing: .1em; text-wrap: pretty; }
.worry-close { margin-top: 32px; max-width: 34em; text-wrap: pretty; }
@media (min-width: 860px) {
  .worry { padding: 176px 0 40px; }
  .worry-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .worry-grid__head { display: contents; }
  .worry-grid__head .hd__en { grid-column: 1 / -1; grid-row: 1; }
  .worry-grid__head .hd__ja { grid-column: 1 / 5; grid-row: 2; margin-top: 56px; }
  .worry-body { grid-column: 5 / -1; grid-row: 2; margin-top: 40px; }
  .worry-list { margin-top: 0; }
  .worry-list li { grid-template-columns: 72px 1fr; padding: 36px 0; }
  .worry-list__no { font-size: 24px; }
  .worry-list p { font-size: 22px; }
  .worry-close { margin-top: 56px; }
}

/* ---------- 3. 選ばれる理由（額縁／画面端にはみ出す縦写真／アーチ） ---------- */
.reasons { padding: 56px 0 96px; }
.reasons .hd { margin-bottom: 40px; }
.reasons-list { display: grid; row-gap: 80px; }
.reason__no { display: block; color: var(--main); font-size: clamp(88px, 22vw, 120px); line-height: .8; }
.reason h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.7; }
.reason p { max-width: 24em; text-wrap: pretty; }
.reason figure img { width: 100%; height: 100%; object-fit: cover; background: var(--ph); }
.reason figure picture { width: 100%; height: 100%; }

/* ① 額縁（左右に広い余白を取った 2.4:1） */
.frame { margin-inline: var(--gutter); aspect-ratio: 3 / 2; }
.reason--1 .reason__row { display: grid; gap: 8px; margin-top: 24px; }
/* ② 画面端にはみ出す縦写真（スマホは右端まで） */
.reason--2 .reason__row { display: grid; gap: 40px; }
.bleed { aspect-ratio: 3 / 4; width: calc(100% + var(--gutter)); margin-right: calc(var(--gutter) * -1); }
/* ③ アーチ（2枚目。FV と合わせて2枚だけ） */
.reason--3 .reason__row { display: grid; gap: 32px; }
.arch { width: 78%; aspect-ratio: 4 / 5; }
.arch img { border-radius: var(--arch); }
.reason--3 .reason__no { margin-bottom: 12px; }
.reason--2 .reason__no { margin-bottom: 12px; }

@media (min-width: 860px) {
  .reasons { padding: 56px 0 200px; }
  .reasons .hd { margin-bottom: 96px; }
  .reasons-list { row-gap: 200px; }
  .reason__no { font-size: clamp(120px, 13.8vw, 176px); }
  .reason h3 { font-size: 28px; margin-bottom: 20px; }

  .frame { width: min(87.5vw, 1480px); margin-inline: auto; aspect-ratio: 2.4 / 1; }
  .reason--1 .reason__row {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
    margin-top: 32px;
  }
  .reason--1 .reason__no { grid-column: 1 / 6; position: relative; z-index: 2; translate: 0 -.55em; }   /* 数字だけ写真の下端に被せる（.reveal の transform と干渉しないよう translate で） */
  .reason--1 .reason__text { grid-column: 6 / 11; padding-bottom: 16px; }

  .reason--2 .reason__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; gap: 0 24px; align-items: end; }
  .reason--2 .reason__text { grid-column: 2 / 7; padding-bottom: 48px; }
  .bleed {
    grid-column: 8 / 13; width: auto; aspect-ratio: 3 / 4;
    /* 右端はビューポートの端まで（コンテナの外へはみ出す） */
    margin-right: calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / -2);
  }

  .reason--3 .reason__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; gap: 0 24px; align-items: end; }
  .arch { grid-column: 2 / 7; width: auto; }
  .reason--3 .reason__text { grid-column: 7 / 12; padding-bottom: 32px; }
}

/* ---------- 4. 体験の流れ（PC は左の写真をピン留め。右のステップが進むと写真が切り替わる） ---------- */
.flow { padding: 24px 0 96px; }
.flow-head { margin-bottom: 48px; }
/* 静的な表示（スマホ・動きを減らす設定・古いブラウザ）: 各ステップに写真と文を縦に並べる */
.timeline { display: grid; row-gap: 56px; }
.step { display: grid; gap: 20px; }
.step__photo { aspect-ratio: 1200 / 1024; max-width: 560px; }
.step__photo picture { width: 100%; height: 100%; }
.step__photo img { width: 100%; height: 100%; object-fit: cover; background: var(--ph); }
.step__no { display: block; margin-bottom: 8px; color: var(--main); font-size: 64px; line-height: .8; }
.step h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; font-size: 20px; line-height: 1.7; }
.step__time {
  padding: 0 10px; border: 1px solid var(--main);
  color: var(--main); font-family: var(--font-body); font-size: 13px; line-height: 1.8; letter-spacing: .08em;
}
.step p { max-width: 28em; text-wrap: pretty; }

.flow-note { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); max-width: 34em; }
.flow-note h3 { margin-bottom: 4px; font-size: 18px; }

@media (min-width: 860px) {
  .flow { padding: 24px 0 176px; }
  .flow-head { margin-bottom: 96px; }
  .step h3 { font-size: 26px; }
  .step__no { font-size: 96px; }
  .flow-note { margin: 80px 0 0 calc((100% - 96px) * 5 / 11 + 96px); }
}

/* PC の動くレイアウト: 左に写真4枚を重ねてピン留め、右にステップ。切替は
   (a) animation-timeline: view() が使えるブラウザでは CSS だけ、(b) 使えなければ main.js の IntersectionObserver、
   (c) どちらも無ければ上の静的な表示のまま */
@media (min-width: 860px) and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .timeline:not(.is-static) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: repeat(4, auto);
    column-gap: 96px; row-gap: 0;
  }
  .timeline:not(.is-static) .step { display: contents; }
  .timeline:not(.is-static) .step__photo {
    grid-column: 1; grid-row: 1 / 5; align-self: start; max-width: none;
    position: sticky; top: max(calc(var(--notice-h) + var(--header-h) + 40px), calc(50svh - 160px));
  }
  .timeline:not(.is-static) .step__text {
    grid-column: 2; min-height: 72svh;
    display: flex; flex-direction: column; justify-content: center;
  }
  .timeline:not(.is-static) .step:nth-child(1) .step__text { grid-row: 1; }
  .timeline:not(.is-static) .step:nth-child(2) .step__text { grid-row: 2; }
  .timeline:not(.is-static) .step:nth-child(3) .step__text { grid-row: 3; }
  .timeline:not(.is-static) .step:nth-child(4) .step__text { grid-row: 4; }
  /* 2枚目以降は、前の写真の上に重なって現れる（先に消えないので、切替の途中で下地が透けない） */
  .timeline:not(.is-static) .step:nth-child(n+2) .step__photo { opacity: 0; transition: opacity 1.4s var(--ease-soft); }
  .timeline:not(.is-static) .step:nth-child(n+2) .step__photo.is-on { opacity: 1; }   /* (b) IntersectionObserver 版 */
}
@keyframes step-in { from { opacity: 0; } to { opacity: 1; } }
@supports (animation-timeline: view()) and (timeline-scope: --s2) {
  @media (min-width: 860px) and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
    /* (a) CSS だけ: 各ステップの文が画面を横切る進み具合で、対応する写真の透明度を動かす */
    .timeline:not(.is-static) { timeline-scope: --s2, --s3, --s4; }
    .timeline:not(.is-static) .step:nth-child(2) .step__text { view-timeline: --s2 block; }
    .timeline:not(.is-static) .step:nth-child(3) .step__text { view-timeline: --s3 block; }
    .timeline:not(.is-static) .step:nth-child(4) .step__text { view-timeline: --s4 block; }
    .timeline:not(.is-static) .step:nth-child(n+2) .step__photo {
      transition: none; animation: step-in linear both; animation-range: cover 16% cover 40%;
    }
    .timeline:not(.is-static) .step:nth-child(2) .step__photo { animation-timeline: --s2; }
    .timeline:not(.is-static) .step:nth-child(3) .step__photo { animation-timeline: --s3; }
    .timeline:not(.is-static) .step:nth-child(4) .step__photo { animation-timeline: --s4; }
  }
}

/* ---------- 5. トレーナー（手紙風。見出しは右寄せ、本文は左寄りの細い段） ---------- */
.trainer { padding: 24px 0 96px; }
.trainer-grid { display: grid; }
.letter { display: grid; gap: 1.6em; max-width: 31em; font-size: 16px; line-height: 2.2; letter-spacing: .08em; }
.letter p { text-wrap: pretty; }
.letter__sign { margin-top: 12px; font-size: 15px; letter-spacing: .1em; }
.letter__sign::before { content: ""; display: inline-block; width: 32px; height: 1px; margin-right: 14px; vertical-align: middle; background: var(--text); }
.letter__note { margin-top: -.6em; font-size: 13px; line-height: 1.8; letter-spacing: .06em; color: var(--muted); }
@media (min-width: 860px) {
  .trainer { padding: 56px 0 216px; }
  .trainer-grid__head { text-align: right; margin-bottom: 0; }
  .trainer-grid__head .hd__ja { margin-top: 20px; }
  .letter { margin-left: calc((100% / 12) * 1); margin-top: -64px; font-size: 18px; max-width: 29em; }
  .letter__sign { font-size: 16px; }
}

/* ---------- 6. 料金（深緑の全面背景は、ここだけ） ---------- */
.price { padding: 88px 0 96px; background: var(--main); color: var(--on-main); }
.price .hd__en { color: var(--on-main); }
.price .hd__lead { color: var(--on-main-muted); }
.price :focus-visible { outline-color: var(--on-main); }
.price-table { width: 100%; border-top: 1px solid var(--rule-on-main); }
.price-table th, .price-table td { padding: 24px 0; border-bottom: 1px solid var(--rule-on-main); vertical-align: middle; }
.price-table th { padding-right: 12px; text-align: left; font-weight: 400; }
.price-table td { text-align: right; }
.price-table__name { display: block; font-size: 20px; line-height: 1.7; }
.price-table__note { display: block; margin-top: 2px; font-size: 13px; line-height: 1.7; letter-spacing: .02em; color: var(--on-main-muted); }
.price-table__yen { display: inline-flex; flex-direction: column; align-items: flex-end; }
.price-table__yen .num { font-size: 38px; line-height: 1.05; font-weight: 400; }
.price-table__unit { font-size: 13px; font-weight: 700; line-height: 1.7; }
/* 体験 3,300円（税込）を、細く大きな数字で強調 */
.price-table__trial th, .price-table__trial td { padding: 40px 0; }
.price-table__trial .price-table__name { font-size: 24px; }
.price-table__trial .price-table__note { color: var(--on-main); }
.price-table__trial .price-table__yen .num { font-size: 76px; font-weight: 300; }
.price-table__trial .price-table__unit { font-size: 14px; }

.terms { display: grid; gap: 4px; margin-top: 40px; }
.terms li { display: flex; align-items: baseline; gap: 12px; line-height: 1.9; }
.terms li::before { content: ""; flex: none; width: 16px; height: 1px; background: var(--on-main); transform: translateY(-.3em); }
.price-cta { margin-top: 48px; }
.price .btn { border-color: var(--on-main); }

@media (min-width: 860px) {
  .price { padding: 168px 0 160px; }
  .price-table th, .price-table td { padding: 32px 0; }
  .price-table__name { font-size: 22px; }
  .price-table__yen { flex-direction: row; align-items: baseline; gap: 8px; }
  .price-table__yen .num { font-size: 56px; }
  .price-table__trial th, .price-table__trial td { padding: 56px 0; }
  .price-table__trial .price-table__name { font-size: 28px; }
  .price-table__trial .price-table__yen .num { font-size: 168px; line-height: .9; }
  .price-table__trial .price-table__unit { font-size: 16px; }
  .terms { grid-template-columns: 1fr 1fr; gap: 8px 56px; margin-top: 56px; }
  .price-cta { margin-top: 72px; }
}

/* ---------- 7. FAQ（見出しは中央。罫線区切りのアコーディオンを中央の段に） ---------- */
.faq-sec { padding: 72px 0 40px; }
.faq-grid { display: grid; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 8px; align-items: baseline;
  min-height: 56px; padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 700; line-height: 1.8;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q { color: var(--main); font-weight: 400; font-size: 24px; line-height: 1; }
.faq summary::after {               /* 細い + / − */
  content: ""; width: 14px; height: 14px; align-self: center;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  color: var(--main);
}
.faq details[open] summary::after {
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 0 no-repeat;
}
.faq__body { padding: 0 24px 28px 36px; text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq__body { animation: in-fade 1s var(--ease-soft) both, in-rise 1s var(--ease-out-expo) both; }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content {
      height: 0; overflow: clip;
      transition: height .6s var(--ease-out-expo), content-visibility .6s allow-discrete;
    }
    .faq details[open]::details-content { height: auto; }
  }
}
@media (min-width: 860px) {
  .faq-sec { padding: 176px 0 120px; }
  .faq-grid__head { text-align: center; margin-bottom: 80px; }
  .faq { width: min(100%, 820px); margin-inline: auto; }
  .faq summary { grid-template-columns: 44px minmax(0, 1fr) 16px; padding: 30px 0; font-size: 17px; }
  .faq__body { padding-left: 52px; }
}

/* ---------- 8. 店舗情報（画面端まで広がる横長の写真に、英字見出しを重ねる） ---------- */
.access { padding: 56px 0 96px; }
.access-band { aspect-ratio: 4 / 3; background: var(--ph); }
.access-band picture, .access-band img { width: 100%; height: 100%; }
.access-band img { object-fit: cover; }
.access-grid { display: grid; }
.access-grid__head { position: relative; z-index: 2; margin-top: calc(var(--hd-en) * -.38); margin-bottom: 32px; }
.info { display: grid; align-content: start; border-top: 1px solid var(--rule); }
.info > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.info dt { color: var(--main); font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.info dd { line-height: 1.9; }
.access-note { margin-top: 16px; }
@media (min-width: 860px) {
  .access { padding: 56px 0 200px; }
  .access-band { aspect-ratio: auto; width: 100%; height: min(41.67vw, 620px); }
  .access-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .access-grid__head { grid-column: 1 / 6; grid-row: 1; margin-bottom: 0; }
  .access-grid__head .hd__ja { margin-top: 40px; }
  .info { grid-column: 6 / -1; grid-row: 1; margin-top: 72px; }
  .access-note { grid-column: 6 / -1; }
  .info > div { grid-template-columns: 7em 1fr; padding: 22px 0; }
}

/* ---------- 9. 最終CTA + フォーム（入力欄は下線基調。枠線はフォーカス・エラーのとき） ---------- */
.reserve { padding: 32px 0 96px; }
.reserve-grid { display: grid; }
.form-wrap { padding-top: 24px; border-top: 1px solid var(--rule); }
@media (min-width: 860px) {
  .reserve { padding: 40px 0 176px; }
  .reserve-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 96px; align-items: start; }
  .reserve-grid__head { position: sticky; top: calc(var(--notice-h) + var(--header-h) + 32px); margin-bottom: 0; }
  .form-wrap { padding-top: 40px; }
}

.demo-note { margin-bottom: 36px; padding: 2px 0 2px 16px; border-left: 2px solid var(--main); font-size: 14px; line-height: 1.9; }

form .field { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; scroll-margin-top: 120px; }
.field-row { display: grid; gap: 0; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
.field > label:not(.choice), .field > legend {
  display: block; padding: 0; margin-bottom: 4px; font-weight: 700; font-size: 15px; line-height: 1.8; letter-spacing: .1em;
}
.tag {
  display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--muted); border-radius: 0;
  color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.7; vertical-align: 1px; letter-spacing: .06em;
}
.tag--req { border-color: var(--main); background: var(--main); color: #fff; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  display: block; width: 100%; min-height: 48px; padding: 8px 6px;
  border: 0; border-bottom: 1px solid var(--field-border); border-radius: 0;
  background: transparent; color: var(--text); font: 400 16px/1.7 var(--font-body); letter-spacing: .04em;
  appearance: none; -webkit-appearance: none;
  transition: border-color .4s var(--ease-out-expo);
}
textarea { resize: vertical; min-height: 136px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--main); outline-offset: 4px; border-bottom-color: var(--main); }
.hint { margin-top: 6px; font-size: 13px; line-height: 1.7; letter-spacing: .06em; color: var(--muted); }
.field-error {
  display: flex; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--error);
}
.field-error::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 4px;
  background: var(--error); color: #fff; font-size: 12px; line-height: 18px; text-align: center;
}
/* エラー時は枠線で示す（レイアウトがずれないよう box-shadow） */
.field.is-invalid input[type="text"], .field.is-invalid input[type="email"], .field.is-invalid input[type="tel"],
.field.is-invalid input[type="date"], .field.is-invalid textarea { border-bottom-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field.is-invalid .choice { border-bottom-color: var(--error); }

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.choice-row--wrap { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .choice-row--wrap { grid-template-columns: repeat(4, 1fr); gap: 8px 16px; } }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 6px;
  border-bottom: 1px solid var(--field-border); background: transparent; line-height: 1.5; letter-spacing: .06em; cursor: pointer;
  transition: background-color .4s var(--ease-out-expo), border-color .4s var(--ease-out-expo);
}
.choice input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--main); }
.choice small { display: block; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.choice:has(input:checked) { border-bottom-color: var(--main); background: var(--tint); }
.choice:has(input:focus-visible) { outline: 2px solid var(--main); outline-offset: 4px; }
.choice input:focus-visible { outline: none; }
.choice--consent { align-items: flex-start; padding: 12px 6px; }
.choice--consent input { margin-top: 3px; }
.choice-row:not(.choice-row--wrap) .choice { flex-wrap: wrap; }
@media (max-width: 420px) { .choice-row:not(.choice-row--wrap) .choice { padding: 8px 4px; gap: 6px; } }

form .btn { margin-top: 8px; }

.form-done { display: grid; justify-items: start; gap: 16px; padding: 8px 0; }
.form-done h3 { font-size: 24px; }
.form-done h3:focus { outline: none; }
.form-done p { max-width: 30em; }
.form-done__summary:empty { display: none; }
.form-done .btn-outline { margin-top: 8px; }

/* ---------- フッター（罫線で区切るだけ。ブランド名は大きく細く） ---------- */
.site-footer { padding: 72px 0 48px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 2; }
.footer-inner { display: grid; gap: 16px; }
.footer-brand { color: var(--main); font-size: clamp(36px, 10.5vw, 124px); line-height: 1; letter-spacing: -.005em; margin-bottom: 16px; }
.footer-lead { max-width: 40em; }
.privacy { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rule); max-width: 40em; scroll-margin-top: 120px; }
.privacy__title { margin-bottom: 4px; font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.privacy p { font-size: 13px; }
.credit { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
@media (min-width: 860px) { .site-footer { padding: 120px 0 64px; } }

/* ---------- スマホ固定ボタン ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(250 247 242 / .97); border-top: 1px solid var(--rule);
  opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-out-expo), visibility 0s linear .8s;
}
.sticky-cta.is-visible { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.sticky-cta .btn { min-height: 56px; padding: 6px 16px; font-size: 16px; gap: 2px 10px; }
.sticky-cta__price { font-size: 13px; font-weight: 700; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- スクロールで一度だけ現れる（main.js が付与）: 透明度・移動・ぼかしを別イージングで ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(32px); filter: blur(6px);
    transition:
      opacity 1.5s var(--ease-soft) var(--d, 0s),
      transform 1.6s var(--ease-out-expo) var(--d, 0s),
      filter 1.2s var(--ease-soft) var(--d, 0s);
  }
  .reveal.is-in { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: smooth; }
}

/* ---------- モーション低減 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
