/* ==========================================================================
   RIRAKURA PÂTISSERIE STUDIO — style.css
   構成：トークン → リセット／共通 → コンポーネント → セクション（上から順）→ 動きを減らす設定 → ページ遷移
   初期状態は「全部見える」。演出で隠す処理は main.js（html.js-ready が付いた時）だけ。
   ========================================================================== */

/* ── §2-1 デザイントークン（そのまま） ── */
:root {
  /* ── 色：暗い章（一灯の世界） ── */
  --c-night:       #0d0b0a;  /* 基本背景（ガナッシュの黒） */
  --c-night-2:     #16120f;  /* 交互の背景・作品マット */
  --c-night-3:     #201915;  /* カード・浮き面 */
  --c-cream:       #f3ede4;  /* 見出し・主要テキスト（純白は使わない） */
  --c-cream-2:     #d9d0c3;  /* 本文（暗背景） */
  --c-mute:        #a39886;  /* 注記・キャプション（暗背景） */
  --c-gold:        #c9a961;  /* 本体 --gold と同値。ラベル・番号・罫線・ボタン枠 */
  --c-gold-light:  #e2c98f;  /* ホバー時の金 */
  --c-gold-deep:   #8a6d2c;  /* 装飾線のみ（文字に使わない） */

  /* ── 色：明るい章（伝票の紙面：Process・FAQ） ── */
  --c-paper:       #f3ede4;
  --c-ink:         #0d0b0a;
  --c-ink-mute:    #5c5347;
  --c-ink-gold:    #7a5f22;  /* 紙面で金を文字に使うとき */

  /* ── 色：親ブランドの夜（ローディング開始・フッターだけ） ── */
  --c-navy:        #0a1620;  /* 本体 --ink と同値 */
  --c-navy-deep:   #050b12;  /* 本体 --ink-deep と同値 */

  /* ── 線・下敷き・光 ── */
  --c-line:        rgba(201,169,97,.22);
  --c-line-strong: rgba(201,169,97,.45);
  --c-line-ink:    rgba(13,11,10,.14);
  --c-line-cream:  rgba(243,237,228,.12);
  --scrim-70:      rgba(13,11,10,.70);   /* 写真上の文字の真下の最低値 */
  --scrim-80:      rgba(13,11,10,.80);
  --scrim-90:      rgba(13,11,10,.90);
  --glow-spot:     0 0 120px 24px rgba(201,169,97,.08);
  --glow-dot:      0 0 16px 4px rgba(201,169,97,.60);
  --shadow-lift:   0 30px 60px -20px rgba(0,0,0,.65);
  --dawn:          radial-gradient(120% 60% at 50% 112%, rgba(201,169,97,.30) 0%, rgba(201,169,97,0) 62%);
  --stars:         radial-gradient(2px 2px at 20% 30%, rgba(228,207,154,.4), transparent),
                   radial-gradient(1px 1px at 60% 70%, rgba(228,207,154,.3), transparent),
                   radial-gradient(1.5px 1.5px at 80% 20%, rgba(228,207,154,.4), transparent),
                   radial-gradient(1px 1px at 30% 80%, rgba(228,207,154,.3), transparent),
                   radial-gradient(1.5px 1.5px at 90% 60%, rgba(228,207,154,.35), transparent);
                   /* ↑本体ヒーローの星タイルと同一（background-size:200px 200px で使う） */

  /* ── 書体 ── */
  --ff-en:     'Cormorant Garamond', 'Times New Roman', serif;
  --ff-mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --ff-sans:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;

  /* ── 文字サイズ（375px〜1440px を直線補間。左＝SP値、右＝PC値） ── */
  --fs-display: clamp(2.25rem,  0.929rem + 5.634vw, 6rem);     /* 36→96px  MV・CTAの英字 */
  --fs-catch:   clamp(2.125rem, 1.817rem + 1.315vw, 3rem);     /* 34→48px  MVの和文キャッチ */
  --fs-h2-en:   clamp(2.5rem,   1.796rem + 3.005vw, 4.5rem);   /* 40→72px  セクション英字見出し */
  --fs-h2-ja:   clamp(.875rem,  .831rem + .188vw, 1rem);       /* 14→16px  英字見出しの下の和文 */
  --fs-h3:      clamp(1.25rem,  1.162rem + .376vw, 1.5rem);    /* 20→24px  小見出し（明朝） */
  --fs-num:     clamp(4.5rem,   3.268rem + 5.258vw, 8rem);     /* 72→128px 柱の番号（輪郭線） */
  --fs-lead:    clamp(1rem,     .956rem + .188vw, 1.125rem);   /* 16→18px */
  --fs-body:    clamp(.9375rem, .916rem + .094vw, 1rem);       /* 15→16px */
  --fs-small:   .8125rem;                                       /* 13px 注記（和文の最小） */
  --fs-label:   clamp(.6875rem, .666rem + .094vw, .75rem);     /* 11→12px 英字ラベル（Cormorant 500） */
  --lh-body:    2.0;
  --ls-body:    .04em;
  --ls-label:   .28em;
  --ls-mincho:  .06em;

  /* ── 余白 ── */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;   --sp-5: 1.5rem; --sp-6: 2rem;
  --sp-7: 3rem;    --sp-8: 4rem;   --sp-9: 6rem;   --sp-10: 8rem;  --sp-11: 10rem; --sp-12: 12rem;
  --section-y: clamp(6rem, 4.59rem + 6.01vw, 10rem);   /* 96→160px セクション上下 */
  --gutter: 1.25rem;            /* SP 20px（768px以上 2.5rem、1024px以上 5rem に上書き） */
  --container: 1280px;
  --header-h: 60px;             /* 1024px以上 88px（スクロール後 72px） */
  --sp-cta-h: 56px;
  --tap: 44px;                  /* タップ領域の最小 */

  /* ── 角丸 ── */
  --r-0: 0;        /* 写真（映画のフレーム） */
  --r-xs: 2px;     /* カード・タグ・ボタン */
  --r-circle: 50%; /* 作品の円・光の窓だけ */

  /* ── 動き ── */
  --ease-pass:  cubic-bezier(.22,1,.36,1);  /* 出現・移動の基本 */
  --ease-lamp:  cubic-bezier(.65,0,.35,1);  /* 光の点灯・消灯 */
  --ease-brand: cubic-bezier(.4,0,.2,1);    /* 本体ボタンと同値（ボタンの塗り） */
  --dur-xs: .25s; --dur-s: .45s; --dur-m: .8s; --dur-l: 1.1s; --dur-xl: 1.8s;

  /* ── 重なり順 ── */
  --z-sp-cta: 90; --z-header: 100; --z-menu: 110; --z-loader: 1000;
}
@media (min-width: 768px)  { :root { --gutter: 2.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 5rem; --header-h: 88px; } }

/* ==========================================================================
   リセット・土台
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;                      /* §10-2 保険（溢れる要素そのものも作らない） */
  scroll-padding-top: var(--header-h);
}
@media (max-width: 1023px) { html { scroll-padding-bottom: calc(var(--sp-cta-h) + env(safe-area-inset-bottom) + 8px); } }   /* B5：固定CTAに隠れない */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--c-night);
  color: var(--c-cream-2);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-break: auto-phrase;               /* 対応ブラウザでは文節で改行（未対応は通常） */
  line-break: strict;
}
@media (min-width: 768px) { body { line-height: var(--lh-body); } }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
summary { cursor: pointer; }
[hidden] { display: none !important; }
:lang(en), .pillar__num, .step__num, .svc__ph span { font-variant-numeric: lining-nums; }
:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: none; }          /* メニューのリンクで移動した先の見出し（JS がフォーカスを移す） */
:focus-visible { outline: 2px solid var(--c-gold-light); outline-offset: 4px; }
::selection { background: var(--c-gold); color: var(--c-night); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── §5-11 ユーティリティ ── */
.u-vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (min-width: 768px) { .u-sp { display: none; } }
.nb { display: inline-block; }
.skip {
  position: fixed; left: var(--sp-4); top: var(--sp-4); z-index: 2000;
  padding: .75rem 1.25rem; background: var(--c-gold); color: var(--c-night);
  font-weight: 500; transform: translateY(-200%);
}
.skip:focus-visible { transform: none; outline-color: var(--c-night); outline-offset: -4px; }
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px; opacity: .07; mix-blend-mode: overlay;
}

