/* ============================================================
   Gojiyuni Official Site — style.css (v6 コラージュの画廊)
   draft.html(トップ試作)でShota承認済みの言語を全ページへ展開。
   設計: アートが主役。レイヤー(重なり)・スケール対比・
   タイポのグラフィック使用(巨大アウトライン文字)で
   「組まれた」画面を作る。色は絵から借りる:
   群青(クジラの青)+朱(絵のコーラル、装飾ワンポイント)。
   WCAG 2.1 AA検証済み: ink15.5 / ink-2 5.3 / blue7.2 /
   紙文字10.0・補助6.6(群青深上) / 朱ラベルは群青深上で#E88A62(4.5)
   ============================================================ */

:root {
  --paper: #F5F2EA;
  --ink: #1D1A16;
  --ink-2: #6A635B;
  --blue: #2B4C9B;        /* 絵のクジラの群青 */
  --blue-deep: #1D3673;
  --ver: #C2542E;         /* 朱 — 装飾・罫のみ(紙上の小さな文字には使わない) */
  --ver-l: #E88A62;       /* 群青深の上の朱ラベル用(4.5:1) */
  --on-dark: #F3EFE6;
  --on-dark-2: #C9C3B8;
  --line: rgba(29, 26, 22, 0.15);
  --line-dark: rgba(243, 239, 230, 0.2);
  --ghost: rgba(29, 26, 22, 0.14);
  --ghost-dark: rgba(243, 239, 230, 0.16);

  --max-w: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --gap: clamp(100px, 14vh, 180px);

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  /* 本文は Zen Kaku Gothic New。Noto Sans JP は「既定のまま感」が出るため使わない
     （個人ポートフォリオでの判断を踏襲。骨格が明朝側と揃うのも利点） */
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  /* 欧文ディスプレイ。下層ページの巨大アウトライン文字だけに使う。
     高コントラストのセリフは大きな欧文では映えるが、数字に使うと
     細部が痩せて読みづらくなったため、数字は明朝の太字に戻した。 */
  --display: "Instrument Serif", "Shippori Mincho", Georgia, serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);

  /* 紙の肌（feTurbulenceの砂嵐）。粒を等方にするため baseFrequency は1値 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans); font-feature-settings: 'palt';
  color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 2; -webkit-font-smoothing: antialiased;
  /* 横スクロール抑止は html の overflow-x:clip に一本化する。
     body に hidden を置くと body 自身がスクロールコンテナ化し、
     IntersectionObserver（リビール）の判定が壊れる */
  line-break: strict;          /* 禁則処理を厳格に（行頭の句読点・閉じ括弧を防ぐ） */
  hanging-punctuation: allow-end;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; }

/* ---------- 日本語の組版（改行位置の規律） ----------
   欧文はスペースで改行するが、日本語は文字単位で改行できてしまうため、
   放置すると文節の途中で切れて読みにくくなる。
   - 見出し: 文節で折り返し（auto-phrase）＋行長を揃える（balance）
   - 本文  : 最終行が1文字だけ残る「孤立行」を防ぐ（pretty）
   auto-phrase 非対応ブラウザ（Safari/Firefox）では通常の折り返しに
   フォールバックするだけなので安全に劣化する。 */
h1, h2, h3, h4,
.sec-title, .hero h1, .page-hero h1, .card h3, .step h3,
.flow-body h3, .tl-body h3, .round h3, .panel h3, .close .big,
.quote-band .q, .voices blockquote, .faq summary {
  word-break: auto-phrase;
  text-wrap: balance;
}
p, .sec-lead, .lead, .hero .sub, .card p, .step p, .flow-body p,
.tl-body p, .round p, .panel p, .legal-body p, .faq-body {
  text-wrap: pretty;
}
/* 文節改行を効かせるのは見出しと短いキャッチだけに限る。
   3行以上の本文にまで効かせると行末が大きく不揃いになり、
   かえって読みにくくなる（本文は pretty による孤立行対策のみ）。 */
