/* =========================================================================
   3PT Closed Presentation — "三つの距離"
   Bespoke design system. No framework grid, no repeated card component.
   Each slide is hand-built; tones shift per chapter.
   ========================================================================= */

:root {
  --navy: #00266c;
  --navy-deep: #0a1024;
  --orange: #ff8200;
  --orange-warm: #e8601c;

  --paper: #f3efe6;
  --paper-ink: #20201c;
  --paper-sub: #6a6557;
  --paper-line: #d8d2c4;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Inter", "Noto Sans JP", -apple-system, system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 手漉き紙テイスト（SVG feTurbulence・画像ファイル不使用／採用＝B-C中間）
     --grain     : 細かい繊維のザラつき（multiplyで0.70〜1.0のやわらかな濃淡）
     --grain-soft: 大きめの“手漉きムラ”＝紙の厚みの不均一さ（広いタイル・0.84〜1.0のごく淡い濃淡） */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.42' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.3' intercept='0.7'/%3E%3CfeFuncG type='linear' slope='0.3' intercept='0.7'/%3E%3CfeFuncB type='linear' slope='0.3' intercept='0.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='620'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0095' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.16' intercept='0.84'/%3E%3CfeFuncG type='linear' slope='0.16' intercept='0.84'/%3E%3CfeFuncB type='linear' slope='0.16' intercept='0.84'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--paper-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: #fff; }

/* ---------- Tone worlds (per-slide) -------------------------------------- */
.slide {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: clamp(56px, 9vh, 120px) clamp(28px, 7vw, 150px)
           clamp(56px, 9vh, 110px) clamp(28px, 8vw, 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: background 1.1s var(--ease), color 1.1s var(--ease);
}

/* paper — letter / prologue（手漉き紙：B-C中間。やわらかな繊維＋ごく淡いムラ・陰影なし） */
.slide[data-tone="paper"] {
  background-color: #f0eadd; /* ほんのり温かい紙地（B と C の中間） */
  background-image: var(--grain), var(--grain-soft);
  background-size: 200px 200px, 620px 620px;
  background-repeat: repeat, repeat;
  /* multiply＝繊維とムラの“影”をやわらかく落とす（地はほぼ保ったまま手触りだけ） */
  background-blend-mode: multiply, multiply;
  color: var(--paper-ink);
}
/* light — chapter 1, catalogue（同じ手漉き紙・やや明るい地） */
.slide[data-tone="light"] {
  background-color: #f3eee2;
  background-image: var(--grain), var(--grain-soft);
  background-size: 200px 200px, 620px 620px;
  background-repeat: repeat, repeat;
  background-blend-mode: multiply, multiply;
  color: #1a1d24;
}
/* deep — chapter 2, midnight（暗部にも薄い手触りを soft-light で） */
.slide[data-tone="deep"] {
  background-color: var(--navy-deep);
  background-image:
    var(--grain),
    radial-gradient(120% 90% at 80% 0%, #14224a 0%, var(--navy-deep) 60%);
  background-size: 200px 200px, auto;
  background-repeat: repeat, no-repeat;
  background-blend-mode: soft-light, normal;
  color: #e9ecf5;
}
/* blueprint — chapter 3（重厚なグレー寄りブラック。第2章ネイビーと明確に差別化。
   ネイビー＝薄い青写真グリッド／オレンジ＝差し色 を黒地に効かせる） */
.slide[data-tone="blueprint"] {
  background-color: #16161b;
  background-image:
    var(--grain),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(135% 108% at 80% -10%, #292932 0%, #18181e 52%, #0d0d11 100%);
  background-size: 200px 200px, 48px 48px, 48px 48px, auto;
  background-repeat: repeat, repeat, repeat, no-repeat;
  background-blend-mode: soft-light, normal, normal, normal;
  color: #e6e3db;
}

/* ---------- Reveal animation -------------------------------------------- */
.r {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.r.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Top progress bar -------------------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--orange);
  z-index: 101;
  transition: width 0.1s linear;
}

/* ---------- Common site header (sticky, hide-on-scroll-down) ------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 38, 108, 0.08);
  transition: transform 0.35s var(--ease);
}
.site-header.hide { transform: translateY(-100%); }
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 44px);
}
.sh-logo img { height: 26px; display: block; }
.sh-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.sh-nav a {
  font-family: var(--sans);
  font-size: 13px;
  color: #1c2330;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.sh-nav a:hover { color: var(--navy); }
.sh-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 8px 17px;
  border-radius: 999px;
}
.sh-cta:hover { background: #071f52; }
@media (max-width: 720px) {
  .site-header-inner { height: 54px; }
  .sh-nav a:not(.sh-cta) { display: none; }
}

/* ---------- Deck nav ---------------------------------------------------- */
.deck-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 44px);
  z-index: 80;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
.deck-nav a { pointer-events: auto; }
.deck-brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 12px;
}
.deck-chapter {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.deck-logout {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  text-transform: uppercase;
}
.deck-logout:hover { opacity: 1; }

/* ---------- Floating table-of-contents (jump from anywhere) ------------- */
.deck-menu { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 95; }
/* トグル：紙にインクで刷ったような、手作りの“しおり”ボタン */
.deck-menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: #faf6ec; color: var(--navy); border: 1px solid var(--paper-line); border-radius: 4px;
  padding: 11px 19px; font-family: var(--serif); font-size: 14px; font-weight: 500;
  letter-spacing: 0.14em; cursor: pointer;
  box-shadow: 0 14px 32px -18px rgba(32,32,28,0.55);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.deck-menu-toggle:hover { background: #fffdf7; transform: translateY(-2px); box-shadow: 0 18px 38px -18px rgba(32,32,28,0.6); }
.deck-menu-toggle .dm-bars { display: inline-flex; flex-direction: column; gap: 3px; }
.deck-menu-toggle .dm-bars i { width: 16px; height: 1.5px; background: var(--navy); display: block; transition: transform 0.25s var(--ease), opacity 0.25s; }
.deck-menu.open .dm-bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.deck-menu.open .dm-bars i:nth-child(2) { opacity: 0; }
.deck-menu.open .dm-bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
/* パネル：手漉き紙の地に罫線で組んだ、編集的なもくじ */
.deck-menu-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(86vw, 318px);
  background-color: #f6f1e6;
  background-image: var(--grain), var(--grain-soft);
  background-size: 200px 200px, 620px 620px;
  background-blend-mode: multiply, multiply;
  border-radius: 4px;
  box-shadow: 0 26px 60px -24px rgba(32,32,28,0.5);
  border: 1px solid var(--paper-line);
  padding: 6px 6px 8px; opacity: 0; transform: translateY(10px) scale(0.98); transform-origin: bottom right;
  pointer-events: none; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.deck-menu.open .deck-menu-panel { opacity: 1; transform: none; pointer-events: auto; }
.dm-head {
  font-family: var(--serif); font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; color: var(--paper-sub);
  padding: 12px 14px 10px; margin: 0 8px 4px;
  border-bottom: 1px solid var(--paper-line);
}
.dm-link {
  display: flex; align-items: baseline; gap: 13px;
  padding: 12px 14px; text-decoration: none; color: var(--paper-ink);
  border-bottom: 1px solid rgba(216,210,196,0.55);
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.dm-link:last-child { border-bottom: 0; }
.dm-link:hover { background: rgba(0,38,108,0.045); padding-left: 18px; }
.dm-link .dm-n { font-family: var(--serif); font-size: 14px; color: var(--orange-warm); width: 1.6em; flex: none; }
.dm-link .dm-t { font-family: var(--serif); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.dm-link .dm-t span { display: block; font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--paper-sub); letter-spacing: 0.01em; margin-top: 3px; }
/* 現在地：紙に引いた朱色の傍線（左罫＋ごく淡い地） */
.dm-link.cur { background: rgba(255,130,0,0.07); box-shadow: inset 2px 0 0 var(--orange); }

/* chapter-end "where to next" routes */
.next-routes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.next-routes a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; border: 1px solid currentColor;
  transition: background 0.25s ease, transform 0.25s ease;
}
.next-routes a.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.next-routes a.primary:hover { background: #e8601c; transform: translateY(-2px); }
.next-routes a.ghost { color: var(--navy); }
.slide[data-tone="deep"] .next-routes a.ghost,
.slide[data-tone="blueprint"] .next-routes a.ghost { color: #cfd9f2; }
.next-routes a.ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* ---------- Distance rail (left, fixed) — the spine ---------------------- */
.rail {
  position: fixed;
  left: clamp(14px, 2.6vw, 38px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0;
  mix-blend-mode: difference;
  color: #fff;
}
.rail-track {
  position: relative;
  width: 1px;
  height: 196px;
  background: rgba(255,255,255,0.32);
  margin: 14px 0 14px 5px;
}
.rail-fill {
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 0%;
  background: var(--orange);
  transition: height 0.5s var(--ease);
}
.rail-node {
  position: absolute;
  left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.rail-node[data-pos="0"]   { top: 8%; }
.rail-node[data-pos="1"] { top: 50%; }
.rail-node[data-pos="2"]  { top: 92%; }
.rail-node.on { background: var(--orange); transform: scale(1.5); }
.rail-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  opacity: 0.55;
  text-transform: uppercase;
}
.rail-cap { font-size: 9px; letter-spacing: 0.2em; opacity: 0.4; }
@media (max-width: 900px) { .rail { display: none; } }

/* ========================================================================
   TYPOGRAPHY PRIMITIVES (reused, but composed differently every slide)
   ======================================================================== */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange-warm);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 30px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.idx {
  font-family: var(--serif);
  font-size: clamp(60px, 14vw, 200px);
  line-height: 0.8;
  font-weight: 200;
  opacity: 0.12;
}

/* letter blocks (prologue) */
.letter {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 2.5;
  letter-spacing: 0.04em;
  max-width: 30em;
  color: #33312b;
}
.letter .em { color: var(--navy); font-weight: 500; }
.letter-mark {
  width: 34px; height: 1px;
  background: var(--paper-line);
  margin: 0 0 40px;
}

.huge {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
  font-size: clamp(34px, 6vw, 80px);
}
.lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 2.1;
  color: var(--paper-sub);
  max-width: 34em;
}
.slide[data-tone="deep"] .lead { color: #aeb6cc; }
.slide[data-tone="blueprint"] .lead { color: #9fb4d6; }

/* ========================================================================
   PROLOGUE
   ======================================================================== */
.cover {
  align-items: flex-start;
  justify-content: center;
}
.cover-canvas {
  position: absolute;
  left: 0; right: 0; bottom: 12vh;
  width: 100%; height: 120px;
  pointer-events: none;
}
.cover-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper-sub);
  margin-bottom: 30px;
}
/* 表紙の宛名（招待先が設定されている時のみ表示） */
.cover-to {
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: 0.12em;
  color: var(--paper-ink);
  margin-bottom: clamp(22px, 4vh, 40px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-line);
  display: inline-block;
  align-self: flex-start;
}
.cover-title {
  font-family: var(--serif);
  font-weight: 500;
  /* 長文でも読みやすいよう、インパクトは保ちつつ控えめなサイズに */
  font-size: clamp(28px, 4.6vw, 60px);
  line-height: 1.34;
  letter-spacing: 0.02em;
  color: #1c1a15;
  max-width: 20em;
}
.cover-title .accent { color: var(--navy); }
.cover-foot {
  position: absolute;
  bottom: 5vh; left: clamp(28px, 8vw, 200px);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--paper-sub);
}
.scrollcue {
  position: absolute;
  bottom: 5vh; right: clamp(28px, 6vw, 80px);
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--paper-sub);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.7;
}
.scrollcue::after {
  content: ""; display: block;
  width: 1px; height: 40px; margin: 12px auto 0;
  background: var(--paper-sub);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* swap-text (S03) */
.swap { font-family: var(--serif); font-size: clamp(28px, 4.4vw, 54px); line-height: 1.5; max-width: 22em; }

/* three short lines along the spine (S04) */
.spine-lines { display: flex; flex-direction: column; gap: 30px; border-left: 1px solid var(--paper-line); padding-left: 38px; max-width: 30em; }
.spine-lines p { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.3vw, 27px); line-height: 1.7; }

/* fork / routing page (after prologue) */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin-top: 36px; }
.fork-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--paper-line); border-radius: 8px; padding: clamp(26px,3vw,36px) clamp(24px,2.6vw,32px); background: #fff; position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.fork-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -30px rgba(0,38,108,0.4); border-color: rgba(0,38,108,0.25); }
.fork-card .fk-num { font-family: var(--serif); font-size: 13px; color: var(--orange-warm); letter-spacing: 0.04em; }
.fork-card h3 { font-family: var(--serif); font-size: clamp(19px,2.3vw,27px); font-weight: 500; margin: 12px 0 12px; line-height: 1.4; color: #1c1a15; }
.fork-card p { font-size: 13.5px; line-height: 1.95; color: var(--paper-sub); margin: 0; }
.fork-card .fk-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--navy); }
.fork-card .fk-go::after { content: "→"; transition: transform 0.3s var(--ease); }
.fork-card:hover .fk-go::after { transform: translateX(5px); }
.fork-card.is-key { border-color: rgba(255,130,0,0.5); box-shadow: inset 0 0 0 1px rgba(255,130,0,0.25); }
.fork-card.is-key .fk-num { color: var(--orange); }
.fork-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(24px,2.6vw,32px); }
.fork-wide .fk-side { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.fork-wide h3 { margin: 0; font-size: clamp(16px,1.9vw,21px); }
.fork-wide .fk-go { margin-top: 0; white-space: nowrap; }
@media (max-width: 760px) { .fork { grid-template-columns: 1fr; } .fork-wide { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* reading guide (S05) */
.guide { display: flex; flex-direction: column; gap: 4px; }
.guide-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: baseline;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--paper-line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.4s var(--ease);
}
.guide-row:hover { padding-left: 14px; }
.guide-num { font-family: var(--serif); font-size: 26px; color: var(--navy); opacity: 0.5; }
.guide-row:nth-child(1) { margin-left: 0; }
.guide-row:nth-child(2) { margin-left: 5%; }
.guide-row:nth-child(3) { margin-left: 10%; }
.guide-ttl { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; }
.guide-word { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--orange-warm); }

/* ========================================================================
   序章 — context
   ======================================================================== */
/* Why 3PT — proof stats (paper) */
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; margin-top: 36px; max-width: 860px; }
.why-stat { display: flex; gap: 20px; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--paper-line); }
.why-stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.5vw, 46px); color: var(--navy); white-space: nowrap; line-height: 1; }
.why-stat .wt { font-size: 13.5px; line-height: 1.7; color: #33312b; }
.why-stat .wt span { display: block; color: var(--paper-sub); font-size: 12px; margin-top: 4px; }
@media (max-width: 820px) { .why-stats { grid-template-columns: 1fr; gap: 18px; } }

/* ── 冒頭ビート①：ぶつ切りで見えていた（断片の図解） ───────────────── */
.frag { margin-top: 30px; width: 100%; max-width: 760px; }
.frag svg { width: 100%; height: auto; overflow: visible; }
.frag .fg-node { fill: #fff; stroke: var(--paper-line); stroke-width: 1.2; }
.frag .fg-node-l { fill: var(--paper-sub); font-family: var(--sans); font-size: 11px; text-anchor: middle; }
.frag .fg-link { stroke: rgba(0,38,108,0.22); stroke-width: 1.2; stroke-dasharray: 3 4; }
.frag .fg-block { fill: rgba(0,38,108,0.04); stroke: rgba(0,38,108,0.32); stroke-width: 1.2; }
.frag .fg-block-l { fill: var(--navy); font-family: var(--serif); font-size: 12.5px; text-anchor: middle; }

/* ── 冒頭ビート②：でも、ひとつの会社です（WebGL hero） ──────────────── */
.who3d { position: relative; width: 100%; max-width: 720px; margin: 26px auto 0; aspect-ratio: 16 / 10; }
.who3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* static fallback (shown until WebGL draws, or if WebGL/motion is unavailable) */
.who3d-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.6s var(--ease); }
.who3d-fallback svg { width: 46%; max-width: 200px; height: auto; }
.who3d.is-live .who3d-fallback { opacity: 0; pointer-events: none; }
/* service tags that drift in around the cloud, then fade as the blocks converge */
.who3d-tags { position: absolute; inset: 0; pointer-events: none; }
.who3d-tag { position: absolute; transform: translate(-50%, -50%); font-family: var(--sans); font-size: 12px; letter-spacing: 0.01em; color: var(--paper-sub); background: rgba(243,239,230,0.72); border: 1px solid var(--paper-line); border-radius: 7px; padding: 5px 11px; white-space: nowrap; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.who3d.is-active .who3d-tag { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
/* the converged core label */
.who3d-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.86); text-align: center; opacity: 0; transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s; }
.who3d.is-active .who3d-core { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.who3d-core b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 2.4vw, 28px); color: var(--navy); }
.who3d-core span { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--orange-warm); margin-top: 7px; }
@media (max-width: 760px) { .who3d { aspect-ratio: 4 / 3; } .who3d-tag { font-size: 10.5px; padding: 4px 8px; } }