/* 行マスク（見出し・MVの英字。JS が yPercent で出し入れ） */
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; padding-right: .06em; margin-right: -.06em; }
.line > span { display: inline-block; }

/* 写真の暗幕（点灯演出用。CSS の初期値は 0＝見える） */
.js-photo { position: relative; overflow: hidden; }
.photo__shade { position: absolute; inset: 0; background: var(--c-night); opacity: 0; pointer-events: none; }

/* ── §5-4 見出しペア ── */
.eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: var(--sp-5);
  font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4;
  color: var(--c-gold);
}
.eyebrow::before { content: ""; flex: none; width: 32px; height: 1px; background: currentColor; }
.hd__title { font-weight: 400; }
.hd__en {
  display: block;
  font-family: var(--ff-en); font-weight: 300; font-size: var(--fs-h2-en);
  line-height: 1.05; letter-spacing: 0; color: var(--c-cream);
}
.hd__ja {
  display: block; margin-top: var(--sp-4);
  font-family: var(--ff-mincho); font-weight: 500; font-size: var(--fs-h2-ja);
  letter-spacing: .24em; line-height: 1.7; color: var(--c-cream-2);
  font-feature-settings: "palt";
}
.sub-h {
  display: flex; align-items: baseline; gap: 1rem;
  margin: var(--sp-8) 0 var(--sp-5);
  font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4; color: var(--c-gold);
}
.sub-h__ja {
  font-family: var(--ff-sans); font-weight: 400; font-size: .75rem;
  letter-spacing: .12em; text-transform: none; color: var(--c-mute);
}

/* 紙面（Process・FAQ） */
.paper { background: var(--c-paper); color: var(--c-ink-mute); }
.paper .eyebrow { color: var(--c-ink-gold); }
.paper .hd__en { color: var(--c-ink); }
.paper .hd__ja { color: var(--c-ink-mute); }
.paper :focus-visible { outline-color: var(--c-ink-gold); }

/* ── §5-3 ボタン ── */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 3rem 0 1.5rem;
  border: 1px solid var(--c-gold); border-radius: var(--r-xs);
  color: var(--c-cream); text-align: center;
  transition: color .5s var(--ease-brand);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-brand);
}
.btn__txt { display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
.btn__en {
  font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
}
.btn__ja { font-family: var(--ff-sans); font-weight: 500; font-size: .9375rem; letter-spacing: .12em; }
.btn__arrow {
  position: absolute; right: 1.25rem; top: 50%; margin-top: -.6em; line-height: 1.2;
  font-family: var(--ff-en); font-size: 1.125rem;
  transition: transform .5s var(--ease-brand);
}
.btn--sm { min-height: 48px; padding: 0 1.5rem; }
.btn--lg { width: 100%; max-width: 360px; min-height: 56px; }
@media (min-width: 768px) { .btn--lg { min-height: 64px; } }
.btn:focus-visible::before { transform: scaleX(1); }
.btn:focus-visible { color: var(--c-night); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover { color: var(--c-night); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.textlink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-pass);
  padding-bottom: 2px; border-bottom: 1px solid var(--c-line);
}
@media (hover: hover) and (pointer: fine) { .textlink:hover { background-size: 100% 1px; } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); flex: none;
  color: var(--c-cream); transition: color .3s var(--ease-brand);
}
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { color: var(--c-gold); } }

/* ==========================================================================
   ローディング（§3-0'）
   ========================================================================== */
.loader { display: none; }
.js .loader { display: grid; }
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  place-items: center; background: var(--c-night);
}
.is-loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s, visibility 0s .6s; }
.loader__sky {
  position: absolute; inset: 0;
  background-color: var(--c-navy-deep);
  background-image: var(--stars);
  background-size: 200px 200px;
}
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: var(--gutter); }
.loader__dot {
  width: 4px; height: 4px; border-radius: 50%; margin-bottom: 24px;
  background: var(--c-gold); box-shadow: var(--glow-dot);
}
.loader__logo {
  display: flex; flex-wrap: wrap; justify-content: center; margin-right: -.2em; row-gap: .15em;
  font-family: var(--ff-en); font-weight: 400; font-size: 1.25rem; line-height: 1.2;
  letter-spacing: .2em; color: var(--c-cream);
}
.loader__logo > span { display: inline-block; }
/* main.js が動き出す前（html.js-ready が付く前）だけ中身を隠す＝ロゴが一瞬見えてから消える“ちらつき”を防ぐ。ローダー専用（本文は隠さない） */
.js:not(.js-ready) :is(.loader__dot, .loader__logo > span, .loader__sub, .loader__kana) { opacity: 0; }
.loader__sp { width: .5em; }
.loader__sub {
  margin-top: 16px;
  font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-gold);
}
.loader__kana { margin-top: 8px; font-size: 11px; line-height: 1.6; letter-spacing: .2em; color: var(--c-mute); }
/* 長いブランド名：1023px以下は「RIRAKURA／PÂTISSERIE STUDIO」の2行、1024px以上は1行 */
.loader__logo > .loader__sp--wide { display: none; }
.loader__logo > .loader__br { flex-basis: 100%; height: 0; }
@media (min-width: 768px) { .loader__logo { font-size: 1.75rem; } }
@media (min-width: 1024px) { .loader__logo { font-size: 2.25rem; } .loader__logo > .loader__sp--wide { display: inline-block; } .loader__logo > .loader__br { display: none; } }