.hero .vision, .label, .art-caption, .collage figcaption {
  word-break: auto-phrase;
}
/* 表・箇条書きなど、幅が狭く balance が効きすぎる箇所は素の折り返しに戻す */
.spec-table td, .legal-body li { text-wrap: initial; }

/* PC想定で入れた <br> はモバイルでは無効化し、auto-phrase に委ねる。
   ヒーローの意図的な改行だけは全幅で維持する（.br-keep） */
@media (max-width: 768px) {
  br:not(.br-keep) { display: none; }
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 18px; }
.skip-link:focus { left: 0; }
[id] { scroll-margin-top: 100px; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================================
   質感レイヤー — 紙の肌と網点
   バラバラの油絵を「同じ印刷物の上にある」ように見せるための層。
   本文(z-index:1)より下に敷き、写真や文字自体は濁らせない。
   ============================================================ */
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 200; }

.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); background-size: 150px 150px;
  opacity: 0.26; mix-blend-mode: multiply;
}
/* 網点。一様に敷くとうるさいので mask で四隅だけに薄く出す */
.dots {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.42;
  background-image: radial-gradient(circle at center, var(--ink) 0.8px, transparent 0.9px);
  background-size: 20px 20px;
  -webkit-mask-image:
    radial-gradient(58% 46% at 88% 6%, #000, transparent 70%),
    radial-gradient(52% 44% at 6% 94%, #000, transparent 70%);
  mask-image:
    radial-gradient(58% 46% at 88% 6%, #000, transparent 70%),
    radial-gradient(52% 44% at 6% 94%, #000, transparent 70%);
}
@media (max-width: 768px) {
  .grain { opacity: 0.22; background-size: 125px 125px; }
  .dots { background-size: 16px 16px; opacity: 0.34; }
}
/* 群青の暗幕セクションでは、乗算だと粒が沈むのでスクリーンに切り替える */
.section--navy, .section--black { isolation: isolate; }

/* 読書プログレス — CSSネイティブの scroll-driven animation。
   非対応環境では scaleX(0) のまま＝何も出ない（無害に劣化する） */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 260;
  background: var(--blue); transform: scaleX(0); transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: growX linear both; animation-timeline: scroll(root block); }
}
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 本文リンク */
.sec-lead a, .source-note a, .flip-note a, .table-note a, .faq-body a,
.spec-table td a, .contact-alt a, .legal-body a, .tl-body a, .voices .src a {
  color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.on-dark .sec-lead a, .on-dark .source-note a { color: var(--on-dark); }

/* ---------- Header ----------
   最上部では紙に溶かし、スクロールしたら磨りガラスを敷いて可読性を確保する。
   すりガラスは疑似要素に置く（header本体にbackdrop-filterを付けると、
   fixedなモバイルナビの包含ブロックがヘッダーになってしまうため）。 */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: transparent; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.site-header.is-stuck::before { opacity: 1; border-bottom-color: var(--line); }
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter); max-width: none;
  transition: padding 0.35s var(--ease);
}
.site-header.is-stuck .header-inner { padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: none; }
.brand-name { font-family: var(--sans); font-weight: 900; letter-spacing: 0.22em; font-size: 14px; color: var(--ink); line-height: 1; }
.brand-name sup { font-size: 9px; font-weight: 700; color: var(--blue); letter-spacing: 0.05em; margin-left: 2px; }

.global-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 30px); }
.global-nav a { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-decoration: none; color: var(--ink); padding: 10px 0; }
.global-nav a[aria-current="page"] { border-bottom: 2px solid var(--ver); }
.global-nav .btn { background: var(--ink); color: var(--paper); padding: 12px 22px; border: 0; font-size: 12.5px; }
.global-nav .btn:hover { background: var(--blue); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; position: relative; z-index: 110; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5.5px auto; transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 14px; letter-spacing: 0.1em; line-height: 1;
  padding: 18px 38px; border: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--fill { background: var(--ink); color: var(--paper); }
.btn--fill:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--outline { background: transparent; }
.on-dark .btn, .btn--light, .btn--outline-light { border-color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--outline-light { background: transparent; color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- セクション ---------- */
.section { padding: var(--gap) 0; }
.section--paper, .section--white { background: transparent; }
.section--navy, .section--black { background: var(--blue-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.section--navy::after, .section--black::after {
  content: "GOJIYUNI"; position: absolute; bottom: -0.12em; right: -2%; z-index: 0;
  font-family: var(--mincho); font-weight: 800; white-space: nowrap; line-height: 1;
  font-size: clamp(90px, 15vw, 220px); color: transparent;
  -webkit-text-stroke: 1.5px var(--ghost-dark); pointer-events: none; user-select: none;
}
.section--navy > .container, .section--black > .container { position: relative; z-index: 1; }
.waveline, .footer-wave { display: none; }

/* ---------- 見出しの語彙 ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 26px;
}
.label::before { content: ""; width: 30px; height: 1.5px; background: var(--ver); }
.label .idx { font-family: inherit; font-style: normal; font-weight: 700; font-size: 11px; color: inherit; margin-right: 0.6em; }
.on-dark .label { color: var(--on-dark-2); }

.sec-title {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.6; letter-spacing: 0.04em;
}
.sec-title em { font-style: normal; color: var(--blue); }
.on-dark .sec-title { color: var(--on-dark); }
.on-dark .sec-title em { color: var(--ver-l); }
.sec-lead { color: var(--ink-2); font-size: 15px; max-width: 38em; }
.on-dark .sec-lead { color: var(--on-dark-2); }
.sec-head { max-width: 760px; margin-bottom: 72px; }
.sec-head .sec-title { margin-bottom: 22px; }
.sec-head .label { margin-bottom: 26px; }

/* ============================================================
   index (v6) 専用コンポーネント
   ============================================================ */

/* ---- hero: コラージュ ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero .ghost {
  position: absolute; top: 10%; left: -2%; z-index: 0;
  font-family: var(--mincho); font-weight: 800; white-space: nowrap;
  font-size: clamp(120px, 22vw, 320px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ghost);
  pointer-events: none; user-select: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; width: 100%; }
.hero h1 {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(44px, 6.6vw, 88px); line-height: 1.42; letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .vision { font-family: var(--mincho); font-weight: 600; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: 0.22em; margin-bottom: 22px; }
.hero .vision::before { content: "— "; color: var(--ver); }
.hero .sub { color: var(--ink-2); font-size: 15px; max-width: 30em; margin-bottom: 42px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.collage { position: relative; aspect-ratio: 1 / 1.05; }
.collage .a { position: absolute; top: 0; right: 0; width: 78%; z-index: 2; box-shadow: 0 32px 80px rgba(29, 26, 22, 0.25); }
.collage .b { position: absolute; bottom: 4%; left: 0; width: 46%; z-index: 3; box-shadow: 0 24px 60px rgba(29, 26, 22, 0.3); }
.collage .c { position: absolute; top: 52%; right: -6%; width: 34%; z-index: 1; opacity: 0.9; }
.collage .tag {
  position: absolute; z-index: 4; left: 8%; top: 6%;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.24em; padding: 10px 18px;
}
.collage figcaption { position: absolute; bottom: -34px; right: 0; font-size: 10px; letter-spacing: 0.3em; color: var(--ink-2); text-transform: uppercase; }

/* ---- マルキー ---- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; }
.marquee .track { display: flex; gap: 64px; white-space: nowrap; width: max-content; animation: mq 26s linear infinite; }
.marquee span { font-family: var(--mincho); font-weight: 600; font-size: 15px; letter-spacing: 0.34em; }
.marquee b { color: var(--ver-l); font-weight: 600; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---- 絵×数字の重なり ---- */
.overlap { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); }
.overlap .art { grid-column: 4 / 13; position: relative; }
.overlap .art img { width: 100%; }
.overlap .stat {
  grid-column: 1 / 6; margin-top: -18%; position: relative; z-index: 2;
  background: var(--paper); border: 1.5px solid var(--ink);
  padding: 44px 40px; box-shadow: 14px 14px 0 var(--blue);
}
.overlap .stat .num { font-family: var(--mincho); font-weight: 800; font-size: clamp(64px, 8vw, 112px); line-height: 1; color: var(--blue); letter-spacing: 0.02em; }
.overlap .stat .num small { font-size: 0.38em; }
.overlap .stat .t { font-weight: 900; font-size: 16px; margin-top: 14px; }
.overlap .stat p { color: var(--ink-2); font-size: 13px; margin-top: 8px; line-height: 1.9; }
.voices { grid-column: 7 / 13; margin-top: 48px; }
.voices blockquote {
  font-family: var(--mincho); font-weight: 600; font-size: clamp(18px, 2vw, 24px);
  line-height: 2.1; letter-spacing: 0.06em; padding-left: 26px; border-left: 2px solid var(--ver); margin-bottom: 36px;
}
.voices .src { font-size: 12px; color: var(--ink-2); }

/* ---- ROUND対比(index game) ---- */
.rounds { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 72px; position: relative; z-index: 1; }
.round { background: rgba(243, 239, 230, 0.06); border: 1px solid var(--line-dark); padding: 48px 40px; }
.round .rk { font-size: 11px; letter-spacing: 0.3em; font-weight: 700; color: var(--ver-l); }
.round h3 { font-family: var(--mincho); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); margin: 18px 0 14px; letter-spacing: 0.06em; color: var(--on-dark); }
.round p { color: var(--on-dark-2); font-size: 13.5px; line-height: 2; }
.more { margin-top: 48px; position: relative; z-index: 1; }
.more a { color: var(--on-dark); font-size: 13.5px; letter-spacing: 0.14em; text-decoration: underline; text-underline-offset: 4px; }

/* ---- 絵を背負うパネル ---- */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
.panel { position: relative; aspect-ratio: 3 / 3.9; overflow: hidden; text-decoration: none; display: block; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel:hover img { transform: scale(1.05); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 26, 22, 0.84) 18%, rgba(29, 26, 22, 0.08) 55%); }
.panel .in { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 2; color: var(--on-dark); }
.panel .no { font-size: 10.5px; letter-spacing: 0.3em; color: rgba(243, 239, 230, 0.78); }
.panel h3 { font-family: var(--mincho); font-weight: 700; font-size: 24px; letter-spacing: 0.08em; margin: 10px 0 6px; }
.panel p { font-size: 12px; color: rgba(243, 239, 230, 0.82); line-height: 1.9; }
.panel .arw { position: absolute; top: 22px; right: 22px; z-index: 2; color: var(--on-dark); font-size: 18px; transition: transform 0.5s var(--ease); }
.panel:hover .arw { transform: translate(4px, -4px); }

/* ---- クラウドファンディングの要点 ---- */
.cf-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 36px; margin-top: 34px; max-width: 34em; }
.cf-meta > div { border-top: 1px solid var(--line-dark); padding-top: 13px; }
.cf-meta dt { font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 7px; }
.cf-meta dd { font-family: var(--mincho); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; margin: 0; }
.cf-note { margin-top: 28px; font-size: 12.5px; color: var(--on-dark-2); line-height: 1.9; max-width: 40em; }
.cf-note a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }

/* クラファン帯：左カラムが長いので上揃え＋ボタンを縦積み */
.cta-band--cf .inner { align-items: start; }
.cta-band--cf .actions { flex-direction: column; align-items: stretch; justify-content: flex-start; margin-top: 58px; }

/* ---- トップのクラウドファンディング帯 ---- */
.cf-thumb a { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 28px 70px rgba(29, 26, 22, 0.22); }
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: none; transition: transform 1.2s var(--ease); }
.cf-thumb a:hover img { transform: scale(1.04); }
.cf-flag { display: inline-block; background: var(--ver); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; padding: 8px 16px; margin-bottom: 24px; }
.cf-band .sec-title { margin-bottom: 22px; }
.cf-band .lede { color: var(--ink-2); font-size: 14.5px; max-width: 32em; }
.cf-band .term { margin-top: 20px; font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.06em; }
.cf-band .ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* サービスパネルの状態バッジ（クラファン実施中など） */
.panel .badge {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  background: var(--ver); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em;
  padding: 7px 14px;
}

/* ---- 結び ---- */
.close { padding: var(--gap) 0; text-align: center; }
.close p.big { font-family: var(--mincho); font-weight: 700; font-size: clamp(26px, 3.6vw, 44px); letter-spacing: 0.14em; line-height: 2; }
.close .big em { font-style: normal; color: var(--blue); }
.close .ctas { margin-top: 56px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   下層ページ
   ============================================================ */
.page-hero { position: relative; padding: 190px 0 90px; overflow: hidden; }
.page-hero > .ghost {
  position: absolute; top: 12%; right: -1%; z-index: 0;
  font-family: var(--display); font-weight: 400; white-space: nowrap;
  font-size: clamp(88px, 15vw, 220px); line-height: 1; letter-spacing: 0.01em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ghost);
  pointer-events: none; user-select: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(34px, 4.8vw, 60px); line-height: 1.55; letter-spacing: 0.04em; margin-bottom: 28px;
}
.page-hero .lead { max-width: 40em; color: var(--ink-2); font-size: 15px; }
.page-hero--split .split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.page-hero--split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* カード: 罫と版ズレ影 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0;
  padding: 40px 34px; box-shadow: none;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--blue); }
