@charset "UTF-8";
/* =========================================================================
   株式会社白鯨社 コーポレートサイト 共通スタイル  v2
   白い舞台と暗い幕間／映写機と大海原／六幕の構成
   外部フォント・外部CSSに依存しません。
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. 基本設定と配色
   ------------------------------------------------------------------------- */

:root {
  /* 確定パレット（v1から継続） */
  --c-white:      #ffffff; /* 白 */
  --c-shironeri:  #f3f3f2; /* 白練 */
  --c-shironezu:  #dcdddd; /* 白鼠 */
  --c-ginnezu:    #afafb0; /* 銀鼠 */
  --c-ai:         #165e83; /* 藍色 */
  --c-tomekon:    #1c305c; /* 留紺 */
  --c-sumi:       #595857; /* 墨 */
  --c-shinbashi:  #59b9c6; /* 新橋色 */

  /* v2で追加するダークトーン */
  --c-film:       #202428; /* フィルム黒 */
  --c-sumiiro:    #343a40; /* 炭色 */
  --c-namari:     #73797f; /* 鉛色 */
  --c-hagane:     #8b939a; /* 鋼色 */

  /* 場面ごとに持ち替える役割色（明るい舞台の既定値） */
  --bg:         var(--c-white);
  --fg:         var(--c-sumi);
  --fg-strong:  var(--c-tomekon);
  --fg-dim:     var(--c-namari); /* 記号・番号などの弱い文字 */
  --fg-note:    var(--c-sumi);   /* 小さくても意味のある文字（連絡先の注記など） */
  --rule:       var(--c-shironezu);
  --rule-soft:  var(--c-shironeri);
  --accent:     var(--c-ai);
  --accent-lit: var(--c-shinbashi);

  /* 書体 —— 外部配信に依存しないシステムフォントのみ */
  --f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
            "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, "MS PGothic",
            system-ui, -apple-system, sans-serif;
  --f-display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
            "Yu Gothic", YuGothic, "Yu Gothic Medium", Meiryo, system-ui, sans-serif;
  /* 幕タイトルと代表の強い言葉。字幅に特徴のある超極太を優先して並べる */
  --f-stage: "Hiragino Sans W8", "Hiragino Sans", "Hiragino Kaku Gothic StdN",
            "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic",
            "Impact", "Haettenschweiler", "Arial Black", Meiryo, sans-serif;
  /* 幕番号・フレーム番号（欧文コンデンス） */
  --f-mark: "Helvetica Neue", "Avenir Next Condensed", "Arial Narrow", Helvetica,
            Arial, "Hiragino Sans", sans-serif;
  /* ごく短い断章にだけ使う明朝 */
  --f-brush: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho",
            YuMincho, "Noto Serif JP", "MS PMincho", serif;

  /* 余白の基準（セクションごとに個別に上書きする） */
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 34rem;

  /* 一行見出しの計算用（.wrap で持ち替える） */
  --solo-w: min(100vw, 78rem);
  --solo-pad: calc(var(--gutter) * 2 + 18px);

  /* 動き */
  --ease-film: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-gate: cubic-bezier(.66, 0, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--c-white);
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-sumi);
  font-family: var(--f-body);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }
picture { display: contents; }

a { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--fg-strong);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.01em;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

p { margin: 0 0 1.6em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--c-shinbashi); color: var(--c-white); }

:focus-visible {
  outline: 2px solid var(--c-shinbashi);
  outline-offset: 3px;
}

/* 読み飛ばしリンク —— 画面外へ追い出さず、大きさを畳んで隠す */
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 200;
  background: var(--c-film);
  color: var(--c-white);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  overflow: visible;
  clip-path: none;
}

/* -------------------------------------------------------------------------
   2. 文字表現のユーティリティ
   ------------------------------------------------------------------------- */

/* 意味のまとまりごとに折り返す（本文中の補助。見出しには使わない） */
.cl { display: inline-block; }

@supports (word-break: auto-phrase) {
  .lead, .gate p, .tenets p, .voice p, .stanza p, .script p {
    word-break: auto-phrase;
  }
}

/* --- 2-1. 一行で言い切る見出し ----------------------------------------
   タイトルは「、」も強制改行も使わない。
   収まらない場合は文字サイズ・字間・長体率で合わせ、横スクロールを作らない。
   --n には「その行が何文字分の幅になるか」を書く（大きい字は倍率を掛けて数える）。
   ---------------------------------------------------------------------- */
.solo {
  display: block;
  white-space: nowrap;
  font-family: var(--f-stage);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--fg-strong);
  margin: 0;
  font-size: min(
    var(--solo-max, 3.5rem),
    calc((var(--solo-w) * var(--col, 1) - var(--solo-pad)) / var(--n, 10))
  );
}
/* 長体をかけて字幅に表情を出す */
.solo--tall { transform: scaleX(0.92); transform-origin: left center; }
.solo--center { text-align: center; }
.solo--center.solo--tall { transform-origin: center; }
.solo--right { text-align: right; }
.solo--right.solo--tall { transform-origin: right center; }

/* 極端な大小差。最重要語だけを持ち上げる */
.solo .big { font-size: 2.1em; line-height: 0.74; }
.solo .max { font-size: 3.1em; line-height: 0.7; }
.solo .sm  { font-size: 0.52em; color: var(--fg-dim); font-weight: 800; letter-spacing: 0.06em; }
.solo .sea { color: var(--accent); }
.solo .lit { color: var(--accent-lit); }
.solo .out {
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
}
@supports not (-webkit-text-stroke: 1px #000) {
  .solo .out { color: inherit; -webkit-text-stroke: 0; opacity: .35; }
}

/* 一行表示を優先する短い強調文 */
.fit { white-space: nowrap; }

/* 段組みの内側に置く見出しは、その列の幅で一行に収める */
@media (min-width: 56rem) {
  .scene-pair__text { --col: .5; }
  .scene-pair--wide-text .scene-pair__text { --col: .6; }
  .scene-pair--wide-media .scene-pair__text { --col: .42; }
  .scene-stand__text { --col: .56; }
  .scene-plate__over { --col: .66; }
  .desk__form { --col: .56; }
}
.scene-plate__over,
.scene-act__over { --solo-w: min(100vw, 92rem); }
.voice { --solo-w: min(100vw, calc(46rem + var(--gutter) * 2)); }
.stanza__text { --solo-w: min(100vw, calc(38rem + var(--gutter) * 2)); }

/* --- 2-2. 縦書き ------------------------------------------------------- */
.vert {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1.5;
  color: var(--accent);
  white-space: nowrap;
  margin: 0;
}
/* 一語だけを巨大に立てる */
.vert--huge {
  font-family: var(--f-stage);
  font-weight: 900;
  font-size: clamp(2.75rem, 11vw, 8rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--fg-strong);
}
.vert--brush { font-family: var(--f-brush); font-weight: 600; letter-spacing: 0.42em; }
.vert--dim { color: var(--fg-dim); }
.vert--rule { border-right: 1px solid var(--rule); padding-right: 0.9rem; }
/* 縦書きを二本並べる組 */
.vert-set {
  display: flex;
  flex-direction: row-reverse;
  gap: clamp(0.9rem, 3vw, 2.4rem);
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(0.5rem, 2vw, 1.5rem);
}
.vert--mark {
  font-family: var(--f-mark);
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  color: var(--fg-dim);
  font-weight: 600;
}

/* 巨大背景文字 —— 見出しタグにはしない装飾 */
.ghost {
  position: absolute;
  font-family: var(--f-stage);
  font-weight: 900;
  color: var(--c-shironeri);
  letter-spacing: 0.06em;
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
.ghost--vert {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1;
}

/* 斜め配置の小さな標 */
.slant {
  display: inline-block;
  transform: rotate(-6deg);
  transform-origin: left center;
}

/* フィルム番号・記号 */
.mark {
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.mark::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--rule);
  flex: none;
}
.mark--plain::before { display: none; }

/* 節の日本語ラベル（短くした見出しの検索語を補う可視ラベル） */
.label {
  font-family: var(--f-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: block;
}

.lead {
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
  line-height: 2.05;
  color: var(--fg);
}

.dim { color: var(--fg-dim); }
.ink { color: var(--fg-strong); }
.sea { color: var(--accent); }

/* 強い一言（本文中の断章） */
.aphorism {
  font-family: var(--f-stage);
  font-weight: 900;
  color: var(--fg-strong);
  line-height: 1.24;
  letter-spacing: 0.01em;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3.25rem);
  margin: 0;
}
/* 明朝の断章。ごく短い一言にだけ使う */
.brush {
  font-family: var(--f-brush);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--fg-strong);
}

/* 新橋色のごく短い発光 */
.spark {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.spark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.18em;
  height: 2px;
  background: linear-gradient(90deg, var(--c-shinbashi), rgba(89, 185, 198, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.is-in .spark::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   3. レイアウトの器
   ------------------------------------------------------------------------- */

.wrap {
  width: min(100%, 78rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
  --solo-w: min(100vw, 78rem);
}
.wrap--tight { width: min(100%, 58rem); --solo-w: min(100vw, 58rem); }
.wrap--wide  { width: min(100%, 92rem); --solo-w: min(100vw, 92rem); }

.stage { position: relative; overflow: hidden; }

/* -------------------------------------------------------------------------
   4. 夜の場面 —— 白い舞台へ差し込む暗転・映写室・夜の海
   ------------------------------------------------------------------------- */

.night {
  position: relative;
  isolation: isolate;
  --bg:        var(--c-film);
  --fg:        var(--c-shironezu);
  --fg-strong: var(--c-white);
  --fg-dim:    var(--c-hagane);
  --fg-note:   var(--c-shironezu);
  --rule:      rgba(255, 255, 255, .22);
  --rule-soft: rgba(255, 255, 255, .1);
  --accent:     var(--c-shinbashi);
  --accent-lit: var(--c-shinbashi);
  background: var(--bg);
  color: var(--fg);
}
/* 炭色の幕間。夜より浅い暗転 */
.night--ash { --bg: var(--c-sumiiro); }
/* 留紺の夜の海 */
.night--sea { --bg: var(--c-tomekon); --fg: rgba(243, 243, 242, .86); }
/* 灰の舞台。暗転ではなく曇天 */
.gray { --bg: var(--c-shironeri); background: var(--c-shironeri); }
.gray--deep { --bg: var(--c-shironezu); background: var(--c-shironezu); }

/* 映写室の空気 —— ごく低コストな粒子と光 */
.night::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px);
}
/* 場面固有の .ghost 色より後から効かせるため、指定を一段強くしている */
.night .ghost.ghost { color: rgba(255, 255, 255, .05); }
.night .mark { color: var(--fg-dim); }
.night .mark::before { background: var(--rule); }
.night .label { color: var(--accent); }
.night .tint { color: var(--fg-dim); }
.night .tint.is-in { color: var(--fg-strong); }
.night .ink { color: var(--c-white); }
.night .lead { color: rgba(243, 243, 242, .88); }
.night p { color: var(--fg); }
.night .voice strong { background: linear-gradient(transparent 62%, rgba(89, 185, 198, .3) 62%); color: var(--c-white); }
.night .ledger dd b { color: var(--c-white); }

/* -------------------------------------------------------------------------
   5. フィルムの表現
   ------------------------------------------------------------------------- */

/* 5-1. パーフォレーション帯 */
.perf {
  position: relative;
  height: 20px;
  background: var(--c-ginnezu);
  border-top: 1px solid var(--c-namari);
  border-bottom: 1px solid var(--c-namari);
  overflow: hidden;
}
.perf__run {
  position: absolute;
  inset: 0 -50% 0 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    var(--c-white) 10px 24px,
    transparent 24px 34px
  );
  background-size: auto 8px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  will-change: transform;
  animation: perf-run 9s linear infinite;
}
.perf__run::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    rgba(115, 121, 127, .65) 10px 10.6px,
    transparent 10.6px 23.4px,
    rgba(115, 121, 127, .65) 23.4px 24px,
    transparent 24px 34px
  );
  background-size: auto 8px;
  background-repeat: repeat-x;
  background-position: 0 50%;
}
@keyframes perf-run { to { transform: translate3d(-34px, 0, 0); } }

