/* 入社前事件簿｜採用ミステリーゲーム LP（offer-a.html 専用） */

:root {
  --ink: #1f2d5a;
  --ink-2: #47537d;
  --line: #d9e6f5;
  --sky: #29a8ff;
  --sky-d: #1b86d6;
  --sky-l: #e4f4ff;
  --blue: #1b3fae;
  --yellow: #ffd23f;
  --yellow-d: #e5a800;
  --yellow-l: #fff5c7;
  --coral: #ff5a4e;
  --cta: #d93d22;
  --cta-d: #a92c16;
  --mint: #2fd6a8;
  --pink: #ff8fb8;
  --cream: #fffaf0;
  --paper: #fffef8;
  --cork: #e8c893;
  --round: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --impact: 'Dela Gothic One', 'M PLUS Rounded 1c', 'Hiragino Sans', sans-serif;
  --type: 'Special Elite', 'Courier New', monospace;
  --pop: 0 6px 0 rgba(31, 45, 90, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { word-break: auto-phrase; }
:focus-visible { outline: 3px solid #4aa3ff; outline-offset: 3px; }
::selection { background: #ffe27a; color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 3px solid var(--ink); }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
br.sp { display: none; }
.nowrap { white-space: nowrap; }

/* ---------- ボタン ---------- */
.btn {
  --bg: var(--sky); --fg: #fff; --sh: var(--sky-d);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 30px;
  background: var(--bg); color: var(--fg);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink);
  font-family: var(--round); font-weight: 900; font-size: 17px; line-height: 1.3; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn small { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.btn-play { --bg: var(--yellow); --fg: var(--ink); }
.btn-cta { --bg: var(--cta); --fg: #fff; }
.btn-ghost { --bg: #fff; --fg: var(--blue); }
.btn-coral { --bg: var(--coral); --fg: #fff; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; box-shadow: 0 4px 0 var(--ink); }
.btn-sm:hover { box-shadow: 0 6px 0 var(--ink); }
.btn-sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-lg { min-height: 70px; padding: 18px 40px; font-size: 20px; }
.btn-tri { width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.text-btn { background: none; border: 0; padding: 6px 4px; font-family: var(--round); font-weight: 800; font-size: 15px; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- デザイン案の切り替え ---------- */
.review {
  position: relative; z-index: 60;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px;
  padding: 6px 12px;
  background: #fff; border-bottom: 2px solid var(--line);
  font-family: var(--round); font-weight: 800; font-size: 12px;
}
.review-label { color: var(--ink-2); letter-spacing: .06em; margin-right: 4px; }
.review a { padding: 2px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); border: 2px solid transparent; }
.review a:hover { border-color: var(--line); }
.review a[aria-current="page"] { background: var(--sky); color: #fff; }

/* ---------- ヘッダー ---------- */
.head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.head.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(31, 45, 90, .07); }
.head-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.head-logo { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.head-logo img { width: auto; height: 44px; }
.head-logo small { font-family: var(--round); font-weight: 800; font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.head-nav { display: flex; gap: 2px; }
.head-nav a { padding: 8px 12px; border-radius: 999px; font-family: var(--round); font-weight: 800; font-size: 14px; text-decoration: none; transition: background .2s, color .2s; }
.head-nav a:hover { background: var(--sky-l); color: var(--blue); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: min(880px, calc(100svh - 70px));
  display: flex; align-items: center;
  overflow: hidden;
  background: #bfe6ff;
  touch-action: pan-y;
}
.hero-art { position: absolute; inset: 0; cursor: none; }
.hero-img { position: absolute; inset: 0; background: #bfe6ff url("assets/offer-a/hero.webp") 70% 50% / cover no-repeat; animation: heroIn 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 78% at 22% 50%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .82) 42%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 55%);
}
.hero-in { position: relative; z-index: 3; pointer-events: none; padding-block: 44px 110px; }
.hero-copy { max-width: 560px; pointer-events: auto; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 4px 16px 4px 4px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; font-family: var(--round); font-weight: 800; font-size: 13px; box-shadow: 0 4px 0 rgba(31, 45, 90, .18); }
.hero-kicker span { padding: 3px 12px; background: var(--coral); color: #fff; border-radius: 999px; }
.hero-logo { margin: 18px 0 0 -10px; width: min(560px, 100%); rotate: -2deg; animation: logoIn .9s cubic-bezier(.2, 1.4, .4, 1) .2s both; filter: drop-shadow(0 10px 18px rgba(27, 63, 174, .22)); }
.hero-title { margin: 12px 0 0; font-family: var(--round); font-weight: 900; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.5; letter-spacing: .02em; }
.hero-lead { margin: 14px 0 0; font-size: 16px; line-height: 1.95; color: var(--ink-2); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hero-notes li::before, .final-notes li::before {
  content: ""; display: inline-block; width: 17px; height: 17px; margin-right: 6px; vertical-align: -3px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* 虫めがね */
.lens {
  --size: 176px;
  position: absolute; left: 0; top: 0; z-index: 4;
  width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  pointer-events: none;
  opacity: 0; scale: .6;
  transition: opacity .25s ease, scale .25s cubic-bezier(.2, 1.4, .4, 1);
  will-change: transform;
}
.hero.is-lens .lens { opacity: 1; scale: 1; }
.lens-view { position: absolute; inset: 9px; border-radius: 50%; background-repeat: no-repeat; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), inset 0 -10px 20px rgba(27, 63, 174, .18); }
.lens-view::after { content: ""; position: absolute; left: 18%; top: 12%; width: 34%; height: 20%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%); rotate: -30deg; }
.lens-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#fbe3a2, #c8922d, #fff1c4, #b07d24, #f3cf78, #fbe3a2); -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 12px), #000 calc(100% - 11px)); mask: radial-gradient(circle closest-side, transparent calc(100% - 12px), #000 calc(100% - 11px)); filter: drop-shadow(0 4px 0 rgba(31, 45, 90, .35)); }
.lens-handle { position: absolute; left: 82%; top: 82%; width: 22px; height: 86px; border-radius: 12px; background: linear-gradient(90deg, #8b5a2b, #c98a4b 45%, #7a4a20); border: 3px solid var(--ink); transform-origin: 50% 0; rotate: -45deg; }
.hero-clues { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.clue { position: absolute; transform: translate(-50%, -50%); }
.clue-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); font-family: var(--impact); font-size: 20px; color: var(--ink); box-shadow: 0 4px 0 rgba(31, 45, 90, .3); opacity: 0; scale: .3; transition: opacity .3s, scale .45s cubic-bezier(.2, 1.6, .4, 1); }
.clue-card { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; width: max-content; max-width: 240px; padding: 8px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 rgba(31, 45, 90, .2); font-family: var(--round); font-weight: 800; font-size: 13px; line-height: 1.5; opacity: 0; scale: .7; transition: opacity .3s .1s, scale .4s cubic-bezier(.2, 1.5, .4, 1) .1s; }
.clue-card b { display: block; font-size: 11px; letter-spacing: .12em; color: var(--coral); }
.clue.is-near .clue-mark { opacity: .9; scale: .85; }
.clue.is-found .clue-mark, .clue.is-found .clue-card { opacity: 1; scale: 1; }
.clue.is-found .clue-mark { background: var(--mint); color: #fff; }
.hunt {
  position: absolute; right: 3%; bottom: 40px; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 12px 8px 10px;
  background: rgba(255, 255, 255, .95); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 5px 0 rgba(31, 45, 90, .2);
  font-family: var(--round); font-weight: 800; font-size: 14px;
  animation: bob 3.2s ease-in-out infinite;
}
.hunt-q { display: flex; align-items: center; gap: 8px; margin: 0; }
.hunt-q b { color: var(--coral); }
.hunt-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2d5a' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E") center / 18px no-repeat; border: 2px solid var(--ink); }
.hunt-dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hunt-dots li { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; transition: background .3s, scale .3s; }
.hunt-dots li.is-on { background: var(--mint); scale: 1.15; }
.hunt.is-done { background: var(--yellow); animation: none; }
.hunt a { color: var(--blue); }

/* ---------- テープ ---------- */
.tape {
  position: relative; z-index: 6;
  margin: -18px -14px 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, var(--ink) 0 14px, transparent 14px 28px) top / 100% 7px no-repeat,
    repeating-linear-gradient(-45deg, var(--ink) 0 14px, transparent 14px 28px) bottom / 100% 7px no-repeat,
    var(--yellow);
  border-block: 3px solid var(--ink);
  rotate: -1.4deg;
}
.tape-track { display: flex; width: max-content; padding: 14px 0; font-family: var(--round); font-weight: 900; font-size: 17px; letter-spacing: .06em; animation: tape 36s linear infinite; }
.tape-track > * { margin-right: 20px; }
.tape-track i { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }

/* ---------- 節の共通 ---------- */
.sec { position: relative; padding: 104px 0; }
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-lead { margin-inline: auto; }
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--round); font-weight: 800; font-size: 14px; color: var(--ink-2); }
.label span { padding: 3px 12px; background: var(--ink); color: #fff; border-radius: 6px; font-family: var(--type); font-weight: 400; font-size: 13px; letter-spacing: .12em; }
.sec-title { margin: 0; font-family: var(--round); font-weight: 900; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.45; letter-spacing: .02em; }
.sec-lead { margin: 16px 0 0; max-width: 42em; font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.sec-lead b { color: var(--coral); }

/* ---------- 体験版ステージ ---------- */
.case { background: radial-gradient(circle at 1px 1px, rgba(41, 168, 255, .22) 1.3px, transparent 1.8px) 0 0 / 24px 24px, linear-gradient(180deg, #dff2ff 0%, #f4fbff 100%); padding-top: 116px; }
.stage {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 560px;
  overflow: hidden;
  background: #cfeaff;
  border: 4px solid var(--ink); border-radius: 28px;
  box-shadow: 0 12px 0 #a9d6ff, 0 34px 70px rgba(31, 45, 90, .18);
  isolation: isolate;
}
.stage.is-called { animation: called 1.1s ease; }
.stage.is-shake { animation: shake .45s; }
.stage-bg { position: absolute; inset: -3%; background: url("assets/offer-a/board.webp") center / cover no-repeat; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.stage[data-scene="title"] .stage-bg { filter: saturate(1.05) brightness(1.04); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .25)); pointer-events: none; }
.stage-lines { position: absolute; inset: -20%; z-index: 3; opacity: 0; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .95) 0deg 2.2deg, rgba(255, 255, 255, 0) 2.2deg 7deg), radial-gradient(circle, #fff7c2 0%, #ffd23f 45%, #29a8ff 100%); transition: opacity .2s; }
.stage.is-cutin .stage-lines { opacity: 1; animation: spin 6s linear infinite; }
.stage[data-scene="result"] .stage-lines { opacity: .7; animation: spin 24s linear infinite; }
.stage[data-scene="result"] .stage-bg { filter: blur(2px) brightness(1.08); }
.sprites { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sprite {
  position: absolute; bottom: -2%;
  height: 86%; width: auto; max-width: none;
  opacity: 0;
  translate: 0 40px;
  transition: opacity .35s ease, translate .45s cubic-bezier(.2, 1.2, .4, 1), filter .3s ease, left .45s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 10px 16px rgba(31, 45, 90, .25));
}
.sprite.is-on { opacity: 1; translate: 0 0; }
.sprite.is-dim { filter: drop-shadow(0 10px 16px rgba(31, 45, 90, .2)) saturate(.55) brightness(.92); }
.sprite.is-talk { animation: talk .5s ease; }
.sprite[data-pos="left"] { left: 4%; }
.sprite[data-pos="center"] { left: 50%; margin-left: calc(var(--w, 300px) / -2); }
.sprite[data-pos="right"] { left: auto; right: 4%; }
.sprite[data-pos="stage-left"] { left: 16%; }
.stage-hud { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 6; display: flex; align-items: center; gap: 8px; font-family: var(--round); font-weight: 800; pointer-events: none; }
.stage-hud > * { pointer-events: auto; }
.hud-case { display: flex; align-items: center; gap: 8px; margin: 0 auto 0 0; padding: 4px 14px 4px 4px; background: rgba(255, 255, 255, .95); border: 3px solid var(--ink); border-radius: 999px; font-size: 14px; }
.hud-case b { padding: 2px 10px; background: var(--ink); color: #fff; border-radius: 999px; font-family: var(--type); font-weight: 400; font-size: 12px; letter-spacing: .1em; }
.hud-meter { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; background: rgba(255, 255, 255, .95); border: 3px solid var(--ink); border-radius: 999px; font-size: 12px; }
.meter { position: relative; width: 110px; height: 12px; border-radius: 999px; background: #e3ecfb; border: 2px solid var(--ink); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--mint), var(--yellow)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.hud-time { margin: 0; padding: 4px 12px; background: rgba(255, 255, 255, .95); border: 3px solid var(--ink); border-radius: 999px; font-size: 14px; font-variant-numeric: tabular-nums; }
.hud-btn { min-height: 36px; padding: 3px 12px; background: rgba(255, 255, 255, .95); border: 3px solid var(--ink); border-radius: 999px; font-family: var(--round); font-weight: 800; font-size: 13px; }
.hud-btn b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 2px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 12px; }
.hud-btn[aria-pressed="true"] { background: var(--yellow); }
.hud-btn.is-pulse { animation: pulse 1s ease 2; }
.stage-ui { position: absolute; inset: 0; z-index: 5; }

/* タイトル画面 */
.title-card { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: min(560px, calc(100% - 32px)); padding: 26px 30px 26px; text-align: center; background: rgba(255, 255, 255, .94); border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 rgba(31, 45, 90, .2); animation: popIn .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.title-kicker { margin: 0; font-family: var(--type); font-size: 14px; letter-spacing: .16em; color: var(--coral); }
.title-name { margin: 8px 0 0; font-family: var(--impact); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.15; color: var(--blue); letter-spacing: .02em; text-shadow: 3px 3px 0 var(--yellow), 6px 6px 0 rgba(31, 45, 90, .15); }
.title-line { margin: 12px 0 0; font-size: 15px; font-weight: 500; line-height: 1.8; color: var(--ink-2); }
.title-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.title-meta { margin: 12px 0 0; font-size: 12px; color: var(--ink-2); }

/* 会話ウィンドウ */
.talk {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  min-height: 150px; padding: 26px 24px 18px;
  background: rgba(255, 255, 255, .96);
  border: 4px solid var(--ink); border-radius: 22px;
  box-shadow: 0 7px 0 rgba(31, 45, 90, .22);
  animation: talkIn .3s ease both;
}
.talk.is-click { cursor: pointer; }
.talk-name { position: absolute; left: 20px; top: -20px; margin: 0; padding: 3px 16px; background: var(--coral); color: #fff; border: 3px solid var(--ink); border-radius: 999px; font-family: var(--round); font-weight: 900; font-size: 15px; }
.talk-name small { margin-left: 8px; font-size: 12px; font-weight: 800; opacity: .9; }
.talk-name.is-you { background: var(--sky); }
.talk-name.is-sys { background: var(--ink); }
.talk-text { margin: 0; min-height: 3.4em; font-size: 18px; line-height: 1.8; font-weight: 500; }
.talk-text b { color: var(--coral); }
.talk-next { position: absolute; right: 18px; bottom: 10px; font-size: 18px; color: var(--sky); animation: nudge 1s ease-in-out infinite; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.talk-actions[hidden] { display: none; }
.who-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.who { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); font-family: var(--round); font-weight: 900; font-size: 15px; transition: transform .15s, box-shadow .15s; }
.who:hover { transform: translateY(-2px); }
.who:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.who img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); }
.who small { display: block; font-size: 11px; color: var(--ink-2); font-weight: 800; }
.who.is-done { opacity: .5; }
.who.is-done::after { content: "✓"; color: var(--mint); font-size: 18px; }

/* 証言 */
.testify-banner { position: absolute; left: 50%; top: 70px; translate: -50% 0; z-index: 2; padding: 6px 26px; background: var(--yellow); border: 4px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 rgba(31, 45, 90, .25); font-family: var(--impact); font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .08em; white-space: nowrap; rotate: -2deg; animation: bannerIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.testify-banner small { font-family: var(--round); font-weight: 900; font-size: 14px; margin-left: 10px; letter-spacing: 0; }
.stmt-no { display: inline-block; margin-bottom: 4px; padding: 1px 10px; background: var(--sky-l); color: var(--blue); border-radius: 999px; font-family: var(--round); font-weight: 900; font-size: 12px; }
.stmt-about { display: none; }
.stmt-text { color: #1060c9; }
.stmt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.stmt-nav .spacer { flex: 1; }
.feedback { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.7; }
.feedback.is-bad { color: var(--cta); }
.feedback.is-hint { color: #0c7d63; }

/* 証拠ファイル */
.file-panel { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 18px; background: rgba(228, 244, 255, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease; }
.file-panel[hidden] { display: none; }
.file-panel-in { width: min(820px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px 20px; background: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 rgba(31, 45, 90, .2); }
.file-panel-title { margin: 0 0 12px; font-family: var(--round); font-weight: 900; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.file-panel-title small { font-size: 13px; color: var(--coral); }
.file-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; }
.ev {
  position: relative; display: block; width: 100%; padding: 12px 14px; text-align: left;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 0 4px 0 rgba(31, 45, 90, .15);
  transition: transform .15s, box-shadow .15s, background .15s;
}
button.ev:hover { transform: translateY(-2px); background: #fffbe2; }
.ev-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--round); font-weight: 900; font-size: 15px; }
.ev-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 9px; }
.ev-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; line-height: 1.6; }
.ev dt { color: var(--ink-2); }
.ev dd { margin: 0; font-weight: 700; text-align: right; }
.ev-code { position: absolute; right: 12px; top: 10px; font-family: var(--type); font-size: 12px; color: var(--ink-2); }
.i-y { background: var(--yellow); } .i-s { background: #bfe0ff; } .i-m { background: #aaf0dc; } .i-p { background: #ffc9dc; }
.ev-ghost { position: fixed; z-index: 300; display: grid; place-items: center; width: 60px; height: 60px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 rgba(31, 45, 90, .25); pointer-events: none; }
.ev-ghost svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* カットイン */
.cutin { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; pointer-events: none; }
.cutin-word { font-family: var(--impact); font-size: clamp(56px, 9vw, 120px); line-height: 1; color: #fff; letter-spacing: .04em; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--coral), 0 14px 0 var(--ink); rotate: -6deg; animation: slam .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.cutin-sub { position: absolute; left: 50%; bottom: 16%; translate: -50% 0; padding: 6px 18px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; font-family: var(--round); font-weight: 900; font-size: 16px; white-space: nowrap; animation: popIn .4s .35s both; }

/* 判断 */
.decide { position: absolute; inset: 70px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.decide-q { margin: 0; padding: 10px 18px; background: rgba(255, 255, 255, .96); border: 4px solid var(--ink); border-radius: 18px; font-family: var(--round); font-weight: 900; font-size: 18px; box-shadow: 0 5px 0 rgba(31, 45, 90, .2); }
.decide-q small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 800; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px 16px; text-align: left; background: rgba(255, 255, 255, .97); border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); font-size: 15px; font-weight: 700; line-height: 1.7; transition: transform .15s, box-shadow .15s, background .15s; }
.choice:hover { transform: translateY(-3px); background: #fffbe2; }
.choice:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.choice-key { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky); color: #fff; border: 3px solid var(--ink); font-family: var(--impact); font-size: 18px; }
.choice:nth-child(2) .choice-key { background: #0f9d7a; }
.choice:nth-child(3) .choice-key { background: var(--cta); }

/* 結末・結果 */
.ending { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 24px 24px 18px; background: rgba(255, 255, 255, .97); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 rgba(31, 45, 90, .22); animation: talkIn .35s ease both; }
.ending-label { position: absolute; left: 20px; top: -18px; margin: 0; padding: 2px 14px; background: var(--ink); color: #fff; border-radius: 999px; font-family: var(--type); font-size: 13px; letter-spacing: .08em; }
.ending.is-best .ending-label { background: var(--mint); color: var(--ink); }
.ending-title { margin: 0; font-family: var(--round); font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); }
.ending-story { margin: 6px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.ending-quote { margin: 10px 0 0; padding: 8px 14px; background: var(--yellow-l); border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.7; }
.ending-quote small { display: block; font-size: 12px; color: var(--ink-2); }
.ending-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.result { position: absolute; inset: 64px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; overflow: auto; text-align: center; animation: fade .4s ease both; }
.result-title { position: relative; margin: 6px 0 0; font-family: var(--impact); font-size: clamp(40px, 6vw, 76px); line-height: 1.05; color: var(--yellow); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--blue), 0 12px 18px rgba(31, 45, 90, .25); animation: slam .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.result-stamp { position: absolute; right: -54px; top: -14px; display: grid; place-items: center; width: 84px; height: 84px; border: 5px solid var(--cta); border-radius: 50%; color: var(--cta); font-family: var(--impact); font-size: 24px; -webkit-text-stroke: 0; text-shadow: none; background: rgba(255, 255, 255, .85); rotate: 14deg; animation: stamp .5s .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.result-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.result-meta span { padding: 3px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; font-family: var(--round); font-weight: 900; font-size: 14px; font-variant-numeric: tabular-nums; }
.met { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 820px; margin: 4px 0 0; padding: 0; list-style: none; text-align: left; }
.met li { padding: 10px 12px; background: rgba(255, 255, 255, .97); border: 3px solid var(--ink); border-radius: 16px; font-size: 13px; font-weight: 700; line-height: 1.65; }
.met h4 { margin: 0 0 2px; font-family: var(--round); font-weight: 900; font-size: 13px; color: var(--blue); }
.pivot { width: 100%; max-width: 820px; padding: 16px 18px; background: var(--sky); color: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }
.pivot h3 { margin: 0; font-family: var(--round); font-weight: 900; font-size: clamp(19px, 2.2vw, 24px); }
.pivot p { margin: 4px 0 0; font-size: 14px; line-height: 1.75; }
.pivot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.result-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0; }
.confetti { position: absolute; inset: 0; z-index: 9; width: 100%; height: 100%; pointer-events: none; }
.noscript { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; padding: 12px 18px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; font-weight: 700; }
.case-after { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin: 36px auto 0; font-size: 15px; color: var(--ink-2); text-align: center; }
.case-after p { margin: 0; }
.case-after b { color: var(--ink); }

/* ---------- しくみ：捜査ボード ---------- */
.why { background: linear-gradient(180deg, #fffaf0 0%, #fff4dc 100%); }
.board {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto;
  gap: 42px 48px;
  padding: 54px 48px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, .06) 1px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .25) 1px, transparent 1.6px) 0 0 / 7px 7px,
    var(--cork);
  border: 12px solid #c48a4c;
  border-radius: 18px;
  box-shadow: inset 0 0 0 3px rgba(31, 45, 90, .2), 0 14px 0 rgba(31, 45, 90, .12), 0 30px 60px rgba(31, 45, 90, .12);
}
.board-strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.board-strings path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 2px 0 rgba(31, 45, 90, .25)); }
.pin { position: relative; z-index: 2; padding: 22px 20px 20px; background: var(--paper); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 0 8px 0 rgba(31, 45, 90, .16); }
.pin-1 { rotate: -2deg; } .pin-2 { rotate: 1.5deg; } .pin-3 { rotate: 2deg; } .pin-4 { rotate: -1.5deg; }
.pin-1 { grid-column: 1; grid-row: 1; }
.pin-2 { grid-column: 3; grid-row: 1; }
.pin-3 { grid-column: 1; grid-row: 2; }
.pin-4 { grid-column: 3; grid-row: 2; }
.pin-center { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: var(--yellow-l); rotate: -1deg; text-align: center; padding: 30px 22px; }
.pin-tack { position: absolute; left: 50%; top: -12px; translate: -50% 0; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9d92, var(--coral) 55%, #c9362c); border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(31, 45, 90, .3); }
.pin-step { margin: 0; font-family: var(--type); font-size: 13px; letter-spacing: .06em; color: var(--coral); }
.pin h3 { margin: 4px 0 0; font-family: var(--round); font-weight: 900; font-size: 22px; line-height: 1.4; }
.pin p:last-of-type { margin: 6px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.pin-center h3 { font-size: clamp(22px, 2.3vw, 28px); }
.stamp { position: absolute; right: -18px; bottom: -22px; display: grid; place-items: center; width: 86px; height: 86px; border: 5px solid var(--cta); border-radius: 50%; color: var(--cta); font-family: var(--impact); font-size: 24px; background: rgba(255, 255, 255, .7); rotate: -14deg; opacity: 0; scale: 1.8; transition: opacity .3s .5s, scale .5s .5s cubic-bezier(.2, 1.6, .4, 1); }
.pin-center.is-in .stamp { opacity: 1; scale: 1; }

/* ---------- 企画例：事件ファイル ---------- */
.file { background: linear-gradient(180deg, #e8f6ff 0%, #fffaf0 100%); }
.file-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; margin: 26px 0 0; padding: 0; border: 0; }
.chips legend { width: 100%; margin: 0 0 10px; padding: 0; font-family: var(--round); font-weight: 900; font-size: 15px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); font-family: var(--round); font-weight: 800; font-size: 15px; transition: background .15s, color .15s, transform .15s; }
.chip-opt:hover span { transform: translateY(-1px); }
.chip-opt input:checked + span { background: var(--yellow); }
.chip-opt input:focus-visible + span { outline: 3px solid #4aa3ff; outline-offset: 2px; }
.folder { position: relative; margin-top: 30px; padding: 0; }
.folder-tab { position: absolute; left: 24px; top: -30px; margin: 0; padding: 4px 22px 8px; background: #f5c96b; border: 3px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; font-family: var(--type); font-size: 15px; letter-spacing: .14em; }
.folder-paper { position: relative; min-height: 430px; padding: 26px 26px 22px; background: linear-gradient(transparent 0 calc(100% - 1px), rgba(41, 168, 255, .14) calc(100% - 1px)) 0 0 / 100% 30px, var(--paper); border: 3px solid var(--ink); border-radius: 0 18px 18px 18px; box-shadow: 10px 10px 0 #f5c96b, 10px 10px 0 3px var(--ink), 0 26px 50px rgba(31, 45, 90, .14); }
.folder.is-open .folder-paper { animation: fileOpen .5s cubic-bezier(.2, .8, .2, 1); }
.case-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.case-no { font-family: var(--type); font-size: 15px; letter-spacing: .1em; color: var(--coral); }
.case-ind { padding: 2px 12px; background: var(--sky-l); color: var(--blue); border-radius: 999px; font-size: 13px; font-weight: 800; }
.case-title { margin: 12px 0 8px; font-family: var(--round); font-weight: 900; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; }
.case-story { margin: 0; font-size: 15px; line-height: 1.9; }
.case-dl { display: grid; gap: 10px; margin: 16px 0 0; }
.case-dl div { display: grid; grid-template-columns: 128px 1fr; gap: 10px; }
.case-dl dt { font-family: var(--type); font-size: 13px; color: var(--ink-2); padding-top: 3px; }
.case-dl dd { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.75; }
.case-twist { display: block; font-size: 13px; color: #0c7d63; }
.case-value { margin: 14px 0 0; padding: 12px 16px; background: var(--yellow-l); border: 2px dashed var(--ink); border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.75; }
.case-value b { display: block; font-family: var(--type); font-weight: 400; font-size: 13px; letter-spacing: .06em; color: #8a5d00; }
.case-demo { margin: 10px 0 0; font-size: 13px; font-weight: 800; color: #0c7d63; }
.case-empty { margin: 0; color: var(--ink-2); }
.typing::after { content: "▍"; color: var(--coral); animation: blink .8s steps(2, start) infinite; }
.folder-stamp { position: absolute; right: -16px; top: -22px; padding: 2px 12px; background: #fff; border: 3px solid var(--coral); border-radius: 8px; color: var(--coral); font-family: var(--impact); font-size: 16px; rotate: 10deg; }
.folder-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.folder-note { margin: 14px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 使える場面（付箋）・制作の範囲 ---------- */
.uses { background: var(--cream); }
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.note { position: relative; padding: 30px 20px 22px; border: 3px solid var(--ink); border-radius: 4px; box-shadow: 0 8px 0 rgba(31, 45, 90, .14); }
.note::before { content: ""; position: absolute; left: 50%; top: -14px; translate: -50% 0; width: 90px; height: 24px; background: rgba(255, 255, 255, .7); border: 2px solid rgba(31, 45, 90, .25); rotate: -3deg; }
.note:nth-child(odd) { rotate: -1.6deg; } .note:nth-child(even) { rotate: 1.4deg; }
.n-yellow { background: #fff2a8; } .n-sky { background: #cdeaff; } .n-mint { background: #c7f5e6; } .n-pink { background: #ffd9e6; }
.note h3 { margin: 0; font-family: var(--round); font-weight: 900; font-size: 18px; line-height: 1.45; }
.note p { margin: 8px 0 0; font-size: 14px; line-height: 1.8; }
.make { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 96px; }
.make-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: mk; }
.make-list li { position: relative; padding: 16px 18px 16px 70px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 rgba(31, 45, 90, .12); font-size: 15px; line-height: 1.8; color: var(--ink-2); counter-increment: mk; }
.make-list li::before { content: counter(mk, decimal-leading-zero); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; background: var(--sky); color: #fff; border: 3px solid var(--ink); border-radius: 12px; font-family: var(--type); font-size: 15px; }
.make-list b { display: block; font-family: var(--round); font-weight: 900; font-size: 18px; color: var(--ink); }
.maker { padding: 28px 26px; background: var(--yellow-l); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 rgba(31, 45, 90, .16); }
.maker-label { margin: 0; font-family: var(--type); font-size: 14px; letter-spacing: .1em; color: #8a5d00; }
.maker-name { margin: 4px 0 0; font-family: var(--round); font-weight: 900; font-size: 26px; line-height: 1.3; }
.maker-name small { margin-left: 10px; padding: 1px 10px; vertical-align: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; font-size: 14px; }
.maker-text { margin: 12px 0 0; font-size: 15px; line-height: 1.9; }
.maker-game { display: block; margin-top: 18px; padding: 14px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); text-decoration: none; transition: transform .15s; }
.maker-game:hover { transform: translateY(-3px); }
.maker-game span { display: inline-block; padding: 2px 10px; background: var(--cta); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 800; }
.maker-game b { display: block; margin-top: 6px; font-family: var(--round); font-weight: 900; font-size: 22px; color: var(--blue); }
.maker-game small { display: block; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.maker-link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 800; color: var(--blue); text-underline-offset: 4px; }

/* ---------- 制作の流れ ---------- */
.flow { background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%); }
.trail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 26px 0 0; list-style: none; }
.trail::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50px; border-top: 4px dashed #9ccaf0; }
.trail-step { position: relative; padding: 40px 16px 18px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--pop); }
.trail-no { position: absolute; left: 50%; top: -26px; translate: -50% 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sky); color: #fff; border: 3px solid var(--ink); font-family: var(--type); font-size: 18px; box-shadow: 0 4px 0 var(--ink); }
.trail-tag { margin: 0; text-align: center; font-family: var(--round); font-weight: 900; font-size: 13px; color: var(--coral); }
.trail-step h3 { margin: 2px 0 0; text-align: center; font-family: var(--round); font-weight: 900; font-size: 19px; }
.trail-step p:last-child { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.trail-goal { background: var(--yellow); }
.trail-goal .trail-no { background: var(--cta); }
.trail-goal p:last-child { color: var(--ink); }

/* ---------- よくある質問（メモ帳） ---------- */
.faq { background: #fff; }
.faq-in { max-width: 880px; }
.memo { position: relative; padding: 34px 26px 26px; background: linear-gradient(transparent 0 calc(100% - 1px), rgba(255, 90, 78, .18) calc(100% - 1px)) 0 0 / 100% 34px, var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 10px 0 rgba(31, 45, 90, .12); }
.memo::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 18px; background: radial-gradient(circle at 12px 9px, var(--cream) 5px, var(--ink) 6px, transparent 7px) 0 0 / 30px 18px repeat-x; }
.qa { border-bottom: 2px dashed rgba(31, 45, 90, .2); }
.qa:last-child { border-bottom: 0; }
.qa summary { display: flex; align-items: center; gap: 14px; padding: 16px 4px; list-style: none; cursor: pointer; font-family: var(--round); font-weight: 900; font-size: 16px; line-height: 1.6; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--sky); color: #fff; border: 2px solid var(--ink); border-radius: 50%; font-family: var(--type); }
.qa summary::after { content: "+"; margin-left: auto; flex: none; font-family: var(--round); font-weight: 900; font-size: 24px; color: var(--coral); transition: rotate .2s; }
.qa[open] summary::after { rotate: 45deg; }
.qa p { margin: 0; padding: 0 4px 18px 50px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 最後の相談導線 ---------- */
.final { position: relative; overflow: hidden; padding: 110px 0; border-top: 4px solid var(--ink); }
.final-bg { position: absolute; inset: 0; background: url("assets/offer-a/clear.webp") 20% 38% / cover no-repeat; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .6) 34%, rgba(255, 255, 255, 0) 58%); }
.final-in { position: relative; display: flex; justify-content: flex-end; }
.final-card { max-width: 600px; padding: 34px 34px 30px; background: rgba(255, 255, 255, .92); border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 10px 0 var(--ink); }
.final-title { margin: 0; font-family: var(--round); font-weight: 900; font-size: clamp(32px, 4vw, 54px); line-height: 1.35; }
.final-title em { font-style: normal; color: var(--coral); }
.final-lead { margin: 16px 0 0; font-size: 17px; font-weight: 700; line-height: 1.9; }
.final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.final-notes { display: grid; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }

/* ---------- フッター ---------- */
.foot { padding: 36px 0 40px; background: #fff; border-top: 3px solid var(--ink); }
.foot-in { display: grid; gap: 14px; }
.foot-brand { margin: 0; font-family: var(--round); font-weight: 900; font-size: 18px; }
.foot-addr { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-nav a { font-size: 14px; font-weight: 700; color: var(--blue); text-underline-offset: 3px; }
.foot-note { margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.foot-copy { font-size: 12px; color: var(--ink-2); }

/* ---------- 追従ボタン・通知 ---------- */
.sticky {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; gap: 10px; padding: 10px;
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 10px 26px rgba(31, 45, 90, .2);
  visibility: hidden; opacity: 0; translate: 0 140%;
  transition: translate .35s cubic-bezier(.2, .8, .2, 1), opacity .35s, visibility 0s linear .35s;
}
.sticky.is-on { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 90; max-width: calc(100% - 32px); padding: 10px 18px; background: var(--sky); color: #fff; border: 3px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; text-align: center; opacity: 0; translate: -50% 16px; pointer-events: none; transition: opacity .25s, translate .25s; }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- 出現 ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }

@keyframes heroIn { from { scale: 1.08; opacity: .4; } to { scale: 1; opacity: 1; } }
@keyframes logoIn { 0% { scale: .5; opacity: 0; rotate: -12deg; } 100% { scale: 1; opacity: 1; rotate: -2deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes tape { to { transform: translateX(-50%); } }
@keyframes called { 0% { box-shadow: 0 12px 0 #a9d6ff, 0 0 0 0 rgba(255, 210, 63, .95); } 70% { box-shadow: 0 12px 0 #a9d6ff, 0 0 0 22px rgba(255, 210, 63, 0); } 100% { box-shadow: 0 12px 0 #a9d6ff, 0 34px 70px rgba(31, 45, 90, .18); } }
@keyframes shake { 0%, 100% { translate: 0 0; } 15% { translate: -10px 4px; } 30% { translate: 9px -4px; } 45% { translate: -7px 3px; } 60% { translate: 6px -2px; } 80% { translate: -3px 1px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes talk { 0% { translate: 0 0; } 40% { translate: 0 -10px; } 100% { translate: 0 0; } }
@keyframes popIn { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes talkIn { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
@keyframes bannerIn { from { opacity: 0; scale: 1.6; } to { opacity: 1; scale: 1; } }
@keyframes slam { 0% { opacity: 0; scale: 2.4; } 60% { opacity: 1; scale: .92; } 100% { scale: 1; } }
@keyframes stamp { 0% { opacity: 0; scale: 2; } 100% { opacity: 1; scale: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.12; background: var(--yellow); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes fileOpen { 0% { transform: perspective(900px) rotateX(-24deg); transform-origin: 50% 0; opacity: .3; } 100% { transform: none; opacity: 1; } }

/* ---------- 画面幅ごとの調整 ---------- */
@media (max-width: 1024px) {
  .head-nav { display: none; }
  .trail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .trail::before { display: none; }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; padding: 40px 28px; gap: 36px 28px; }
  .pin-1, .pin-2, .pin-3, .pin-4 { grid-column: auto; grid-row: auto; }
  .pin-center { grid-column: 1 / -1; grid-row: auto; order: 5; }
}

@media (max-width: 900px) {
  .file-grid, .make { grid-template-columns: 1fr; gap: 30px; }
  .stage { aspect-ratio: auto; height: min(680px, 92svh); min-height: 560px; }
  .sprite { height: 62%; bottom: 30%; }
  .choices { grid-template-columns: 1fr; gap: 8px; }
  .choice { flex-direction: row; align-items: center; padding: 10px 14px; }
  .met { grid-template-columns: 1fr; }
  .file-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; display: block; }
  .hero-art { position: relative; height: 62vw; min-height: 260px; cursor: auto; }
  .hero-img { background-image: url("assets/offer-a/hero-900.webp"); background-position: 72% 50%; }
  .stage-bg { background-image: url("assets/offer-a/board-900.webp"); }
  .hero-glow { display: none; }
  .hero-in { padding-block: 22px 40px; }
  .hero-copy { max-width: none; }
  .hero-logo { width: min(460px, 100%); margin-left: -6px; }
  .hunt { position: absolute; top: calc(62vw - 58px); bottom: auto; right: 12px; left: 12px; justify-content: space-between; font-size: 12px; animation: none; }
  .lens { --size: 120px; }
  .clue-mark { width: 30px; height: 30px; font-size: 15px; }
  .clue-card { font-size: 12px; max-width: 180px; }
  .tape { margin-top: 0; }
  .stage-hud { gap: 6px; top: 10px; left: 10px; right: 10px; flex-wrap: wrap; }
  .hud-case span, .meter-label { display: none; }
  .meter { width: 70px; }
  .hud-meter { padding: 5px 8px; }
  .talk { left: 10px; right: 10px; bottom: 10px; padding: 24px 16px 14px; min-height: 0; }
  .talk-text { font-size: 16px; min-height: 0; }
  .testify-banner { top: 96px; font-size: 18px; padding: 4px 16px; }
  .decide { inset: 96px 10px 10px; }
  .decide-q { font-size: 16px; }
  .ending { left: 10px; right: 10px; bottom: 10px; padding: 22px 16px 14px; }
  .result { inset: 96px 10px 10px; }
  .result-stamp { width: 64px; height: 64px; font-size: 18px; right: -30px; }
  .title-card { padding: 22px 18px; }
  .title-kicker { font-size: 12px; letter-spacing: .06em; }
  .cutin-sub { white-space: normal; width: calc(100% - 40px); text-align: center; }
  .testify-banner { display: none; }
  .stmt-about { display: inline; }
  .stage[data-scene="result"] { height: auto; }
  .stage[data-scene="result"] .stage-ui { position: relative; inset: auto; }
  .stage[data-scene="result"] .result { position: relative; inset: auto; padding: 96px 10px 16px; overflow: visible; }
  .met li { font-size: 12px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  br.pc { display: none; }
  br.sp { display: inline; }
  .review-label, .rv-l { display: none; }
  .head-in { min-height: 58px; gap: 10px; }
  .head-logo img { height: 36px; }
  .head-logo small { display: none; }
  .head-cta { min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 30px; }
  .hero-actions .btn, .final-actions .btn, .btn-lg { width: 100%; }
  .notes, .trail { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; padding: 32px 18px; border-width: 8px; }
  .pin-center { order: 0; }
  .folder-paper { padding: 22px 16px 18px; min-height: 0; }
  .case-dl div { grid-template-columns: 1fr; gap: 2px; }
  .make-list li { padding-left: 64px; }
  .final { padding: 0 0 56px; }
  .final-bg { position: relative; height: 56vw; background-image: url("assets/offer-a/clear-900.webp"); }
  .final-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .95) 100%); }
  .final-card { margin-top: -40px; padding: 26px 18px 22px; }
  .sticky { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); justify-content: center; border-radius: 22px; }
  .sticky .btn { flex: 1; padding-inline: 8px; }
  .foot { padding-bottom: 116px; }
  .qa p { padding-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .tape-track { animation: none; }
}