/* ==========================================================================
   ヘッダー（§5-1）／メニュー
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: rgba(13,11,10,.92);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-brand), border-color .4s var(--ease-brand), height .4s var(--ease-pass);
}
.js-ready .site-header:not(.is-scrolled) { background: transparent; }
.site-header.is-scrolled { background: rgba(13,11,10,.92); border-bottom-color: var(--c-line); }
.logo { display: flex; flex-direction: column; justify-content: center; flex: none; white-space: nowrap; min-height: var(--tap); line-height: 1.2; color: var(--c-cream); }
.logo__main { display: flex; flex-direction: column; font-family: var(--ff-en); font-weight: 400; line-height: 1.15; }
.logo__pre { font-weight: 500; font-size: .5625rem; letter-spacing: .42em; color: var(--c-gold); }
.logo__name { font-size: .9375rem; letter-spacing: .16em; }
.logo__sub {
  display: none; margin-top: 3px;
  font-family: var(--ff-en); font-weight: 500; font-size: 9px;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-mute);
}
.nav, .header-cta { display: none; }

.menu-btn {
  position: relative; width: var(--tap); height: var(--tap); margin-right: -.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--c-cream);
}
.menu-btn__bar { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .4s var(--ease-pass); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.no-js .menu-btn { display: none; }
.nojs-menu { display: none; }
@media (max-width: 1023px) {
  .no-js .nojs-menu {
    display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: .875rem;
    border: 1px solid var(--c-line-strong); border-radius: var(--r-xs);
    font-family: var(--ff-en); font-weight: 500; font-size: .8125rem; letter-spacing: .2em; color: var(--c-cream);
  }
}

.is-menu-open .site-header { z-index: 120; background: transparent !important; border-bottom-color: transparent; }
.is-menu-open, .is-menu-open body { overflow: hidden; }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--c-night); overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding-block: .5rem; border-bottom: 1px solid var(--c-line-cream);
}
.menu__en { font-family: var(--ff-en); font-weight: 300; font-size: 2.25rem; line-height: 1.2; color: var(--c-cream); }
.menu__ja { font-size: .75rem; color: var(--c-mute); }
.menu__foot { display: grid; gap: 1.25rem; margin-top: 2rem; }
.menu__parent {
  display: flex; align-items: center; gap: .5em; min-height: var(--tap);
  font-size: .875rem; letter-spacing: .1em; color: var(--c-cream-2);
}
.menu__foot .btn { width: 100%; max-width: none; }

@media (min-width: 1024px) {
  .site-header { padding-inline: var(--gutter); }
  .site-header.is-compact { height: 72px; }
  .site-header.is-scrolled { background: rgba(13,11,10,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .logo__name { font-size: 1.0625rem; }
  .menu-btn, .menu { display: none !important; }
  .nav { display: block; margin-left: auto; margin-right: 2rem; }
  .nav__list { display: flex; gap: 1.5rem; }
  .nav__link {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: var(--tap); padding-inline: .25rem; line-height: 1.3;
  }
  .nav__en { font-family: var(--ff-en); font-weight: 500; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-cream); white-space: nowrap; }
  .nav__ja { margin-top: 2px; font-size: .625rem; letter-spacing: .1em; color: var(--c-mute); white-space: nowrap; }
  .nav__link::after {
    content: ""; position: absolute; left: .25rem; right: .25rem; bottom: 4px; height: 1px;
    background: var(--c-gold); transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease-pass);
  }
  .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .header-cta { display: inline-flex; flex: none; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}
/* ロゴが2段組になったため説明行（Sweets Development & Consulting）はヘッダーでは出さない */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header { padding-inline: 1.5rem; }
  .logo__name { font-size: .9375rem; }
  .nav { margin-right: 1rem; }
  .nav__list { gap: .375rem; }
  .nav__en { letter-spacing: .16em; }
  .nav__ja { display: none; }
  .header-cta { padding-inline: 1rem; }
}
/* ブランド名が長くなった（RIRAKURA PÂTISSERIE STUDIO）ため、1280〜1439px もナビを詰めてロゴとの間を空ける */
@media (min-width: 1280px) and (max-width: 1439px) {
  .site-header { padding-inline: 2.5rem; }
  .nav { margin-right: 1.25rem; }
  .nav__list { gap: 1rem; }
}
@media (min-width: 1024px) { .logo { margin-right: 1.5rem; } }

/* ==========================================================================
   1. MV（§3-1 / §6-4）
   ========================================================================== */
.mv {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  background: var(--c-night);
}
.mv__media { position: absolute; inset: 0; overflow: hidden; background: var(--c-night); }
@media (min-width: 1024px) { .mv__media { left: 16%; } }
.mv__photo { position: absolute; inset: 0; display: block; }
.mv__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
@media (max-width: 1023px) and (orientation: portrait) { .mv__photo img { object-position: 50% 38%; } }

/* 光だまり（MV・CTA 共通。@property は使わない） */
.mv__spot, .cta__spot {
  --spot-x: 60%; --spot-y: 50%;
  position: absolute; left: var(--spot-x); top: var(--spot-y);
  width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
      rgba(13,11,10,0) 0, rgba(13,11,10,0) 14vmax,
      rgba(13,11,10,.50) 30vmax, rgba(13,11,10,.90) 54vmax);
  transform: translate3d(0,0,0) scale(1);
}
@media (max-width: 1023px) { .mv__spot { --spot-x: 50%; --spot-y: 36%; } }
.mv__shade, .cta__shade { position: absolute; inset: 0; background: var(--c-night); opacity: 0; pointer-events: none; } /* JS が 1 にしてから開く */

/* 文字の下敷き（SP：下から上） */
.mv__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(13,11,10,.95) 0, rgba(13,11,10,.86) 450px, rgba(13,11,10,.72) 520px, rgba(13,11,10,0) 730px);
}
@media (min-width: 1024px) {
  /* 画面全体に対しての分布にするため、.mv__media(84%) より左へ広げて 100% 幅に揃える */
  .mv__scrim {
    left: -19.0476%; width: 119.0476%;
    background:
      linear-gradient(0deg, rgba(13,11,10,.55), transparent 22%),
      linear-gradient(90deg, rgba(13,11,10,.92) 0%, rgba(13,11,10,.78) 30%, rgba(13,11,10,.30) 48%, rgba(13,11,10,0) 60%);
  }
}

/* SP・タブレット縦（A1）：写真は画面幅いっぱい・原寸の縦横比（mv-sp＝1000×1762）で上に置き、
   文字ブロックはリンゴ2つ（ガラスの下端＝画像高さの約57%＝幅×1.0）の下から始める。写真の下端は暗い下敷きへ溶かす */
@media (max-width: 1023px) and (orientation: portrait) {
  .mv__media { bottom: auto; height: 176.2vw; }
  .mv__photo img { object-position: 50% 0; }
  .mv__scrim {
    background: linear-gradient(180deg,
      rgba(13,11,10,.55) 0, rgba(13,11,10,0) 11%, rgba(13,11,10,0) 54%,
      rgba(13,11,10,.72) 62%, rgba(13,11,10,.86) 72%, rgba(13,11,10,.95) 85%, var(--c-night) 100%);
  }
}

/* プランB（O系写真が使えない場合） */
.mv__plate { display: none; position: absolute; width: var(--plate); height: var(--plate); }
.mv__plate picture, .mv__plate img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mv__plate { box-shadow: var(--glow-spot); border-radius: 50%; }
.mv__rim { position: absolute; inset: -24px; border: 1px solid var(--c-line-strong); border-radius: 50%; pointer-events: none; }
[data-oseries="off"] .mv__photo { display: none; }
[data-oseries="off"] .mv__plate { display: block; }
[data-oseries="off"] .mv {
  --plate: min(62vw, 240px);
}
[data-oseries="off"] .mv__plate { left: calc(50% - var(--plate) / 2); top: calc(30svh - var(--plate) / 2); }
[data-oseries="off"] .mv__spot { --spot-x: 50%; --spot-y: 30svh; }
@media (min-width: 1024px) {
  [data-oseries="off"] .mv { --plate: 440px; }
  [data-oseries="off"] .mv__plate { left: calc(61.9% - 220px); top: calc(52% - 220px); }
  [data-oseries="off"] .mv__spot { --spot-x: 61.9%; --spot-y: 52%; }
}

/* 文字ブロック */
.mv__body {
  position: relative; z-index: 3;
  padding-top: max(48svh, calc(var(--header-h) + 1.5rem));
  padding-bottom: 28px;
}
@media (max-width: 1023px) and (orientation: portrait) {   /* A1：リンゴ（幅×1.0）の下から文字を始める */
  .mv__body { padding-top: calc(100vw + 40px); }
}
.mv__label {
  margin-bottom: 1rem;
  font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: var(--ls-label); line-height: 1.5; color: var(--c-gold);
}
.mv__display {
  margin-bottom: 1rem;
  font-family: var(--ff-en); font-weight: 300; font-size: var(--fs-display);
  line-height: 1.04; letter-spacing: 0; color: var(--c-cream);
  text-shadow: 0 1px 24px rgba(0,0,0,.45);
}
.mv__display .line > span { white-space: nowrap; }
.mv__catch {
  margin-bottom: 1rem;
  font-family: var(--ff-mincho); font-weight: 600; font-size: var(--fs-catch);
  line-height: 1.4; letter-spacing: var(--ls-mincho); color: var(--c-cream);
  font-feature-settings: "palt";
  text-shadow: 0 1px 24px rgba(0,0,0,.45);
}
.mv__lead { font-size: var(--fs-lead); line-height: 1.9; color: var(--c-cream-2); }
.mv__tags {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin-top: 1.5rem;
}
.mv__tags li {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 48px; padding: 4px 12px;
  border: 1px solid var(--c-line); border-radius: var(--r-xs);
  background: rgba(13,11,10,.35); cursor: default;
}
.mv__tags .ja { font-weight: 500; font-size: .8125rem; line-height: 1.5; letter-spacing: .06em; color: var(--c-cream); }
.mv__tags .en { display: none; font-family: var(--ff-en); font-weight: 500; font-size: .6875rem; line-height: 1.3; letter-spacing: .03em; white-space: nowrap; color: var(--c-mute); }
.mv__division, .mv__scroll { display: none; }