.perf--slow .perf__run { animation-duration: 22s; }
.perf--fast .perf__run { animation-duration: 4.5s; }
.perf--reverse .perf__run { animation-direction: reverse; }
/* 暗い帯のフィルム */
.perf--dark {
  background: var(--c-film);
  border-color: var(--c-sumiiro);
}
.perf--dark .perf__run {
  background-image: repeating-linear-gradient(
    90deg, transparent 0 10px, var(--c-hagane) 10px 24px, transparent 24px 34px);
}
.perf--dark .perf__run::before { opacity: .4; }
.perf--tall { height: 30px; }

/* 5-2. 章と章のあいだ —— 一コマ送り */
.cut {
  position: relative;
  height: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--c-shironeri);
}
.cut__bar {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-namari) 12%, var(--c-namari) 88%, transparent);
  opacity: .5;
}
.cut__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(3.5rem, 9vw, 6rem);
  height: clamp(2.2rem, 5.5vw, 3.6rem);
  border: 1px solid var(--c-shironezu);
}
.cut__no {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--c-ginnezu);
}
.js .cut__frame { opacity: 0; }
.js .cut.is-in .cut__frame { animation: cut-advance 1.05s var(--ease-gate) both; }
@keyframes cut-advance {
  0%   { opacity: 0; transform: translate3d(-50%, calc(-50% + 46px), 0); }
  35%  { opacity: 1; }
  70%  { opacity: 1; transform: translate3d(-50%, calc(-50% - 4px), 0); }
  100% { opacity: .55; transform: translate3d(-50%, -50%, 0); }
}
/* 幕ごとに送り方を変える */
.cut--down.is-in .cut__frame { animation-name: cut-advance-down; }
@keyframes cut-advance-down {
  0%   { opacity: 0; transform: translate3d(-50%, calc(-50% - 46px), 0); }
  40%  { opacity: 1; }
  100% { opacity: .55; transform: translate3d(-50%, -50%, 0); }
}
.cut--dark { background: var(--c-film); }
.cut--dark .cut__frame { border-color: rgba(255, 255, 255, .28); }
.cut--dark .cut__no { color: var(--c-hagane); }
.cut--dark .cut__bar { background: linear-gradient(90deg, transparent, var(--c-hagane) 12%, var(--c-hagane) 88%, transparent); opacity: .35; }
.cut--gray { background: var(--c-shironezu); }

/* 5-3. 画像のフィルム枠 */
.frame {
  position: relative;
  display: block;
  margin: 0;
  background: transparent;
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* 映写 —— 銀鼠の眠りから焦点が合い、本来の色が戻る */
.frame__plate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.frame__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-shironezu);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.js .frame__plate::after { opacity: 1; }
/* 退色・復色は大きな画像の filter ではなく、覆い（::after）の opacity が受け持つ。
   filter を毎フレーム掛け直さないため、映写のカクつきが出ない */
.js .frame__plate img {
  opacity: 0;
  transform: scale(1.05);
}
.js .is-in .frame__plate::after,
.js .frame.is-in .frame__plate::after {
  opacity: 0;
  transition: opacity 1.2s var(--ease-film) .05s;
}
.js .is-in .frame__plate img,
.js .frame.is-in .frame__plate img {
  opacity: 1;
  transform: none;
  transition: opacity .45s linear, transform 1.5s var(--ease-out);
}
/* 幕ごとに映写の速さと向きを変える */
.frame--slow.is-in .frame__plate img { transition-duration: .7s, 2.1s; }
.frame--slow.is-in .frame__plate::after { transition-duration: 1.7s; }
.js .frame--slide .frame__plate img { transform: scale(1.06) translate3d(-2.5%, 0, 0); }
.js .frame--slide.is-in .frame__plate img { transform: none; }
.js .frame--drop .frame__plate img { transform: scale(1.05) translate3d(0, -3%, 0); }
.js .frame--drop.is-in .frame__plate img { transform: none; }

/* 光漏れ */
.frame__leak {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(89, 185, 198, .3), transparent 62%),
    radial-gradient(40% 90% at 0% 100%, rgba(255, 255, 255, .85), transparent 60%);
  mix-blend-mode: screen;
}
.js .is-in .frame__leak { animation: leak 1.5s var(--ease-film) .1s 1; }
@keyframes leak {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  100% { opacity: 0; }
}

/* 映写機の光線 */
.frame__beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, .5) 50%, transparent 66%);
}
.js .is-in .frame__beam { animation: beam 1.9s var(--ease-film) .05s 1; }
@keyframes beam {
  0%   { opacity: 0; transform: translate3d(-30%, 0, 0); }
  22%  { opacity: .9; }
  100% { opacity: 0; transform: translate3d(30%, 0, 0); }
}

/* フィルム枠の縁 —— 上下にパーフォレーション */
.frame--sprocket .frame__plate {
  padding-block: 18px;
  background: var(--c-shironeri);
}
.frame--sprocket .frame__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 9px, var(--c-white) 9px 21px, transparent 21px 30px),
    repeating-linear-gradient(90deg, transparent 0 9px, var(--c-white) 9px 21px, transparent 21px 30px);
  background-size: auto 7px, auto 7px;
  background-position: 0 6px, 0 calc(100% - 6px);
  background-repeat: repeat-x, repeat-x;
}
/* 暗い場面のフィルム枠 */
.frame--sprocket-dark .frame__plate { background: var(--c-film); }
.frame--sprocket-dark .frame__plate::before {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 9px, var(--c-namari) 9px 21px, transparent 21px 30px),
    repeating-linear-gradient(90deg, transparent 0 9px, var(--c-namari) 9px 21px, transparent 21px 30px);
}

/* 端を地の色へ溶かす */
.dissolve img {
  -webkit-mask-image: radial-gradient(115% 118% at 50% 45%, #000 52%, transparent 88%);
  mask-image: radial-gradient(115% 118% at 50% 45%, #000 52%, transparent 88%);
}
.dissolve--b img {
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 99%);
}
.dissolve--lr img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.dissolve--tb img {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
}
.dissolve--r img {
  -webkit-mask-image: linear-gradient(255deg, transparent 2%, #000 34%);
  mask-image: linear-gradient(255deg, transparent 2%, #000 34%);
}
.dissolve--vig img {
  -webkit-mask-image: radial-gradient(94% 98% at 50% 48%, #000 22%, rgba(0, 0, 0, .55) 62%, transparent 88%);
  mask-image: radial-gradient(94% 98% at 50% 48%, #000 22%, rgba(0, 0, 0, .55) 62%, transparent 88%);
}
.dissolve--sky img {
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .5) 10%, #000 34%, #000 76%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
  mask-image:
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .5) 10%, #000 34%, #000 76%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* 紙のにじみのように地へ沈める（縦長画像用） */
.dissolve--ink img {
  -webkit-mask-image: radial-gradient(78% 88% at 50% 46%, #000 34%, rgba(0, 0, 0, .6) 68%, transparent 96%);
  mask-image: radial-gradient(78% 88% at 50% 46%, #000 34%, rgba(0, 0, 0, .6) 68%, transparent 96%);
}
/* 水平線から上下へ開く */
.dissolve--horizon img {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

/* フィルムの粒子（装飾のみ） */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(175, 175, 176, .07) 0 1px, transparent 1px 3px);
}

/* 走査線（新橋色のごく細い光） */
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-shinbashi), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.js .is-in .scanline { animation: scan 2.2s var(--ease-film) 1; }
@keyframes scan {
  0%   { opacity: 0; transform: translate3d(0, 0, 0); }
  10%  { opacity: .85; }
  100% { opacity: 0; transform: translate3d(0, 320px, 0); }
}

/* -------------------------------------------------------------------------
   6. ヘッダー
   ------------------------------------------------------------------------- */

.head {
  position: relative;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--c-shironezu);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
}

.head__in {
  width: min(100%, 92rem);
  margin-inline: auto;
  padding: 0.7rem var(--gutter) 0.55rem;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.head__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.15rem;
  text-decoration: none;
  color: var(--c-tomekon);
  transition: opacity .35s var(--ease-out);
}
.head__brand img {
  width: 58px;
  height: 47px;
  object-fit: contain;
  display: block;
  transition: transform .5s var(--ease-out);
}
.head__brand:hover img,
.head__brand:focus-visible img { transform: translateY(-2px); }

.nav {
  grid-column: 1 / -1;
  order: 3;
  border-top: 1px solid var(--c-shironeri);
  padding-top: 0.5rem;
  margin-top: 0.15rem;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.7rem;
}
.nav a {
  --u: 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.15rem;
  font-family: var(--f-display);
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-sumi);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s var(--ease-out), letter-spacing .35s var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.15rem; right: 0.15rem; bottom: 0.15rem;
  height: 1px;
  background: var(--c-shinbashi);
  transform: scaleX(var(--u));
  transform-origin: right;
  transition: transform .38s var(--ease-out);
}
.nav a:hover,
.nav a:focus-visible { color: var(--c-film); letter-spacing: 0.13em; }
.nav a:hover::after,
.nav a:focus-visible::after { --u: 1; transform-origin: left; }
.nav a[aria-current="page"] { color: var(--c-ai); }
.nav a[aria-current="page"]::after {
  --u: 1;
  background: var(--c-ai);
}

.head__tel {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  line-height: 1.15;
  color: var(--c-tomekon);
  transition: color .3s var(--ease-out);
}
.head__tel small {
  font-family: var(--f-display);
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
  color: var(--c-sumi);
  font-weight: 700;
}
.head__tel b {
  font-family: var(--f-mark);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.head__tel:hover { color: var(--c-ai); }

@media (min-width: 62rem) {
  .head { position: sticky; top: 0; }
  .head__in {
    grid-template-columns: auto 1fr auto;
    padding-block: 0.85rem;
    gap: 2rem;
  }
  .head__brand img { width: 76px; height: 61px; }
  .nav { grid-column: auto; order: 0; border-top: 0; padding-top: 0; margin-top: 0; }
  .nav ul { justify-content: center; gap: 0 1.5rem; }
  .nav a { font-size: 0.875rem; padding: 0.35rem 0.1rem; }
}

/* -------------------------------------------------------------------------
   7. クリックできる場所 —— 枠も塗りも使わない
      文字・下線・矢印・フィルムの送り穴・小さな白鯨だけで示す。
   ------------------------------------------------------------------------- */

/* 7-1. 幕をまたぐ導線 */
.act {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  min-height: 44px;
  padding: 0.55em 0.1em;
  background: none;
  border: 0;
  color: var(--fg-strong);
  font-family: var(--f-display);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-decoration: none;
  transition: color .3s var(--ease-out), letter-spacing .4s var(--ease-out);
}
/* 小さな白鯨が頭の向き（左）へ進む */
.act::before {
  content: "";
  width: 1.7em;
  height: 1.3em;
  flex: none;
  background: url("../images/brand/hakugeisha-whale.png") left center / contain no-repeat;
  opacity: 0;
  transform: translate3d(0.7em, 0, 0);
  transition: opacity .35s linear, transform .5s var(--ease-out);
}
/* 矢印が一文字分進む */
.act::after {
  content: "→";
  font-family: var(--f-mark);
  font-size: 1em;
  line-height: 1;
  flex: none;
  transition: transform .42s var(--ease-out);
}
.act__word {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.22em;
  transition: background-size .5s var(--ease-film);
}
.act__no {
  font-family: var(--f-mark);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--fg-dim);
  flex: none;
}
.act:hover, .act:focus-visible { color: var(--accent); letter-spacing: 0.15em; }
.act:hover .act__word, .act:focus-visible .act__word { background-size: 100% 1px; }
.act:hover::after, .act:focus-visible::after { transform: translate3d(0.7em, 0, 0); }
.act:hover::before, .act:focus-visible::before { opacity: .9; transform: none; }

/* 幕の名前を大きく見せる導線 */
.act--large { font-size: clamp(1.25rem, 1rem + 1.6vw, 2.25rem); letter-spacing: 0.06em; }
.act--large::before { width: 2em; height: 1.5em; }
/* 白鯨を出さない簡素な導線 */
.act--ghost { color: var(--fg); font-weight: 700; font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.0625rem); }
.act--ghost::before { display: none; }
.act--ghost:hover, .act--ghost:focus-visible { color: var(--accent); }
/* 送り穴が一コマ送られる導線 */
.act--film::before {
  content: "";
  width: 2.6em;
  height: 0.5em;
  background:
    repeating-linear-gradient(90deg, var(--fg-dim) 0 0.42em, transparent 0.42em 0.86em);
  opacity: .55;
  transform: none;
  /* 座標移動へ steps() を使わず、連続した曲線で送る */
  transition: transform .45s var(--ease-out), opacity .3s linear;
}
.act--film:hover::before, .act--film:focus-visible::before { opacity: 1; transform: translate3d(0.86em, 0, 0); }

/* 7-2. 本文中の説明的リンク */
.tie {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  min-height: 44px;
  align-content: center;
  flex-wrap: wrap;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding-block: 0.6em;
  transition: color .3s var(--ease-out), letter-spacing .35s var(--ease-out);
}
.tie > span:first-child,
.tie::first-line { line-height: 1.6; }
.tie {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 calc(100% - 0.55em);
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease-film), color .3s var(--ease-out),
              letter-spacing .35s var(--ease-out);
}
.tie::after { content: "→"; font-family: var(--f-mark); transition: transform .38s var(--ease-out); display: inline-block; }
.tie:hover, .tie:focus-visible {
  color: var(--fg-strong);
  letter-spacing: 0.1em;
  background-size: 0% 1px;
  background-position: 100% calc(100% - 0.55em);
}
.tie:hover::after, .tie:focus-visible::after { transform: translate3d(0.4em, 0, 0); }
.night .tie { color: var(--c-shinbashi); }
.night .tie:hover, .night .tie:focus-visible { color: var(--c-white); }