.card .k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.card h3 { font-family: var(--mincho); font-weight: 700; font-size: 20px; line-height: 1.7; margin-bottom: 12px; letter-spacing: 0.04em; }
.card p { color: var(--ink-2); font-size: 13.5px; line-height: 2; }

/* ステップ: 群青の大きな数字 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { border-top: 2px solid var(--ink); padding-top: 26px; position: relative; }
.step-num {
  display: block; font-family: var(--mincho); font-weight: 800; font-style: normal;
  font-size: 44px; line-height: 1; color: var(--blue); margin-bottom: 18px;
  width: auto; height: auto; border: 0; background: transparent; box-shadow: none; transform: none; position: static;
}
.on-dark .step { border-top-color: var(--on-dark); }
.on-dark .step-num { color: var(--ver-l); }
.step h3 { font-family: var(--mincho); font-weight: 700; font-size: 20px; margin-bottom: 10px; letter-spacing: 0.04em; }
.step h3 small { display: block; font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
.step p { color: var(--ink-2); font-size: 13.5px; line-height: 2; }
.on-dark .step h3 { color: var(--on-dark); }
.on-dark .step h3 small, .on-dark .step p { color: var(--on-dark-2); }

/* フロー(式次第) */
.flow { max-width: 800px; }
.flow-item { display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative; }
.flow-item:first-child { border-top: 2px solid var(--ink); }
.flow-item::before { display: none; }
.flow-num {
  display: block; font-family: var(--mincho); font-weight: 800; font-style: normal;
  font-size: 32px; line-height: 1.2; color: var(--blue);
  width: auto; height: auto; border: 0; background: transparent; box-shadow: none; transform: none; position: static;
}
.on-dark .flow-item { border-color: var(--line-dark); }
.on-dark .flow-item:first-child { border-top-color: var(--on-dark); }
.on-dark .flow-num { color: var(--ver-l); }
.flow-body h3 { font-family: var(--mincho); font-weight: 700; font-size: 20px; margin-bottom: 10px; letter-spacing: 0.04em; }
.flow-body h3 small { font-family: var(--sans); font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-left: 14px; letter-spacing: 0.1em; }
.flow-body p { color: var(--ink-2); font-size: 13.5px; }
.on-dark .flow-body h3 { color: var(--on-dark); }
.on-dark .flow-body h3 small, .on-dark .flow-body p { color: var(--on-dark-2); }