@media (min-width: 1024px) {
  .mv { align-items: center; }
  .mv__body.container {
    width: 46%; max-width: none; margin: 0; padding-left: var(--gutter); padding-right: 0;
    padding-top: calc(var(--header-h) + 6vh); padding-bottom: 9vh;
  }
  .mv__label { margin-bottom: 24px; }
  .mv__display { font-size: clamp(2.75rem, calc((46vw - var(--gutter)) / 8.2), 6rem); margin-bottom: 28px; }
  .mv__catch { margin-bottom: 24px; }
  .mv__tags { gap: 12px; margin-top: 40px; }
  .mv__tags li { min-height: 56px; padding: 4px 16px; }
  .mv__tags .ja { font-size: .875rem; }
  .mv__tags .en { display: block; }
  .mv__division {
    display: block; position: absolute; z-index: 3; right: var(--gutter); bottom: 32px;
    font-size: var(--fs-small); line-height: 1.6; color: var(--c-mute);
  }
  .mv__scroll {
    display: none; flex-direction: column; align-items: flex-start; gap: 10px;
    position: absolute; z-index: 3; left: var(--gutter); bottom: 0;
    font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label);
    letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-cream-2);
  }
  .mv__scroll i {
    display: block; width: 1px; height: 64px; background: var(--c-gold);
    transform-origin: top; animation: scrollline 2.4s var(--ease-lamp) infinite;
  }
}
@media (min-width: 1280px) and (min-height: 820px) { .mv__scroll { display: flex; } }
@keyframes scrollline {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   2. About（§3-2）
   ========================================================================== */
.about {
  position: relative; overflow-x: clip;
  display: flex; flex-direction: column;
  background: var(--c-night);
}
.about__photo { order: -1; aspect-ratio: 4 / 5; }
.about__photo picture, .about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 40%; }
.about__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, var(--c-night) 0%, rgba(13,11,10,.88) 18%, rgba(13,11,10,.72) 38%, rgba(13,11,10,.32) 52%, rgba(13,11,10,0) 64%);
}
.about__text { position: relative; z-index: 2; margin-top: -9.5rem; padding: 0 var(--gutter) var(--section-y); }
.about .hd__ja { font-size: 1.125rem; font-weight: 600; letter-spacing: .06em; color: var(--c-cream); margin-top: var(--sp-4); }
.about__body { margin-top: var(--sp-7); display: grid; gap: var(--sp-5); max-width: 36em; }
.about__body p { margin: 0; }
.about__note { margin-top: var(--sp-7); max-width: 36em; }
.about__rule { display: block; width: 64px; height: 1px; margin-bottom: var(--sp-5); background: var(--c-gold); }
.about__note-ja { font-size: var(--fs-small); line-height: 1.9; color: var(--c-mute); }
.about__note-en { margin-top: .5rem; font-family: var(--ff-en); font-style: italic; font-size: 1rem; line-height: 1.5; letter-spacing: .02em; color: var(--c-mute); }
.about__note .textlink { position: relative; color: var(--c-cream-2); }
.about__note .textlink::before { content: ""; position: absolute; inset: -11px -4px; }   /* B10：タップ領域を 44px 級に（見た目は変えない） */

@media (min-width: 1024px) {
  .about {
    display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: start;
    padding-top: var(--section-y); padding-bottom: var(--section-y);
    padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  }
  .about__photo { order: 0; aspect-ratio: auto; height: min(100vh, 960px); }
  .about__photo::before { background: linear-gradient(90deg, var(--c-night) 0%, rgba(13,11,10,0) 22%); }
  .about__photo img { object-position: 50% 45%; }
  .about__text {
    position: sticky; top: calc(var(--header-h) + 48px);
    margin-top: 0; padding: 0 var(--sp-7) 0 0;
  }
  .about .hd__ja { font-size: 1.5rem; margin-top: var(--sp-4); }
  .about__body { margin-top: 48px; gap: var(--sp-5); }
  .about__note { margin-top: 48px; }
}

/* ==========================================================================
   3. What We Do（§3-3）
   ========================================================================== */
.wwd { background: var(--c-night-2); padding-top: var(--section-y); }
.wwd__lead { margin-top: var(--sp-6); max-width: 36em; }
.pillars { position: relative; margin-top: var(--sp-8); padding-bottom: var(--section-y); }
.pillars__list { display: grid; gap: 64px; }
.pillars__line { display: none; }
.pillar { position: relative; }
.pillar__photo { position: relative; aspect-ratio: 4 / 5; background: var(--c-night); }
.pillar__photo picture, .pillar__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.pillar__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(13,11,10,.78) 0%, rgba(13,11,10,0) 38%);
}
.pillar__num {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 12px;
  font-family: var(--ff-en); font-weight: 300; font-size: 4.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--c-gold);
}
.pillar__info { padding: var(--sp-5) var(--gutter) 0; }
.pillar__title { display: flex; flex-direction: column; font-weight: 400; }
.pillar__en { font-family: var(--ff-en); font-weight: 300; font-size: 2rem; line-height: 1.15; letter-spacing: 0; color: var(--c-cream); }
.pillar__ja { margin-top: .25rem; font-family: var(--ff-mincho); font-weight: 600; font-size: var(--fs-h3); letter-spacing: var(--ls-mincho); line-height: 1.5; color: var(--c-cream); font-feature-settings: "palt"; }
.pillar__sub { margin-top: .75rem; font-weight: 500; font-size: var(--fs-small); letter-spacing: .08em; line-height: 1.7; color: var(--c-gold); }
.pillar__text { margin-top: var(--sp-3); max-width: 36em; }
.pillar__shade { opacity: 0; }

@media (min-width: 1024px) {
  .pillars { padding-bottom: calc(var(--section-y) * 1); }
  .pillars__list {
    display: flex; gap: 2px;
    height: clamp(560px, 70vh, 760px);
  }
  .pillar {
    flex: 1 1 0; min-width: 0; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--c-night);
  }
  .pillar__photo { position: absolute; inset: 0; aspect-ratio: auto; }
  .pillar__photo::after { background: linear-gradient(0deg, rgba(13,11,10,.90) 0%, rgba(13,11,10,.80) 45%, rgba(13,11,10,0) 75%); }
  .pillar__num { left: 50%; bottom: auto; top: 32px; transform: translateX(-50%); font-size: var(--fs-num); }
  .pillar__info { position: relative; z-index: 2; padding: 0 var(--sp-6) var(--sp-6); }
  .pillar__en { font-size: 2.5rem; }
  .pillar__text { font-size: .875rem; line-height: 1.95; }
  /* 工程線：3枚の番号の中心を結ぶパスの縁（番号の下を走り、各中心に金の点） */
  .pillars__line {
    display: block; position: absolute; z-index: 3; pointer-events: none;
    top: calc(var(--fs-num) + 32px + 14px); left: 16.6667%; right: 16.6667%; height: 1px;
    background: var(--c-line-strong); transform-origin: left;
  }
  .pillars__line::before, .pillars__line::after {
    content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--c-gold);
  }
  .pillars__line::before { left: -2px; }
  .pillars__line::after { right: -2px; }
  .pillar:focus-visible { outline: none; }
  .pillar::after { content: ""; position: absolute; inset: 4px; z-index: 4; pointer-events: none; border: 2px solid transparent; }   /* A6：写真に覆われないよう最前面に描く */
  .pillar:focus-visible::after { border-color: var(--c-gold-light); }
}
@media (min-width: 1280px) { .pillars__list { height: clamp(560px, 78vh, 760px); } .pillar__en { font-size: 3rem; } }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .js-ready .pillar__shade { opacity: .25; transition: opacity .6s var(--ease-lamp); }
  .js-ready .pillar__text { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-pass), transform .5s var(--ease-pass); }
  .js-ready .pillars__list:hover .pillar:not(:hover) .pillar__shade,
  .js-ready .pillars__list:focus-within .pillar:not(:focus-within) .pillar__shade { opacity: .70; }
  .js-ready .pillar:hover .pillar__shade,
  .js-ready .pillar:focus-within .pillar__shade { opacity: .05; }
  .js-ready .pillar:hover .pillar__text,
  .js-ready .pillar:focus-within .pillar__text { opacity: 1; transform: none; }
}

