/* ============================================================
   KITAMURA PLANNING INC. — prototype v3 / 事業内容ページ群
   「ビンとクリップ」専用CSS（一覧1枚＋詳細4枚で共有・自己完結）

   台本: creative/projects/2026-05-04-corporate-website/
         2026-07-08-services-powerup-script.md
   コンセプト:
   - 一覧 services.html ＝「マルチビュー」。コントロールルームの
     2×2モニターがドリーバック（scale 2→1）で開帳する
   - 詳細4枚 ＝「クリップを開く」。黒ヒーロー（C01〜C04・TC付き）を
     紙の企画書が覆いかぶさり、読み終えると NEXT CLIP 帯で回遊する

   共有 styles.css / main.js には依存しない（top-b 方式。
   必要な紙世界コンポーネントはここに複製。他ページへの回帰リスクゼロ）。

   三重フォールバック（既存規約踏襲）:
   - 基本レイアウト（素の規則）= no-JS / CDN失敗 / reduced-motion 向けの
     静的な縦積み表示。全コンテンツが読める
   - html.js のときだけ sticky 区間・オーバーレイ・潜在状態を上書き適用
   ============================================================ */

:root {
  --ink: #0A0A0A;
  --paper: #FAF8F5;
  --vermilion: #B8482E;
  --muted-dark: rgba(250, 248, 245, 0.62);
  --muted-light: #6B6661;
  --hairline-dark: rgba(250, 248, 245, 0.14);
  --hairline-light: #E4E0DB;
  --font-jp: "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --header-height: 64px;
  --gutter: clamp(24px, 5vw, 72px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: #57524C transparent;
}

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip はスクロールコンテナを作らず position: sticky と共存できる（top-b と同一） */
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }

::selection { background: var(--vermilion); color: var(--paper); }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #57524C;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #7A746D; background-clip: padding-box; border: 2px solid transparent; }

:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--vermilion);
  outline-offset: 4px;
}

/* モバイル専用の改行制御（761px以上では改行しない。styles.cssと同一規則） */
@media (min-width: 761px) {
  br.br-sp { display: none; }
}

/* 見出しの「語のまとまり」は内部で折り返さない（改行は br.br-sp と、
   .nowrap 同士の間に置いた <wbr> だけで起きる。WebKit は隣接する nowrap
   span の間を改行機会と見なさないため <wbr> を明示する）。
   ヒーロー見出しは JS で1文字ずつ inline-block に分解されるため、これが
   無いと任意の文字間で折れる（2026-08-19 iPhone Safari で「よ／くある質問」
   の1文字落ち。デスクトップ WebKit でも「プロモーショ／ン映像制作」） */
.nowrap { white-space: nowrap; }

/* ---------- Loading veil ---------- */

.veil {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  pointer-events: none;
}

.veil::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  background: var(--vermilion);
  opacity: 0.9;
}

html.js .veil { display: block; }

/* ============================================================
   映像記号(A): タイムコード（詳細4枚のみ。クリップ C01〜C04・
   全長 00:00:15:00＝360F。fixed・JS駆動。no-JS/reduced-motionでは非表示）
   ============================================================ */

.tc {
  display: none;
  position: fixed;
  left: var(--gutter);
  bottom: 20px;
  z-index: 120;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(250, 248, 245, 0.6);
  transition: color 0.5s ease;
  pointer-events: none;
}

html.js .tc { display: block; }

html.is-paper-mode .tc { color: var(--muted-light); }

/* ============================================================
   Header（top-b と同一文法: 黒開幕→is-scrolledで黒地→is-on-paperで紙）
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  padding: 0 var(--gutter);
  color: rgba(250, 248, 245, 0.94);
  background: rgba(10, 10, 10, 0.78);
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
  border-bottom: 1px solid transparent;
}

html.js .site-header { background: transparent; }

html.js .site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline-dark);
}

.site-header.is-on-paper { color: var(--ink); }
html.js .site-header.is-on-paper.is-scrolled {
  background: rgba(250, 248, 245, 0.88);
  border-bottom-color: var(--hairline-light);
}

.site-logo { display: inline-flex; align-items: center; transition: opacity 0.4s ease; }
.site-logo:hover { opacity: 0.6; }

.site-logo__jp {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.4s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.55s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.site-nav a[aria-current="page"] { color: var(--vermilion); }
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--vermilion);
}

/* ============================================================
   映像記号(B): ファインダー記号（コーナートンボ4点＋センタークロス。
   黒世界のスチールのみ。紙世界には出さない）
   ============================================================ */