/* 7-3. 電話の導線 —— 枠を持たせず、細い一本の線と数字で示す */
.dial {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--fg-strong);
  background-image: linear-gradient(var(--rule), var(--rule));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding: 0.5rem 0.1rem 0.75rem;
  transition: background-size .5s var(--ease-film), color .3s var(--ease-out);
}
.dial small {
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--fg-note);
  white-space: nowrap;
}
.dial b {
  font-family: var(--f-mark);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.15;
}
.dial:hover, .dial:focus-visible { color: var(--accent); }
.dial:hover b, .dial:focus-visible b { color: var(--accent); }

/* -------------------------------------------------------------------------
   8. 開幕 —— トップの第一画面
   ------------------------------------------------------------------------- */

.open {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 4rem) clamp(0rem, 2vw, 2rem);
  background:
    radial-gradient(120% 90% at 82% 4%, rgba(89, 185, 198, .10), transparent 56%),
    linear-gradient(180deg, var(--c-white) 0%, var(--c-white) 28%, var(--c-shironeri) 100%);
}

.open__ghost {
  top: clamp(-1.5rem, 0.5vw, 1rem);
  right: -0.14em;
  font-size: clamp(11rem, 40vw, 34rem);
  color: rgba(220, 221, 221, .55);
  z-index: 0;
}

.open__in {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  justify-items: start;
}

/* ロゴ —— サイト内で最大。タイトル群が退場したあとに第一画面の中央へ浮上する主役
   ・重なり順は .open__cry（z-index:3）より上の 8 で安定させる
   ・pointer-events を切り、重なってもリンクと電話番号の操作を妨げない
   ・この既定は流し込みのまま。JavaScript 無効・動きを抑える設定・印刷では
     この位置で静止し、タイトル文字と重ならない */
.open__logo {
  position: relative;
  z-index: 8;
  width: clamp(16rem, 36vw, 32rem);
  /* 一回り大きくしたぶん、下の詰めは行わずタイトル文字と重ねない */
  margin: 0 0 0 clamp(-0.6rem, -0.7vw, 0rem);
  pointer-events: none;
  transform-origin: 50% 42%;
}
.open__logo img {
  display: block;
  width: 100%;
  height: auto;
  /* 白背景へ埋もれないよう、留紺と墨の薄い影に銀鼠の光をひと筋。発光はさせない */
  filter:
    drop-shadow(0 10px 20px rgba(28, 48, 92, .16))
    drop-shadow(0 26px 46px rgba(89, 88, 87, .12))
    drop-shadow(0 0 1px rgba(175, 175, 176, .6));
}
/* 開幕の幕が開く時刻に合わせて送り出す（初回のみ .has-overture で後ろへずらす） */
.open { --cue: 0s; }
.has-overture .open { --cue: 1.22s; }

/* 第一幕は二段構成。まずタイトル群だけを読ませ、消え切ってからロゴへ渡す。
   1.6秒のうち 0〜75%（約1.2秒）は不透明のまま保ち、残り約0.4秒で opacity:0 まで薄れる */
.js .open__cry,
.js .open__business,
.js .open__business-label,
.js .open__h1,
.js .open__sub {
  animation: title-out 1.6s var(--ease-out) var(--cue) both;
}
@keyframes title-out {
  0%, 75% { opacity: 1; }
  100%    { opacity: 0; }
}

/* タイトル群が消え切った 0.1 秒あとから浮上を始める。可視域では交差させない。
   最終位置は、ヘッダー直下の第一画面＝タイトル群が退場した舞台の水平・垂直中央。
   縦の基準はタイトル群の行だけに限り、下段の導入本文・動線・車両画像は含めない */
.js .open__logo {
  position: absolute;
  grid-column: auto;
  grid-row: 1 / 6;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate3d(-50%, -50%, 0);
  z-index: 8;
  animation: logo-opacity 1.75s linear calc(1.7s + var(--cue)) both;
  will-change: opacity;
  backface-visibility: hidden;
}
/* カクつきを除くため、中央配置の transform と浮上の transform を分ける。
   親は opacity だけ、内側の picture は transform だけを受け持ち、
   アニメーション中の blur と z-index の切り替えは行わない。
   細かい段を置かず、下方から中央へ一方向に浮かび上がらせる */
.js .open__logo picture {
  display: block;
  transform-origin: 50% 42%;
  animation: logo-lift 1.75s var(--ease-film) calc(1.7s + var(--cue)) both;
  will-change: transform;
  backface-visibility: hidden;
}
/* 浮上が終わったら合成の予約を解く。will-change を出しっぱなしにしない */
.js .open__logo.is-settled,
.js .open__logo.is-settled picture { will-change: auto; }
@keyframes logo-opacity {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes logo-lift {
  from { transform: translate3d(0, 24px, 0) scale(.82); }
  to   { transform: translate3d(0, 0, 0) scale(1.04); }
}
/* 水面の揺れはロゴ本体と別の擬似要素で継続。登場後はごく小さく息をするだけ */
.js .open__logo::after {
  content: "";
  position: absolute;
  inset: auto 8% -5%;
  height: 30%;
  background: linear-gradient(180deg, rgba(22, 94, 131, .09), transparent 78%);
  filter: blur(10px);
  animation: sway 11s ease-in-out infinite;
  pointer-events: none;
  /* ぼかしを一度だけ焼き付け、以後は合成だけで揺らす */
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@keyframes sway {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(1); opacity: .5; }
  50%      { transform: translate3d(0, 3px, 0) scaleX(1.03); opacity: .78; }
}

/* 最大級の強調文 —— 一行で言い切る */
.open__cry {
  --solo-max: 5rem;
  position: relative;
  z-index: 3;
  color: var(--c-namari);
}
.open__cry .big { color: var(--c-tomekon); }
.open__cry .max { color: var(--c-film); }

/* 何をしている会社かを、挑戦の言葉と同じ強さで置く主強調文 */
.open__business {
  position: relative;
  z-index: 3;
  color: var(--c-sumiiro);
}
.open__business .big { color: var(--c-ai); }
/* 主強調文はタイトル群の一部として最初から見せる（退場は title-out が受け持つ） */
@keyframes cue-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}

