/* ============================================================
   闇バイト回避シミュレーター — style.css
   紙の地に、啓発ポスターのイラストと同じ色。
   黄＝注意、コーラル／赤＝危険、紺＝相談・助け、青緑＝回避。
   イラストは Adobe Stock の素材を部品に分けた WebP（img/）。
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --paper: #fbf7ee;
  --paper-2: #f4eddc;
  --white: #ffffff;
  --ink: #1f2633;
  --ink-soft: rgba(31, 38, 51, 0.74);
  --ink-mute: rgba(31, 38, 51, 0.5);
  --line: rgba(31, 38, 51, 0.14);
  --yellow: #ffe33f;
  --yellow-2: #fedc5e;
  --gold: #edbc32;
  --teal: #62c0b4;
  --teal-deep: #2b8f83;
  --sky: #83ccd2;
  --coral: #ed7980;
  --red: #e60012;
  --navy: #0054a7;
  --navy-deep: #0b3a73;
  --olive: #cdd171;
  --beige: #cdaf81;
  --orange: #f18e38;
  --f-head: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  /* Dela は28px以上の大見出しだけ。小見出し・ボタンは字形がつぶれるので Noto Sans JP の900 */
  --f-sub: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-hand: "Yusei Magic", "Zen Kaku Gothic New", sans-serif;
  --f-num: "Oswald", "Arial Narrow", sans-serif;
  --f-ui: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --ease-pop: cubic-bezier(0.2, 1.4, 0.4, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --head-h: 64px;
  --tb: max(0px, calc(100% - 100svh));
  /* 横向き案内（js/orient.js）の色 */
  --amix-orient-bg: rgba(31, 38, 51, 0.97);
  --amix-orient-fg: #fff;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked, .gate-on body { overflow: hidden; }
/* 連打やダブルタップで拡大されないように（スクロールとピンチはそのまま） */
button, a, label, input, select, [role="button"], .player, .gate { touch-action: manipulation; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
strong, b { font-weight: 700; }
h1, h2, h3 { font-weight: 400; word-break: auto-phrase; text-wrap: balance; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }
.nb { display: inline-block; }

/* 蛍光ペンの線 */
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); padding: 0 0.08em; }

/* ---------- 見えたらふわっと ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .pop { opacity: 0; transform: scale(0.86) rotate(-3deg); transition: opacity 0.6s, transform 0.8s var(--ease-pop); }
.js .pop.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal, .js .pop { opacity: 1; transform: none; transition: none; } }

/* ---------- ヒーローの出現（入口の広告を閉じたら順に出る） ----------
   translate / scale は transform と別の指定なので、絵の傾きや揺れ（bob）とぶつからない */
.js .hero .hero-in { opacity: 0; transition: opacity 0.6s var(--ease-out), translate 0.9s var(--ease-out), scale 0.7s var(--ease-pop); transition-delay: var(--d, 0s); }
.js .hero .blob.hero-in { scale: 0.86; transition-duration: 0.9s, 0.9s, 1.1s; }
.js .hero .blob-tl.hero-in { transform-origin: 0 0; }
.js .hero .blob-tr.hero-in { transform-origin: 100% 0; }
.js .hero .blob-br.hero-in { transform-origin: 100% 100%; }
.js .hero .hero-hand.hero-in { translate: 0 14px; scale: 0.9; transform-origin: 0 100%; }
.js .hero .hero-title .l1.hero-in, .js .hero .hero-title .l2.hero-in { translate: -36px 0; }
.js .hero .hero-title em.hero-in { display: inline-block; scale: 1.9; translate: 0 -6px; transition: opacity 0.18s linear, translate 0.4s var(--ease-out), scale 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: var(--d); }
.js .hero .hero-lead.hero-in, .js .hero .hero-cta.hero-in, .js .hero .hero-note.hero-in { translate: 0 18px; }
.js .hero .burst.hero-in { scale: 0.5; }
.js .hero .hero-phone.hero-in { translate: 0 70px; transition-duration: 0.5s, 1s, 0.7s; }
.js .hero .police.hero-in { translate: -70px 0; }
.js .hero .crook.hero-in { translate: 70px 0; }
.js .hero .sign.hero-in { translate: 0 -44px; scale: 0.7; }
.js .hero .zap.hero-in { scale: 0.2; }
.js .hero.is-go .hero-in, .js .hero.is-go .hero-title .hero-in { opacity: 1; translate: none; scale: none; }
.js .hero.is-go .burst.hero-in { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .js .hero .hero-in, .js .hero .hero-title .hero-in { opacity: 1; translate: none; scale: none; transition: none; } .js .hero .burst.hero-in { opacity: 0.9; } }
.is-ogp .hero .hero-in { transition: none !important; }