.finder {
  --fc: rgba(250, 248, 245, 0.7);
  position: absolute;
  inset: 10px;
  pointer-events: none;
  opacity: 0.5; /* 実効 35%。ホバー時 opacity 1 ＝ 70%（時限トランジション可） */
  transition: opacity 0.45s ease;
  background-image:
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc));
  background-position:
    center center, center center,
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
  background-size:
    22px 1px, 1px 22px,
    16px 1px, 1px 16px,
    16px 1px, 1px 16px,
    16px 1px, 1px 16px,
    16px 1px, 1px 16px;
  background-repeat: no-repeat;
}

/* ============================================================
   黒世界ヒーロー共通コピー（一覧S0・詳細D1。page-hero__* を黒地仕様で再定義）
   ============================================================ */

.page-hero__label {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--muted-dark);
}

.page-hero__eyebrow {
  margin: 0 0 22px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(250, 248, 245, 0.78);
}

.page-hero__title {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(44px, 6.6vw, 92px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
  color: rgba(250, 248, 245, 0.98);
}

.page-hero__rule {
  width: 72px;
  height: 1px;
  margin: clamp(28px, 3.6vw, 44px) 0 0;
  background: var(--vermilion);
}

.page-hero__lead {
  margin: clamp(28px, 3.6vw, 44px) 0 0;
  max-width: 680px;
  font-size: 15px;
  line-height: 2.3;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}

.page-hero__lead strong {
  font-weight: 500;
  color: rgba(250, 248, 245, 0.95);
}

/* ============================================================
   一覧 S0＋S1「マルチビュー」
   基本レイアウト（no-JS / モバイル）= ヒーロー1枚＋4窓の縦積み
   ============================================================ */

.mv { position: relative; background: var(--ink); }

.mv__sticky { position: relative; background: var(--ink); }

/* --- S0 テキスト面 --- */

.mv-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mv-hero__bg {
  position: absolute;
  inset: 0;
  margin: 0;
}

.mv-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 読み物照度（テキスト可読のため暗め） */
  filter: brightness(0.6) saturate(0.85);
}

.mv-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.16) 45%, rgba(10, 10, 10, 0.62) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.34) 0%, transparent 55%);
}

.mv-hero__copy {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-height) + 32px) var(--gutter) 56px;
  max-width: 980px;
}

/* --- 2×2 グリッド（基本＝縦積み） --- */

.mv-grid {
  display: grid;
  gap: clamp(48px, 8vw, 80px);
  padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(72px, 10vw, 120px);
  background: var(--ink);
}

.mv-win {
  display: block;
  position: relative;
}

.mv-win__media {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.mv-win__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* TOPシーン2と同一グレード＝「あの現場だ」の認知 */
  filter: brightness(0.85) saturate(0.85);
  transition: filter 0.5s ease;
}

/* burn-in TC（マルチビューモニターの流儀）はデスクトップJS時のみ */
.mv-win__tc { display: none; }

.mv-win__label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 16px 0 0;
  color: var(--paper);
}

.mv-win__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(250, 248, 245, 0.66);
}

.mv-win__name {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-feature-settings: "palt" 1;
}

.mv-win__cap { margin-top: 10px; }

.mv-win__quote {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
}

.mv-win__cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--vermilion);
}

/* JS時のみ使う暗幕（S0の読み物照度 → S1で素材照度へ開く） */
.mv-scrim { display: none; }

/* ============================================================
   一覧 S2「紙の台帳」（quoteはS1へ移設済み＝番号・題・本文・リンクのみ）
   ============================================================ */

.ledger {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(56px, 7vw, 96px);
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: clamp(140px, 16vw, 240px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(44px, 5vw, 64px) 0 clamp(40px, 4.6vw, 56px);
}

.entry__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--hairline-light);
}