/* 引用帯(群青深) */
.quote-band { padding: var(--gap) 0; }
.quote-band .qmark { display: none; }
.quote-band .q {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(28px, 4.2vw, 52px); line-height: 1.9; letter-spacing: 0.08em;
}
.quote-band .q-sub { color: var(--on-dark-2); margin-top: 36px; max-width: 40em; font-size: 14px; }

/* タイムライン */
.timeline { max-width: 800px; }
.tl-item { display: grid; grid-template-columns: 170px 1fr; gap: 36px; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative; }
.tl-item:first-child { border-top: 2px solid var(--ink); }
.tl-item::before { display: none; }
.tl-item::after { display: none; }
.tl-date { font-family: var(--mincho); font-weight: 800; font-size: 19px; letter-spacing: 0.1em; color: var(--blue); text-align: left; padding-top: 4px; }
.tl-body { padding-left: 0; }
.tl-body h3 { font-family: var(--mincho); font-weight: 700; font-size: 20px; margin-bottom: 10px; letter-spacing: 0.04em; }
.tl-body p { color: var(--ink-2); font-size: 13.5px; }

/* スペック表 */
.spec-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.spec-table th, .spec-table td { padding: 24px 8px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.spec-table th { width: 220px; white-space: nowrap; font-weight: 700; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); padding-top: 28px; }
.spec-table th .jp { font-family: var(--mincho); font-size: 16px; letter-spacing: 0.08em; color: var(--ink); font-weight: 700; display: block; margin-top: 4px; }
.table-note { font-size: 12.5px; color: var(--ink-2); margin-top: 18px; }