/* 主強調文の直下に置く事実のラベル。フィルムの送り穴で区切る */
.open__business-label {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  margin: clamp(-0.8rem, -1.2vw, -0.2rem) 0 0;
  font-family: var(--f-display);
  font-size: clamp(0.8125rem, 0.76rem + 0.42vw, 1.0625rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.85;
  color: var(--c-tomekon);
}
.open__business-label::before {
  content: "";
  width: 2.6em;
  height: 0.5em;
  flex: none;
  align-self: center;
  background: repeating-linear-gradient(90deg, var(--c-ginnezu) 0 0.42em, transparent 0.42em 0.86em);
}

.open__h1 {
  --solo-max: 2.75rem;
  color: var(--c-sumi);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.open__h1 .big { color: var(--c-tomekon); }

/* 見出しを短くしたぶん、検索語は導入本文で補う */
.open__note {
  max-width: 34rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 2.05;
  color: var(--c-sumi);
  margin: 0;
}

.open__sub {
  font-family: var(--f-display);
  font-size: clamp(0.9375rem, 0.88rem + 0.45vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-ai);
  margin: 0;
}

.open__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.2rem;
  margin-top: 0.4rem;
}

.open__vert { display: none; }

/* 第一画面の主画像 */
.open__plate {
  position: relative;
  z-index: 1;
  margin-top: clamp(-0.5rem, -1vw, 0rem);
}
.open__plate img {
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 20%, #000 76%, transparent 99%),
    linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image:
    linear-gradient(180deg, transparent 0, #000 20%, #000 76%, transparent 99%),
    linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.js .open__plate img { animation: plate-in 1.9s var(--ease-out) .2s both; }
@keyframes plate-in {
  from { opacity: 0; transform: scale(1.035); }
  to   { opacity: 1; transform: none; }
}
/* 主画像の余白に立てる縦書きの断章 */
.open__plate-vert {
  position: absolute;
  right: clamp(0.6rem, 3vw, 3.5rem);
  top: 14%;
  z-index: 3;
  color: var(--c-white);
  text-shadow: 0 1px 12px rgba(32, 36, 40, .55);
  font-size: clamp(0.75rem, 0.68rem + 0.35vw, 0.9375rem);
  letter-spacing: 0.42em;
}

@media (min-width: 62rem) {
  .open { padding-block: clamp(3rem, 5vw, 6rem) 0; }
  .open__in {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 2.5rem;
  }
  /* 流し込みのとき（JavaScript 無効・動きを抑える設定・印刷）は従来どおり1行目 */
  .open__logo           { grid-column: 1; grid-row: 1; }
  /* 中央配置のときの舞台は、タイトル群を含む1〜6行目 */
  .js .open__logo       { grid-column: auto; grid-row: 1 / 7; }
  .open__cry            { grid-column: 1; grid-row: 2; }
  .open__business       { grid-column: 1; grid-row: 3; }
  .open__business-label { grid-column: 1; grid-row: 4; }
  .open__h1             { grid-column: 1; grid-row: 5; }
  .open__sub            { grid-column: 1; grid-row: 6; }
  .open__note           { grid-column: 1; grid-row: 7; }
  .open__acts           { grid-column: 1; grid-row: 8; }
  .open__vert {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 8;
    align-self: end;
    justify-self: end;
    font-size: clamp(0.8125rem, 0.7rem + 0.35vw, 1rem);
    letter-spacing: 0.42em;
    color: var(--c-namari);
    padding-bottom: 0.5rem;
  }
  .js .open__vert { animation: vert-in 1.6s var(--ease-out) .6s both; }
  @keyframes vert-in {
    from { opacity: 0; transform: translate3d(0, -22px, 0); }
    to   { opacity: 1; transform: none; }
  }
  .open__plate { margin-top: -2vw; }
}

/* -------------------------------------------------------------------------
   9. 場面（セクション）の型 —— それぞれ余白・視線・比率を変える
   ------------------------------------------------------------------------- */

/* 9-0. 章の扉 —— 下層ページの冒頭 */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.6rem, 6vw, 5.5rem) clamp(2.2rem, 5vw, 4.5rem);
  background:
    radial-gradient(100% 80% at 92% 0%, rgba(89, 185, 198, .07), transparent 58%),
    linear-gradient(180deg, var(--c-shironeri), var(--c-white));
}
.page-head--dark {
  background:
    radial-gradient(90% 80% at 88% 0%, rgba(89, 185, 198, .16), transparent 60%),
    linear-gradient(180deg, var(--c-film), var(--c-sumiiro));
}
.page-head .ghost {
  right: -0.12em;
  top: -0.1em;
  font-size: clamp(9rem, 34vw, 26rem);
  color: rgba(255, 255, 255, .8);
}
.page-head--dark .ghost { color: rgba(255, 255, 255, .05); }
.page-head__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  justify-items: start;
}
.page-head h1 {
  --solo-max: 6.5rem;
}
.page-head .lead { max-width: 38rem; }
.page-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.8rem;
  width: 100%;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}
/* 幕の入口に立てる短い縦書き */
.page-head__vert {
  position: absolute;
  right: var(--gutter);
  top: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
  font-size: clamp(0.75rem, 0.68rem + 0.3vw, 0.9375rem);
  letter-spacing: 0.4em;
  color: var(--fg-dim);
  max-height: 60%;
}
@media (max-width: 30rem) {
  .page-head__vert { display: none; }
}

/* 9-0b. 幕間 —— 断章だけを置く静かな帯 */
.interlude {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.2rem, 7vw, 6.5rem);
}
.interlude__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
  justify-items: start;
}
.interlude--right .interlude__in { justify-items: end; text-align: right; }
.interlude--center .interlude__in { justify-items: center; text-align: center; }
.interlude p.lead { max-width: 36rem; }
.interlude .ghost {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(7rem, 27vw, 20rem);
  color: rgba(220, 221, 221, .42);
}
.interlude--rule { border-top: 1px solid var(--rule-soft); }
.interlude .solo { --solo-max: 4rem; }

/* 9-1. 宣言 —— 中央に強い一言と大きな空白 */
.scene-cry {
  position: relative;
  padding-block: clamp(5rem, 12vw, 11rem);
  text-align: center;
  overflow: hidden;
}
.scene-cry .ghost {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 26vw, 22rem);
  color: var(--c-shironeri);
}
.scene-cry__in { position: relative; z-index: 1; }
.scene-cry .solo { --solo-max: 5.5rem; }
.scene-cry p + p { margin-top: 1.8rem; }
.scene-cry .lead { max-width: 40rem; margin-inline: auto; }

/* 9-2. 対 —— 文章と画像を重ねる非対称構成 */
.scene-pair {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 8rem);
  overflow: hidden;
}
.scene-pair__in {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.scene-pair__text { position: relative; z-index: 2; }
.scene-pair__text h2 {
  font-size: clamp(1.5rem, 1rem + 2.3vw, 3rem);
  margin-bottom: 1.4rem;
}
.scene-pair__text h2.solo { --solo-max: 3.25rem; margin-bottom: 1.4rem; }
.scene-pair__text h3 {
  font-size: clamp(1.0625rem, 0.95rem + 0.7vw, 1.375rem);
  margin: 2.4rem 0 0.9rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.scene-pair__media { position: relative; }
/* 画像の余白へ差す縦書き */
.scene-pair__vert {
  position: absolute;
  z-index: 3;
  top: 6%;
  right: -0.2rem;
  color: var(--fg-dim);
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.9375rem);
  letter-spacing: 0.4em;
}

@media (min-width: 56rem) {
  .scene-pair__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .scene-pair--rev .scene-pair__media { grid-column: 1; grid-row: 1; }
  .scene-pair--rev .scene-pair__text  { grid-column: 2; grid-row: 1; }
  .scene-pair--wide-media .scene-pair__in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .scene-pair--wide-text  .scene-pair__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .scene-pair--bleed-r .scene-pair__media { margin-right: calc(var(--gutter) * -1 - 3vw); }
  .scene-pair--bleed-l .scene-pair__media { margin-left: calc(var(--gutter) * -1 - 3vw); }
  .scene-pair--drop .scene-pair__media { transform: translateY(2.5rem); }
  .scene-pair--lift .scene-pair__media { transform: translateY(-2.5rem); }
}

/* 9-3. 版 —— 全幅の一枚と、そこへ重なる断章 */
.scene-plate {
  position: relative;
  padding-block: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}
.scene-plate__media { position: relative; }
.scene-plate__over {
  position: relative;
  z-index: 2;
  margin-top: clamp(-2.5rem, -5vw, -1.2rem);
  padding-inline: var(--gutter);
}
.scene-plate__over .solo { --solo-max: 5rem; }
.scene-plate:not(.night) .scene-plate__over .solo {
  text-shadow: 0 2px 22px rgba(255, 255, 255, .95), 0 1px 3px rgba(255, 255, 255, 1);
}
.night .scene-plate__over .solo {
  color: var(--c-white);
  text-shadow: 0 2px 26px rgba(32, 36, 40, .9);
}
@media (min-width: 56rem) {
  .scene-plate__over {
    position: absolute;
    inset: auto auto 11% 0;
    width: min(52rem, 70%);
    margin-top: 0;
    padding-left: max(var(--gutter), calc((100vw - 92rem) / 2 + var(--gutter)));
  }
  .scene-plate--right .scene-plate__over {
    inset: auto 0 11% auto;
    padding-left: 0;
    padding-right: max(var(--gutter), calc((100vw - 92rem) / 2 + var(--gutter)));
    text-align: right;
  }
}

/* 9-3b. 幕 —— 画面幅いっぱいの一枚で章を切り替える */
.scene-act {
  position: relative;
  overflow: hidden;
  background: var(--c-film);
  color: var(--c-shironeri);
}
.scene-act__media { position: relative; }
.scene-act__media img {
  display: block;
  width: 100%;
  height: auto;
}
.scene-act__over {
  position: relative;
  z-index: 3;
  padding: clamp(1.6rem, 4vw, 3rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  background: var(--c-film);
}
.scene-act__over .solo { --solo-max: 5rem; color: var(--c-white); }
.scene-act__over .lead { color: rgba(243, 243, 242, .84); max-width: 36rem; margin-top: 1.2rem; }
.scene-act__vert {
  position: absolute;
  right: clamp(0.6rem, 3vw, 3rem);
  top: 8%;
  z-index: 4;
  color: var(--c-white);
  opacity: .9;
  text-shadow: 0 1px 14px rgba(32, 36, 40, .8);
  font-size: clamp(0.75rem, 0.68rem + 0.35vw, 0.9375rem);
  letter-spacing: 0.44em;
}
@media (min-width: 56rem) {
  .scene-act__over {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(32, 36, 40, .82) 45%, var(--c-film));
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
  }
  .scene-act__over > * { max-width: 92rem; margin-inline: auto; }
}

/* 9-4. 帳 —— 会社概要などの並記（カードにしない） */
.ledger {
  margin: 0;
  border-top: 1px solid var(--rule);
}
.ledger > div {
  display: grid;
  gap: 0.15rem 2rem;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger dt {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  line-height: 2.2;
}
.ledger dd {
  margin: 0;
  color: var(--fg);
  line-height: 1.95;
}
.ledger dd b {
  font-family: var(--f-display);
  color: var(--fg-strong);
  font-weight: 800;
}
.ledger small {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-note);
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}
@media (min-width: 48rem) {
  .ledger > div { grid-template-columns: 11rem minmax(0, 1fr); padding-block: 1.6rem; }
}

/* 9-5. 条 —— 番号つきの主張（角丸カードにしない） */
.tenets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.2rem, 4vw, 3.6rem);
  counter-reset: tenet;
}
.tenets > li {
  position: relative;
  counter-increment: tenet;
  padding-left: clamp(3rem, 6vw, 5.5rem);
  border-left: 1px solid var(--rule);
  padding-block: 0.2rem;
}
.tenets > li::before {
  content: counter(tenet, decimal-leading-zero);
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.6rem);
  top: 0.1rem;
  font-family: var(--f-mark);
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}
.tenets h3 {
  font-size: clamp(1.1875rem, 1rem + 1.1vw, 1.875rem);
  margin-bottom: 0.9rem;
  line-height: 1.45;
}
.tenets p { color: var(--fg); }
@media (min-width: 56rem) {
  .tenets > li:nth-child(even) { margin-left: clamp(2rem, 8vw, 9rem); }
  .tenets > li:nth-child(3n) { max-width: 46rem; }
}