/* ── 冒頭ビート③：直列→並行（throughput） ─────────────────────────── */
.lanes { margin-top: 26px; width: 100%; max-width: 720px; }
.lanes svg { width: 100%; height: auto; overflow: visible; }
.lanes .ln-cap { fill: var(--paper-sub); font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; }
.lanes .ln-axis { stroke: var(--paper-line); stroke-width: 1; }
.lanes .ln-bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0.02); transition: transform 0.9s var(--ease); }
.in .ln-bar { transform: scaleX(1); }
.lanes .ln-bar-old { fill: rgba(0,38,108,0.06); stroke: rgba(0,38,108,0.34); stroke-width: 1.1; }
.lanes .ln-bar-new { fill: rgba(255,130,0,0.15); stroke: rgba(255,130,0,0.55); stroke-width: 1; }
.lanes .ln-bar-t { fill: var(--navy); font-family: var(--sans); font-size: 12px; text-anchor: middle; }

/* human / stance beat (epilogue) */
.stance { display: grid; grid-template-columns: 0.62fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; width: 100%; max-width: 1000px; }
.stance .ph { aspect-ratio: 4/5; }
.stance-q { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.5vw, 30px); line-height: 1.85; color: #20201c; }
.stance-by { margin-top: 26px; font-size: 12px; letter-spacing: 0.08em; color: var(--paper-sub); }
@media (max-width: 860px) { .stance { grid-template-columns: 1fr; } .stance .ph { aspect-ratio: 3/2; max-width: 360px; } }