.entry__number {
  font-family: var(--font-serif);
  font-size: clamp(64px, 7vw, 100px);
  font-style: italic;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: #D9D3CC;
  transition: color 0.6s ease;
}

.entry:hover .entry__number { color: var(--vermilion); }

.entry__title {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.4vw, 33px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
  color: var(--ink);
}

.entry__description {
  margin: 0 0 22px;
  max-width: 660px;
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: 0.03em;
  color: var(--muted-light);
}

.hairline {
  height: 1px;
  background: var(--hairline-light);
}

.text-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--vermilion);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.55s var(--ease-out);
  padding-bottom: 3px;
}

.text-link:hover,
.text-link:focus-visible { background-size: 100% 1px; }

/* ============================================================
   詳細 D1「クリップの頭」— 黒ヒーロー（sticky-cover: 紙が覆いかぶさる）
   ============================================================ */

.clip-head {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.clip-head__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.clip-head__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* TOPと同一グレード（静的） */
  filter: brightness(0.85) saturate(0.85);
  will-change: transform;
}

.clip-head__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.44) 0%, rgba(10, 10, 10, 0.18) 42%, rgba(10, 10, 10, 0.58) 100%);
}

/* 紙被覆時の照度落ち（brightness 0.85→0.7 相当。scrub対象はopacityのみ） */
.clip-head__dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--ink);
  opacity: 0;
}

.finder--hero { inset: 14px; }

.clip-head__copy {
  position: relative;
  z-index: 4;
  padding: calc(var(--header-height) + 24px) var(--gutter) 48px;
  max-width: 1000px;
}

/* pin中の紙フレームイン用スクロール滑走路（基本レイアウトでは0） */
.clip-runway { height: 0; background: transparent; }

/* ============================================================
   詳細 紙世界（D2〜D5コンテナ。z-indexでヒーローを覆う）
   ============================================================ */

.svc-paper {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
}

/* --- D2 リード（D1から移設） --- */

.paper-head {
  padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(24px, 3vw, 40px);
  background: var(--paper);
}

.svc-lead {
  margin: 0 0 0 clamp(0px, 16vw, 230px);
  max-width: 720px;
  font-size: 15px;
  line-height: 2.3;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

/* --- D2 中央引用（読みの進行塗りはJSが .char のcolorを所有） --- */

.detail-quote {
  padding: clamp(72px, 9vw, 128px) var(--gutter);
  background: var(--paper);
  text-align: center;
}

.detail-quote__text {
  margin: 0 auto;
  max-width: 920px;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.08em;
  font-feature-settings: "palt" 1;
  color: var(--ink);
}

.detail-quote__note {
  margin: 28px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--muted-light);
}

/* --- D3 本文セクション群（既存コンポーネント複製） --- */

.page-section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: #FFFFFF;
}

.page-section--paper { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: clamp(90px, 10vw, 150px) 1fr;
  align-items: end;
  gap: 20px;
  padding-bottom: clamp(28px, 3.4vw, 44px);
}

.section-head__index {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--muted-light);
}

.section-head__title {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-feature-settings: "palt" 1;
  color: var(--ink);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 56px);
  padding-top: 8px;
}

.business-line {
  position: relative;
  padding: 28px 0 26px;
  border-top: 1px solid var(--hairline-light);
}

.business-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-out);
}

.business-line:hover::after { transform: scaleX(1); }

.business-line__name {
  margin: 0 0 16px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-feature-settings: "palt" 1;
  color: var(--ink);
}

.business-line__description {
  margin: 0 0 22px;
  max-width: 480px;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--muted-light);
}

.pillar-no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.1em;
  color: var(--vermilion);
}

/* 工程線ドロー: .process 左端の1px縦ライン。先端＝今読んでいる工程の位置。
   --pline はJS(scrub)が所有。no-JSでは1（引かれた状態） */
.process {
  position: relative;
  margin: 0;
  padding-left: clamp(18px, 2vw, 28px);
}

.process::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: var(--hairline-light);
  transform: scaleY(var(--pline, 1));
  transform-origin: 50% 0;
}

html.js .process::before { transform: scaleY(var(--pline, 0)); }

.process__row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(120px, 13vw, 180px) 1fr;
  gap: 32px;
  padding: 26px 0;
}