/* 9-5b. 要点 —— 詩的な表現のあとに置く事実の一覧（v2.1で追加）
   カードを並べず、細い罫線・フィルム番号・余白・文字サイズ差だけで一覧にする。 */
.facts { margin: 0; }
.facts > .label { margin-bottom: 0.9rem; }
.facts__list {
  list-style: none;
  margin: clamp(1.2rem, 2.4vw, 1.9rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  counter-reset: fact;
}
.facts__item {
  counter-increment: fact;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.1rem 0.85rem;
  padding: clamp(0.85rem, 1.8vw, 1.25rem) 0.15rem;
  border-bottom: 1px solid var(--rule-soft);
}
.facts__item::before {
  content: counter(fact, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--f-mark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  padding-top: 0.55em;
}
.facts__key {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--f-display);
  font-size: clamp(1rem, 0.94rem + 0.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.7;
  color: var(--fg-strong);
}
.facts__value {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: clamp(0.9rem, 0.87rem + 0.22vw, 1rem);
  line-height: 1.95;
  color: var(--fg);
}
.facts__value a { color: var(--accent); }
.facts__foot { margin: clamp(1.2rem, 2.4vw, 1.8rem) 0 0; }
/* 横幅の広い場所では、項目名と説明を左右に並べる */
@media (min-width: 48rem) {
  .facts--row .facts__item {
    grid-template-columns: 2.8rem minmax(7rem, 12rem) minmax(0, 1fr);
    align-items: baseline;
    gap: 0.2rem 1.6rem;
  }
  .facts--row .facts__item::before { grid-row: 1; }
  .facts--row .facts__value { grid-column: 3; grid-row: 1; }
}

/* 9-5c. 募集の要点 —— 台本と配役表のような連続レイアウト（v2.1で追加） */
.cast {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.8rem, 6vw, 5rem) clamp(3rem, 6.5vw, 5.5rem);
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-shironeri) 100%);
}
.cast .ghost {
  right: -0.1em;
  top: -0.14em;
  font-size: clamp(8rem, 30vw, 22rem);
  color: rgba(220, 221, 221, .5);
}
.cast__in { position: relative; z-index: 1; }
.cast__sub {
  --solo-max: 2.5rem;
  margin: clamp(0.7rem, 1.6vw, 1.1rem) 0 0;
  color: var(--c-ai);
}
.cast__note {
  max-width: 40rem;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 2.05;
  color: var(--fg);
}
.cast__set {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--c-ginnezu);
}
.cast__part {
  padding-block: clamp(1.5rem, 3vw, 2.3rem);
  border-bottom: 1px solid var(--rule);
}
.cast__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin: 0 0 clamp(0.9rem, 1.8vw, 1.3rem);
  font-size: clamp(1.1875rem, 1rem + 1vw, 1.75rem);
  line-height: 1.4;
}
.cast__no {
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--fg-dim);
  flex: none;
}
/* 必須であることを、色だけでなく文字でも示す */
.cast__req {
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--c-white);
  background: var(--c-tomekon);
  padding: 0.25em 0.7em 0.3em;
  line-height: 1.6;
  flex: none;
}
.cast__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.35rem, 1vw, 0.6rem);
}
.cast__list > li {
  position: relative;
  padding-left: 1.7em;
  font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.0625rem);
  line-height: 1.95;
  color: var(--fg);
}
.cast__list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.95em;
  height: 1px;
  background: var(--c-ginnezu);
}
/* 必須条件は行頭記号も変えて、一覧のなかで区別できるようにする */
.cast__list--must > li { color: var(--fg-strong); font-weight: 700; }
.cast__list--must > li::before {
  content: "◎";
  top: 0;
  width: auto;
  height: auto;
  background: none;
  font-size: 0.8em;
  color: var(--c-ai);
  line-height: 2.4;
}
.cast__hint {
  margin: clamp(0.8rem, 1.6vw, 1.1rem) 0 0;
  font-size: 0.875rem;
  line-height: 1.95;
  color: var(--fg-note);
}
.cast__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 2.4rem;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
}
@media (min-width: 56rem) {
  .cast__part {
    display: grid;
    grid-template-columns: minmax(9rem, 17.5rem) minmax(0, 1fr);
    gap: 0.6rem 2.5rem;
    align-items: start;
  }
  .cast__head { margin-bottom: 0; }
  .cast__part > .cast__list,
  .cast__part > .cast__hint { grid-column: 2; }
  .cast__hint { margin-top: 0.6rem; }
}

/* 9-5d. 要点だけを置く細い帯（v2.1で追加） */
.band {
  position: relative;
  padding-block: clamp(2.4rem, 5vw, 4.2rem);
  background: linear-gradient(180deg, var(--c-shironeri), var(--c-white));
}

/* 9-6. 断章の帯 —— 横に流れる一言 */
.strip-say {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.2rem, 4.5vw, 4rem);
  background: var(--c-shironezu);
  border-block: 1px solid var(--c-ginnezu);
}
.strip-say--dark {
  background: var(--c-film);
  border-color: var(--c-sumiiro);
}
.strip-say__run {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: say-run 46s linear infinite;
}
.strip-say__set {
  display: flex;
  gap: 3.5rem;
  padding-right: 3.5rem;
}
.strip-say__set > span {
  font-family: var(--f-stage);
  font-weight: 900;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3.5rem);
  letter-spacing: 0.02em;
  color: var(--c-namari);
  white-space: nowrap;
  line-height: 1.3;
}
.strip-say__set > span:nth-child(even) { color: var(--c-ai); }
@supports (-webkit-text-stroke: 1px #000) {
  .strip-say__set > span {
    color: var(--c-shironezu);
    -webkit-text-stroke: 1px var(--c-namari);
  }
  .strip-say__set > span:nth-child(even) {
    color: var(--c-shironezu);
    -webkit-text-stroke: 1px var(--c-ai);
  }
  .strip-say--dark .strip-say__set > span {
    color: var(--c-film);
    -webkit-text-stroke: 1px var(--c-namari);
  }
  .strip-say--dark .strip-say__set > span:nth-child(even) {
    color: var(--c-film);
    -webkit-text-stroke: 1px var(--c-ai);
  }
}
@keyframes say-run { to { transform: translate3d(-50%, 0, 0); } }
.strip-say--rev .strip-say__run { animation-direction: reverse; }

/* 9-7. 語り —— 代表の言葉。最も静かで最も長い余白 */
.scene-voice {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 10rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-white), var(--c-shironeri) 50%, var(--c-white));
}
.scene-voice.night { padding-block: clamp(3.5rem, 7vw, 7rem); }
.scene-voice.night {
  background:
    radial-gradient(70% 60% at 76% 8%, rgba(89, 185, 198, .14), transparent 62%),
    linear-gradient(180deg, var(--c-film), var(--c-sumiiro) 55%, var(--c-film));
}
.scene-voice .ghost {
  left: -0.08em;
  bottom: -0.16em;
  font-size: clamp(7rem, 30vw, 26rem);
  color: rgba(220, 221, 221, .5);
}
.voice {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 46rem;
}
.voice p {
  font-size: clamp(1.0625rem, 0.95rem + 0.7vw, 1.4375rem);
  line-height: 2.25;
  color: var(--fg);
  margin-bottom: 1.9em;
  text-indent: 1em;
}
.voice p.no-indent { text-indent: 0; }
.voice strong {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--fg-strong);
  background: linear-gradient(transparent 62%, rgba(89, 185, 198, .22) 62%);
}
.voice .solo { --solo-max: 4.5rem; margin-bottom: 2rem; }
.voice__quote {
  margin: 0;
  padding-left: clamp(1.1rem, 3vw, 2.2rem);
  border-left: 2px solid var(--rule);
  position: relative;
}
.voice__quote::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 3.5rem;
  background: var(--accent);
}
/* 語りのわきへ立てる縦書き。本文と重なる幅では出さない */
.voice__vert { display: none; }
@media (min-width: 62rem) {
  .voice__vert {
    display: block;
    position: absolute;
    right: var(--gutter);
    top: clamp(3rem, 8vw, 6rem);
    z-index: 2;
  }
}

.voice__sign {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 3rem;
  font-style: normal;
  flex-wrap: wrap;
}
.voice__sign small {
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--fg-dim);
}
.voice__sign b {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.875rem);
  font-weight: 800;
  color: var(--fg-strong);
  letter-spacing: 0.16em;
}

/* 9-7b. 語りと縦長画像を並べる山場 */
.scene-stand {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}
.scene-stand__in {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
.scene-stand__media { position: relative; }
.scene-stand__vert {
  position: absolute;
  left: clamp(-0.4rem, -1vw, 0rem);
  top: 4%;
  z-index: 3;
  color: var(--c-white);
  opacity: .92;
  text-shadow: 0 2px 24px rgba(32, 36, 40, .85);
}
@media (min-width: 56rem) {
  .scene-stand__in {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 6vw, 5.5rem);
  }
  .scene-stand__media { grid-column: 1; grid-row: 1; }
  .scene-stand__text  { grid-column: 2; grid-row: 1; }
  .scene-stand__vert { left: auto; right: -1.2rem; top: 6%; }
}

/* 9-8. 誘い —— 採用・相談への強い導線 */
.scene-call {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 6rem);
  background: var(--c-film);
  color: var(--c-shironezu);
  isolation: isolate;
  --fg: var(--c-shironezu);
  --fg-strong: var(--c-white);
  --fg-dim: var(--c-hagane);
  --rule: rgba(255, 255, 255, .24);
  --accent: var(--c-shinbashi);
}
.scene-call::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 88% 4%, rgba(89, 185, 198, .22), transparent 58%),
    radial-gradient(60% 100% at 4% 96%, rgba(28, 48, 92, .8), transparent 62%);
}
.scene-call::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .3;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 4px);
}
.scene-call .ghost {
  right: -0.1em;
  bottom: -0.2em;
  font-size: clamp(8rem, 32vw, 26rem);
  color: rgba(255, 255, 255, .045);
}
.scene-call h2 { color: var(--c-white); }
.scene-call .solo { --solo-max: 4.5rem; color: var(--c-white); }
.scene-call p { color: rgba(255, 255, 255, .82); }
.scene-call .lead { color: rgba(255, 255, 255, .88); max-width: 38rem; }
.scene-call__in { position: relative; z-index: 1; }
.scene-call .act { color: var(--c-white); }
.scene-call .act:hover, .scene-call .act:focus-visible { color: var(--c-shinbashi); }
.scene-call .dial { color: var(--c-white); }
.scene-call .dial small { color: rgba(255, 255, 255, .62); }
.scene-call .mark { color: rgba(255, 255, 255, .55); }
.scene-call .mark::before { background: rgba(255, 255, 255, .3); }
.scene-call .vert { color: rgba(255, 255, 255, .55); }
/* 藍色を差した誘い */
.scene-call--sea { background: var(--c-tomekon); }