/* expand bars (S06) */
.expand { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 880px; margin-top: 40px; border: 1px solid var(--paper-line); }
.expand-col { padding: 36px 30px; }
.expand-col + .expand-col { border-left: 1px solid var(--paper-line); background: rgba(0,38,108,0.03); }
.expand-tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-sub); margin-bottom: 18px; }
.expand-col ul { margin: 0; padding-left: 1.1em; line-height: 2.1; font-size: 15px; }
.expand-col.now ul { color: var(--navy); font-weight: 500; }

/* big question (S07) */
.bigq { font-family: var(--serif); font-size: clamp(30px, 5vw, 64px); line-height: 1.4; max-width: 18em; }
.bigq .u { border-bottom: 3px solid var(--orange); padding-bottom: 2px; }

/* the map (S07.5) — distance axis */
.map-wrap { margin-top: 30px; }
.map-axis { position: relative; height: 4px; background: linear-gradient(90deg, #cfd8ea, var(--navy) 50%, var(--navy-deep)); border-radius: 4px; margin: 80px 0 60px; }
.map-stop { position: absolute; top: 50%; transform: translate(-50%,-50%); }
.map-dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 4px 14px rgba(0,38,108,0.25); }
.map-stop[data-x="0"] { left: 6%; }
.map-stop[data-x="1"] { left: 50%; }
.map-stop[data-x="2"] { left: 94%; }
.map-cap { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; }
.map-cap.up { bottom: 34px; }
.map-cap.dn { top: 34px; }
.map-cap b { display: block; font-family: var(--serif); font-size: clamp(18px,2.2vw,26px); color: #1c1a15; }
.map-cap span { font-size: 12px; color: var(--paper-sub); letter-spacing: 0.06em; }
.map-cap .en { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange-warm); }
.map-cap .mapnum { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--orange-warm); }

/* ========================================================================
   CHAPTER 1 — light catalogue
   ======================================================================== */
.ch-cover { justify-content: space-between; }
.ch-cover-top { display: flex; align-items: flex-end; gap: 40px; }
.ch-cover .idx { color: var(--navy); opacity: 0.16; }
.ch-cover h2 { font-family: var(--serif); font-size: clamp(30px,5vw,60px); font-weight: 500; line-height: 1.25; margin: 0; }
.ch-cover .sub { color: var(--paper-sub); font-size: 15px; letter-spacing: 0.04em; margin-top: 18px; }