/* ==========================================================================
   4. Profile（§3-4 / §5-7）
   ========================================================================== */
.profile { background: var(--c-night); padding-block: var(--section-y); overflow-x: clip; }
.profile__window {
  position: relative; width: 240px; aspect-ratio: 1; margin: var(--sp-7) auto var(--sp-6);
  border-radius: var(--r-circle); overflow: visible;
}
.profile__window picture, .profile__window img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.window__glow { position: absolute; inset: 0; border-radius: 50%; box-shadow: var(--glow-spot); pointer-events: none; }
.window__ring { position: absolute; inset: -20px; border: 1px solid var(--c-line-strong); border-radius: 50%; pointer-events: none; }
.window__shade { border-radius: 50%; }
.profile__name { text-align: center; }
.profile__name-ja { font-family: var(--ff-mincho); font-weight: 600; font-size: 2rem; line-height: 1.3; letter-spacing: var(--ls-mincho); color: var(--c-cream); }
.profile__name-en { font-family: var(--ff-en); font-style: italic; font-weight: 300; font-size: 2.5rem; line-height: 1.15; letter-spacing: 0; color: var(--c-gold); }
.profile__title { margin-top: .75rem; font-size: var(--fs-small); line-height: 1.8; color: var(--c-mute); }
.profile__story { margin-top: var(--sp-7); }
.profile__text { display: grid; gap: var(--sp-4); max-width: 36em; }
.profile__lead-en { display: none; }
.awards { margin: 0; border-bottom: 1px solid var(--c-line); }
.awards li {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: .125rem;
  min-height: 64px; padding: 1rem 0 1rem 40px; border-top: 1px solid var(--c-line);
}
.awards li::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 24px; height: 1px; background: var(--c-gold); }
.awards__ja { font-family: var(--ff-mincho); font-weight: 500; font-size: 1.0625rem; line-height: 1.6; letter-spacing: .04em; color: var(--c-cream); }
.awards__en { font-family: var(--ff-en); font-style: italic; font-size: .9375rem; line-height: 1.5; letter-spacing: .02em; color: var(--c-mute); }
.profile__media .media__ja { font-family: var(--ff-mincho); font-weight: 500; font-size: 1.0625rem; color: var(--c-cream); }
.profile__media .media__en { font-family: var(--ff-en); font-style: italic; font-size: .9375rem; color: var(--c-mute); }

/* 経歴の定規：SP・〜1279px＝縦（等間隔）、1280px〜＝横（年数比例） */
.profile__career { margin-top: var(--sp-4); }
.ruler-wrap { position: relative; padding-left: 2.25rem; margin-top: var(--sp-6); }
.ruler__axis { position: absolute; left: 8px; top: 4px; bottom: 4px; width: 1px; }
.ruler__line { position: absolute; inset: 0; background: rgba(243,237,228,.4); transform-origin: top; }
.ruler { position: relative; }
.ruler__item { position: relative; padding-bottom: 4rem; }
.ruler__item:last-child { padding-bottom: 0; }
.ruler__dot {
  position: absolute; left: -2.25rem; top: .55rem; margin-left: 4.5px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-gold);
  box-shadow: 0 0 10px 2px rgba(201,169,97,.35);
}
.ruler__label { display: flex; flex-direction: column; gap: .125rem; }
.ruler__year { font-family: var(--ff-en); font-weight: 400; font-size: 1.5rem; line-height: 1.3; letter-spacing: .02em; color: var(--c-gold); }
.ruler__ja { font-size: .8125rem; line-height: 1.7; color: var(--c-cream-2); }
.ruler__en { font-family: var(--ff-en); font-style: italic; font-size: .75rem; line-height: 1.5; letter-spacing: .02em; color: var(--c-mute); }

@media (min-width: 768px) { .profile__lead-en { display: none; } }
@media (min-width: 1024px) {
  .profile__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-9); align-items: start; }
  .profile__who { position: sticky; top: calc(var(--header-h) + 48px); }
  .profile__window { width: min(320px, 100%); margin: 40px 0 32px; }
  .profile__name { text-align: left; }
  .profile__name-ja { font-size: 2rem; }
  .profile__name-en { font-size: var(--fs-h2-en); }
  .profile__story { margin-top: 0; padding-top: 4.5rem; }
  .profile__lead-en {
    display: block; margin-top: var(--sp-6); max-width: 36em;
    font-family: var(--ff-en); font-style: italic; font-size: 1.125rem; line-height: 1.75; letter-spacing: .01em; color: var(--c-mute);
  }
  .profile__awards { margin-top: 64px; }
  .profile__awards .sub-h { margin-top: 0; }
  .awards { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); }
  .profile__media { margin-top: var(--sp-7); }
  .profile__media .sub-h { margin-top: 0; }
  .profile__career { margin-top: var(--sp-9); }
}
@media (min-width: 1280px) {
  .ruler-wrap { padding-left: 0; height: 350px; margin-top: var(--sp-5); }
  .ruler__axis { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .ruler__line { transform-origin: left; }
  .ruler__axis::after {            /* 小目盛り：1年ごと（20区間） */
    content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 6px; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(243,237,228,.35) 0 1px, transparent 1px calc(100% / 20));
    border-right: 1px solid rgba(243,237,228,.35);
  }
  .ruler { position: absolute; inset: 0; }
  .ruler__item { position: absolute; left: calc(var(--pos) * 100%); top: 50%; width: 0; height: 0; padding: 0; }
  .ruler__item::before {          /* 大目盛り */
    content: ""; position: absolute; left: -.5px; width: 1px; height: 20px; background: rgba(243,237,228,.45);
  }
  .ruler__item--up::before { bottom: 0; }
  .ruler__item--down::before { top: 0; }
  .ruler__dot { left: 0; top: 0; margin: -3.5px 0 0 -3.5px; }
  .ruler__item--up .ruler__dot { top: -20px; }
  .ruler__item--down .ruler__dot { top: 20px; }
  .ruler__label {
    position: absolute; left: 0; width: clamp(9.5rem, 14.2vw, 13rem);
    transform: translateX(-50%); text-align: center; align-items: center;
  }
  .ruler__item--up .ruler__label { bottom: 34px; }
  .ruler__item--down .ruler__label { top: 34px; }
  .ruler__item:first-child .ruler__label { transform: none; text-align: left; align-items: flex-start; }
  .ruler__item--last .ruler__label { transform: translateX(-100%); text-align: right; align-items: flex-end; }
}

/* ==========================================================================
   5. Works（§3-5 / §5-6 / §6-6）
   ========================================================================== */