.acts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* 9-9. 入口 —— 二つの事業への導線（同型カードにしない） */
.gates {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gate { position: relative; }
.gate__no {
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--fg-dim);
  display: block;
  margin-bottom: 0.8rem;
}
.gate h3 {
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2.125rem);
  margin-bottom: 0.9rem;
  line-height: 1.4;
}
.gate p { font-size: 0.9375rem; }
.gate__media { margin-bottom: 1.4rem; position: relative; }
@media (min-width: 56rem) {
  .gates { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; column-gap: clamp(3rem, 6vw, 6rem); }
  .gate:nth-child(2) { margin-top: clamp(3rem, 8vw, 7rem); }
  .gate:nth-child(2) .gate__media { order: 2; margin: 1.4rem 0 0; }
  .gate:nth-child(2) { display: flex; flex-direction: column; }
}

/* 9-10. 断章の区画 —— 縦書きと巨大な一語で組む */
.stanza {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.stanza__in {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}
.stanza__vert { justify-self: start; align-self: center; }
.stanza__text { max-width: 34rem; }
.stanza .solo { --solo-max: 3.5rem; }

/* -------------------------------------------------------------------------
   10. 鯨 —— 案内役と、海面下を進む軌跡
   ------------------------------------------------------------------------- */

.whale-lane {
  position: relative;
  height: clamp(5.5rem, 11vw, 9rem);
  overflow: hidden;
  background: var(--c-white);
}
.whale-lane::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-shironezu) 18%, var(--c-shironezu) 82%, transparent);
}
.whale-lane img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(3.75rem, 7vw, 5.75rem);
  height: auto;
  transform: translate(-50%, -50%);
  background: var(--c-white);
  padding-inline: 1.1rem;
}
.js .whale-lane img { animation: whale-bob 6.5s ease-in-out infinite; }
/* 上下の呼吸だけ。進行方向を表さないため反転しない */
@keyframes whale-bob {
  0%, 100% { transform: translate3d(-50%, -50%, 0) rotate(-1.6deg); }
  50%      { transform: translate3d(-50%, calc(-50% - 7px), 0) rotate(1.6deg); }
}

/* 泳いで横切る鯨 —— 頭の向き（左）に合わせ、右画面外から左画面外へ抜ける */
.whale-lane--swim::before { top: 46%; }
.js .whale-lane--swim img {
  left: 0;
  animation: whale-swim 26s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
@keyframes whale-swim {
  0%   { transform: translate3d(calc(100vw + 20%), -50%, 0) rotate(-3deg); }
  50%  { transform: translate3d(calc(50vw - 50%), calc(-50% - 10px), 0) rotate(2deg); }
  100% { transform: translate3d(-120%, -50%, 0) rotate(-3deg); }
}

/* 海面下を進む軌跡 —— 波形と粒子の帯 */
.wake {
  position: relative;
  height: clamp(7rem, 14vw, 12rem);
  overflow: hidden;
  background-color: var(--c-ginnezu);
  background-image: linear-gradient(180deg, rgba(220, 221, 221, .95), rgba(175, 175, 176, 0));
}
.wake--night {
  background: linear-gradient(180deg, var(--c-sumiiro), var(--c-film));
}
.wake__sea {
  position: absolute;
  inset: 38% 0 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(175, 175, 176, .3) 0 1px, transparent 1px 9px);
  opacity: .8;
}
.wake--night .wake__sea {
  background-image: repeating-linear-gradient(0deg, rgba(139, 147, 154, .34) 0 1px, transparent 1px 9px);
}
.wake__line {
  position: absolute;
  left: 0; right: 0;
  top: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-namari) 14%, var(--c-namari) 86%, transparent);
  opacity: .55;
}
/* 航跡は進行方向（左）の後方＝右側へ残る。グラデーションも右向きへ反転する */
.wake__trail {
  position: absolute;
  top: 52%;
  left: 0;
  width: 46%;
  height: 2px;
  background: linear-gradient(270deg, transparent, rgba(89, 185, 198, .55), rgba(255, 255, 255, .8));
  transform: translate3d(227%, 0, 0);
}
.wake__whale {
  position: absolute;
  top: 52%;
  left: 0;
  width: clamp(3.25rem, 6.5vw, 5rem);
  height: auto;
  transform: translate3d(calc(100vw + 40%), -50%, 0);
  opacity: .9;
}
.js .wake__whale {
  animation: wake-swim 22s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.js .wake__trail {
  animation: wake-trail 22s linear infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@keyframes wake-swim {
  0%   { transform: translate3d(calc(100vw + 40%), -50%, 0) rotate(-4deg); }
  52%  { transform: translate3d(calc(50vw - 50%), calc(-50% - 12px), 0) rotate(3deg); }
  100% { transform: translate3d(-140%, -50%, 0) rotate(-4deg); }
}
@keyframes wake-trail {
  0%   { transform: translate3d(227%, 0, 0); opacity: 0; }
  20%  { opacity: .8; }
  100% { transform: translate3d(-23%, 0, 0); opacity: 0; }
}
/* 粒子（ごく低コスト） */
.wake__spray {
  position: absolute;
  inset: 30% 0 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 40%, var(--c-white), transparent),
    radial-gradient(1.5px 1.5px at 38% 66%, var(--c-white), transparent),
    radial-gradient(1.5px 1.5px at 61% 28%, var(--c-white), transparent),
    radial-gradient(1.5px 1.5px at 84% 58%, var(--c-white), transparent);
}
.js .wake__spray { animation: spray 9s ease-in-out infinite alternate; }
@keyframes spray {
  from { opacity: .3; transform: translate3d(0, 3px, 0); }
  to   { opacity: .65; transform: translate3d(0, -3px, 0); }
}

/* -------------------------------------------------------------------------
   11. 終幕と次の幕・フッター
   ------------------------------------------------------------------------- */

.curtain-end {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  text-align: center;
  background: linear-gradient(180deg, var(--c-shironeri), var(--c-shironezu));
}
.curtain-end.night {
  background: linear-gradient(180deg, var(--c-sumiiro), var(--c-film));
}
.curtain-end .ghost {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: clamp(9rem, 34vw, 24rem);
  color: rgba(220, 221, 221, .42);
}
.curtain-end__in { position: relative; z-index: 1; display: grid; gap: 1.2rem; justify-items: center; }
.curtain-end__word {
  --solo-max: 4.5rem;
  letter-spacing: 0.06em;
}
.curtain-end__whale { width: clamp(4rem, 8vw, 6.5rem); height: auto; }
.js .curtain-end__whale { animation: whale-dive 9s ease-in-out infinite; }
@keyframes whale-dive {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: .95; }
  50%      { transform: translate3d(-14px, -10px, 0) rotate(4deg); opacity: 1; }
}
.curtain-end .vert { margin-inline: auto; }

/* 次の幕へ —— ページ末尾の導線 */
.next {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--c-ginnezu);
  color: var(--c-film);
  --fg: var(--c-film);
  --fg-strong: var(--c-film);
  --fg-dim: var(--c-sumiiro);
  --fg-note: var(--c-film);
  --rule: rgba(32, 36, 40, .32);
  --accent: var(--c-ai);
}
.next::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 120% at 18% 0%, rgba(255, 255, 255, .42), transparent 62%),
    repeating-linear-gradient(0deg, rgba(32, 36, 40, .05) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.next__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  justify-items: start;
}
.next__vert {
  position: absolute;
  right: var(--gutter);
  top: 0;
  color: var(--c-sumiiro);
  font-size: 0.8125rem;
  letter-spacing: 0.44em;
  z-index: 2;
}
.next .act { color: var(--c-film); }
.next .act:hover, .next .act:focus-visible { color: var(--c-ai); }
.next__perf {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, var(--c-white) 9px 21px, transparent 21px 30px);
  background-size: auto 6px;
  background-position: 0 50%;
  background-repeat: repeat-x;
  opacity: .8;
}
.js .next__perf { animation: perf-run 14s linear infinite; }

.foot {
  background: var(--c-white);
  border-top: 1px solid var(--c-shironezu);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: 0.875rem;
}
.foot__in {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.foot__brand img { width: 168px; height: 136px; object-fit: contain; }
.foot__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--c-tomekon);
  letter-spacing: 0.1em;
  margin: 1rem 0 0.15rem;
}
.foot__en {
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--c-sumi);
  margin: 0 0 1.2rem;
  font-weight: 600;
}
.foot address {
  font-style: normal;
  line-height: 1.95;
  color: var(--c-sumi);
  font-size: 0.8125rem;
}
.foot address b {
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--c-ai);
  display: block;
  margin-top: 1rem;
}
.foot address b:first-child { margin-top: 0; }
.foot__nav h2 {
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--c-ai);
  margin-bottom: 1rem;
}
.foot__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.foot__nav a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--c-sumi);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color .3s var(--ease-out), letter-spacing .35s var(--ease-out);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot__nav a:hover, .foot__nav a:focus-visible { color: var(--c-ai); letter-spacing: 0.13em; }
.foot__tel { margin-top: 0.6rem; }
.foot__base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--c-shironeri);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.foot__base small {
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--c-sumi);
}
@media (min-width: 56rem) {
  .foot__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
}

/* -------------------------------------------------------------------------
   12. スマートフォンの常設導線 —— 塗り分けた二分割ボタンにしない
   ------------------------------------------------------------------------- */

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.2rem, 6vw, 2.6rem);
  padding: 1.6rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .92) 42%, var(--c-white));
  pointer-events: none;
}
.dock a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.6rem 0.1rem;
  font-family: var(--f-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--c-film);
  background-image: linear-gradient(var(--c-ai), var(--c-ai));
  background-size: 100% 1px;
  background-position: 0 calc(100% - 0.55rem);
  background-repeat: no-repeat;
  transition: color .3s var(--ease-out), background-size .45s var(--ease-film);
}
.dock a::after {
  content: "→";
  font-family: var(--f-mark);
  font-size: 0.875em;
  transition: transform .38s var(--ease-out);
}
.dock a:hover, .dock a:focus-visible { color: var(--c-ai); background-size: 0% 1px; background-position: 100% calc(100% - 0.55rem); }
.dock a:hover::after, .dock a:focus-visible::after { transform: translateX(0.35em); }
.dock .dock__tel { font-family: var(--f-mark); font-size: 0.9375rem; letter-spacing: 0.02em; }
.dock .dock__tel::after { content: "℡"; transform: none; }
@media (min-width: 62rem) { .dock { display: none; } }
@media (max-width: 61.9375rem) { body { padding-bottom: 4.5rem; } }

/* -------------------------------------------------------------------------
   13. スクロールの浮上と映写
   ------------------------------------------------------------------------- */