/* ---------- ふわふわ揺れる絵 ---------- */
@keyframes bob { 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
.bob { animation: bob 4.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bob { animation: none; } }

/* ---------- 角の色面（大きくはみ出させる） ---------- */
.blob { position: absolute; pointer-events: none; z-index: 0; user-select: none; }

/* ============================================================
   入口：偽の求人広告（最初の描画から出す）
   ============================================================ */
.gate {
  display: none;
  position: fixed;
  inset: 0;
  bottom: var(--tb, 0px);
  z-index: 300;
  place-items: center;
  align-content: center;
  align-content: safe center;
  row-gap: 18px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 14%, #ff7ab8 0 16%, transparent 17%),
    radial-gradient(circle at 86% 82%, #ffe14d 0 20%, transparent 21%),
    repeating-conic-gradient(from 0deg at 50% 50%, #ff2e88 0 10deg, #ff4f9d 10deg 20deg);
}
.gate-on .gate { display: grid; }
.gate-ad {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  color: #1a1a1a;
  border: 5px solid #1a1a1a;
  border-radius: 18px;
  box-shadow: 10px 10px 0 #1a1a1a;
  padding: 26px 22px 18px;
  text-align: center;
  font-family: var(--f-ui);
  animation: gateShake 2.4s ease-in-out infinite;
}
@keyframes gateShake { 0%, 86%, 100% { transform: rotate(-1deg); } 90% { transform: rotate(1.5deg) scale(1.02); } 94% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .gate-ad { animation: none; } }
.gate-x { position: absolute; top: 6px; right: 8px; font-size: 11px; color: #b7b7b7; padding: 6px 8px; line-height: 1; }
.gate-x:hover, .gate-x:focus-visible { color: #555; text-decoration: underline; }
.gate-badge { display: inline-block; background: #ff2e88; color: #fff; font-weight: 900; font-size: 13px; padding: 4px 14px; border-radius: 99px; letter-spacing: 0.1em; }
.gate-pay { font-weight: 900; font-size: clamp(40px, 12vw, 58px); line-height: 1.15; margin-top: 10px; color: #ff2e88; text-shadow: 3px 3px 0 #ffe14d; }
.gate-pay small { font-size: 0.45em; color: #1a1a1a; text-shadow: none; }
.gate-catch { font-weight: 900; font-size: 20px; line-height: 1.5; margin-top: 8px; }
.gate-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.gate-tags li { list-style: none; font-weight: 700; font-size: 13px; background: #ffe14d; border: 2px solid #1a1a1a; border-radius: 6px; padding: 2px 8px; }
.gate-apply {
  display: block;
  width: 100%;
  margin-top: 18px;
  background: #00c853;
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 900;
  font-size: 21px;
  padding: 15px 10px;
  border-radius: 12px;
  border: 4px solid #1a1a1a;
  box-shadow: 0 6px 0 #1a1a1a;
  animation: applyPulse 1.1s ease-in-out infinite;
}
.gate-apply:active { transform: translateY(4px); box-shadow: 0 2px 0 #1a1a1a; }
@keyframes applyPulse { 50% { filter: brightness(1.12); transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .gate-apply { animation: none; } }
.gate-dm { font-size: 12.5px; font-weight: 700; margin-top: 10px; color: #444; }
.gate-note { font-size: 11px; color: #8a8a8a; margin-top: 14px; line-height: 1.6; }

/* 種明かし */
.gate.is-flip { background: var(--ink); }
.gate.is-flip .gate-ad { display: none; }
.gate-flip { display: none; position: relative; width: min(600px, 100%); text-align: center; color: #fff; }
.gate.is-flip .gate-flip { display: block; }
.gate-flip-pic { width: 140px; margin: 0 auto; }
.gate-flip-head { font-family: var(--f-head); font-size: clamp(30px, 7vw, 46px); line-height: 1.35; margin-top: 18px; }
.gate-flip-head .is-red { color: var(--coral); }
.gate-flip-body { font-size: 15.5px; line-height: 1.95; color: rgba(255, 255, 255, 0.84); margin-top: 18px; text-align: left; }
.gate-flip-go {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-sub); font-weight: 900;
  font-size: 17px;
  padding: 15px 32px;
  border-radius: 99px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-pop);
}
.gate-flip-go:hover { transform: translateY(-2px); }
.gate-flip > * { opacity: 0; transform: translateY(14px); }
.gate.is-flip .gate-flip > * { animation: flipIn 0.7s var(--ease-out) forwards; }
.gate.is-flip .gate-flip > :nth-child(2) { animation-delay: 0.35s; }
.gate.is-flip .gate-flip > :nth-child(3) { animation-delay: 1.1s; }
.gate.is-flip .gate-flip > :nth-child(4) { animation-delay: 1.7s; }
@keyframes flipIn { to { opacity: 1; transform: none; } }
.gate-glitch { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.gate.is-glitch .gate-glitch { opacity: 1; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 5px), #000; animation: glitch 0.45s steps(4) forwards; }
@keyframes glitch { 0% { clip-path: inset(0 0 70% 0); } 30% { clip-path: inset(40% 0 20% 0); } 100% { clip-path: inset(0 0 0 0); } }

/* ============================================================
   ヘッダー
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.logo-main { font-family: var(--f-sub); font-weight: 900; font-size: 19px; letter-spacing: 0.02em; }
.logo-main em { font-style: normal; color: var(--red); }
.logo-sub { font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: var(--ink-mute); margin-top: 3px; }
.topnav { display: flex; gap: 2px; }
.topnav a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 99px; white-space: nowrap; }
.topnav a:hover { background: rgba(31, 38, 51, 0.07); }
.topnav a.is-help { background: var(--navy); color: #fff; margin-left: 6px; }
.topnav a.is-help:hover { background: var(--navy-deep); }
.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 12px; flex: none; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease-pop), opacity 0.2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; top: var(--head-h); left: 0; right: 0; z-index: 99; background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px 16px 14px; display: grid; box-shadow: 0 20px 40px rgba(31, 38, 51, 0.1); }
.menu a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.menu a:last-child { border-bottom: none; color: var(--navy); }
@media (max-width: 860px) { .topnav { display: none; } .burger { display: block; } }
/* スマホ幅：ロゴ・音・メニューが1行に収まるように */
@media (max-width: 480px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .logo { min-width: 0; }
  .logo-main { font-size: clamp(13px, 4.2vw, 17px); letter-spacing: 0; }
  .logo-sub { font-size: 10px; letter-spacing: 0.08em; }
  .burger { width: 40px; margin-right: -6px; }
  .burger span { left: 9px; right: 9px; }
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-sub); font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 99px;
  white-space: nowrap;
  border: 2.5px solid var(--ink);
  transition: transform 0.25s var(--ease-pop), box-shadow 0.25s, background 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(1px, 1px); }
.btn .arrow { font-family: var(--f-num); font-size: 1.1em; }
.btn-main { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-main:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy-deep); box-shadow: 4px 4px 0 var(--navy-deep); }
.btn-navy:hover { box-shadow: 6px 6px 0 var(--navy-deep); }
.btn-plain { background: var(--white); color: var(--ink); }
.btn-plain:hover { background: var(--paper-2); }
.btn-ink { background: var(--ink); color: #fff; }

/* ============================================================
   セクション共通
   ============================================================ */
.sec { position: relative; padding: clamp(90px, 11vw, 150px) clamp(16px, 5vw, 64px); overflow: hidden; }
.sec-in { position: relative; z-index: 1; max-width: 1140px; margin-inline: auto; }
.sec-head { position: relative; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-hand { font-family: var(--f-hand); font-size: clamp(16px, 1.8vw, 19px); color: var(--navy); }
.sec-title { font-family: var(--f-head); font-size: clamp(28px, 4.6vw, 46px); line-height: 1.42; margin-top: 8px; }
.sec-lead { font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-soft); margin-top: 20px; }
.sec-lead b { color: var(--ink); }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--head-h) + 30px) clamp(16px, 5vw, 64px) 70px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero .blob-tl { top: 0; left: 0; width: min(54vw, 660px); }
.hero .blob-br { right: 0; bottom: 0; width: min(58vw, 720px); }
.hero .blob-tr { top: 0; right: 0; width: min(30vw, 380px); }
.hero-grid { position: relative; z-index: 2; max-width: 1180px; width: 100%; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-hand { display: inline-block; font-family: var(--f-hand); font-size: clamp(16px, 1.9vw, 21px); line-height: 1.5; color: var(--ink); background: var(--white); padding: 8px 18px; border-radius: 18px 18px 18px 4px; border: 2.5px solid var(--ink); transform: rotate(-2deg); }
.hero-title { font-family: var(--f-head); line-height: 1.12; margin-top: 22px; }
.hero-title .l1 { display: block; font-size: clamp(66px, 10vw, 136px); letter-spacing: -0.01em; white-space: nowrap; }
.hero-title .l1 em { font-style: normal; color: var(--red); }
.hero-title .l2 { display: block; font-size: clamp(30px, 4.3vw, 58px); white-space: nowrap; margin-top: 0.1em; }
.hero-lead { font-size: clamp(15.5px, 1.6vw, 17.5px); line-height: 2; margin-top: 26px; max-width: 32em; color: var(--ink-soft); }
.hero-lead b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { font-size: 13px; color: var(--ink-mute); margin-top: 20px; }

.hero-art { position: relative; height: min(660px, 78svh); min-height: 540px; }
.hero-art img { position: absolute; }
.hero-art .burst { left: 50%; top: 0; width: 86%; transform: translateX(-50%); opacity: 0.9; }
.hero-art .police { left: -8%; bottom: 2%; width: 44%; z-index: 3; }
.hero-art .crook { right: -6%; bottom: 0; width: 30%; z-index: 3; --r: 3deg; }
.hero-art .sign { right: 2%; top: 4%; width: 22%; z-index: 1; --r: 8deg; }
.hero-art .zap { left: 10%; top: 12%; width: 9%; }
.hero-phone { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 58%; max-width: 290px; z-index: 2; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 540px; min-height: 0; max-width: 460px; width: 100%; margin: 10px auto 0; }
  .hero .blob-tl { width: 92vw; }
  .hero .blob-br { width: 100vw; }
}
@media (max-width: 400px) { .hero-art { height: 480px; } }

/* ロック画面 */
.lock { position: relative; width: 100%; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 10px; background: var(--ink); box-shadow: 12px 16px 0 rgba(31, 38, 51, 0.14); }
.lock-screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: linear-gradient(170deg, #83ccd2 0%, #62c0b4 42%, #0054a7 100%); padding: 44px 10px 14px; }
.lock-screen::before { content: ""; position: absolute; top: 11px; left: 50%; width: 84px; height: 24px; border-radius: 99px; background: #000; transform: translateX(-50%); }
.lock-time { text-align: center; font-family: var(--f-ui); font-weight: 300; font-size: 56px; line-height: 1; color: #fff; }
.lock-date { text-align: center; font-family: var(--f-ui); font-weight: 500; font-size: 12.5px; color: rgba(255, 255, 255, 0.92); margin-top: 6px; }
.lock-notes { position: absolute; left: 9px; right: 9px; top: 136px; display: flex; flex-direction: column; gap: 7px; }
.note { position: relative; background: rgba(255, 255, 255, 0.94); color: #111; border-radius: 16px; padding: 9px 11px 10px 46px; font-family: var(--f-ui); font-size: 12px; line-height: 1.45; animation: noteIn 0.6s var(--ease-pop); }
.note.is-out { animation: noteOut 0.5s ease forwards; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-28px) scale(0.96); } }
/* 消える通知は透明にするだけ（位置は FLIP のすべりにまかせる） */
@keyframes noteOut { to { opacity: 0; } }
.note-icon { position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: #fff; }
.note-app { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(0, 0, 0, 0.5); font-weight: 500; }
.note-title { font-weight: 700; font-size: 12.5px; }
.note-body { color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-stamp { position: absolute; right: 8px; top: 50%; width: 50px; height: 50px; margin-top: -25px; border: 3px solid var(--red); border-radius: 50%; color: var(--red); font-family: var(--f-head); font-size: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); transform: rotate(-14deg) scale(2.4); opacity: 0; }
.note.is-stamped .note-stamp { animation: stampIn 0.35s var(--ease-pop) forwards; }
@keyframes stampIn { to { transform: rotate(-14deg) scale(1); opacity: 1; } }

/* ============================================================
   闇バイトとは
   ============================================================ */
.intro { background: var(--white); }
.intro .blob-a { left: 0; bottom: 0; width: min(42vw, 480px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.facts { border-top: 2.5px solid var(--ink); }
.fact { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr); gap: 4px 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fact .fact-num { font-family: var(--f-num); font-weight: 600; font-size: clamp(46px, 6vw, 66px); line-height: 1; color: var(--red); white-space: nowrap; }
.fact .fact-num small { font-family: var(--f-sub); font-weight: 900; font-size: 0.32em; margin-left: 4px; color: var(--ink); }
.fact.is-blue .fact-num { color: var(--navy); }
.fact p { font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.fact p b { display: block; font-family: var(--f-sub); font-weight: 900; font-size: 18px; line-height: 1.55; color: var(--ink); margin-bottom: 4px; }
.intro-art .atm { width: 100%; max-width: 420px; margin-inline: auto; }
.intro-bubble { margin-top: 24px; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; align-items: center; }
.intro-bubble img { width: 100px; }
.intro-bubble blockquote { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 20px; padding: 16px 20px; font-family: var(--f-sub); font-weight: 900; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.65; }
.intro-bubble blockquote small { display: block; font-family: var(--f-body); font-weight: 700; font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; }
.intro-src { font-size: 12.5px; color: var(--ink-mute); margin-top: 22px; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-art { order: -1; }
  .intro-art .atm { max-width: 280px; }
  .fact { grid-template-columns: 1fr; }
}

/* ============================================================
   ケース一覧
   ============================================================ */
.cases { background: var(--paper-2); }
.cases .blob-a { right: 0; top: 0; width: min(36vw, 420px); }
.cases .blob-b { left: 0; bottom: 0; width: min(42vw, 500px); }
.cases-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; font-weight: 700; font-size: 14px; }
.cases-progress strong { font-family: var(--f-num); font-weight: 600; font-size: 20px; }
.cases-progress .bar { flex: 1 1 200px; max-width: 320px; height: 12px; border-radius: 99px; background: var(--white); border: 2px solid var(--ink); overflow: hidden; }
.cases-progress .bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width 0.8s var(--ease-out); }
.case-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.case-card { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; background: var(--white); border: 2.5px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); transition: transform 0.3s var(--ease-pop), box-shadow 0.3s; }
.case-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.case-card:focus-visible { outline: 4px solid var(--navy); outline-offset: 4px; }
.case-pic { position: relative; height: 190px; background: var(--tint, var(--yellow-2)); border-bottom: 2.5px solid var(--ink); overflow: hidden; }
.case-pic img { position: absolute; left: 50%; bottom: -4px; height: 90%; width: auto; max-width: none; transform: translateX(-50%); transition: transform 0.5s var(--ease-pop); }
.case-card:hover .case-pic img { transform: translateX(-50%) translateY(-6px) rotate(-2deg); }
.case-no { position: absolute; left: 16px; top: 10px; font-family: var(--f-num); font-weight: 600; font-size: 46px; line-height: 1; }
.case-route { position: absolute; right: 14px; top: 14px; color: var(--ink); font-weight: 700; font-size: 12.5px; padding: 4px 12px; border-radius: 99px; background: var(--white); border: 2px solid var(--ink); white-space: nowrap; }
.case-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px; }
.case-title { font-family: var(--f-sub); font-weight: 900; font-size: 19px; line-height: 1.5; }
.case-hook { font-size: 14px; line-height: 1.8; color: var(--ink-soft); margin-top: 10px; flex: 1; }
.case-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.case-crime { font-size: 12.5px; font-weight: 700; color: var(--ink-mute); }
.case-flags { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.case-state { flex: none; color: var(--ink); font-family: var(--f-sub); font-weight: 900; font-size: 13.5px; padding: 7px 16px; border-radius: 99px; background: var(--yellow); border: 2px solid var(--ink); white-space: nowrap; }
.case-card[data-best="avoid"] .case-state { background: var(--teal); color: #fff; }
.case-card[data-best="escape"] .case-state { background: var(--navy); color: #fff; }
.case-card[data-best="caught"] .case-state { background: var(--coral); color: #fff; }
.case-card.is-final { background: var(--ink); color: #fff; }
.case-card.is-final .case-hook, .case-card.is-final .case-crime, .case-card.is-final .case-flags { color: rgba(255, 255, 255, 0.74); }
.case-card.is-final .case-foot { border-top-color: rgba(255, 255, 255, 0.22); }

/* ============================================================
   求人ジャッジ
   ============================================================ */
.judge { background: var(--paper); }
.judge .blob-a { right: 0; bottom: 0; width: min(42vw, 500px); }
.judge-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .judge-box { grid-template-columns: 1fr; } }
.job { position: relative; background: var(--white); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 22px 22px 18px; font-family: var(--f-ui); transition: transform 0.45s var(--ease-pop), opacity 0.3s; }
.job.is-out-l { transform: translateX(-30px) rotate(-6deg); opacity: 0; }
.job.is-out-r { transform: translateX(30px) rotate(6deg); opacity: 0; }
.job.is-in { animation: jobIn 0.5s var(--ease-pop); }
@keyframes jobIn { from { transform: translateY(24px) scale(0.96); opacity: 0; } }
.job-site { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #d85a00; }
.job-site span:last-child { color: var(--ink-mute); font-family: var(--f-num); font-size: 14px; }
.job-title { font-weight: 900; font-size: 20px; line-height: 1.45; margin-top: 8px; font-family: var(--f-ui); }
.job-pay { display: inline-block; font-weight: 900; font-size: 22px; color: #d9300b; margin-top: 6px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.job-tags li { list-style: none; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 6px; background: #fff1e5; color: #b14600; border: 1px solid #ffd3b0; white-space: nowrap; }
.job-rows { margin-top: 14px; border-top: 1px solid var(--line); }
.job-rows div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.6; padding: 8px 0; border-bottom: 1px solid var(--line); }
.job-rows dt { font-weight: 700; color: var(--ink-mute); }
.judge-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.judge-btn { font-family: var(--f-sub); font-weight: 900; font-size: 17px; padding: 14px 10px; border-radius: 18px; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: #fff; transition: transform 0.2s var(--ease-pop), box-shadow 0.2s; }
.judge-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.judge-btn.is-ok { background: var(--teal); }
.judge-btn.is-dark { background: var(--coral); }
.judge-btn small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 700; opacity: 0.92; }
.judge-ans { margin-top: 20px; border-radius: 20px; padding: 20px 22px; background: var(--white); border: 2.5px solid var(--ink); animation: jobIn 0.45s var(--ease-pop); }
.judge-ans .judge-ans-head { display: flex; align-items: center; gap: 12px; font-family: var(--f-sub); font-weight: 900; font-size: 20px; line-height: 1.4; }
.judge-ans .judge-ans-head .mark-c { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex: none; color: #fff; font-family: var(--f-body); font-weight: 900; }
.judge-ans.is-right .mark-c { background: var(--teal); }
.judge-ans.is-wrong .mark-c { background: var(--coral); }
.judge-ans .judge-ans-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: 12px; }
.judge-ans .judge-ans-text { font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); margin-top: 4px; }
.judge-next { margin-top: 16px; }
.judge-side { position: sticky; top: calc(var(--head-h) + 20px); }
.judge-judge { width: 190px; margin: 0 0 -14px 14px; position: relative; z-index: 1; }
.judge-score { position: relative; background: var(--white); border-radius: 22px; padding: 22px; border: 2.5px solid var(--ink); }
.judge-score-label { font-size: 13px; font-weight: 700; color: var(--ink-mute); }
.judge-score-num { font-family: var(--f-num); font-weight: 600; font-size: 56px; line-height: 1.05; }
.judge-score-num small { font-size: 0.45em; color: var(--ink-mute); }
.judge-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.judge-dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line); display: block; }
.judge-dots i.is-right { background: var(--teal); border-color: var(--teal); }
.judge-dots i.is-wrong { background: var(--coral); border-color: var(--coral); }
.judge-dots i.is-now { border-color: var(--ink); }
.judge-tip { margin-top: 14px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.judge-tip b { color: var(--ink); }
.judge-end { text-align: center; padding: 34px 22px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.judge-end .judge-end-num { font-family: var(--f-num); font-weight: 600; font-size: 84px; line-height: 1; }
.judge-end .judge-end-num small { font-size: 0.4em; color: var(--ink-mute); }
.judge-end h3 { font-family: var(--f-sub); font-weight: 900; font-size: 24px; margin-top: 10px; }
.judge-end p { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }
.judge-end .btn { margin-top: 20px; }
@media (max-width: 860px) { .judge-side { position: static; } .judge-judge { width: 140px; } }

/* ============================================================
   闇の階段
   ============================================================ */
.stairs { background: var(--white); }
.stairs .blob-a { right: 0; top: 0; width: min(34vw, 400px); }
.stair-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.36fr); gap: clamp(20px, 4vw, 60px); align-items: end; }
.stair-list { list-style: none; display: grid; gap: 10px; }
.stair { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 22px; margin-left: calc(var(--i) * clamp(0px, 3.4vw, 48px)); border-radius: 20px; background: var(--c); border: 2.5px solid var(--ink); }
.stair-no { font-family: var(--f-num); font-weight: 600; font-size: 54px; line-height: 0.95; }
.stair h3 { font-family: var(--f-sub); font-weight: 900; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; }
.stair h3 small { display: inline-block; font-family: var(--f-body); font-weight: 700; font-size: 12.5px; margin-left: 8px; padding: 1px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.75); color: var(--ink); vertical-align: 2px; white-space: nowrap; }
.stair p { font-size: 14.5px; line-height: 1.8; margin-top: 6px; }
.stair .say { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 14px 14px 14px 4px; background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.stair .back { display: inline-block; margin: 8px 0 0 8px; font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.stair.is-dark { color: #fff; }
.stair.is-dark .back { color: #fff; text-decoration: underline; }
.stair-art img { width: 100%; max-width: 250px; margin-inline: auto; }
.stairs-exit { margin-top: 30px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px clamp(20px, 3vw, 34px); border-radius: 24px; background: var(--navy); color: #fff; }
.stairs-exit img { width: 120px; }
.stairs-exit p { font-family: var(--f-sub); font-weight: 900; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.55; }
.stairs-exit small { display: block; font-family: var(--f-body); font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.88); margin-top: 6px; }
@media (max-width: 860px) { .stair-wrap { grid-template-columns: 1fr; } .stair-art { display: none; } }
@media (max-width: 640px) {
  .stair { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; margin-left: calc(var(--i) * 6px); }
  .stair-no { font-size: 40px; }
  .stairs-exit { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .stairs-exit img { width: 76px; }
}

/* ============================================================
   見抜くサイン
   ============================================================ */
.signs { background: var(--paper); }
.signs .blob-a { left: 0; top: 0; width: min(42vw, 500px); }
.signs .blob-b { right: 0; bottom: 0; width: min(48vw, 580px); }
.sign-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.sign { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 24px; padding: 22px 20px 22px 24px; }
.sign-no { font-family: var(--f-num); font-weight: 600; font-size: 16px; color: var(--ink-mute); }
.sign-word { display: inline-block; font-family: var(--f-sub); font-weight: 900; font-size: 14px; line-height: 1.4; padding: 5px 12px; border-radius: 10px; background: var(--yellow); margin-top: 4px; }
.sign h3 { font-family: var(--f-sub); font-weight: 900; font-size: 19px; line-height: 1.5; margin-top: 12px; }
.sign p { font-size: 14px; line-height: 1.85; color: var(--ink-soft); margin-top: 8px; }
.sign-pic { align-self: center; width: 88px; }
@media (max-width: 400px) { .sign { grid-template-columns: minmax(0, 1fr) 64px; } .sign-pic { width: 64px; } }

/* ============================================================
   応募してしまったら
   ============================================================ */
.ifyou { background: var(--navy); color: #fff; }
.ifyou .blob-a { right: 0; top: 0; width: min(36vw, 420px); }
.ifyou .blob-b { left: 0; bottom: 0; width: min(40vw, 460px); opacity: 0.9; }
.ifyou .sec-hand { color: var(--yellow); }
.ifyou .sec-lead { color: rgba(255, 255, 255, 0.9); }
.ifyou-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr); gap: clamp(20px, 4vw, 60px); align-items: end; }
.ifyou-big { font-family: var(--f-head); font-size: clamp(30px, 5vw, 56px); line-height: 1.4; margin-top: 8px; }
.ifyou-big em { font-style: normal; color: var(--yellow); }
.ifyou-art { position: relative; }
.ifyou-art .police { width: 100%; max-width: 320px; margin-left: auto; }
.ifyou-art .sos { position: absolute; left: 0; top: -10px; width: 36%; --r: -8deg; }
.ifyou-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.ifyou-steps li { background: var(--white); color: var(--ink); border-radius: 24px; padding: 24px; border: 2.5px solid var(--navy-deep); }
.ifyou-steps .n { font-family: var(--f-num); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; color: var(--navy); }
.ifyou-steps h3 { font-family: var(--f-sub); font-weight: 900; font-size: 20px; line-height: 1.45; margin-top: 4px; }
.ifyou-steps .d { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 860px) {
  .ifyou-grid { grid-template-columns: 1fr; }
  .ifyou-art { max-width: 260px; margin: 0 auto; }
  .ifyou-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   “仕事”の正体
   ============================================================ */
.crime { background: var(--white); }
.crime .blob-a { left: 0; bottom: 0; width: min(44vw, 520px); }
.crime-run { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 30px); margin: -6px 0 30px; }
.crime-run img { height: clamp(130px, 21vw, 230px); width: auto; }
.crime-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.crime-item { border: 2.5px solid var(--ink); border-radius: 24px; padding: 24px; background: var(--paper); }
.crime-job { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 99px; background: var(--ink); color: #fff; }
.crime-item h3 { font-family: var(--f-sub); font-weight: 900; font-size: 20px; line-height: 1.5; margin-top: 12px; }
.crime-item p { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); margin-top: 6px; }
.crime-law { margin-top: 12px; display: grid; gap: 6px; }
.crime-law li { list-style: none; font-size: 13.5px; line-height: 1.65; padding: 9px 13px; border-radius: 12px; background: var(--white); }
.crime-law b { color: var(--red); }
.crime-more { margin-top: 24px; padding: 22px 26px; border-radius: 24px; background: var(--yellow); border: 2.5px solid var(--ink); font-size: 15px; line-height: 1.9; }
.crime-more b { font-family: var(--f-sub); font-weight: 900; }
.crime-note { font-size: 12.5px; color: var(--ink-mute); margin-top: 14px; }
@media (max-width: 860px) { .crime-list { grid-template-columns: 1fr; } }

/* ============================================================
   相談先
   ============================================================ */
.help { background: var(--paper-2); }
.help .blob-a { right: 0; top: 0; width: min(38vw, 440px); }
.help-head { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 20px; align-items: end; max-width: 880px; }
.help-head img { width: 170px; }
.help-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.help-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 2.5px solid var(--ink); border-radius: 24px; padding: 22px; }
.help-card.is-main { background: var(--navy); color: #fff; border-color: var(--navy-deep); }
.help-tag { font-size: 12.5px; font-weight: 700; color: var(--ink-mute); }
.help-card.is-main .help-tag { color: rgba(255, 255, 255, 0.84); }
.help-num { font-family: var(--f-num); font-weight: 600; font-size: 50px; line-height: 1.1; margin-top: 6px; text-decoration: none; display: inline-block; white-space: nowrap; }
.help-num.is-mid { font-size: 36px; }
.help-num.is-text { font-family: var(--f-sub); font-weight: 900; font-size: 23px; line-height: 1.45; }
.help-card h3 { font-family: var(--f-sub); font-weight: 900; font-size: 16.5px; line-height: 1.5; margin-top: 4px; }
.help-card .d { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); margin-top: 8px; flex: 1; }
.help-card.is-main .d { color: rgba(255, 255, 255, 0.9); }
.help-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 22px; }
.help-note a, .intro-src a { color: var(--navy); font-weight: 700; }
@media (max-width: 640px) { .help-head { grid-template-columns: minmax(0, 1fr) 96px; } .help-head img { width: 96px; } }

/* ============================================================
   保護者・先生の方へ
   ============================================================ */
.teach { background: var(--paper); }

/* ---------- あわせて体験（ダークパターン博物館へのカード） ---------- */
.sec.sister { background: var(--paper-2); padding-block: clamp(56px, 7vw, 90px); }
.sister-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; max-width: 920px; margin-inline: auto; padding: clamp(14px, 2vw, 20px); border: 2.5px solid var(--ink); border-radius: 26px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 8px 8px 0 var(--ink); transition: translate 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
/* 出現（.reveal の transform）とぶつけないよう、浮く動きは translate で出す */
.js .sister-card.reveal { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), translate 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.sister-card:hover { translate: -2px -3px; box-shadow: 11px 11px 0 var(--ink); }
.sister-card:active { translate: 4px 4px; box-shadow: 3px 3px 0 var(--ink); }
.sister-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.sister-pic { display: block; width: 100%; height: auto; border-radius: 16px; border: 2px solid var(--ink); }
.sister-body { display: grid; gap: 10px; justify-items: start; padding-right: clamp(0px, 1.5vw, 14px); }
.sister-hand { font-family: var(--f-hand); font-size: 16px; color: var(--navy); }
.sister-title { font-family: var(--f-sub); font-weight: 900; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; }
.sister-text { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.sister-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--f-sub); font-weight: 900; font-size: 15px; white-space: nowrap; padding: 10px 20px; border-radius: 99px; background: var(--yellow); border: 2px solid var(--ink); }
.sister-card:hover .sister-go .arrow { translate: 3px 0; }
.sister-go .arrow { transition: translate 0.25s var(--ease-out); }
@media (max-width: 700px) { .sister-card { grid-template-columns: 1fr; } .sister-body { padding: 0 6px 6px; } }
.teach-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr); gap: clamp(20px, 4vw, 50px); align-items: end; }
.teach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.teach-card { background: var(--white); border-radius: 24px; padding: 26px; border: 2.5px solid var(--ink); }
.teach-card h3 { font-family: var(--f-sub); font-weight: 900; font-size: 19px; line-height: 1.5; }
.teach-card ul { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.teach-card li { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }
.teach-card li b { color: var(--ink); }
.teach-art { width: 100%; max-width: 320px; margin-left: auto; }
@media (max-width: 1000px) { .teach-wrap { grid-template-columns: 1fr; } .teach-art { max-width: 240px; margin: 0 auto; order: -1; } }
@media (max-width: 760px) { .teach-grid { grid-template-columns: 1fr; } }

/* ============================================================
   フッター
   ============================================================ */
.footer { position: relative; background: var(--ink); color: #fff; padding: 0 clamp(16px, 5vw, 64px) calc(110px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-town { width: min(520px, 86%); margin: 0 auto; padding-top: 44px; filter: invert(1); opacity: 0.3; }
.footer-in { max-width: 1140px; margin-inline: auto; padding-top: 34px; text-align: center; }
.footer-logo { font-family: var(--f-sub); font-weight: 900; font-size: 22px; }
.footer-logo em { font-style: normal; color: var(--coral); }
.footer-note { font-size: 13px; color: rgba(255, 255, 255, 0.68); margin-top: 10px; max-width: 46em; line-height: 1.85; margin-inline: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; }
.footer-nav a { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.9); }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.45); margin-top: 24px; }

/* ============================================================
   回避記録（固定ボタン）
   ============================================================ */
.rec-btn { position: fixed; right: 16px; bottom: calc(16px + var(--tb, 0px) + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 99px; background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); white-space: nowrap; transition: transform 0.3s var(--ease-pop); }
.rec-btn:hover { transform: translate(-2px, -2px); }
.rec-btn .ring { width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p, 0) * 1%), var(--paper-2) 0); display: grid; place-items: center; flex: none; }
.rec-btn .ring::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--white); }
.rec-btn strong { font-family: var(--f-num); font-weight: 600; font-size: 18px; }
.rec-panel { position: fixed; right: 16px; bottom: calc(80px + var(--tb, 0px) + env(safe-area-inset-bottom)); z-index: 91; width: min(370px, calc(100vw - 32px)); max-height: calc(100svh - 160px); overflow-y: auto; background: var(--white); border: 2.5px solid var(--ink); border-radius: 24px; padding: 20px; box-shadow: 6px 6px 0 var(--ink); animation: popIn 0.4s var(--ease-pop); transform-origin: bottom right; }
@keyframes popIn { from { opacity: 0; transform: scale(0.9) translateY(10px); } }
.rec-head { font-family: var(--f-sub); font-weight: 900; font-size: 18px; }
.rec-list { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.rec-list button { width: 100%; display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 12px; background: var(--paper); font-size: 13.5px; }
.rec-list button:hover { background: var(--paper-2); }
.rec-list .no { font-family: var(--f-num); font-weight: 600; font-size: 17px; }
.rec-list .st { font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--white); border: 1.5px solid var(--line); white-space: nowrap; }
.rec-list .st[data-best="avoid"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.rec-list .st[data-best="escape"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rec-list .st[data-best="caught"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.rec-total { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.rec-reset { margin-top: 8px; font-size: 12px; color: var(--ink-mute); text-decoration: underline; }

/* ---------- トースト ---------- */
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--tb, 0px) + env(safe-area-inset-bottom)); z-index: 400; max-width: min(92vw, 520px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.6; padding: 12px 20px; border-radius: 16px; transition: opacity 0.3s, transform 0.4s var(--ease-pop); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
body.is-locked .toast { top: calc(76px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -20px); }
body.is-locked .toast.is-show { transform: translate(-50%, 0); }

/* ============================================================
   プレイヤー（スマホ画面のシミュレーター）
   ============================================================ */
.player { position: fixed; inset: 0; bottom: var(--tb, 0px); z-index: 200; display: grid; grid-template-columns: minmax(0, 250px) auto minmax(0, 290px); justify-content: center; align-items: center; gap: clamp(20px, 3vw, 44px); padding: 20px; background: var(--paper-2); animation: fadeIn 0.3s ease; overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
.player .blob-a { left: 0; top: 0; width: min(40vw, 520px); }
.player .blob-b { right: 0; bottom: 0; width: min(46vw, 600px); }
.player::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: var(--ink); opacity: calc(var(--dk, 0) * 0.13); transition: opacity 1s; }
.p-side, .phone { position: relative; z-index: 2; }
.p-tools { position: absolute; top: 18px; right: 18px; z-index: 5; display: flex; gap: 8px; }
.p-close { position: relative; font-weight: 700; font-size: 13.5px; padding: 9px 18px; border-radius: 99px; background: var(--white); border: 2.5px solid var(--ink); white-space: nowrap; }
.p-close:hover { background: var(--yellow); }
.p-side { align-self: center; background: var(--white); border: 2.5px solid var(--ink); border-radius: 24px; padding: 20px; }
.meter-head, .found-head { font-family: var(--f-sub); font-weight: 900; font-size: 17px; }
.meter-sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.meter { list-style: none; margin-top: 14px; display: grid; gap: 6px; }
.meter li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-left: calc(var(--i) * 8px); border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink-mute); background: var(--paper); border: 2px solid transparent; white-space: nowrap; transition: background 0.4s, color 0.4s, transform 0.4s var(--ease-pop); }
.meter li .d { font-family: var(--f-num); font-weight: 600; font-size: 17px; width: 1em; }
.meter li.is-past { color: var(--ink); }
.meter li.is-now { color: var(--ink); background: var(--yellow); border-color: var(--ink); transform: scale(1.04); }
.meter li.is-now[data-lv="3"], .meter li.is-now[data-lv="4"] { background: var(--orange); color: #fff; }
.meter li.is-now[data-lv="5"] { background: var(--red); color: #fff; }
.meter-note { font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); margin-top: 14px; }
.meter-note b { color: var(--navy); }
.found-num { font-family: var(--f-num); font-weight: 600; font-size: 44px; line-height: 1; margin-top: 6px; color: var(--red); }
.found-num small { font-size: 0.45em; color: var(--ink-mute); }
.found-hint { font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); margin-top: 8px; }
.found-list { list-style: none; margin-top: 12px; display: grid; gap: 8px; max-height: 44svh; overflow-y: auto; }
.found-list li { font-size: 12.5px; line-height: 1.6; padding: 9px 11px; border-radius: 12px; background: #fdecee; animation: popIn 0.4s var(--ease-pop); }
.found-list li b { display: block; font-size: 13px; color: var(--red); }
.found-list li span { color: var(--ink-soft); }

.phone { width: 390px; height: min(820px, calc(100svh - 40px)); border-radius: 50px; padding: 11px; background: var(--ink); box-shadow: 12px 14px 0 rgba(31, 38, 51, 0.18); }
.screen { --bg: #f4f6f8; --bar: #ffffff; --bar-ink: #111; --them: #e9ecf0; --them-ink: #111; --me: #2f7cf6; --me-ink: #fff; --sys: rgba(0, 0, 0, 0.45); --chip: rgba(0, 0, 0, 0.06); position: relative; height: 100%; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); color: var(--them-ink); font-family: var(--f-ui); isolation: isolate; }
.sbar { flex: none; height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 6px 28px 0; font-size: 14px; font-weight: 700; background: var(--bar); color: var(--bar-ink); position: relative; }
.sbar::before { content: ""; position: absolute; top: 9px; left: 50%; width: 96px; height: 27px; border-radius: 99px; background: #000; transform: translateX(-50%); }
.sbar-r { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.sbar-r i { display: inline-block; width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.sbar-r i::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: currentColor; border-radius: 1px; }
.hud { display: none; }
.abar { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 14px 10px; background: var(--bar); color: var(--bar-ink); border-bottom: 1px solid rgba(0, 0, 0, 0.08); position: relative; z-index: 2; }
.abar-back { font-size: 22px; line-height: 1; opacity: 0.6; width: 14px; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff; background: var(--av, #888); overflow: hidden; }
.abar-name { min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abar-sub { display: block; font-size: 11.5px; opacity: 0.6; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.abar-tag { flex: none; margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--chip); white-space: nowrap; }
.abar-fast { flex: none; margin-left: auto; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--chip); color: var(--bar-ink); white-space: nowrap; }
.abar-tag:not([hidden]) + .abar-fast { margin-left: 6px; }
.abar-fast[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

.chat-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.chat > * { flex: none; }
.m { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: mIn 0.35s var(--ease-pop); }
@keyframes mIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .m, .note, .found-list li { animation: none; } }
.m-them .avatar { width: 30px; height: 30px; font-size: 12px; }
.m-me { justify-content: flex-end; }
.b { position: relative; max-width: 78%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.6; text-align: left; word-break: break-word; white-space: pre-line; }
.m-them .b { background: var(--them); color: var(--them-ink); border-bottom-left-radius: 5px; }
.m-me .b { background: var(--me); color: var(--me-ink); border-bottom-right-radius: 5px; }
.b.tap { cursor: pointer; transition: box-shadow 0.2s, transform 0.15s; }
.b.tap:hover { box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.3); }
.b.tap:active { transform: scale(0.98); }
.b.tap:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.b.is-flag { box-shadow: 0 0 0 2.5px var(--red); }
.b .stamp { position: absolute; top: -12px; right: -8px; z-index: 3; font-family: var(--f-sub); font-weight: 900; font-size: 11px; line-height: 1; padding: 6px 9px; border-radius: 8px; background: var(--red); color: #fff; transform: rotate(8deg); animation: stampIn2 0.35s var(--ease-pop); white-space: nowrap; pointer-events: none; }
@keyframes stampIn2 { from { transform: rotate(8deg) scale(2.2); opacity: 0; } }
.why { align-self: stretch; margin: 2px 0 6px 38px; font-size: 12.5px; line-height: 1.65; padding: 9px 12px; border-radius: 12px; background: #fff4f3; color: #6b0f0b; border: 1px solid rgba(230, 0, 18, 0.3); animation: mIn 0.35s var(--ease-pop); }
.why b { color: var(--red); }
.screen[data-app="secret"] .why, .screen[data-app="game"] .why, .screen[data-app="home"] .why { background: #2a1416; color: #ffd9d6; border-color: rgba(255, 90, 90, 0.5); }
.screen[data-app="secret"] .why b, .screen[data-app="game"] .why b, .screen[data-app="home"] .why b { color: #ff8a80; }
.typing { display: flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.35; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }
.m-sys { align-self: center; text-align: center; font-size: 11.5px; line-height: 1.55; color: var(--sys); padding: 4px 12px; border-radius: 99px; background: var(--chip); max-width: 92%; }
.m-sys.b { max-width: 92%; font-size: 11.5px; padding: 5px 12px; border-radius: 99px; background: var(--chip); color: var(--sys); white-space: normal; }
.m-scene { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--sys); display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0; white-space: nowrap; }
.m-scene::before, .m-scene::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.3; }
.m-narr { align-self: stretch; font-size: 13px; line-height: 1.8; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.1); color: inherit; }
.m-narr span { white-space: pre-line; }
.m-narr::before { content: "そのとき"; display: block; font-size: 10.5px; font-weight: 700; opacity: 0.55; letter-spacing: 0.08em; }
.m-narr.is-thought { background: rgba(255, 227, 63, 0.24); border: 1px dashed rgba(150, 110, 0, 0.5); }
.m-narr.is-thought::before { content: "あなた（心の声）"; letter-spacing: 0; }
.m-narr.is-plain::before { content: none; }
.screen[data-app="secret"] .m-narr, .screen[data-app="game"] .m-narr, .screen[data-app="home"] .m-narr { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: #e9eef5; }
.screen[data-app="secret"] .m-narr.is-thought, .screen[data-app="game"] .m-narr.is-thought, .screen[data-app="home"] .m-narr.is-thought { background: rgba(255, 227, 63, 0.1); border-color: rgba(255, 227, 63, 0.4); color: #fff3b8; }
.post { align-self: stretch; max-width: none; background: #fff; color: #111; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 16px; padding: 12px 14px; }
.post-head { display: flex; gap: 10px; align-items: center; }
.post-head .avatar { width: 38px; height: 38px; }
.post-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.post-name small { display: block; font-weight: 400; font-size: 12px; color: rgba(0, 0, 0, 0.5); }
.post-text { font-size: 14.5px; line-height: 1.65; margin-top: 8px; white-space: pre-line; }
.post-text .hash { color: #1d72d8; }
.post-meta { display: flex; gap: 18px; font-size: 12px; color: rgba(0, 0, 0, 0.5); margin-top: 8px; }
.post.is-official { border: 2px solid var(--navy); background: #f2f6ff; }
.post.is-official .post-text { font-weight: 700; font-size: 15px; }
.jcard { align-self: stretch; max-width: none; background: #fff; color: #111; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 16px; overflow: hidden; padding: 0; }
.jcard-top { background: #fff3e8; padding: 12px 14px; border-radius: 0; max-width: none; }
.jcard-tag { font-size: 11px; font-weight: 700; color: #e05f00; }
.jcard-title { font-weight: 900; font-size: 16px; line-height: 1.45; margin-top: 2px; }
.jcard-pay { font-weight: 900; color: #d9300b; font-size: 17px; margin-top: 2px; }
.jcard-rows { padding: 4px 14px 10px; }
.jrow { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.55; padding: 7px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.07); max-width: none; border-radius: 0; }
.jrow:last-child { border-bottom: none; }
.jrow dt { color: rgba(0, 0, 0, 0.5); font-weight: 700; }
.pic { padding: 6px; background: var(--me); }
.pic.is-them { background: var(--them); }
.pic.is-them .pic-cap { color: var(--them-ink); }
.pic-card { width: 210px; aspect-ratio: 1.58; border-radius: 10px; background: linear-gradient(135deg, #e3eef8, #c8d8ea); color: #23324a; position: relative; padding: 10px 12px; font-size: 10px; line-height: 1.5; overflow: hidden; }
.pic-card b { font-size: 11px; display: block; }
.pic-card .face { position: absolute; right: 10px; top: 22px; width: 48px; height: 60px; border-radius: 6px; background: radial-gradient(circle at 50% 36%, #8aa0bd 0 13px, transparent 14px), radial-gradient(ellipse at 50% 100%, #8aa0bd 0 24px, transparent 25px), #dfe8f2; }
/* 自撮り：見出しの下に顔、あごの横に身分証（見出しに重ねない） */
.pic-card .face.is-selfie { left: 50%; right: auto; top: 34px; width: 62px; height: 82px; margin-left: -46px; }
.pic-card .held-id { position: absolute; left: calc(50% + 6px); top: 70px; width: 50px; height: 32px; padding: 6px 6px 0 18px; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(35, 50, 74, 0.35); transform: rotate(-6deg); display: grid; gap: 4px; align-content: start; }
.pic-card .held-id::before { content: ""; position: absolute; left: 5px; top: 6px; width: 9px; height: 12px; border-radius: 2px; background: #b9c8da; }
.pic-card .held-id i { display: block; height: 3px; border-radius: 2px; background: rgba(35, 50, 74, 0.3); }
.pic-card .lines { margin-top: 6px; display: grid; gap: 5px; width: 60%; }
.pic-card .lines i { display: block; height: 6px; border-radius: 3px; background: rgba(35, 50, 74, 0.25); }
.pic-card .blur { position: absolute; inset: 0; backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
.pic-card .house { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0 58%, #6b5a48 58% 62%, transparent 62%), linear-gradient(90deg, transparent 0 38%, #5a4636 38% 62%, transparent 62%) bottom / 100% 42% no-repeat, linear-gradient(180deg, #9fb2c4 0 30%, #d9d2c4 30%); filter: grayscale(0.4) contrast(0.9); }
.pic-card .house-cap { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 10px; text-shadow: 0 1px 2px #000; }
.pic-cap { font-size: 11px; color: var(--me-ink); margin-top: 4px; opacity: 0.85; padding: 0 4px; }
.pic-prog { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); margin: 6px 4px 2px; overflow: hidden; }
.pic-prog i { display: block; height: 100%; width: 0; background: #fff; animation: prog 1.4s ease forwards; }
@keyframes prog { to { width: 100%; } }
.b.is-vanish { animation: vanish 0.8s ease forwards; }
@keyframes vanish { to { opacity: 0.4; filter: blur(3px); } }
.b.is-gone { font-style: italic; opacity: 0.55; filter: none; animation: none; }

/* 通話の画面（着信・通話中） */
.callui { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; padding: 34px 20px 18px; background: linear-gradient(180deg, #1c2533 0%, #0d1219 100%); color: #fff; text-align: center; }
/* 着信は一瞬で切り替える（ふわっと出すと後ろのチャットが透けて見える） */
.callui-state { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.06em; }
.callui-who { font-size: 26px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.callui-sub { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.callui-face { width: 96px; height: 96px; border-radius: 50%; margin-top: 22px; background: #39424f; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: rgba(255, 255, 255, 0.82); }
.callui.is-ring .callui-face { animation: ringPulse 1.1s ease-in-out infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(98, 192, 180, 0.6); } 100% { box-shadow: 0 0 0 26px rgba(98, 192, 180, 0); } }
.callui-time { font-family: var(--f-num); font-weight: 500; font-size: 18px; margin-top: 12px; color: rgba(255, 255, 255, 0.82); }
.callui-cap { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; }
.callui-cap-label { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.5); margin-bottom: 6px; }
.callui-line { font-size: 17px; font-weight: 700; line-height: 1.7; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); width: 100%; min-height: 3.8em; white-space: pre-line; text-align: left; }
.callui-line.is-scary { color: #ffb3ad; }
.callui.is-ring .callui-time, .callui.is-ring .callui-cap { visibility: hidden; }
.callui.is-end .callui-state { color: var(--coral); }
.callui.is-shake { animation: callShake 0.5s ease; }
@keyframes callShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .callui.is-shake, .callui.is-ring .callui-face { animation: none; } }
.reply-btn.is-answer { background: #22b26a; color: #fff; }
.reply-btn.is-decline { background: var(--red); color: #fff; }

/* 返信ボタン */
.reply { flex: none; position: relative; z-index: 6; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--bar); border-top: 1px solid rgba(0, 0, 0, 0.08); }
.reply-label { font-size: 11px; font-weight: 700; opacity: 0.55; padding: 0 4px 6px; display: flex; justify-content: space-between; gap: 8px; color: var(--bar-ink); white-space: nowrap; }
.reply-list { display: grid; gap: 7px; }
.reply-btn { width: 100%; text-align: left; font-family: var(--f-ui); font-weight: 700; font-size: 14px; line-height: 1.5; padding: 11px 14px; border-radius: 14px; background: var(--chip); color: var(--bar-ink); border: 1.5px solid transparent; transition: background 0.15s, transform 0.15s var(--ease-pop), border-color 0.15s; animation: mIn 0.35s var(--ease-pop) backwards; }
.reply-btn:nth-child(2) { animation-delay: 0.06s; }
.reply-btn:nth-child(3) { animation-delay: 0.12s; }
.reply-btn:hover { border-color: currentColor; }
.reply-btn:active { transform: scale(0.98); }
.reply-btn.is-help { background: var(--navy); color: #fff; }
.reply-btn small { display: block; font-weight: 500; font-size: 11.5px; opacity: 0.75; }
.reply-wait { font-size: 12px; text-align: center; opacity: 0.5; padding: 10px 0 6px; color: var(--bar-ink); }
.rush { margin: 0 2px 8px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--red); cursor: pointer; border-radius: 10px; padding: 6px 8px; text-align: left; width: calc(100% - 4px); background: rgba(230, 0, 18, 0.07); }
.rush .t { font-family: var(--f-num); font-weight: 600; font-size: 18px; min-width: 2.2em; }
.rush .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(230, 0, 18, 0.2); overflow: hidden; }
.rush .bar i { display: block; height: 100%; background: var(--red); width: 100%; transition: width 1s linear; }
.rush .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.rush.is-flag { box-shadow: 0 0 0 2px var(--red); }
.rush.is-done { color: var(--sys); background: var(--chip); }
.rush.is-done .bar i { background: currentColor; }

/* アプリごとの見た目 */
.screen[data-app="home"] { --bg: linear-gradient(180deg, #2a3350, #11141f); --bar: #1a1f2e; --bar-ink: #fff; --sys: rgba(255, 255, 255, 0.6); --chip: rgba(255, 255, 255, 0.12); color: #fff; }
.screen[data-app="sns"] { --bg: #ffffff; --bar: #ffffff; --them: #eef1f4; --me: #1d8cf0; --chip: rgba(15, 20, 25, 0.06); }
.screen[data-app="talk"] { --bg: #cfdbe0; --bar: #f7f8f8; --them: #ffffff; --me: #2dbf6d; --chip: rgba(0, 0, 0, 0.07); --sys: rgba(0, 0, 0, 0.55); }
.screen[data-app="talk"] .m-sys { background: rgba(0, 0, 0, 0.12); color: #fff; }
.screen[data-app="secret"] { --bg: #0e141c; --bar: #151d28; --bar-ink: #e9eef5; --them: #1f2a37; --them-ink: #e9eef5; --me: #3f6ff0; --sys: rgba(233, 238, 245, 0.55); --chip: rgba(255, 255, 255, 0.08); color: #e9eef5; }
.screen[data-app="secret"] .abar, .screen[data-app="game"] .abar, .screen[data-app="home"] .abar { border-bottom-color: rgba(255, 255, 255, 0.06); }
.screen[data-app="secret"] .reply, .screen[data-app="game"] .reply, .screen[data-app="home"] .reply { border-top-color: rgba(255, 255, 255, 0.06); }
.screen[data-app="secret"] .abar-tag { background: rgba(255, 59, 48, 0.18); color: #ff8a80; }
.screen[data-app="job"] { --bg: #f5f2ee; --bar: #ffffff; --them: #ffffff; --me: #f18e38; --chip: rgba(0, 0, 0, 0.06); }
.screen[data-app="job"] .m-them .b { border: 1px solid rgba(0, 0, 0, 0.06); }
.screen[data-app="game"] { --bg: #17122b; --bar: #221a3d; --bar-ink: #f2ecff; --them: #2d2450; --them-ink: #f2ecff; --me: #7b5cff; --sys: rgba(242, 236, 255, 0.6); --chip: rgba(255, 255, 255, 0.08); color: #f2ecff; }
.screen[data-app="game"] .abar-name { font-family: "DotGothic16", var(--f-ui); font-weight: 400; letter-spacing: 0.04em; }
.screen[data-app="game"] .b { border-radius: 6px; }
.screen[data-app="game"] .m-them .b { border: 1px solid rgba(160, 140, 255, 0.35); }
.swap { position: absolute; inset: 0; z-index: 7; background: #000; color: #fff; display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.swap.is-on { opacity: 1; pointer-events: auto; }
.swap .ico { font-size: 30px; display: block; margin-bottom: 6px; }

/* ケースの導入（端末内） */
.brief { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; justify-content: flex-start; justify-content: safe center; padding: calc(30px + env(safe-area-inset-top)) 26px calc(30px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); overflow: hidden auto; }
.brief > * { position: relative; flex-shrink: 0; width: 100%; max-width: 520px; margin-inline: auto; }
.brief > .brief-pic { position: absolute; right: -16px; bottom: -8px; width: 58%; max-width: 280px; margin: 0; pointer-events: none; z-index: 0; }
.brief-no { font-family: var(--f-num); font-weight: 600; font-size: 18px; letter-spacing: 0.08em; color: var(--red); min-height: 1.4em; }
.brief-title { font-family: var(--f-sub); font-weight: 900; font-size: 25px; line-height: 1.45; margin-top: 6px; min-height: 1.45em; }
.brief-route { align-self: flex-start; display: inline-block; width: auto; font-size: 12.5px; font-weight: 700; margin-top: 12px; padding: 3px 12px; border-radius: 99px; background: var(--white); border: 2px solid var(--ink); white-space: nowrap; }
.brief-text { font-family: var(--f-body); font-size: 15px; line-height: 1.95; margin-top: 16px; }
.brief-how { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--white); border: 2px solid var(--ink); font-family: var(--f-body); font-size: 13px; line-height: 1.85; }
.brief-how b { color: var(--red); }
.brief-go { margin-top: 20px; }
.brief.is-final { background: var(--ink); color: #fff; }
.brief.is-final .brief-no { color: var(--coral); }
.brief.is-final .brief-how { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.brief.is-final .brief-how b { color: var(--yellow); }
.brief.is-final .brief-route { background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.brief.is-intro { cursor: pointer; }
.brief.is-intro .brief-how, .brief.is-intro .brief-go, .brief.is-intro .brief-route, .brief.is-intro .brief-pic { opacity: 0; transform: translateY(8px); }
.brief .brief-how, .brief .brief-go, .brief .brief-route, .brief .brief-pic { transition: opacity 0.5s, transform 0.5s var(--ease-out); }

/* 1文字ずつ出す文字（たらららら） */
.is-typing::after { content: ""; display: inline-block; width: 0.5em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: caret 0.55s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* 結果（タネあかし） */
.result { container-type: inline-size; position: absolute; inset: 0; z-index: 10; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); padding: clamp(46px, 7vh, 76px) 18px 60px; animation: fadeIn 0.5s ease; }
.result[data-end="caught"] { background: var(--ink); color: #fff; }
.result-in { max-width: 680px; margin-inline: auto; }
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.res-stamp { display: inline-block; font-family: var(--f-head); font-size: clamp(30px, 11cqi, 58px); line-height: 1; padding: 0.2em 0.38em 0.24em; border: 5px solid currentColor; border-radius: 14px; transform: rotate(-4deg); animation: resStamp 0.55s var(--ease-pop); white-space: nowrap; }
@keyframes resStamp { from { transform: rotate(-4deg) scale(2.2); opacity: 0; } }
.result[data-end="avoid"] .res-stamp { color: var(--teal-deep); }
.result[data-end="escape"] .res-stamp { color: var(--navy); }
.result[data-end="caught"] .res-stamp { color: var(--coral); }
/* 結果画面の幅（PCでもスマホ画面の中＝約370px）を基準に、スタンプと絵が1行に収まる大きさ */
.res-pic { width: min(130px, 26cqi); flex: none; }
.res-title { font-family: var(--f-sub); font-weight: 900; font-size: clamp(21px, 6.4cqi, 30px); line-height: 1.5; margin-top: 22px; min-height: 1.5em; }
.res-text { font-size: 15px; line-height: 2; margin-top: 10px; white-space: pre-line; opacity: 0.9; }
.result.is-intro { cursor: pointer; }
.result.is-intro .res-later { opacity: 0; transform: translateY(14px); pointer-events: none; }
.res-later { transition: opacity 0.6s, transform 0.6s var(--ease-out); }
/* 結果は端末の中（PCでも幅370px前後）なので、上に2つ・下に深さを横長に */
.res-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.res-stats div:last-child { grid-column: 1 / -1; }
.res-stats div { background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; }
.res-stats dt { font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--ink-mute); }
.res-stats dd { font-family: var(--f-num); font-weight: 600; font-size: 32px; line-height: 1.15; margin-top: 2px; white-space: nowrap; }
.res-stats dd small { font-size: 0.5em; color: var(--ink-mute); }
.res-stats dd small.jp { font-family: var(--f-sub); font-weight: 900; font-size: 14px; margin-left: 3px; color: var(--ink); }
.res-block { margin-top: 18px; padding: 22px; border-radius: 20px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.res-block h3 { font-family: var(--f-sub); font-weight: 900; font-size: 18px; line-height: 1.5; }
.res-block p { font-size: 14.5px; line-height: 1.95; color: var(--ink-soft); margin-top: 8px; }
.res-block.is-truth { background: #fdecee; }
.res-block.is-help { background: var(--navy); color: #fff; border-color: var(--navy-deep); }
.res-block.is-help p { color: rgba(255, 255, 255, 0.9); }
.res-flags { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.res-flags li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 11px 13px; border-radius: 14px; background: var(--paper); font-size: 13.5px; line-height: 1.7; }
.res-flags li .ok { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900; background: var(--red); color: #fff; }
.res-flags li.is-miss .ok { background: var(--line); color: var(--ink-mute); }
.res-flags li .ft { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700; font-size: 14px; }
.res-flags li .miss { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 99px; background: var(--line); color: var(--ink-soft); white-space: nowrap; }
.res-flags li .fw { display: block; color: var(--ink-soft); }
.res-law { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.res-law li { font-size: 13.5px; line-height: 1.7; padding: 9px 12px; border-radius: 10px; background: var(--white); }
.res-law li b { color: var(--red); }
.res-block .res-law-note { font-size: 12px; line-height: 1.7; color: var(--ink-soft); margin-top: 10px; }
.res-tels { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.res-tels a { display: block; text-decoration: none; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); font-weight: 700; font-size: 12.5px; line-height: 1.45; }
.res-tels a strong { display: block; font-family: var(--f-num); font-weight: 600; font-size: 24px; white-space: nowrap; }
.res-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.res-actions .btn { font-size: 15px; padding: 12px 22px; }
.result[data-end="caught"] .btn-plain { background: transparent; color: #fff; border-color: #fff; }

/* 全ケース達成 */
.done-modal { position: fixed; inset: 0; bottom: var(--tb, 0px); z-index: 260; display: grid; place-items: center; padding: 20px 16px; background: rgba(31, 38, 51, 0.6); overflow-y: auto; animation: fadeIn 0.3s; }
.done-card { position: relative; width: min(560px, 100%); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 28px; padding: 28px 28px 30px; text-align: center; overflow: hidden; animation: popIn 0.5s var(--ease-pop); }
.done-card .ribbon { width: 300px; max-width: 80%; margin: 0 auto; }
.done-card .done-rank { font-family: var(--f-num); font-weight: 600; font-size: 96px; line-height: 1; color: var(--red); margin-top: -4px; }
.done-card h2 { font-family: var(--f-sub); font-weight: 900; font-size: 24px; line-height: 1.45; margin-top: 6px; }
.done-card p { font-size: 14.5px; color: var(--ink-soft); margin-top: 12px; line-height: 1.9; }
.done-card .btn { margin-top: 22px; }

/* ---------- スマホ：端末を全画面に ---------- */
@media (max-width: 980px) {
  .player { display: block; padding: 0; background: var(--ink); }
  .player .blob, .player::after { display: none; }
  .p-side, .p-close, .p-tools { display: none; }
  .phone { width: 100%; max-width: 640px; height: 100%; margin-inline: auto; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; }
  .sbar { display: none; }
  .hud { display: flex; flex: none; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: var(--ink); color: #fff; position: relative; z-index: 3; }
  .hud-x { font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); flex: none; white-space: nowrap; }
  .hud-meter { flex: 1; min-width: 0; }
  .hud-lv { font-size: 11px; font-weight: 700; display: flex; justify-content: space-between; gap: 6px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
  .hud-lv b { color: var(--yellow); }
  .hud-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 4px; }
  .hud-bar i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); transition: background 0.4s; }
  .hud-bar i.is-on { background: var(--yellow); }
  .hud-bar[data-lv="3"] i.is-on, .hud-bar[data-lv="4"] i.is-on { background: var(--orange); }
  .hud-bar[data-lv="5"] i.is-on { background: var(--red); }
  .hud-found { flex: none; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: rgba(237, 121, 128, 0.25); color: #ffd0d3; white-space: nowrap; }
  .hud-found b { font-family: var(--f-num); font-weight: 600; font-size: 15px; color: #fff; }
  .result { padding-top: calc(36px + env(safe-area-inset-top)); }
}
@media (max-width: 380px) {
  /* 音の ON／OFF が入るぶん、メーターの見出しを外して段階名だけにする */
  .hud { gap: 7px; }
  .hud-x { padding: 6px 9px; }
  .hud-lv span { display: none; }
  .hud-lv b { overflow: hidden; text-overflow: ellipsis; }
  .hud-found { padding: 5px 9px; }
  .b { font-size: 14px; }
  .reply-btn { font-size: 13.5px; padding: 10px 12px; }
  .abar-tag { font-size: 10px; padding: 3px 7px; }
  .abar-fast { font-size: 11px; padding: 5px 8px; }
}

/* ---------- OGP撮影（?ogp=1） ---------- */
.is-ogp .top-snd, .is-ogp .rec-btn, .is-ogp .toast, .is-ogp .hero-note, .is-ogp .hero-cta, .is-ogp .hero-lead, .is-ogp .topnav, .is-ogp .burger { display: none !important; }
.is-ogp .hero { min-height: 650px; height: 650px; padding-top: calc(var(--head-h) + 10px); padding-bottom: 20px; }
.is-ogp .hero-title .l1 { font-size: 118px; }
.is-ogp .hero-title .l2 { font-size: 52px; }
.is-ogp .hero-art { height: 560px; min-height: 0; }
.hero-hand { word-break: auto-phrase; }
.is-ogp .note { animation: none !important; }
.is-ogp .note.is-out { display: none; }
.is-ogp .note-stamp { animation: none !important; opacity: 1; transform: rotate(-14deg); }
.is-ogp .bob { animation: none !important; }

/* ---------- 音の ON／OFF ---------- */
.snd-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; font-weight: 700; font-size: 13px; line-height: 1; padding: 8px 13px 8px 10px; border-radius: 99px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); transition: background 0.2s; }
.snd-btn:hover { background: var(--yellow); }
.snd-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.snd-ico { width: 18px; height: 18px; flex: none; }
.snd-x { display: none; }
.snd-btn.is-off .snd-wave { display: none; }
.snd-btn.is-off .snd-x { display: inline; }
.snd-btn.is-off { color: var(--ink-mute); }
.snd-state { font-family: var(--f-num); font-weight: 600; letter-spacing: 0.04em; }
.topnav { margin-left: auto; }
.top-snd { margin-left: 6px; }
@media (max-width: 860px) { .top-snd { margin-left: auto; } }
/* 入口の音ボタンは広告の下に並べる（固定にすると小さい画面で広告に重なる） */
.gate-snd { order: 2; position: relative; z-index: 2; }
.gate.is-flip .gate-snd { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.brief-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.brief-row .brief-go { margin-top: 0; flex: 1; }
.brief.is-final .brief-snd { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.brief.is-intro .brief-row { opacity: 0; transform: translateY(8px); }
.brief .brief-row { transition: opacity 0.5s, transform 0.5s var(--ease-out); }
.hud-snd { padding: 6px 9px; background: rgba(255, 255, 255, 0.14); color: #fff; border: none; }
.hud-snd.is-off { color: rgba(255, 255, 255, 0.5); }
/* せまい所では「音」を外して ON／OFF だけ出す */
.hud-snd .snd-txt, .top-snd .snd-txt { font-size: 0; }
.hud-snd .snd-state { font-size: 12px; }
.top-snd .snd-txt { font-size: 13px; }
@media (max-width: 860px) { .top-snd .snd-txt { font-size: 0; } .top-snd .snd-state { font-size: 12px; } .top-snd { gap: 4px; padding: 7px 10px 7px 8px; } }

/* テスト用のジャンプ（?dev=1） */
.devbox { position: fixed; left: 12px; bottom: calc(12px + var(--tb, 0px)); z-index: 250; display: grid; gap: 5px; padding: 10px; border-radius: 14px; background: rgba(31, 38, 51, 0.92); color: #fff; font-size: 12px; max-width: 200px; }
.devbox-head { font-weight: 700; opacity: 0.7; }
.devbox button { text-align: left; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); }
.devbox button:hover { background: var(--yellow); color: var(--ink); }