.rail { --card-w: 78vw; position: relative; overflow-x: clip; background: var(--c-night-2); padding-block: var(--section-y); display: flex; flex-direction: column; }
@media (min-width: 768px)  { .rail { --card-w: 46vw; } }
@media (min-width: 1024px) { .rail { --card-w: 36vw; } }
@media (min-width: 1280px) { .rail { --card-w: 30vw; } }
.rail__intro { margin-top: var(--sp-6); max-width: 36em; }
.rail__lead { margin: 0 0 var(--sp-3); }
.rail__note { font-size: var(--fs-small); line-height: 1.8; color: var(--c-mute); }
.rail__ctrl { order: 3; display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: var(--sp-5); padding-inline: var(--gutter); }
.rail__viewport { order: 2; margin-top: var(--sp-7); min-height: 0; }
.rail__head { order: 1; }
.rail__count { font-family: var(--ff-en); font-weight: 400; font-size: 1.5rem; line-height: 1; letter-spacing: .08em; color: var(--c-gold); min-width: 5.5rem; text-align: center; }
.rail__bar { display: none; position: relative; width: 160px; height: 1px; background: var(--c-line); }
.rail__progress { position: absolute; inset: 0; background: var(--c-gold); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.rail__btns { display: flex; gap: .25rem; align-items: center; }
.rail__btns .icon-btn { border: 1px solid var(--c-line); border-radius: 50%; }
.rail__btns .rail__prev { order: -1; }

.rail__track {
  display: flex; gap: 1rem; margin: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: calc((100% - var(--card-w)) / 2); scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { flex: 0 0 var(--card-w); min-width: 0; scroll-snap-align: center; }
@media (min-width: 1024px) {
  .rail__track { gap: 4vw; padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--c-line-strong) transparent; padding-bottom: 1rem; }
  .rail__track::-webkit-scrollbar { display: block; height: 6px; }
  .rail__track::-webkit-scrollbar-thumb { background: var(--c-line-strong); }
}

/* PC：セクション見出し行（左：見出し／右：導入文）＋右上カウンター */
@media (min-width: 1024px) {
  .rail__intro-wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--sp-7); align-items: end; }
  .rail__intro { margin-top: 0; padding-top: 2.5rem; }
  .rail__ctrl { position: absolute; top: calc(var(--section-y) - 3.25rem); right: var(--gutter); order: 0; margin: 0; padding: 0; }
  .rail__bar { display: block; }
  .rail__viewport { margin-top: var(--sp-7); }
}

/* 作品カード */
.work { display: block; width: 100%; text-align: left; }
.work__mat {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5;
  background: var(--c-night-2);
}
.work__mat::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--c-line); pointer-events: none; z-index: 1; }
.work__media { position: relative; display: block; overflow: hidden; }
.work__media picture, .work__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work__media--plate { width: min(100% - 64px, var(--max, 690px)); aspect-ratio: 1; border-radius: 50%; margin: auto; }
.work__media--frame { width: min(100% - 48px, var(--max)); aspect-ratio: var(--ar); margin: auto; }
.work__shade { position: absolute; inset: 0; z-index: 2; background: var(--c-night); opacity: 0; pointer-events: none; }
.js-ready .work__shade { opacity: .78; transition: opacity .6s var(--ease-lamp); }
.js-ready .rail__item.is-lit .work__shade { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .js-ready .rail__item:not(.is-lit) .work:hover .work__shade { opacity: .35; transition-duration: .4s; }
}
.work:focus-visible { outline-offset: 2px; }

.work__cap {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem;
  margin-top: 1rem; color: var(--c-mute); transition: color .4s var(--ease-lamp);
}
.rail__item.is-lit .work__cap { color: var(--c-cream); }
.work__cap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.5rem; height: 1px;
  background: var(--c-gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-pass);
}
@media (hover: hover) and (pointer: fine) { .rail__item:hover .work__cap::after { transform: scaleX(1); } }
.work__no { font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-gold); }
.work__title { font-family: var(--ff-mincho); font-weight: 500; font-size: 1rem; line-height: 1.6; letter-spacing: var(--ls-mincho); }
.work__title-en { font-family: var(--ff-en); font-style: italic; font-size: .875rem; line-height: 1.5; }
.work__category, .work__note {
  display: inline-block; padding: .15rem .6rem; border: 1px solid var(--c-line); border-radius: var(--r-xs);
  font-size: .75rem; line-height: 1.6; letter-spacing: .04em;
}
.work__cap[data-title-status="pending"] :is(.work__title, .work__title-en, .work__note) { display: none; }
.work__cap[data-title-status="confirmed"] .work__category { display: none; }
.work__cap[data-title-status="confirmed"] .work__title,
.work__cap[data-title-status="confirmed"] .work__title-en { flex-basis: 100%; }
.work__note:empty { display: none; }

/* PC：JS が pin に成功した時だけ付く固定の横並び */
@media (min-width: 1024px) {
  .rail--pinned {
    height: 100vh; height: 100svh; min-height: 0;
    padding-top: calc(var(--header-h) + 8px); padding-bottom: 24px;
    justify-content: space-between;
  }
  .rail--pinned .rail__ctrl { top: calc(var(--header-h) + 16px); }
  .rail--pinned .rail__viewport { flex: 1 1 auto; margin-top: var(--sp-5); display: flex; align-items: flex-start; }
  .rail--pinned .rail__track {
    overflow: visible; scroll-snap-type: none; width: max-content; padding-bottom: 0; gap: 4vw;
    padding-inline: var(--gutter) var(--gutter);
  }
  .rail--pinned .rail__item { flex: 0 0 min(var(--card-w), max(280px, calc((100svh - 420px) * .8))); scroll-snap-align: none; }
  .rail--pinned .rail__btns { display: none; }
}

/* ==========================================================================
   6. 工程の帯（§3-6）
   ========================================================================== */
.band {
  overflow: hidden; height: 110px; display: flex; align-items: center;
  background: var(--c-night); border-block: 1px solid var(--c-line);
}
.band__inner { display: flex; width: max-content; animation: band 40s linear infinite; will-change: transform; }
.band.is-paused .band__inner { animation-play-state: paused; }
.band__text {
  flex: none; white-space: pre; padding-right: .25em;
  font-family: var(--ff-en); font-style: italic; font-weight: 300; font-size: 4rem; line-height: 1.2; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(201,169,97,.6);
}
@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 768px) { .band { height: 200px; } .band__text { font-size: 8rem; } }

/* ==========================================================================
   7. Services（§3-7）
   ========================================================================== */
.services { background: var(--c-night); padding-block: var(--section-y); overflow-x: clip; }
.services__lead { margin-top: var(--sp-6); max-width: 36em; }
.svc-list { margin-top: var(--sp-8); }
.svc { position: relative; background: var(--c-night-3); border-radius: var(--r-xs); margin-bottom: var(--sp-5); padding-bottom: var(--sp-6); }
.svc__photo { aspect-ratio: 16 / 9; border-radius: var(--r-xs) var(--r-xs) 0 0; }
.svc__photo picture, .svc__photo img { width: 100%; height: 100%; object-fit: cover; }
.svc[data-svc="1"] .svc__photo img { object-position: 55% 65%; }
.svc[data-svc="2"] .svc__photo img { object-position: 60% 72%; }
.svc[data-svc="3"] .svc__photo img { object-position: 50% 40%; }
.svc[data-svc="4"] .svc__photo img { object-position: 55% 60%; }
.svc__ph { display: none; }
.svc__preview { display: none; }
.svc__no, .svc__title, .recipe { margin-inline: 20px; }
.svc__no { margin-top: 20px; font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-gold); }
.svc__title { display: flex; flex-direction: column; font-weight: 400; margin-bottom: var(--sp-4); }
.svc__en { position: relative; align-self: flex-start; font-family: var(--ff-en); font-weight: 300; font-size: 2rem; line-height: 1.15; letter-spacing: 0; color: var(--c-cream); }
.svc__ja { margin-top: .25rem; font-family: var(--ff-mincho); font-weight: 600; font-size: var(--fs-h3); letter-spacing: var(--ls-mincho); line-height: 1.5; color: var(--c-cream); font-feature-settings: "palt"; }
.recipe__row { display: grid; grid-template-columns: 1fr; gap: .125rem; padding: .75rem 0; }
.recipe dt {
  display: flex; align-items: center;
  font-weight: 500; font-size: var(--fs-small); letter-spacing: .2em; line-height: 1.6; color: var(--c-gold);
}
.recipe dt::after { content: ""; flex: 0 1 4rem; border-bottom: 1px dotted var(--c-line-strong); margin: 0 .75em; transform: translateY(.1em); }
.recipe dd { font-size: .9375rem; line-height: 1.9; }
.recipe dd ul li { position: relative; padding-left: 1.5em; }
.recipe dd ul li::before { content: "—"; position: absolute; left: 0; color: var(--c-gold); }
.services__price { margin-top: var(--sp-7); text-align: center; font-size: var(--fs-small); color: var(--c-mute); }