.js .rise {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .95s var(--ease-out), transform 1.05s var(--ease-out);
}
.js .rise.is-in { opacity: 1; transform: none; }

.js .rise--l { transform: translate3d(-30px, 0, 0); }
.js .rise--r { transform: translate3d(30px, 0, 0); }
.js .rise--deep { transform: translate3d(0, 52px, 0) scale(.985); }
/* 一コマ送りのように上から落として止める */
.js .rise--frame { transform: translate3d(0, -34px, 0); transition-timing-function: var(--ease-gate); }
.js .rise--l.is-in,
.js .rise--r.is-in,
.js .rise--frame.is-in,
.js .rise--deep.is-in { transform: none; }

.js .rise[data-step="1"] { transition-delay: .09s; }
.js .rise[data-step="2"] { transition-delay: .18s; }
.js .rise[data-step="3"] { transition-delay: .27s; }
.js .rise[data-step="4"] { transition-delay: .36s; }
.js .rise[data-step="5"] { transition-delay: .45s; }

/* 見出しの色が定まる */
.js .tint { color: var(--fg-dim); transition: color 1.1s var(--ease-out); }
.js .tint.is-in { color: var(--fg-strong); }

/* 縦書き断章の移動 */
.js .vert-move {
  opacity: 0;
  transform: translate3d(0, -34px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
}
.js .vert-move.is-in { opacity: 1; transform: none; }

/* 一語ずつ光が回る（強調語） */
.js .solo .max,
.js .solo .big { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .rise .solo .max,
.js .rise .solo .big { opacity: 0; transform: translate3d(0, 0.14em, 0); }
.js .rise.is-in .solo .max,
.js .rise.is-in .solo .big { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   14. 開幕演出とページ遷移（フィルムゲート）
   ------------------------------------------------------------------------- */

.reel {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
  contain: strict;
}
/* フィルムゲート —— 上下から閉じ、水平線から開く */
.reel__gate {
  position: absolute;
  inset: 0;
  background: var(--c-film);
  clip-path: inset(50% 0 50% 0);
}
.reel__gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(89, 185, 198, .16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 4px);
}
/* 上下を走るパーフォレーション */
.reel__sprock {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 16px;
  opacity: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 12px, var(--c-hagane) 12px 28px, transparent 28px 40px);
  background-size: auto 8px;
  background-position: 0 50%;
  background-repeat: repeat-x;
}
.reel__sprock--t { top: 10px; }
.reel__sprock--b { bottom: 10px; }
/* 映写機の点滅 */
.reel__flicker {
  position: absolute;
  inset: 0;
  background: var(--c-white);
  opacity: 0;
}
/* 画面を横断する白鯨 —— 右画面外で待機し、右から左へ渡る */
.reel__whale {
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(4.5rem, 11vw, 8.5rem);
  height: auto;
  opacity: 0;
  transform: translate3d(130vw, -50%, 0);
  backface-visibility: hidden;
}
/* 一瞬だけ出す幕表示 */
.reel__act {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  text-align: center;
  color: var(--c-white);
  white-space: nowrap;
}
.reel__act b {
  display: block;
  font-family: var(--f-stage);
  font-weight: 900;
  font-size: clamp(1.75rem, 7vw, 4rem);
  letter-spacing: 0.22em;
  line-height: 1.1;
}
.reel__act small {
  display: block;
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--c-hagane);
  margin-top: 0.7rem;
}

/* 送り出す —— 520ms でフィルムが回り、ゲートが閉じる */
.reel.is-out { visibility: visible; }
.reel.is-out .reel__gate { animation: gate-close .34s var(--ease-gate) forwards; }
.reel.is-out .reel__sprock { animation: sprock-run .52s linear forwards; }
.reel.is-out .reel__flicker { animation: flicker .3s steps(2) 1; }
.reel.is-out .reel__whale { animation: whale-cross .5s var(--ease-film) .1s forwards; }
.reel.is-out .reel__act { animation: act-flash .42s var(--ease-out) .16s forwards; }
@keyframes gate-close { to { clip-path: inset(0 0 0 0); } }
@keyframes sprock-run {
  0%   { opacity: 0; transform: translate3d(0, 0, 0); }
  22%  { opacity: .85; }
  100% { opacity: .85; transform: translate3d(-160px, 0, 0); }
}
@keyframes flicker {
  0%   { opacity: 0; }
  40%  { opacity: .28; }
  100% { opacity: 0; }
}
/* 退出側：右画面外から入り、画面中ほどまで進む */
@keyframes whale-cross {
  0%   { opacity: 0; transform: translate3d(130vw, -50%, 0) rotate(-4deg); }
  30%  { opacity: 1; }
  100% { opacity: 1; transform: translate3d(30vw, -50%, 0) rotate(3deg); }
}
@keyframes act-flash {
  0%   { opacity: 0; transform: translate3d(-50%, -46%, 0); }
  40%  { opacity: 1; transform: translate3d(-50%, -50%, 0); }
  100% { opacity: 1; transform: translate3d(-50%, -50%, 0); }
}

/* 受け取る —— 水平線のワイプで幕が開く（480ms） */
.reel.is-in-anim { visibility: visible; }
.reel.is-in-anim .reel__gate { animation: gate-open .48s var(--ease-gate) .06s forwards; }
.reel.is-in-anim .reel__sprock { animation: sprock-out .4s linear forwards; }
.reel.is-in-anim .reel__whale {
  opacity: 1;
  animation: whale-exit .46s var(--ease-film) forwards;
}
.reel.is-in-anim .reel__act { animation: act-fade .3s linear forwards; }
@keyframes gate-open {
  0%   { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(50% 0 50% 0); }
}
@keyframes sprock-out {
  0%   { opacity: .85; transform: translate3d(-160px, 0, 0); }
  100% { opacity: 0; transform: translate3d(-280px, 0, 0); }
}
/* 到着側：退出側の終点をそのまま受け取り、左画面外へ抜ける */
@keyframes whale-exit {
  0%   { opacity: 1; transform: translate3d(30vw, -50%, 0) rotate(3deg); }
  100% { opacity: 0; transform: translate3d(-27vw, -50%, 0) rotate(-2deg); }
}
@keyframes act-fade { to { opacity: 0; } }

/* 開幕（初回のみ・スキップ可・1.8秒以内に本文を見せ始める） */
.overture[hidden] { display: none; }
.overture {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: var(--c-film);
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  animation: overture-open .62s var(--ease-gate) .95s forwards;
}
.overture__flicker {
  position: absolute;
  inset: 0;
  background: var(--c-white);
  opacity: 0;
  animation: overture-flicker .5s steps(1) 1;
}
@keyframes overture-flicker {
  0%   { opacity: .5; }
  12%  { opacity: 0; }
  24%  { opacity: .22; }
  36%  { opacity: 0; }
  52%  { opacity: .1; }
  100% { opacity: 0; }
}
/* フィルムカウント */
.overture__count {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(5rem, 16vw, 9rem);
  height: clamp(5rem, 16vw, 9rem);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: overture-ring 1.1s var(--ease-out) both;
}
.overture__count::before,
.overture__count::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .34);
}
.overture__count::before { left: 0; right: 0; height: 1px; }
.overture__count::after { top: 0; bottom: 0; width: 1px; }
.overture__count b {
  grid-area: 1 / 1;
  font-family: var(--f-mark);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: overture-num .3s steps(1) both;
}
.overture__count b:nth-child(2) { animation-delay: .3s; }
.overture__count b:nth-child(3) { animation-delay: .6s; }
@keyframes overture-num {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
/* 上下を走る送り穴 */
.overture__sprock {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 16px;
  background-image: repeating-linear-gradient(90deg, transparent 0 12px, var(--c-hagane) 12px 28px, transparent 28px 40px);
  background-size: auto 8px;
  background-position: 0 50%;
  background-repeat: repeat-x;
  opacity: .8;
  animation: overture-sprock 1.3s linear both;
}
.overture__sprock--t { top: 12px; }
.overture__sprock--b { bottom: 12px; }
@keyframes overture-sprock {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-280px, 0, 0); }
}
/* 暗い海を横切る白鯨 —— 右画面外から入り、左画面外へ抜ける */
.overture__whale {
  position: absolute;
  left: 0;
  top: 52%;
  width: clamp(5rem, 14vw, 10rem);
  height: auto;
  opacity: 0;
  /* 画面外から画面外へ通り抜ける動きなので、減速して止まる曲線ではなく
     一定の速さで渡らせる。終端で急に消えたように見せない */
  animation: overture-whale 1.15s linear .34s both;
  backface-visibility: hidden;
}
@keyframes overture-whale {
  0%   { opacity: 0; transform: translate3d(112vw, -50%, 0) rotate(-5deg); }
  26%  { opacity: 1; }
  100% { opacity: 1; transform: translate3d(-24vw, -50%, 0) rotate(3deg); }
}
/* 夜の海の水平線 */
.overture__horizon {
  position: absolute;
  left: 0; right: 0;
  top: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(89, 185, 198, .7), transparent);
  transform: scaleX(0);
  animation: overture-horizon .9s var(--ease-out) .2s both;
}
@keyframes overture-horizon { to { transform: scaleX(1); } }
@keyframes overture-ring {
  0%   { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.86) rotate(-8deg); }
  45%  { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(1.04); }
}
/* 白い舞台が水平線から開く */
@keyframes overture-open {
  0%   { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(50% 0 50% 0); }
}
.overture.is-skipped { animation: overture-cut .22s linear forwards; }
@keyframes overture-cut { to { opacity: 0; visibility: hidden; } }
.overture__skip {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1.2rem, 4vw, 2.5rem);
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  color: var(--c-hagane);
}

/* -------------------------------------------------------------------------
   15. お問い合わせ —— 舞台台本のような記入面
   ------------------------------------------------------------------------- */

.script {
  position: relative;
  display: grid;
  gap: clamp(1.6rem, 3.2vw, 2.6rem);
  max-width: 44rem;
}
.script__lead { margin: 0; }

.field {
  position: relative;
  display: grid;
  gap: 0.35rem;
}
.field > label {
  font-family: var(--f-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 0.9em;
}
.field__req {
  font-family: var(--f-mark);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--c-ai);
}
.field__opt {
  font-family: var(--f-mark);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--fg-note);
}
/* 四角い箱を並べない —— 下線と余白だけで受ける */
.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.6rem 0.2rem 0.7rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--fg-strong);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-dim); opacity: .8; }
.field input:hover,
.field textarea:hover { border-bottom-color: var(--fg-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--c-shinbashi);
  border-bottom-width: 2px;
  padding-bottom: calc(0.7rem - 1px);
  background-color: rgba(89, 185, 198, .06);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--c-shinbashi); outline-offset: 4px; }
/* 記入欄の左に立てる幕番号 */
.field__no {
  position: absolute;
  left: -2.4rem;
  top: 0.1rem;
  font-family: var(--f-mark);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
}
@media (max-width: 52rem) { .field__no { display: none; } }