/* chapter map (S09) — purposes, not a grid */
.purpose { display: flex; flex-direction: column; gap: 34px; margin-top: 36px; max-width: 1000px; }
.purpose-row { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: baseline; padding-bottom: 26px; border-bottom: 1px solid #e7e3d7; }
.purpose-h { font-family: var(--serif); font-size: clamp(18px,2vw,24px); color: var(--navy); }
.purpose-h span { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.24em; color: var(--orange-warm); text-transform: uppercase; margin-top: 8px; }
.purpose-items { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.purpose-items a { color: #2a2d34; text-decoration: none; font-size: 15px; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.purpose-items a:hover { border-color: var(--orange); }

/* ---------- SERVICE SLIDE SHELL (composed differently each time) -------- */
.svc { display: grid; gap: clamp(30px, 5vw, 80px); align-items: center; }
.svc-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.svc-text .num { font-family: var(--serif); font-size: 13px; color: var(--orange-warm); letter-spacing: 0.1em; }
.svc-name { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; margin: 12px 0 4px; line-height: 1.2; }
.svc-name .en { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper-sub); margin-top: 10px; font-weight: 600; }
.svc-copy { font-family: var(--serif); font-size: clamp(18px, 2vw, 25px); line-height: 1.7; color: var(--navy); margin: 22px 0 14px; font-weight: 500; }
.svc-plain { position: relative; font-size: 14.5px; line-height: 1.95; color: #5a5d64; margin: 0 0 18px; padding-left: 16px; }
.svc-plain::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: #ffd9b0; }
.svc-body { font-size: 15px; line-height: 2; color: #4a4d55; max-width: 30em; }
.svc-use { margin: 26px 0 0; padding: 0; list-style: none; }
.svc-use li { position: relative; padding: 9px 0 9px 24px; font-size: 14px; color: #555; border-top: 1px solid #ece8dc; }
.svc-use li:last-child { border-bottom: 1px solid #ece8dc; }
.svc-use li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border: 1px solid var(--orange); }
.svc-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); text-decoration: none; font-weight: 700; }
.svc-link::after { content: "→"; transition: transform 0.3s var(--ease); }
.svc-link:hover::after { transform: translateX(6px); }

/* ========================================================================
   LIVE DEMO — click a button to actually fire the creative (cookie / modal)
   ======================================================================== */
.demo-trigger { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 13px 26px; border-radius: 999px; background: var(--orange); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; cursor: pointer; border: 0; transition: background 0.2s ease, transform 0.2s ease; box-shadow: 0 10px 26px -14px rgba(255,130,0,0.7); }
.demo-trigger::before { content: "▶"; font-size: 9px; }
.demo-trigger:hover { background: #e8601c; transform: translateY(-2px); }

.demo-overlay { position: fixed; inset: 0; z-index: 200; display: none; }
.demo-overlay.show { display: block; }
.demo-backdrop { position: absolute; inset: 0; background: rgba(10,16,36,0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: dfade 0.3s ease; }
.demo-bar { position: absolute; top: 0; left: 0; right: 0; height: 46px; background: #0a1024; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 3; font-size: 11px; letter-spacing: 0.12em; }
.demo-bar .dlabel { opacity: 0.7; }
.demo-bar .dlabel b { color: var(--orange); }
.demo-close { background: none; border: 1px solid rgba(255,255,255,0.35); color: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; font-size: 12px; transition: background 0.2s; }
.demo-close:hover { background: rgba(255,255,255,0.12); }
.demo-stage { position: absolute; inset: 46px 0 0 0; overflow: hidden; }
.demo-creative { display: none; }
.demo-creative.on { display: block; }
@keyframes dfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dpop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes dup { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* — GTM dynamic navigation modal (the creative) — */
.gtmnav { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(92vw, 480px); background: #fff; border-radius: 20px; box-shadow: 0 50px 110px -25px rgba(0,0,0,0.55); padding: 38px 36px 34px; animation: dpop 0.4s var(--ease); }
.gtmnav .gn-ey { font-size: 11px; letter-spacing: 0.16em; color: var(--orange-warm); font-weight: 700; }
.gtmnav h4 { font-family: var(--serif); font-size: 23px; font-weight: 500; color: #1c1a15; margin: 12px 0 22px; line-height: 1.4; }
.gn-choices { display: flex; flex-direction: column; gap: 11px; }
.gn-choice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #e2ddcf; border-radius: 12px; background: #fbfaf6; cursor: pointer; text-align: left; font-size: 14.5px; font-weight: 600; color: #2a2d34; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.gn-choice:hover { border-color: var(--navy); background: #fff; transform: translateX(3px); }
.gn-choice .gn-ic { width: 36px; height: 36px; border-radius: 9px; background: rgba(0,38,108,0.07); display: grid; place-items: center; flex: none; color: var(--navy); }
.gn-choice .gn-ar { margin-left: auto; color: var(--orange); }
.gn-result { display: none; text-align: center; }
.gtmnav.answered .gn-choices, .gtmnav.answered .gn-q { display: none; }
.gtmnav.answered .gn-result { display: block; animation: dfade 0.35s ease; }
.gn-result .gn-rtag { font-size: 11px; letter-spacing: 0.14em; color: var(--orange-warm); font-weight: 700; }
.gn-result h5 { font-family: var(--serif); font-size: 21px; color: #1c1a15; margin: 12px 0 10px; }
.gn-result p { font-size: 13.5px; line-height: 1.9; color: #555; margin: 0 0 22px; }
.gn-cta { display: inline-block; background: var(--navy); color: #fff; border-radius: 999px; padding: 12px 28px; font-size: 13px; font-weight: 700; text-decoration: none; }
.gn-back { display: block; margin-top: 16px; background: none; border: 0; color: #888; font-size: 12px; cursor: pointer; text-decoration: underline; }

/* — GTM Finder concierge modal — reproduced from the real fnv- widget — */
.fnv-host { font-family: Inter, "Noto Sans JP", system-ui, sans-serif; }
.fnv-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(910px, calc(100vw - 44px)); max-height: min(720px, calc(100vh - 90px)); overflow: auto; border-radius: 8px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,0.28); animation: dpop 0.42s var(--ease); }
.fnv-close { position: absolute; top: 18px; right: 18px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; background: transparent; color: var(--fnv-text); cursor: pointer; font-size: 34px; line-height: 1; }
.fnv-content { display: flex; min-height: 540px; flex-direction: column; justify-content: center; padding: clamp(40px,5vw,68px) clamp(22px,6vw,84px) 34px; text-align: center; }
.fnv-result { padding-top: clamp(48px,6vw,80px); }
.fnv-kicker, .fnv-progress-label { margin: 0 0 12px; color: var(--fnv-accent); font-size: clamp(30px,5vw,64px); font-weight: 900; line-height: 0.9; text-transform: uppercase; }
.fnv-progress-row { display: block; margin: 0 0 8px; }
.fnv-progress-track { display: none; }
.fnv-title { max-width: 720px; margin: 0 auto; padding: 0; color: var(--fnv-text); font-size: clamp(23px,3vw,36px); line-height: 1.35; }
.fnv-text { max-width: 640px; margin: 18px auto 0; color: var(--fnv-muted); font-size: 16px; line-height: 1.8; }
.fnv-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; width: 100%; margin: 34px auto 0; max-width: 760px; }
.fnv-option { display: grid; min-height: 132px; align-content: center; justify-items: center; gap: 13px; border: 1px solid var(--fnv-accent); border-radius: 0; padding: 20px 14px; background: #fff; color: var(--fnv-text); cursor: pointer; text-align: center; transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease; }
.fnv-option:hover { background: var(--fnv-accent-soft); transform: translateY(-2px); }
.fnv-option-symbol { display: grid; min-width: 54px; min-height: 44px; place-items: center; color: var(--fnv-accent); font-size: 22px; font-weight: 900; line-height: 1; }
.fnv-option-copy { display: grid; gap: 4px; justify-items: center; }
.fnv-option-label { font-size: 15px; font-weight: 900; line-height: 1.25; text-transform: uppercase; }
.fnv-option-description { max-width: 240px; color: var(--fnv-muted); font-size: 12px; line-height: 1.45; }
.fnv-primary { display: inline-flex; width: auto; min-width: 220px; min-height: 48px; align-items: center; justify-content: center; margin: 22px auto 0; border: 0; border-radius: 8px; padding: 0 22px; background: var(--fnv-brand); color: #fff; cursor: pointer; font-weight: 900; font-size: 15px; }
.fnv-secondary { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; margin-top: 16px; border: 1px solid rgba(23,32,29,0.12); border-radius: 8px; padding: 0 16px; background: #fff; color: var(--fnv-text); cursor: pointer; font-weight: 800; }
.fnv-result-actions { display: flex; justify-content: center; margin-top: 6px; }
.fnv-dots { display: flex; gap: 7px; justify-content: center; margin-top: 24px; }
.fnv-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(23,32,29,0.16); }
.fnv-dots span.is-active { background: var(--fnv-accent); }

/* — Cookie consent banner (the creative) — */
.ckbar { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(94vw, 740px); background: #fff; border-radius: 16px; box-shadow: 0 40px 90px -25px rgba(0,0,0,0.5); padding: 26px 30px; animation: dup 0.4s var(--ease); }
.ckbar h4 { font-size: 16px; font-weight: 700; color: #1c2330; margin: 0 0 8px; }
.ckbar p { font-size: 12.5px; line-height: 1.85; color: #5a5d64; margin: 0 0 18px; }
.ckbar p a { color: var(--navy); }
.ck-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ck-btn { border-radius: 8px; padding: 11px 22px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid var(--navy); transition: background 0.2s, color 0.2s; }
.ck-btn.solid { background: var(--navy); color: #fff; }
.ck-btn.solid:hover { background: #071f52; }
.ck-btn.ghost { background: #fff; color: var(--navy); }
.ck-btn.ghost:hover { background: rgba(0,38,108,0.05); }
.ck-btn.text { border-color: transparent; color: #888; }
.ck-toast { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: #0a1024; color: #fff; border-radius: 10px; padding: 14px 24px; font-size: 13px; display: none; animation: dup 0.35s var(--ease); }
.ckbar.done { display: none; }
.ckbar.done ~ .ck-toast { display: block; }

/* prominent service CTA button (light chapter-1 slides) */
.svc-btn { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 13px 26px; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-decoration: none; transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 10px 26px -14px rgba(0,38,108,0.6); }
.svc-btn::after { content: "→"; transition: transform 0.3s var(--ease); }
.svc-btn:hover { background: #071f52; transform: translateY(-2px); }
.svc-btn:hover::after { transform: translateX(4px); }
.slide[data-tone="deep"] .svc-btn, .slide[data-tone="blueprint"] .svc-btn { background: var(--orange); box-shadow: 0 10px 26px -14px rgba(255,130,0,0.6); }
.slide[data-tone="deep"] .svc-btn:hover, .slide[data-tone="blueprint"] .svc-btn:hover { background: #e8601c; }

/* capability lineup (Web Analytics breadth, light tone) */
.cap-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; max-width: 40em; }
.cap-tags span { font-size: 12.5px; color: #3a4150; border: 1px solid #dcd6c8; border-radius: 999px; padding: 7px 15px; background: #fff; }
.cap-tags span.hot { border-color: rgba(255,130,0,0.5); color: var(--orange-warm); }

/* two-up compact services (e.g. security + cookie) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; max-width: 980px; }
.duo-item { border: 1px solid #e7e2d5; border-radius: 8px; padding: 28px 26px; background: #fff; }
.duo-item h4 { font-family: var(--serif); font-size: clamp(18px,2vw,23px); font-weight: 500; margin: 0 0 6px; color: #1c1a15; }
.duo-item .en2 { font-size: 11px; letter-spacing: 0.06em; color: var(--paper-sub); }
.duo-item p { font-size: 13.5px; line-height: 1.9; color: #555; margin: 14px 0 0; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* figure canvas — bespoke per service */
.fig { position: relative; aspect-ratio: 5/4; width: 100%; }
.fig svg { width: 100%; height: 100%; overflow: visible; }
.fig-pane { background: #fff; border: 1px solid #ece7da; box-shadow: 0 30px 60px -40px rgba(20,30,60,0.4); }

/* stroke draw util */
.draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.4s var(--ease); }
.in .draw { stroke-dashoffset: 0; }

/* chapter close transition (S22) */
.close-quote { font-family: var(--serif); font-size: clamp(26px,4vw,52px); line-height: 1.5; max-width: 18em; }
.close-quote .fade { color: var(--paper-sub); }

/* generic small label */
.tag-en { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange-warm); }

/* alternate figure side */
.svc.flip .svc-text { order: 2; }
.svc.flip .fig { order: 1; }
@media (max-width: 820px) { .svc.flip .fig { order: -1; } }

/* full-bleed service variants */
.svc-full { display: block; }
.svc-full .svc-head { max-width: 40em; margin-bottom: clamp(24px, 4vh, 50px); }
.matrix-grid { display: grid; grid-template-columns: repeat(11, 1fr); gap: clamp(8px, 1.4vw, 18px); max-width: 880px; }
.mx { aspect-ratio: 1; border: 1px solid #d9d4c6; border-radius: 2px; display: grid; place-items: center; font-size: 10px; color: #b8b2a2; transition: background 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s; }
.mx.lit { background: var(--orange); border-color: var(--orange); color: #fff; }
.mx.warn { background: #ffe9d4; border-color: #ffcd9e; color: var(--orange-warm); }

/* pipeline (S19) */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; max-width: 1000px; margin-top: 20px; }
.pipe-step { position: relative; padding: 26px 22px; border: 1px solid #e7e2d5; border-right: 0; }
.pipe-step:last-child { border-right: 1px solid #e7e2d5; }
.pipe-step .pn { font-family: var(--serif); font-size: 30px; color: var(--navy); opacity: 0.3; }
.pipe-step h4 { font-size: 15px; margin: 10px 0 6px; }
.pipe-step p { font-size: 12px; color: #777; line-height: 1.7; margin: 0; }
.pipe-step::after { content: "›"; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 18px; z-index: 2; background: #fbfaf6; padding: 2px 0; }
.pipe-step:last-child::after { display: none; }
@media (max-width: 820px) { .pipe { grid-template-columns: 1fr; } .pipe-step { border-right: 1px solid #e7e2d5; border-bottom: 0; } .pipe-step:last-child { border-bottom: 1px solid #e7e2d5; } .pipe-step::after { content: "↓"; right: 50%; top: auto; bottom: -10px; transform: translateX(50%); } }

/* magazine (S20) */
.mag { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; min-height: 60vh; max-width: 1040px; border: 1px solid #e6e1d4; }
.mag-l { padding: clamp(30px,5vw,64px); display: flex; flex-direction: column; justify-content: center; }
.mag-r { background: linear-gradient(160deg, #11203f, #00266c); color: #eef1f8; padding: clamp(30px,5vw,64px); display: flex; flex-direction: column; justify-content: flex-end; }
.mag-r .q { font-family: var(--serif); font-size: clamp(20px,2.4vw,30px); line-height: 1.6; }
.mag-kana { font-family: var(--serif); writing-mode: vertical-rl; font-size: clamp(20px,2.6vw,32px); line-height: 1.9; height: 9em; align-self: flex-start; color: #1c1a15; letter-spacing: 0.1em; }
@media (max-width: 820px) { .mag { grid-template-columns: 1fr; } .mag-kana { writing-mode: horizontal-tb; height: auto; } }

/* ========================================================================
   SERVICE CATALOGUE (index page) — clickable, categorised
   ======================================================================== */
.catalog { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px); max-width: 1180px; }
.cat-band { display: grid; grid-template-columns: 200px 1fr; gap: clamp(18px, 3.5vw, 50px); align-items: start; }
.cat-head { position: relative; }
.cat-head .cnum { font-family: var(--serif); font-size: 13px; color: var(--orange-warm); letter-spacing: 0.1em; }
.cat-head h3 { font-family: var(--serif); font-size: clamp(20px, 2.3vw, 28px); font-weight: 500; margin: 6px 0 10px; line-height: 1.3; }
.cat-head p { font-size: 12px; line-height: 1.8; color: var(--paper-sub); margin: 0; }
/* 手で組んだ罫線の一覧。白いセルを排し、手漉き紙の地をそのまま透かす */
.cat-items { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; background: transparent; border-top: 1px solid var(--paper-line); border-left: 1px solid var(--paper-line); }
.cat-item { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; background: transparent; border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); text-decoration: none; color: inherit; transition: background 0.3s var(--ease); }
.cat-item:hover { background: rgba(255,253,247,0.6); }
.cat-item .ci-name { font-family: var(--serif); font-size: 14.5px; font-weight: 500; color: #1c1a15; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-item .ci-name::after { content: "→"; color: var(--orange); opacity: 0; transform: translateX(-4px); transition: opacity 0.3s, transform 0.3s; }
.cat-item:hover .ci-name::after { opacity: 1; transform: none; }
.cat-item.ext .ci-name::after { content: "↗"; }
.cat-item.here { box-shadow: inset 3px 0 0 var(--orange); }
.cat-item .ci-desc { font-size: 11.5px; line-height: 1.7; color: var(--paper-sub); }
.cat-item .ci-badge { font-size: 9px; letter-spacing: 0.12em; color: var(--orange-warm); border: 1px solid #e7cba8; border-radius: 99px; padding: 1px 7px; }
.cat-item .ci-brand { display: inline-flex; align-items: center; gap: 8px; }
.cat-item .ci-logo { height: 19px; width: auto; display: block; }
.cat-band.saas .cat-items { grid-template-columns: repeat(3, minmax(0,1fr)); }
/* 「SaaSプロダクト」が200px列で不自然に折り返さないよう、この帯だけ少し絞る */
.cat-band.saas .cat-head h3 { font-size: clamp(18px, 2vw, 24px); }

/* 自社SaaS：各プロダクトの実ロゴを、紙に刷った一枚もののパートナー帯で見せる */
.saas-logos { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1060px; margin-top: 34px; border: 1px solid var(--paper-line); border-radius: 5px; overflow: hidden; background: rgba(255,253,247,0.4); }
.saas-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 30px 16px 22px; text-decoration: none; color: inherit; border-left: 1px solid var(--paper-line); transition: background 0.35s var(--ease); }
.saas-card:first-child { border-left: 0; }
.saas-card:hover { background: #fffdf8; }
.saas-mark { height: 38px; display: flex; align-items: center; justify-content: center; }
/* height を明示（SVGはmax-height+width:autoだとflex内で0pxに潰れるため） */
.saas-mark img { height: 38px; width: auto; max-width: 100%; object-fit: contain; }
.saas-role { font-family: var(--serif); font-size: 12px; line-height: 1.7; color: var(--paper-sub); }
@media (max-width: 860px) {
  .saas-logos { grid-template-columns: repeat(2, 1fr); }
  .saas-card { border-left: 1px solid var(--paper-line); border-top: 1px solid var(--paper-line); }
  .saas-card:nth-child(2n+1) { border-left: 0; }
  .saas-card:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 920px) {
  .cat-band { grid-template-columns: 1fr; gap: 14px; }
  .cat-items, .cat-band.saas .cat-items { grid-template-columns: 1fr; }
}

/* legend under catalogue */
.cat-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; font-size: 11px; color: var(--paper-sub); }
.cat-legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- 増えた診断・改善（第1章・帳簿風の圧縮リスト） ------------------ */
.repls { display: flex; flex-direction: column; max-width: 1000px; margin-top: 20px; border-top: 1px solid var(--paper-line); }
.repl {
  display: grid; grid-template-columns: 148px 1fr auto; gap: clamp(16px, 2.8vw, 40px);
  align-items: center; padding: 15px 6px;
  border-bottom: 1px solid var(--paper-line);
  text-decoration: none; color: inherit;
  transition: background 0.3s var(--ease);
}
.repl:hover { background: rgba(255,253,247,0.6); }
.repl-thumb { aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--paper-line); background: rgba(255,253,247,0.5); }
.repl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.repl-body b { font-family: var(--serif); font-weight: 500; font-size: clamp(16px, 1.9vw, 19px); color: #1c1a15; display: block; line-height: 1.4; }
.repl-body i { font-style: normal; font-size: 12.5px; line-height: 1.8; color: var(--paper-sub); display: block; margin-top: 5px; }
.repl-go { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--navy); white-space: nowrap; text-decoration: none; }
a.repl:hover .repl-go { color: var(--orange-warm); }
.repl-act { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.repl-act .demo-trigger { margin-top: 0; }
.repl-foot {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  max-width: 1000px; margin-top: 20px; padding: 14px 6px 0;
}
.repl-foot .rf-head { font-family: var(--serif); font-size: 15px; color: #1c1a15; }
.repl-foot a { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.repl-foot a:hover { color: var(--orange-warm); }
.repl-foot .demo-trigger { margin-top: 0; }
@media (max-width: 820px) {
  .repl { grid-template-columns: 104px 1fr; }
  .repl-go, .repl-act { grid-column: 2; justify-self: start; align-items: flex-start; }
}

/* ========================================================================
   IMAGE PLACEHOLDER — only where a real artefact (sample report) sells it
   ======================================================================== */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 5/4;
  border: 1.5px dashed #c7bfac;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(0,38,108,0.018) 0 12px, transparent 12px 24px),
    #f6f3ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 12px;
}
.ph-ico { width: 38px; height: 38px; opacity: 0.4; }
.ph-tag { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange-warm); }
.ph-ttl { font-family: var(--serif); font-size: 15px; color: #4a4d55; line-height: 1.5; }
.ph-cap { font-size: 11.5px; line-height: 1.8; color: #8c8675; max-width: 22em; }
.ph-note { position: absolute; top: 10px; right: 12px; font-size: 9px; letter-spacing: 0.1em; color: #b3ab98; }

/* AI-generation prompt box inside a placeholder */
.ph-prompt { width: 100%; max-width: 30em; margin-top: 6px; text-align: left; border: 1px solid rgba(0,38,108,0.14); border-radius: 4px; background: rgba(255,255,255,0.5); overflow: hidden; }
.ph-prompt .pp-head { display: flex; align-items: center; gap: 8px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); background: rgba(0,38,108,0.05); padding: 6px 10px; }
.ph-prompt .pp-head::before { content: "✦"; color: var(--orange); }
.ph-prompt code { display: block; padding: 9px 11px; font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; font-size: 10.5px; line-height: 1.65; color: #45474f; white-space: pre-wrap; word-break: break-word; }
.slide[data-tone="deep"] .ph-prompt { border-color: rgba(255,170,90,0.3); background: rgba(255,255,255,0.04); }
.slide[data-tone="deep"] .ph-prompt .pp-head { color: #ffd9b0; background: rgba(255,170,90,0.1); }
.slide[data-tone="deep"] .ph-prompt code { color: #b7bed3; }
.ph.compact { aspect-ratio: auto; padding: 22px; gap: 9px; align-items: flex-start; text-align: left; }
.ph.compact .ph-cap { text-align: left; }

/* chapter opener with image panel */
.ch-img { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(30px, 5vw, 80px); align-items: center; width: 100%; }
.ch-img .ch-left { display: flex; flex-direction: column; }
.ch-img .ph { aspect-ratio: 4/5; }
@media (max-width: 860px) { .ch-img { grid-template-columns: 1fr; } .ch-img .ph { aspect-ratio: 3/2; order: 2; } }

/* asymmetric "what we bring" (S ch2-bring) */
.bring2 { display: flex; flex-direction: column; margin-top: 30px; max-width: 760px; }
.bring2-item { display: grid; grid-template-columns: 86px 1fr; gap: 22px; align-items: baseline; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.12); transition: padding-left 0.4s var(--ease); }
.bring2-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.bring2-item:nth-child(1) { margin-left: 0; }
.bring2-item:nth-child(2) { margin-left: 7%; }
.bring2-item:nth-child(3) { margin-left: 14%; }
.bring2-item .bn { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); font-weight: 200; color: #ff9d3d; line-height: 0.8; }
.bring2-item h4 { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 27px); font-weight: 500; color: #f4ede2; margin: 0 0 8px; }
.bring2-item p { font-size: 13.5px; line-height: 1.9; color: #98a0b8; margin: 0; max-width: 28em; }
@media (max-width: 820px) { .bring2-item { grid-template-columns: 56px 1fr; gap: 16px; margin-left: 0 !important; } }

/* 第3章 生み出すもの（四つのかたち）— エディトリアルな段差リスト */
.forms3 { display: flex; flex-direction: column; max-width: 920px; margin-top: 30px; }
.forms3-row { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 30px; align-items: baseline; padding: 26px 0; border-top: 1px solid rgba(140,170,255,0.16); transition: padding-left 0.4s var(--ease); }
.forms3-row:last-child { border-bottom: 1px solid rgba(140,170,255,0.16); }
.forms3-row:nth-child(2) { padding-left: 3%; }
.forms3-row:nth-child(3) { padding-left: 6%; }
.forms3-row:nth-child(4) { padding-left: 9%; }
.forms3-head { display: flex; gap: 16px; align-items: baseline; }
.forms3-n { font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); font-weight: 200; color: #79b0ff; line-height: 0.9; }
.forms3-row h4 { font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 2.2vw, 26px); color: #eef3ff; margin: 0; line-height: 1.4; }
.forms3-row p { font-size: 14px; line-height: 1.95; color: #9aa8c9; margin: 0; }
@media (max-width: 820px) { .forms3-row { grid-template-columns: 1fr; gap: 10px; padding-left: 0 !important; } }

/* ---------- 実例（第2章・匿名の「いま動いているかたち」） ----------------- */
.evi { display: flex; flex-direction: column; max-width: 780px; margin-top: 26px; }
.evi-row {
  display: grid; grid-template-columns: 168px 1fr; gap: 26px; align-items: baseline;
  padding: 22px 4px; border-top: 1px solid rgba(255,255,255,0.1);
}
.evi-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.evi-who { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #ff9d3d; }
.evi-row p { margin: 0; font-family: var(--serif); font-size: clamp(16px, 2vw, 21px); line-height: 1.8; color: #f4ede2; }
@media (max-width: 820px) { .evi-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- 体制提供の階段（第2章・下の段ほど深く、右へ沈む） -------------- */
.ladder { display: flex; flex-direction: column; max-width: 940px; margin-top: 24px; }
.ladder-row {
  display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) auto;
  gap: 24px; align-items: baseline; padding: 20px 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-decoration: none; color: inherit;
  transition: background 0.3s var(--ease);
}
.ladder-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.ladder-row:nth-child(2) { padding-left: 4%; }
.ladder-row:nth-child(3) { padding-left: 8%; }
.ladder-row:nth-child(4) { padding-left: 12%; }
.ladder-row:hover { background: rgba(255,255,255,0.035); }
.ladder-head { display: flex; gap: 15px; align-items: baseline; }
.ladder-n { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); font-weight: 200; color: #ff9d3d; line-height: 0.9; }
.ladder-row h4 { font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 2.1vw, 24px); color: #f4ede2; margin: 0; line-height: 1.4; }
.ladder-row p { margin: 0; font-size: 13.5px; line-height: 1.9; color: #aab2c8; }
.ladder-go { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #ffd9b0; white-space: nowrap; }
.ladder-row:hover .ladder-go { color: var(--orange); }
@media (max-width: 820px) { .ladder-row { grid-template-columns: 1fr; gap: 8px; padding-left: 0 !important; } }

/* ---------- 証拠のロゴ帯（第3章・黒地に白ロゴ） --------------------------- */
.proof-logos {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(26px, 4.5vw, 58px);
  margin-top: clamp(34px, 6vh, 56px);
}
.proof-logos img { height: 30px; width: auto; opacity: 0.92; }

/* when a real image is supplied, the frame becomes a clean image panel */
.ph:has(> .ph-fill) { border: 0; padding: 0; background: none; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(20,30,60,0.45); }
.ph:has(> .ph-fill) > :not(.ph-fill) { display: none; }
.ph-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.compact:has(> .ph-fill) { aspect-ratio: 4/3; }

/* "what you receive" mini-spec under a placeholder/figure */
.spec { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.spec b { font-size: 11px; font-weight: 700; color: var(--navy); background: rgba(0,38,108,0.05); border-radius: 3px; padding: 5px 10px; letter-spacing: 0.02em; }

/* ========================================================================
   CHAPTER 2 — DEEP TONE overrides (services on midnight navy)
   ======================================================================== */
.slide[data-tone="deep"] .kicker { color: #ff9d3d; }
.slide[data-tone="deep"] .idx { color: #fff; opacity: 0.1; }
.slide[data-tone="deep"] .svc-name { color: #f4ede2; }
.slide[data-tone="deep"] .svc-name .en { color: #8b94ad; }
.slide[data-tone="deep"] .svc-copy { color: #ffd9b0; }
.slide[data-tone="deep"] .svc-plain { color: #aab2c8; }
.slide[data-tone="deep"] .svc-plain::before { background: #ff8200; opacity: 0.6; }
.slide[data-tone="deep"] .svc-body { color: #b7bed3; }
.slide[data-tone="deep"] .num { color: #ff9d3d; }
.slide[data-tone="deep"] .svc-use li { color: #c2c9dc; border-color: rgba(255,255,255,0.12); }
.slide[data-tone="deep"] .svc-use li::before { border-color: #ff8200; }
.slide[data-tone="deep"] .spec b { color: #ffd9b0; background: rgba(255,255,255,0.07); }
.slide[data-tone="deep"] .svc-link { color: #ffd9b0; }
.slide[data-tone="deep"] .fig-pane { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.1); box-shadow: 0 30px 70px -50px rgba(0,0,0,0.8); }
.slide[data-tone="deep"] .huge, .slide[data-tone="deep"] .close-quote { color: #f4ede2; }
.slide[data-tone="deep"] .close-quote .fade { color: #8b94ad; }
.slide[data-tone="deep"] .tag-en { color: #ff9d3d; }
.slide[data-tone="deep"] .ch-cover h2 { color: #f4ede2; }
.slide[data-tone="deep"] .ch-cover .sub { color: #98a0b8; }

/* deep-tone image placeholder */
.slide[data-tone="deep"] .ph { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px), rgba(255,255,255,0.02); border-color: rgba(255,170,90,0.35); }
.slide[data-tone="deep"] .ph-ttl { color: #d8dced; }
.slide[data-tone="deep"] .ph-cap { color: #8b94ad; }
.slide[data-tone="deep"] .ph-ico { stroke: #ff9d3d; }

/* ========================================================================
   CHAPTER 3 — BLUEPRINT TONE overrides (build / SaaS, on indigo grid)
   ======================================================================== */
.slide[data-tone="blueprint"] .kicker { color: #79b0ff; }
.slide[data-tone="blueprint"] .idx { color: #fff; opacity: 0.09; }
.slide[data-tone="blueprint"] .svc-name { color: #eef3ff; }
.slide[data-tone="blueprint"] .svc-name .en { color: #7e90b8; }
.slide[data-tone="blueprint"] .svc-copy { color: #ffd9b0; }
.slide[data-tone="blueprint"] .svc-plain { color: #a6b6d8; }
.slide[data-tone="blueprint"] .svc-plain::before { background: #79b0ff; opacity: 0.7; }
.slide[data-tone="blueprint"] .svc-body { color: #aebbd8; }
.slide[data-tone="blueprint"] .num { color: #79b0ff; }
.slide[data-tone="blueprint"] .svc-use li { color: #bcc7e2; border-color: rgba(140,170,255,0.16); }
.slide[data-tone="blueprint"] .svc-use li::before { border-color: #79b0ff; }
.slide[data-tone="blueprint"] .spec b { color: #cfe0ff; background: rgba(140,170,255,0.1); }
.slide[data-tone="blueprint"] .svc-link { color: #cfe0ff; }
.slide[data-tone="blueprint"] .fig-pane { background: rgba(140,170,255,0.04); border-color: rgba(140,170,255,0.14); box-shadow: 0 30px 70px -50px rgba(0,0,0,0.8); }
.slide[data-tone="blueprint"] .huge, .slide[data-tone="blueprint"] .close-quote, .slide[data-tone="blueprint"] .ch-cover h2 { color: #eef3ff; }
.slide[data-tone="blueprint"] .close-quote .fade { color: #8190b5; }
.slide[data-tone="blueprint"] .lead, .slide[data-tone="blueprint"] .ch-cover .sub { color: #9aa8c9; }
.slide[data-tone="blueprint"] .tag-en { color: #79b0ff; }
.slide[data-tone="blueprint"] .ph { background: repeating-linear-gradient(135deg, rgba(140,170,255,0.03) 0 12px, transparent 12px 24px), rgba(140,170,255,0.02); border-color: rgba(140,170,255,0.32); }
.slide[data-tone="blueprint"] .ph-ttl { color: #cfd9f2; }
.slide[data-tone="blueprint"] .ph-cap { color: #8190b5; }
.slide[data-tone="blueprint"] .ph-ico { stroke: #79b0ff; }
.slide[data-tone="blueprint"] .ph-prompt { border-color: rgba(140,170,255,0.28); background: rgba(140,170,255,0.05); }
.slide[data-tone="blueprint"] .ph-prompt .pp-head { color: #cfe0ff; background: rgba(140,170,255,0.12); }
.slide[data-tone="blueprint"] .ph-prompt code { color: #aebbd8; }
.slide[data-tone="blueprint"] .pipe-step { border-color: rgba(140,170,255,0.16); }
.slide[data-tone="blueprint"] .pipe-step .pn { color: #79b0ff; opacity: 0.5; }
.slide[data-tone="blueprint"] .pipe-step h4 { color: #eef3ff; }
.slide[data-tone="blueprint"] .pipe-step p { color: #8190b5; }
.slide[data-tone="blueprint"] .pipe-step::after { color: #79b0ff; background: transparent; }
.slide[data-tone="blueprint"] .bring2-item { border-color: rgba(140,170,255,0.16); }
.slide[data-tone="blueprint"] .bring2-item .bn { color: #79b0ff; }
.slide[data-tone="blueprint"] .bring2-item h4 { color: #eef3ff; }
.slide[data-tone="blueprint"] .bring2-item p { color: #9aa8c9; }

/* SaaS product badge / external link arrow */
.saas-badge { display: inline-block; font-size: 9px; letter-spacing: 0.1em; color: #79b0ff; border: 1px solid rgba(140,170,255,0.4); border-radius: 99px; padding: 1px 8px; vertical-align: middle; margin-left: 8px; }
.svc-link.ext::after { content: " ↗"; }

/* SaaS lineup (overview, clickable) */
.lineup { display: flex; flex-direction: column; gap: 1px; background: rgba(140,170,255,0.14); border: 1px solid rgba(140,170,255,0.14); max-width: 900px; margin-top: 26px; }
.lineup a { display: grid; grid-template-columns: 160px 1fr auto; gap: 22px; align-items: baseline; padding: 16px 22px; background: #0a1c38; text-decoration: none; color: inherit; transition: background 0.3s var(--ease); }
.lineup a:hover { background: #0d2348; }
.lineup .ln-name { font-family: var(--serif); font-size: 18px; color: #eef3ff; }
.lineup .ln-role { font-size: 12.5px; color: #9aa8c9; }
.lineup .ln-go { font-size: 11px; letter-spacing: 0.1em; color: #79b0ff; }
@media (max-width: 820px) { .lineup a { grid-template-columns: 1fr; gap: 4px; } .lineup .ln-go { display:none; } }

/* ---- the bottleneck / inside diagrams (hero of chapter 2) -------------- */
.diagram { width: 100%; max-width: 620px; margin: 0 auto; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.dgm-node { fill: #16224a; stroke: rgba(255,255,255,0.25); stroke-width: 1.2; }
.dgm-node-label { fill: #d8dced; font-family: "Noto Sans JP"; font-size: 12px; text-anchor: middle; }
.dgm-hub { fill: #1b2c5e; stroke: #6f7da6; stroke-width: 1.4; }
.dgm-hub-label { fill: #fff; font-family: "Noto Sans JP"; font-size: 13px; text-anchor: middle; font-weight: 700; }
.dgm-line { stroke: rgba(150,165,210,0.5); stroke-width: 1.4; fill: none; }
.dgm-jam { stroke: #ff5a4d; }
.dgm-flow { stroke: #ff8200; stroke-width: 1.8; }
.dgm-3pt { fill: #ff8200; stroke: #ffb066; stroke-width: 1.5; }
.dgm-3pt-label { fill: #1a0e00; font-family: "Noto Sans JP"; font-weight: 800; font-size: 13px; text-anchor: middle; }
.dgm-ring { fill: none; stroke: #ff5a4d; stroke-width: 2; opacity: 0.7; }
.dgm-ring.pulse { animation: dgmpulse 2.4s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes dgmpulse { 0%,100% { opacity: 0.25; } 50% { opacity: 0.8; } }
.dgm-tag { fill: #ff8a7d; font-family: "Inter"; font-size: 10px; letter-spacing: 0.1em; text-anchor: middle; }

/* "bring inside" chips (S_bring) */
.bring { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin-top: 30px; }
.bring-card { border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 22px 20px; background: rgba(255,255,255,0.02); }
.bring-card .bn { font-family: var(--serif); font-size: 13px; color: #ff9d3d; }
.bring-card h4 { font-size: 16px; margin: 10px 0 8px; color: #f4ede2; }
.bring-card p { font-size: 12.5px; line-height: 1.85; color: #98a0b8; margin: 0; }
@media (max-width: 820px) { .bring { grid-template-columns: 1fr; } }

/* timeline (S_scene — コンペ week) */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; max-width: 1000px; margin-top: 26px; }
.tl-day { position: relative; padding: 0 14px; }
.tl-day::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.14); }
.tl-day .dot { position: absolute; top: 3px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: #ff8200; }
.tl-day .dy { display: block; margin-top: 26px; font-family: var(--serif); font-size: 14px; color: #ff9d3d; }
.tl-day h4 { font-size: 14px; margin: 8px 0 6px; color: #f4ede2; }
.tl-day p { font-size: 12px; line-height: 1.8; color: #98a0b8; margin: 0; }
@media (max-width: 820px) { .tl { grid-template-columns: 1fr; gap: 18px; } .tl-day::before { display: none; } }

/* chat / log figures (S18, S21) */
.log { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 80%; padding: 13px 17px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid #e7e2d5; border-bottom-left-radius: 3px; }
.bubble.us { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 3px; }
.bubble .who { display: block; font-size: 10px; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 4px; }

/* responsive */
@media (max-width: 820px) {
  .svc-2 { grid-template-columns: 1fr; }
  .fig { order: -1; aspect-ratio: 4/3; }
  .expand { grid-template-columns: 1fr; }
  .expand-col + .expand-col { border-left: 0; border-top: 1px solid var(--paper-line); }
  .purpose-row { grid-template-columns: 1fr; gap: 14px; }
  .guide-row { grid-template-columns: 48px 1fr; }
  .guide-word { display: none; }
  .map-cap b { font-size: 16px; }
}