/* 写真なし版（SP） */
[data-oseries="off"] .svc__photo { display: none; }
[data-oseries="off"] .svc__ph {
  display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--c-night-2); border-radius: var(--r-xs) var(--r-xs) 0 0;
}
[data-oseries="off"] .svc__ph span {
  font-family: var(--ff-en); font-weight: 300; font-size: var(--fs-num); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--c-gold);
}

@media (min-width: 768px) {
  .svc__no, .svc__title, .recipe { margin-inline: var(--sp-6); }
  .svc__no { margin-top: var(--sp-6); }
  .svc__en { font-size: 2.5rem; }
  .recipe__row { grid-template-columns: 7em 1fr; gap: 0 1rem; align-items: baseline; }
  .recipe dt::after { flex: 1 1 auto; }
}
@media (min-width: 1024px) {
  .svc-list { margin-top: var(--sp-9); border-bottom: 1px solid var(--c-line); }
  .svc {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); column-gap: var(--sp-6); align-items: start;
    margin-bottom: 0; padding: 48px 0; background: none; border-radius: 0; border-top: 1px solid var(--c-line);
  }
  .svc__photo, [data-oseries="off"] .svc__ph { display: none; }
  .svc__no, .svc__title, .recipe { margin: 0; }
  .svc__no { padding-top: 1.1rem; }
  .svc__title { margin-bottom: 0; }
  .svc__en { font-size: clamp(2.5rem, 1.6rem + 1.9vw, 3.5rem); }
  .svc__en::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: 1px; background: var(--c-gold);
    transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-pass);
  }
  .recipe__row { padding: .5rem 0; }
  .recipe__row:first-child { padding-top: 1.1rem; }
  .svc__preview {
    display: block; position: absolute; left: 0; top: 0; z-index: 5; width: 360px; height: 450px;
    pointer-events: none; overflow: hidden; clip-path: inset(100% 0 0 0);
    transition: clip-path .5s var(--ease-pass); visibility: hidden;
  }
  .svc__preview picture, .svc__preview img { width: 100%; height: 100%; object-fit: cover; }
  .svc[data-svc="1"] .svc__preview img { object-position: 55% 60%; }
  .svc[data-svc="2"] .svc__preview img { object-position: 62% 70%; }
  .svc[data-svc="3"] .svc__preview img { object-position: 50% 40%; }
  .svc[data-svc="4"] .svc__preview img { object-position: 55% 60%; }
  [data-oseries="off"] .svc__preview { display: none; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .js-ready .svc:hover .svc__preview, .js-ready .svc.is-hover .svc__preview { visibility: visible; clip-path: inset(0); }
  .svc:hover .svc__en::after { transform: scaleX(1); }
}
.svc:focus-within .svc__en::after { transform: scaleX(1); }

/* ==========================================================================
   8. Process（§3-8）— 明るい紙面
   ========================================================================== */
.process { padding-block: var(--section-y) var(--sp-9); border-top: 1px dashed var(--c-line-ink); }
.steps-wrap { position: relative; margin-top: var(--sp-8); padding-left: 2rem; }
.steps__line { position: absolute; left: 4.5px; top: .6rem; bottom: .6rem; width: 1px; background: rgba(122,95,34,.28); }
.steps__fill { display: block; width: 100%; height: 100%; background: var(--c-ink-gold); transform-origin: top; }
.steps { counter-reset: step; }
.step { position: relative; counter-increment: step; margin-bottom: 2.5rem; }
.step:last-child { margin-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -2rem; top: .55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--c-ink-gold);
}
.step__num {
  display: block; font-family: var(--ff-en); font-weight: 300; font-size: 2.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--c-ink);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__en { margin-top: .75rem; font-family: var(--ff-en); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4; color: var(--c-ink-gold); }
.step__ja { margin-top: .25rem; font-family: var(--ff-mincho); font-weight: 600; font-size: 1.125rem; letter-spacing: var(--ls-mincho); line-height: 1.6; color: var(--c-ink); font-feature-settings: "palt"; }
.step__text { margin-top: .5rem; font-size: .875rem; line-height: 1.9; color: var(--c-ink-mute); }

@media (min-width: 1024px) {
  .process { padding-bottom: var(--section-y); }
  .steps-wrap { padding-left: 0; margin-top: var(--sp-9); }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
  .steps__line { display: none; }
  .step { margin: 0; padding-top: 2rem; border-top: 1px solid var(--c-ink-gold); }
  .step::before { left: 0; top: -5px; }
  .step__num { font-size: 3rem; }
}
@media (min-width: 1280px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .steps__line { display: block; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .steps__fill { transform-origin: left; }
  .step { border-top: 0; padding-top: 2.25rem; }
  .step::before { top: -4.5px; }
}

/* ==========================================================================
   9. FAQ（§3-9 / §5-9）— 同じ紙面
   ========================================================================== */
.faq { padding-block: 0 var(--section-y); border-bottom: 1px dashed var(--c-line-ink); }
.faq__inner.container { max-width: calc(880px + var(--gutter) * 2); padding-top: var(--sp-4); }
.faq__list { margin-top: var(--sp-7); border-top: 1px solid var(--c-line-ink); }
.faq__item { border-bottom: 1px solid var(--c-line-ink); }
.faq__item summary {
  display: flex; align-items: center; gap: 1rem; min-height: 64px; padding-block: .75rem;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark { flex: none; font-family: var(--ff-en); font-style: italic; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--c-ink-gold); }
.faq__q { flex: 1; min-width: 0; font-family: var(--ff-mincho); font-weight: 500; font-size: 1.0625rem; line-height: 1.7; letter-spacing: .04em; color: var(--c-ink); }
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; transition: transform .45s var(--ease-pass); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--c-ink); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 1fr; }
.faq__item[open] .faq__a { animation: faq-open .45s var(--ease-pass); }
.faq__a-in { overflow: hidden; display: flex; gap: 1rem; padding: 0 2.25rem 1.5rem 0; }
.faq__a-in p { min-width: 0; font-size: .9375rem; line-height: 1.95; color: var(--c-ink-mute); }
@keyframes faq-open { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@media (min-width: 768px) {
  .faq__item summary { min-height: 72px; }
}

/* ==========================================================================
   10. CTA（§3-10）
   ========================================================================== */
.cta {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  background: var(--c-night);
}
.cta__media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.cta__photo { position: absolute; inset: 0; display: block; }
.cta__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cta__dawn { position: absolute; inset: 0; background: var(--dawn); pointer-events: none; }
.cta__spot { --spot-x: 50%; --spot-y: 60%; }
.cta__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(13,11,10,.95) 0%, rgba(13,11,10,.82) 40%, rgba(13,11,10,0) 64%);
}
.cta__body { position: relative; z-index: 3; padding-top: 24svh; padding-bottom: calc(3rem + var(--sp-cta-h) + env(safe-area-inset-bottom)); }
.cta__dot { display: block; width: 4px; height: 4px; margin-bottom: 24px; border-radius: 50%; background: var(--c-gold); box-shadow: var(--glow-dot); }
.cta__title { font-weight: 400; }
.cta__en { display: block; font-family: var(--ff-en); font-weight: 300; font-size: var(--fs-display); line-height: 1.04; letter-spacing: 0; color: var(--c-cream); text-shadow: 0 1px 24px rgba(0,0,0,.45); }
.cta__ja { display: block; margin-top: 1rem; font-family: var(--ff-mincho); font-weight: 600; font-size: var(--fs-h3); letter-spacing: var(--ls-mincho); line-height: 1.5; color: var(--c-cream); }
.cta__text { margin-top: 1.25rem; max-width: 36em; color: var(--c-cream-2); }
.cta__btn { margin-top: var(--sp-6); }
.cta__sub { margin-top: 1rem; max-width: 30em; font-size: var(--fs-small); line-height: 1.8; color: var(--c-cream-2); }
@media (max-width: 1023px) { .cta__en .line > span { white-space: nowrap; } }