.process__row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--hairline-light);
  transform: scaleX(var(--rl, 1));
  transform-origin: 0 50%;
}

.process__row:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--hairline-light);
}

.process__step {
  margin: 0;
  padding-top: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--vermilion);
}

.process__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-feature-settings: "palt" 1;
  color: var(--ink);
}

.process__desc {
  margin: 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--muted-light);
}

.client-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
}

.client-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-light);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.client-list li span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.stat { border-top: 1px solid var(--hairline-light); padding-top: 18px; }

.stat__value {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.1;
  color: var(--ink);
}

.stat__label {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted-light);
}

.section-note {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--muted-light);
}

.back-link-row { margin-top: clamp(40px, 5vw, 64px); }

/* --- D4 CTA（台本 §2-1: CTAは紙世界。黒地から紙地へ変更） --- */

.cta-block {
  padding: clamp(90px, 11vw, 150px) var(--gutter);
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--hairline-light);
}

.cta-block__label {
  margin: 0 0 clamp(32px, 4vw, 48px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--muted-light);
}

.cta-block__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-feature-settings: "palt" 1;
}

.cta-block__text {
  margin: 24px 0 36px;
  max-width: 640px;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

/* ============================================================
   詳細 D5「次のクリップ」— 黒帯（回遊。帯全体が <a>）
   ============================================================ */

.next-clip {
  background: var(--ink);
  color: var(--paper);
}

.next-clip__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  min-height: 50vh;
  padding: clamp(48px, 6vw, 80px) var(--gutter);
}

.next-clip__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.next-clip__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted-dark);
}

.next-clip__title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-feature-settings: "palt" 1;
  color: rgba(250, 248, 245, 0.96);
}

.next-clip__no {
  font-family: var(--font-mono);
  font-size: 0.5em;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-dark);
}

.next-clip__arrow {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted-dark);
  transform: translateX(0);
  transition: transform 0.6s var(--ease-out), color 0.5s ease;
}

.next-clip__link:hover .next-clip__arrow,
.next-clip__link:focus-visible .next-clip__arrow {
  transform: translateX(10px);
  color: var(--paper);
}

.next-clip__media {
  position: relative;
  flex: 0 0 40vw;
  max-width: 640px;
  margin: 0;
}

.next-clip__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.85);
  transition: filter 0.5s ease;
}

.next-clip__link:hover .next-clip__media img,
.next-clip__link:focus-visible .next-clip__media img { filter: brightness(1) saturate(0.85); }

.next-clip__link:hover .finder,
.next-clip__link:focus-visible .finder { opacity: 1; }

/* ============================================================
   FOOTER（紙面クレジット。top-b と同一）
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 44px;
  background: var(--paper);
  color: var(--muted-light);
}

.site-footer__rule {
  height: 1px;
  background: var(--hairline-light);
}

.site-footer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
}

.site-footer__wordmark {
  margin: 0;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 10, 0.08);
  user-select: none;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.site-footer__nav a {
  position: relative;
  padding: 2px 0;
  transition: color 0.4s ease;
}

.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.55s var(--ease-out);
}

.site-footer__nav a:hover { color: var(--ink); }
.site-footer__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.site-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-light);
}

.site-footer__copyright,
.site-footer__meta p {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.12em;
}

.site-footer__meta { text-align: right; }

.site-footer__seal {
  position: absolute;
  right: var(--gutter);
  top: -7px;
  width: 14px;
  height: 14px;
}

.seal-svg { display: block; width: 100%; height: 100%; }

.seal-svg__stroke {
  fill: none;
  stroke: var(--vermilion);
  stroke-width: 3;
}

.seal-svg__fill { fill: var(--vermilion); }

/* ============================================================
   MOTION 初期状態（html.js 時のみ。no-JSでは完成状態で静的表示）
   ============================================================ */

.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.char { display: inline-block; }

/* 文字マスク出現はヒーロー見出しのみ（引用の .char は塗り専用＝動かさない） */
html.js .page-hero__title .char { transform: translateY(115%); }

html.js .site-header { opacity: 0; }