/* FAQ */
.faq { max-width: 800px; }
.faq details { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 56px 28px 4px; font-family: var(--mincho); font-weight: 700; font-size: 16.5px; letter-spacing: 0.04em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 15px; height: 2px; background: var(--ver); transform: translateY(-50%); transition: transform 0.4s var(--ease); }
.faq summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq .faq-body { padding: 0 4px 30px; color: var(--ink-2); font-size: 14px; }

/* 図版 */
.art-figure { position: relative; }
.art-figure img { width: 100%; object-fit: cover; border-radius: 0; box-shadow: 0 28px 70px rgba(29, 26, 22, 0.22); }
.art-figure figcaption { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); margin-top: 16px; font-weight: 700; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* フリップカード(墨/紙・版ズレ影) */
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; perspective: 1200px; }
.flip-card { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; aspect-ratio: 3 / 4.2; position: relative; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.8s var(--ease); }
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0; padding: 28px 24px; display: flex; flex-direction: column; }
.flip-front { background: var(--blue-deep); color: var(--on-dark); align-items: center; justify-content: center; gap: 18px; }
.flip-front .qm {
  font-family: var(--mincho); font-size: 72px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--on-dark);
  width: auto; height: auto; border: 0; display: block;
}
.flip-front .t { font-weight: 700; font-size: 10.5px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ver-l); }
.flip-front .hint { font-size: 11px; color: var(--on-dark-2); border: 1px solid var(--line-dark); padding: 6px 16px; letter-spacing: 0.14em; border-radius: 0; }
.flip-back { background: var(--paper); border: 1.5px solid var(--ink); transform: rotateY(180deg); box-shadow: 9px 9px 0 var(--blue); justify-content: flex-start; }
.flip-back .t { font-weight: 700; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.flip-back .bh { display: block; font-family: var(--mincho); font-weight: 700; font-size: 17px; line-height: 1.7; margin-bottom: 10px; }
.flip-back p { color: var(--ink-2); font-size: 12px; line-height: 1.9; }
.flip-back .real { margin-top: auto; font-size: 10px; color: var(--blue); font-weight: 700; letter-spacing: 0.14em; }
.flip-note { margin-top: 32px; color: var(--ink-2); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

/* index-list(使用時) */
.index-list { border-top: 2px solid var(--ink); }
.index-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 24px; align-items: baseline; padding: 40px 8px; border-bottom: 1px solid var(--line); text-decoration: none; background: transparent; border-radius: 0; box-shadow: none; transition: padding-left 0.5s var(--ease); }
.index-row:hover { padding-left: 26px; transform: none; box-shadow: none; }
.index-row .no { font-family: var(--mincho); font-weight: 800; font-style: normal; font-size: 24px; color: var(--blue); margin: 0; }
.index-row h3 { font-family: var(--mincho); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.06em; margin: 0; }
.index-row h3 small { display: block; font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
.index-row p { color: var(--ink-2); font-size: 13px; margin-top: 10px; }
.index-row .arrow { color: var(--ver); font-size: 20px; }

/* CTA帯(群青深バンド上) */
.cta-band .inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.cta-band .sec-title { margin-bottom: 18px; }
.cta-band p { color: var(--on-dark-2); max-width: 36em; font-size: 14.5px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Form ---------- */
.contact-form { max-width: 680px; }
.form-row { margin-bottom: 36px; }
.form-row label { display: block; font-weight: 700; font-size: 12.5px; letter-spacing: 0.18em; margin-bottom: 12px; }
.form-row label .req { color: var(--ver); background: transparent; font-size: 10.5px; font-weight: 700; margin-left: 10px; letter-spacing: 0.18em; border: 0; padding: 0; vertical-align: 0; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-size: 16px; font-family: var(--sans); color: var(--ink);
  padding: 15px 16px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper);
  transition: box-shadow 0.3s var(--ease);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; box-shadow: 6px 6px 0 var(--blue); }
.form-row textarea { min-height: 180px; resize: vertical; }
.form-status { margin-top: 22px; font-size: 14.5px; display: none; }
.form-status.is-error { display: block; color: var(--ver); font-weight: 700; }
.form-status.is-success { display: block; color: var(--blue); font-weight: 700; }
.form-consent { font-size: 12.5px; color: var(--ink-2); line-height: 2; background: transparent; border: 0; border-left: 2px solid var(--ver); border-radius: 0; padding: 4px 0 4px 20px; margin-bottom: 36px; }
.form-consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.contact-alt { margin-top: 88px; padding-top: 44px; border-top: 2px solid var(--ink); }
.contact-alt h2 { font-family: var(--mincho); font-weight: 700; font-size: 19px; margin-bottom: 12px; letter-spacing: 0.06em; }
.contact-alt p { color: var(--ink-2); font-size: 13.5px; }
.sns-links { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.sns-links a { border: 1.5px solid var(--ink); border-radius: 0; padding: 12px 26px; font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em; text-decoration: none; transition: background 0.3s, color 0.3s; }
.sns-links a:hover { background: var(--ink); color: var(--paper); }

/* ---------- Legal ---------- */
.legal { max-width: 740px; }
.legal-body h2 { font-family: var(--mincho); font-weight: 700; font-size: 20px; letter-spacing: 0.05em; margin: 60px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 .n { font-family: var(--sans); font-style: normal; font-weight: 700; color: var(--blue); margin-right: 16px; font-size: 12px; letter-spacing: 0.2em; }
.legal-body h3 { font-weight: 700; font-size: 15px; margin: 28px 0 8px; }
.legal-body p { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.legal-body ul { margin: 8px 0 18px; }
.legal-body li { color: var(--ink-2); font-size: 14px; position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal-body li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 2px; background: var(--ver); border-radius: 0; }
.legal-body .updated { font-size: 12.5px; color: var(--ink-2); margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-body dl { margin: 8px 0 18px; }
.legal-body dt { font-weight: 700; font-size: 13.5px; margin-top: 14px; }
.legal-body dd { color: var(--ink-2); font-size: 14px; margin: 2px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: transparent; color: var(--ink); padding: 0 0 48px; margin-top: var(--gap); }
.site-footer .container { border-top: 2px solid var(--ink); padding-top: 56px; }
.footer-word { font-family: var(--sans); font-weight: 900; font-size: 15px; letter-spacing: 0.24em; line-height: 1; margin-bottom: 44px; }
.footer-word sup { font-size: 9px; color: var(--blue); letter-spacing: 0.05em; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; margin-bottom: 64px; }
.footer-mission { color: var(--ink-2); font-size: 13px; max-width: 30em; line-height: 2.1; }
.footer-nav { display: flex; gap: 72px; justify-content: flex-end; flex-wrap: wrap; }
.footer-nav h3 { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; font-weight: 700; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: 0.06em; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ver); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom small { color: var(--ink-2); font-size: 11px; letter-spacing: 0.2em; }
.footer-bottom a { color: var(--ink-2) !important; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.rise { animation: riseIn 1.3s var(--ease) backwards; }
.hero .rise:nth-child(1) { animation-delay: 0.1s; }
.hero .rise:nth-child(2) { animation-delay: 0.25s; }
.hero .rise:nth-child(3) { animation-delay: 0.4s; }
.hero .rise:nth-child(4) { animation-delay: 0.55s; }
.hero-grid > .collage { animation: riseIn 1.5s var(--ease) 0.35s backwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise, .hero-grid > .collage { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .marquee .track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .collage { max-width: 560px; }
  .overlap .stat { grid-column: 1 / 9; margin-top: -12%; }
  .voices { grid-column: 1 / 13; }
  .panels { grid-template-columns: 1fr; }
  .panel { aspect-ratio: 16 / 9; }
  .rounds { grid-template-columns: 1fr; }
  .page-hero--split .split, .split-2 { grid-template-columns: 1fr; gap: 56px; }
  .card-grid, .card-grid--4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band .inner { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .footer-nav { justify-content: flex-start; gap: 48px; }
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .header-inner { padding: 18px var(--gutter); }
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; background: var(--paper); z-index: 105;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 36px; text-align: center; }
  .global-nav a { color: var(--ink); font-family: var(--mincho); font-size: 20px; font-weight: 700; letter-spacing: 0.18em; }
  .global-nav a[aria-current="page"] { border-bottom-width: 2px; }
  .global-nav .btn { padding: 16px 40px; }

  /* ゴーストタイポは語の途中から見切れると別の単語に読めてしまうので、
     モバイルでは左端を起点にして頭から見せる */
  .page-hero > .ghost { left: -2%; right: auto; font-size: clamp(62px, 17vw, 92px); }
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .overlap .art { grid-column: 1 / 13; }
  .overlap .stat { grid-column: 1 / 12; margin-top: -16%; padding: 32px 26px; box-shadow: 10px 10px 0 var(--blue); }
  .collage .tag { left: 4%; top: 2%; }
  .hero { padding-top: 110px; }
  .quote-band { padding: clamp(80px, 12vh, 120px) 0; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .flow-item { grid-template-columns: 56px 1fr; gap: 18px; }
  .flow-num { font-size: 24px; }
  .spec-table th { width: 120px; padding: 18px 4px; }
  .spec-table td { padding: 18px 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip-card { aspect-ratio: 3 / 2.2; }
  .close .ctas .btn, .cta-band .actions .btn { width: 100%; }
}