[data-oseries="off"] .cta__photo { display: none; }
[data-oseries="off"] .cta__spot {
  background: radial-gradient(circle at 50% 50%, rgba(201,169,97,.14) 0, rgba(201,169,97,.05) 18vmax, rgba(13,11,10,0) 40vmax);
}

@media (min-width: 1024px) {
  .cta { align-items: center; justify-content: center; min-height: max(80vh, 640px); }
  .cta__photo img { object-position: 50% 70%; }
  .cta__spot { --spot-y: 62%; }
  .cta__scrim { background: radial-gradient(ellipse 64% 58% at 50% 50%, rgba(13,11,10,.84) 0%, rgba(13,11,10,.78) 45%, rgba(13,11,10,0) 100%); }
  .cta__body { text-align: center; display: flex; flex-direction: column; align-items: center; padding-block: 6rem; }
  .cta__dot { margin-bottom: 24px; }
  .cta__ja { margin-top: 1.25rem; }
  .cta__text { margin-inline: auto; margin-top: 1.5rem; }
  .cta__btn { margin-top: 40px; width: 360px; max-width: none; }
  .cta__sub { margin-inline: auto; margin-top: 16px; }
}

/* ==========================================================================
   フッター（§3-11）
   ========================================================================== */
.footer { position: relative; background: var(--c-navy); color: var(--c-cream-2); padding-top: var(--sp-8); border-top: 1px solid var(--c-line); }
.footer::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: var(--stars); background-size: 200px 200px;
}
.footer > * { position: relative; }
.footer__inner { display: grid; gap: var(--sp-7); }
.footer__logo { display: flex; flex-direction: column; font-family: var(--ff-en); font-weight: 400; line-height: 1.3; color: var(--c-cream); }
.footer__pre { font-weight: 500; font-size: .6875rem; letter-spacing: .42em; color: var(--c-gold); }
.footer__name { font-size: 1.25rem; letter-spacing: .16em; }
@media (min-width: 768px) { .footer__name { font-size: 1.5rem; letter-spacing: .2em; } }
.footer__kana { margin-top: .25rem; font-size: 11px; letter-spacing: .2em; color: var(--c-mute); }
.footer__desc { margin-top: var(--sp-4); font-size: var(--fs-small); line-height: 1.8; color: var(--c-gold); }
.footer__co { margin-top: var(--sp-3); font-size: var(--fs-small); line-height: 1.8; }
.footer__addr { font-size: var(--fs-small); line-height: 1.8; color: var(--c-mute); }
.footer__nav li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: 48px; align-items: center;
  border-bottom: 1px solid var(--c-line-cream);
  font-family: var(--ff-en); font-weight: 500; font-size: .875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-cream);
}
.footer__nav small { font-family: var(--ff-sans); font-weight: 400; font-size: .75rem; letter-spacing: .08em; text-transform: none; color: var(--c-mute); }
.footer__links { display: grid; gap: 0; align-content: start; }
.footer__parent {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding-inline: 1rem;
  border: 1px solid var(--c-gold); border-radius: var(--r-xs); color: var(--c-cream); font-weight: 500; font-size: .9375rem; letter-spacing: .08em;
  transition: background-color .5s var(--ease-brand), color .5s var(--ease-brand);
}
.footer__parent span { transition: transform .5s var(--ease-brand); }
.footer__contact { display: flex; align-items: center; min-height: 48px; margin-top: .75rem; font-size: .875rem; letter-spacing: .08em; color: var(--c-cream-2); }
@media (hover: hover) and (pointer: fine) {
  .footer__parent:hover { background: var(--c-gold); color: var(--c-night); }
  .footer__parent:hover span { transform: translateX(4px); }
  .footer__contact:hover, .footer__nav a:hover { color: var(--c-gold-light); }
}
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: var(--sp-7);
  padding-block: var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom));      /* 固定CTAはフッター表示中は隠れるので避けなくてよい */
  border-top: 1px solid var(--c-line-cream);
}
.footer__copy { font-size: var(--fs-small); color: var(--c-mute); }
.footer__top { border: 1px solid var(--c-line); border-radius: 50%; }
@media (min-width: 1024px) {
  .footer { padding-top: var(--sp-9); }
  .footer__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--sp-8); }
  .footer__links { gap: 0; }
  .footer__bottom { position: relative; justify-content: center; padding-block: var(--sp-5); margin-top: var(--sp-8); }
  .footer__top { position: absolute; right: var(--gutter); top: 50%; margin-top: -22px; }
}

/* ==========================================================================
   下部固定CTA（SPのみ・§5-2）
   ========================================================================== */
.sp-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sp-cta);
  display: flex; align-items: center; justify-content: center;
  height: calc(var(--sp-cta-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--c-gold); color: var(--c-night);
  font-weight: 500; font-size: .9375rem; letter-spacing: .12em;
  transform: translateY(100%); visibility: hidden;
}
.sp-cta.is-visible { transform: none; visibility: visible; transition: transform .5s var(--ease-pass), visibility 0s; }
.sp-cta:focus-visible { outline-color: var(--c-night); outline-offset: -6px; }
@media (min-width: 1024px) { .sp-cta { display: none; } }
@media (max-width: 1023px) { .is-menu-open .sp-cta { visibility: hidden; } }

/* ==========================================================================
   ライトボックス（§5-8）
   ========================================================================== */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--c-cream);
}
.lightbox::backdrop { background: rgba(13,11,10,.96); }
.lightbox[open] { display: block; }
.lightbox__inner {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 4.5rem var(--gutter) 1.5rem;
}
.lightbox__close { position: absolute; top: 1rem; right: .75rem; border: 1px solid var(--c-line); border-radius: 50%; }
.lightbox__fig { display: flex; justify-content: center; max-width: 100%; min-height: 0; }
.lightbox__img {
  width: auto; height: auto; max-width: min(100%, calc(var(--w, 640px) * 1.5)); max-height: calc(100vh - 212px); max-height: calc(100svh - 212px); object-fit: contain;   /* 212＝上72＋下24＋札40＋ボタン44＋すき間32 */
}
.lightbox__cap { min-height: 2.5rem; text-align: center; font-size: var(--fs-small); color: var(--c-cream-2); }
.lightbox__cap .work__cap { justify-content: center; color: var(--c-cream-2); margin-top: 0; }
.lightbox__cap .work__cap::after { display: none; }
.lightbox__nav { display: flex; align-items: center; gap: 1.25rem; }
.lightbox__nav .icon-btn { border: 1px solid var(--c-line); border-radius: 50%; }
.lightbox__count { font-family: var(--ff-en); font-weight: 400; font-size: 1.25rem; letter-spacing: .08em; color: var(--c-gold); min-width: 5rem; text-align: center; }

/* ==========================================================================
   動きを減らす設定（§6-8：CSS で止められるもの）
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band__inner, .mv__scroll i { animation: none; }
  .mv__scroll i { transform: none; }
  .faq__item[open] .faq__a { animation: none; }
  .btn, .btn::before, .btn__arrow, .textlink, .nav__link::after { transition-duration: .01s; }
  .js-ready .pillar__text { transform: none; transition: opacity .2s; }        /* 柱の本文：移動しない */
  .svc__preview { transition: none; }                                           /* Services のプレビュー：clip-path の出現を止める（追従は main.js で止める） */
  .sp-cta, .sp-cta.is-visible { transition: none; }                             /* 固定CTA：せり上がらない */
}
.no-motion .band__inner, .no-motion .mv__scroll i { animation: none; }

/* ==========================================================================
   ページ遷移（§6-9：View Transitions。未対応ブラウザは通常遷移）
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*) { animation: none; } }