html.js .page-hero__label,
html.js .page-hero__eyebrow { opacity: 0; transform: translateY(22px); }
html.js .page-hero__rule { transform: scaleX(0); transform-origin: 0 50%; }
html.js .mv-hero .page-hero__lead { opacity: 0; }

/* 引用の潜像（朗読の進行はJSのcolor scrubが所有） */
html.js .detail-quote__text .char { color: rgba(10, 10, 10, 0.28); }

/* ============================================================
   劇場レイアウト（html.js × デスクトップのみ）
   ============================================================ */

@media (min-width: 769px) {

  /* ---------- 一覧: sticky 340vh（pin 240vh ＋ 退場100vh） ---------- */

  html.js .mv { height: 340vh; }

  html.js .mv__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  /* S0テキスト面はオーバーレイ（背景は scale 2 のグリッド左上窓が担う） */
  html.js .mv-hero {
    position: absolute;
    inset: 0;
    z-index: 3;
    min-height: 0;
    pointer-events: none;
  }

  html.js .mv-hero__bg { display: none; }

  html.js .mv-hero__copy { will-change: transform; }

  /* 2×2 マルチビュー。窓の区切りは描いた枠線ではなく黒ガター（背景が透ける隙間） */
  html.js .mv-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    padding: 0;
    background: var(--ink);
    transform-origin: 0 0;
    transform: scale(2.02); /* 初期＝左上窓がフルスクリーン（ガター非表示のため2.02） */
    will-change: transform;
  }

  /* 開帳前はリンクとして反応させない（見えない窓の誤クリック防止。JSが is-open を付与） */
  html.js .mv-grid { pointer-events: none; }
  html.js .mv-grid.is-open { pointer-events: auto; }

  html.js .mv-win { overflow: hidden; }

  html.js .mv-win__media { position: absolute; inset: 0; overflow: visible; }

  html.js .mv-win__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    /* ドリフト用オーバースキャン（±1.2%パンでも縁が出ない） */
    transform: scale(1.06);
    will-change: transform;
  }

  /* ソースは来る前から回っている: 窓ごとに周期・方向を変えた低速ドリフト */
  html.js .mv-win:nth-child(1) .mv-win__media img { animation: mv-drift-a 52s ease-in-out infinite alternate; }
  html.js .mv-win:nth-child(2) .mv-win__media img { animation: mv-drift-b 61s ease-in-out infinite alternate; }
  html.js .mv-win:nth-child(3) .mv-win__media img { animation: mv-drift-c 47s ease-in-out infinite alternate; }
  html.js .mv-win:nth-child(4) .mv-win__media img { animation: mv-drift-d 57s ease-in-out infinite alternate; }

  /* 窓ラベル＝burn-in（左上）。モバイルの下置きから上書き。
     S0（scale 2）ではヘッダーと衝突するため opacity 0 で待機し、
     開帳の後半でJSがフェードインさせる（台本S0のラベル指定なし／S1で導入） */
  html.js .mv-win__label {
    position: absolute;
    left: 18px;
    top: 14px;
    z-index: 3;
    margin: 0;
    opacity: 0;
  }

  /* 上段2窓のラベルは固定ヘッダーの下に潜らないようオフセット */
  html.js .mv-win:nth-child(-n+2) .mv-win__label {
    top: calc(var(--header-height) + 10px);
  }

  html.js .mv-win__no { font-size: 11px; }
  html.js .mv-win__name { font-size: 15px; }

  /* burn-in TC（左下・4窓同一値でスクロール連動） */
  html.js .mv-win__tc {
    display: block;
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    color: rgba(250, 248, 245, 0.6);
  }

  /* ホバー＝プレビューを取る: 一行＋詳しく見るが窓内下部に現れる */
  html.js .mv-win__cap {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 44px;
    z-index: 3;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
    pointer-events: none;
  }

  html.js .mv-grid.is-open .mv-win:hover .mv-win__cap,
  html.js .mv-grid.is-open .mv-win:focus-visible .mv-win__cap {
    opacity: 1;
    transform: translateY(0);
  }

  /* プレビュー選択: ホバー窓 0.85→1.0、他の3窓は 0.6 へ沈む */
  html.js .mv-grid.is-open:hover .mv-win:not(:hover) .mv-win__media img,
  html.js .mv-grid.is-open:focus-within .mv-win:not(:focus-visible) .mv-win__media img {
    filter: brightness(0.6) saturate(0.85);
  }

  html.js .mv-grid.is-open .mv-win:hover .mv-win__media img,
  html.js .mv-grid.is-open .mv-win:focus-visible .mv-win__media img {
    filter: brightness(1) saturate(0.85);
  }

  html.js .mv-grid.is-open .mv-win:hover .finder,
  html.js .mv-grid.is-open .mv-win:focus-visible .finder { opacity: 1; }

  /* S0の読み物照度（brightness 0.6相当の暗幕。opacityはJS scrubが所有） */
  html.js .mv-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.14) 45%, rgba(10, 10, 10, 0.42) 100%),
      rgba(10, 10, 10, 0.22);
  }

  /* 台帳: 罫線ドローの初期状態（JS scrubで scaleX 0→1） */
  html.js .ledger .entry__line,
  html.js .ledger .hairline {
    transform: scaleX(0);
    transform-origin: 0 50%;
  }

  /* ---------- 詳細: D1 sticky-cover（紙がフレームインして覆う） ---------- */

  html.js .clip-head {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    z-index: 0;
  }

  /* pin 140vh = ヒーロー100vh ＋ 滑走路40vh（この後、紙が100vhかけて覆う） */
  html.js .clip-runway { height: 40vh; }

  /* 工程行の下罫線ドロー初期状態（デスクトップのみ。JSが --rl を駆動） */
  html.js .process__row { --rl: 0; }
}