/* 入力の誤りは色だけで示さず、日本語の文でも示す */
.field__err {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #ffb4a2;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.field__err::before { content: "！"; font-weight: 700; }
.field__err[hidden] { display: none; }
.field.is-bad input,
.field.is-bad textarea { border-bottom-color: #ffb4a2; }
/* 明るい面での誤り表示 */
.script:not(.night) .field__err { color: #a4361f; }
.script:not(.night) .field.is-bad input,
.script:not(.night) .field.is-bad textarea { border-bottom-color: #a4361f; }

/* 送信操作 —— 枠も塗りも持たない文字の操作 */
.send {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  min-height: 44px;
  padding: 0.7em 0.1em;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  color: var(--fg-strong);
  font-family: var(--f-display);
  font-size: clamp(1.0625rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: color .3s var(--ease-out), letter-spacing .4s var(--ease-out);
}
.send__word {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.22em;
  transition: background-size .5s var(--ease-film);
}
.send::after {
  content: "→";
  font-family: var(--f-mark);
  transition: transform .42s var(--ease-out);
}
.send::before {
  content: "";
  width: 2.4em;
  height: 0.45em;
  flex: none;
  background: repeating-linear-gradient(90deg, var(--fg-dim) 0 0.4em, transparent 0.4em 0.8em);
  opacity: .6;
  /* 座標移動へ steps() を使わず、連続した曲線で送る */
  transition: transform .45s var(--ease-out), opacity .3s linear;
}
.send:hover, .send:focus-visible { color: var(--accent); letter-spacing: 0.2em; }
.send:hover .send__word, .send:focus-visible .send__word { background-size: 0% 1px; }
.send:hover::after, .send:focus-visible::after { transform: translate3d(0.7em, 0, 0); }
.send:hover::before, .send:focus-visible::before { opacity: 1; transform: translate3d(0.8em, 0, 0); }

/* 送信状態のお知らせ */
.script__status {
  margin: 0;
  min-height: 1.9em;
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-family: var(--f-display);
  font-weight: 700;
}
.script__status:not(:empty) {
  border-left: 2px solid var(--c-shinbashi);
  padding-left: 0.9rem;
}
.script__foot {
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  font-size: 0.8125rem;
  line-height: 1.95;
  color: var(--fg-note);
}
.script noscript p {
  font-size: 0.875rem;
  color: var(--fg);
  border-left: 2px solid var(--rule);
  padding-left: 0.9rem;
}

/* 送信の同意 —— 枠も塗りも持たせず、記入面の余白に沿わせる */
.script__consent { display: grid; gap: 0.35rem; }
/* 送信前の取扱説明 —— 既存の注記と同じ大きさで、同意の直前に置く */
.script__handling {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--fg-note);
}
.script__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--fg);
  cursor: pointer;
}
.script__agree input {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin: 0.45em 0 0;
  accent-color: var(--c-ai);
}
.script__agree input:focus-visible { outline: 2px solid var(--c-shinbashi); outline-offset: 3px; }
.script:not(.night) .script__agree.is-bad { color: #a4361f; }
.script.night .script__agree.is-bad { color: #e6b3a6; }

/* ボットよけ —— 画面にも支援技術にも出さない */
.script__hp {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 送信結果の受け皿 —— 画面には出さず、現在のページを保つ */
.script__sink {
  display: block;
  width: 0;
  height: 0;
  border: 0;
  overflow: hidden;
}

/* 送信中はもう一度押せない */
.send[disabled] { opacity: .55; cursor: default; pointer-events: none; }

/* 記入面が一項目ずつ映写される */
.js .field { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js .field.is-in { opacity: 1; transform: none; }
.js .field[data-step="1"] { transition-delay: .06s; }
.js .field[data-step="2"] { transition-delay: .14s; }
.js .field[data-step="3"] { transition-delay: .22s; }
.js .field[data-step="4"] { transition-delay: .3s; }
.js .field[data-step="5"] { transition-delay: .38s; }

/* 問い合わせの記入面（白い舞台） */
.desk {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--c-white), var(--c-shironeri) 70%, var(--c-white));
}
.desk__in {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
/* 記入面のわきに立てる縦書き。フォームへ重ならないよう本文の流れの中へ置く */
.desk__vert {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-start;
  gap: clamp(0.9rem, 3vw, 2rem);
}
@media (min-width: 56rem) {
  .desk__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
}

/* お問い合わせの入口一覧（カードにしない） */
.errands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  counter-reset: errand;
}
.errands > li {
  counter-increment: errand;
  position: relative;
  padding-left: 2.6rem;
  border-left: 1px solid var(--rule);
}
.errands > li::before {
  content: counter(errand, decimal-leading-zero);
  position: absolute;
  left: 0.8rem;
  top: 0.25rem;
  font-family: var(--f-mark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
}
.errands h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.3rem;
  color: var(--fg-strong);
}
.errands p { font-size: 0.875rem; margin: 0; line-height: 1.95; color: var(--fg); }

/* -------------------------------------------------------------------------
   16. カーソル追従
   ------------------------------------------------------------------------- */

.cursor,
.cursor-dot { display: none; }

@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    pointer-events: none;
    z-index: 110;
    opacity: 0;
    transition: opacity .3s linear;
  }
  .js .cursor.is-live { opacity: 1; }
  .js .cursor__ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--c-namari);
    border-radius: 50%;
    transform: scale(.53);
    transition: transform .34s var(--ease-out), border-color .3s linear, background-color .3s linear;
  }
  .js .cursor.is-near .cursor__ring {
    transform: scale(1);
    border-color: var(--c-shinbashi);
    background: rgba(89, 185, 198, .07);
  }
  .js .cursor img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 20%;
    opacity: 0;
    transform: scale(.45) rotate(-14deg);
    transition: opacity .3s linear, transform .44s var(--ease-out);
  }
  .js .cursor.is-near img { opacity: 1; transform: none; }
  .js .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: var(--c-ai);
    border-radius: 50%;
    pointer-events: none;
    z-index: 111;
    opacity: 0;
    transition: opacity .3s linear;
  }
  .js .cursor-dot.is-live { opacity: 1; }
  .js .cursor-dot.is-live.is-near { opacity: 0; }
}

/* -------------------------------------------------------------------------
   17. 画面幅ごとの調整
   ------------------------------------------------------------------------- */

@media (max-width: 25rem) {
  :root { --gutter: 1.05rem; }
  body { line-height: 1.95; }
  .head__brand img { width: 48px; height: 39px; }
  .head__tel b { font-size: 0.9375rem; }
  .nav ul { gap: 0.05rem 0.5rem; }
  .nav a { font-size: 0.6875rem; letter-spacing: 0.01em; }
  .foot__brand img { width: 132px; height: 107px; }
  .dock { gap: 1rem; }
  .dock a { font-size: 0.75rem; letter-spacing: 0.04em; }
}

@media (max-width: 34rem) {
  .vert { letter-spacing: 0.24em; }
  .vert--huge { font-size: clamp(2.25rem, 13vw, 4rem); }
  .ledger dt { letter-spacing: 0.14em; }
  .stanza__in { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; }
}

/* 縦書きが読めない幅では横書きへ切り替える */
@media (max-width: 22rem) {
  .vert, .vert--huge {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0.16em;
  }
  .vert--rule { border-right: 0; border-bottom: 1px solid var(--rule); padding: 0 0 0.5rem; }
}

/* -------------------------------------------------------------------------
   18. 動きを控える設定・低性能端末・印刷
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .rise,
  .js .vert-move,
  .js .field { opacity: 1 !important; transform: none !important; }
  .js .rise .solo .max,
  .js .rise .solo .big { opacity: 1 !important; transform: none !important; }
  .js .frame__plate img { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .frame__plate::after { opacity: 0 !important; }
  .js .cut__frame { opacity: .55 !important; }
  /* ロゴは浮上・拡大・ぼかしを行わず、流し込みの位置で静止させる。
     中央へ重ねないので、タイトル文字と重ならない */
  .js .open__logo {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    left: auto;
    top: auto;
    margin: 0 0 0 clamp(-0.6rem, -0.7vw, 0rem);
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    z-index: 8 !important;
  }
  .js .open__logo picture { animation: none !important; transform: none !important; }
  .js .open__logo::after { animation: none !important; opacity: .5 !important; }
  /* タイトル群は退場させず、意味のある文字をそのまま残す */
  .js .open__cry,
  .js .open__business,
  .js .open__business-label,
  .js .open__h1,
  .js .open__sub {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .perf__run, .strip-say__run, .whale-lane img,
  .wake__whale, .wake__trail, .wake__spray, .next__perf { animation: none !important; }
  .reel, .overture { display: none !important; }
  .cursor, .cursor-dot { display: none !important; }
}

/* 背景タブなど画面が見えていないあいだ、続きものの動きを止める。
   linear のループを一時停止・再開するだけなので、戻ったときに跳ねない */
.hg-away .perf__run,
.hg-away .strip-say__run,
.hg-away .whale-lane img,
.hg-away .wake__whale,
.hg-away .wake__trail,
.hg-away .wake__spray,
.hg-away .curtain-end__whale,
.hg-away .open__logo::after { animation-play-state: paused; }

/* 負荷の高い端末では連続する動きと重い効果を止める */
.low-power .perf__run,
.low-power .strip-say__run,
.low-power .whale-lane img,
.low-power .wake__whale,
.low-power .wake__trail,
.low-power .wake__spray,
.low-power .next__perf,
.low-power .open__logo::after,
.low-power .overture__flicker,
.low-power .reel__flicker,
.low-power .curtain-end__whale { animation: none !important; }
.low-power .js .frame__plate img,
.low-power .frame__plate img { filter: none !important; }
/* せり出しは残し、負荷の高いぼかしだけを外す */
.low-power .js .open__logo { filter: none !important; }
.low-power .frame__beam,
.low-power .scanline { display: none !important; }
.low-power .cursor,
.low-power .cursor-dot { display: none !important; }
.low-power .head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--c-white); }

@media print {
  .head, .dock, .reel, .overture, .cursor, .cursor-dot,
  .strip-say, .whale-lane, .wake, .perf, .cut { display: none !important; }
  body { color: #000; }
  .js .rise, .js .vert-move, .js .field { opacity: 1 !important; transform: none !important; }
  /* 印刷ではロゴを流し込みの位置へ戻し、タイトル文字と重ねずに両方を残す */
  .js .open__logo {
    position: relative; grid-column: 1; grid-row: 1; left: auto; top: auto;
    margin: 0 0 0 clamp(-0.6rem, -0.7vw, 0rem);
    opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important;
  }
  .js .open__logo picture { animation: none !important; transform: none !important; }
  .js .open__cry, .js .open__business, .js .open__business-label,
  .js .open__h1, .js .open__sub {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .js .frame__plate img { opacity: 1 !important; filter: none !important; }
  .scene-call, .next, .night { background: #fff !important; color: #000 !important; }
  .scene-call h2, .scene-call p, .scene-call .lead,
  .next .act, .night p, .night .lead, .night .solo { color: #000 !important; }
}