/* ドリフト keyframes（transformのみ＝合成レイヤーで完結） */
@keyframes mv-drift-a {
  0%   { transform: translate3d(-1.1%, 0.7%, 0) scale(1.06); }
  100% { transform: translate3d(1.1%, -0.7%, 0) scale(1.06); }
}
@keyframes mv-drift-b {
  0%   { transform: translate3d(1.2%, 0.5%, 0) scale(1.06); }
  100% { transform: translate3d(-1.2%, -0.5%, 0) scale(1.06); }
}
@keyframes mv-drift-c {
  0%   { transform: translate3d(-0.9%, -0.8%, 0) scale(1.06); }
  100% { transform: translate3d(0.9%, 0.8%, 0) scale(1.06); }
}
@keyframes mv-drift-d {
  0%   { transform: translate3d(1.0%, -0.6%, 0) scale(1.06); }
  100% { transform: translate3d(-1.0%, 0.6%, 0) scale(1.06); }
}

/* ============================================================
   モバイル（台本の各ブロック簡略化方針）
   ============================================================ */

@media (max-width: 768px) {
  :root { --header-height: 56px; }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav { font-size: 11px; gap: 14px; flex-wrap: wrap; }

  .page-hero__title { font-size: clamp(38px, 11vw, 48px); }

  /* 一覧: stickyなし・縦積み（基本レイアウトのまま）。
     窓ラベルは中央通過の濃度上昇のみ（JS）。TC・ドリフトなし */

  /* 詳細: sticky維持・区間 140vh→100vh（滑走路0）。
     プッシュインはJS側で 1→1.03 に半減 */
  html.js .clip-head {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    z-index: 0;
  }

  html.js .clip-runway { height: 0; }

  .clip-head__copy { padding-bottom: 72px; }

  /* 台帳・セクション */
  .entry { grid-template-columns: 1fr; gap: 18px; }
  .entry__number { font-size: 52px; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 8px; }
  .business-grid { grid-template-columns: 1fr; }
  .process__row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .detail-quote__text { font-size: clamp(20px, 5.6vw, 26px); }
  .svc-lead { margin-left: 0; }
  .page-hero__lead br { display: none; }

  /* NEXT CLIP帯: スチール幅100%・その下にラベル（静的） */
  .next-clip__link {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
    min-height: 0;
    padding: clamp(40px, 10vw, 56px) var(--gutter);
  }

  .next-clip__media { flex: none; max-width: none; }

  .site-footer__top { flex-direction: column; align-items: flex-start; }
  .site-footer__nav { align-items: flex-start; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { text-align: left; }
}

/* ============================================================
   REDUCED MOTION（JS側で全モーション放棄＋ここで時限アニメも停止）
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
