/* ============================================================
   午前0時の消えた展示品 — スタイル
   ============================================================ */
:root {
  --ink: #0a0d16;
  --ink-2: #111626;
  --ink-3: #1a2033;
  --line: rgba(226, 194, 125, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #e9e4d8;
  --text-dim: #a9a597;
  --gold: #e2c27d;
  --gold-deep: #b48f45;
  --moon: #9cc8dd;
  --red: #c2463a;
  --paper: #f1e8d4;
  --paper-2: #e6dabf;
  --paper-ink: #2c261d;
  --paper-dim: #6d6250;
  --role-a: #7fb4d6;
  --role-b: #d99a6c;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --f-serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  --f-sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --f-hand: 'Klee One', 'Hiragino Maru Gothic ProN', 'Yu Gothic', cursive;
  --f-mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', 'Osaka-Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(156, 200, 221, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(226, 194, 125, 0.07), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--f-sans);
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b { color: #fff3d6; font-weight: 700; }
code { font-family: var(--f-mono); }
.muted { color: var(--text-dim); }
.small { font-size: 0.82rem; }
.sp { display: none; }
@media (max-width: 600px) { .sp { display: inline; } }

.app { min-height: 100vh; min-height: 100dvh; }
.screen { animation: fadeIn 0.5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.5em;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none; font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer; transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--gold); background: rgba(226, 194, 125, 0.08); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .ev-card:focus-visible, .role-card:focus-visible, .opt input:focus-visible + .opt-box, .hotspot:focus-visible, .ph-actions button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(180deg, #ecd096, var(--gold-deep));
  color: #1b1408; border-color: transparent;
  box-shadow: 0 8px 24px rgba(226, 194, 125, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { background: linear-gradient(180deg, #f3dca8, #c49e52); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.btn-ghost { color: var(--text); }
.btn-lg { min-height: 56px; padding: 0.8em 2.4em; font-size: 1.05rem; }
.btn-small { min-height: 40px; padding: 0.4em 1.1em; font-size: 0.88rem; }
.btn-warn { border-color: rgba(194, 70, 58, 0.6); color: #f0b3a8; }
.link-btn { background: none; border: none; color: var(--text-dim); text-decoration: underline; cursor: pointer; margin-top: 18px; font-size: 0.85rem; }

/* ---------- タイトル ---------- */
.title-screen {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 40px 16px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(226, 194, 125, 0.18), transparent 55%),
    linear-gradient(180deg, #05070d 0%, #0b1020 60%, #120f17 100%);
}
.title-screen::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff8, transparent),
    radial-gradient(1px 1px at 72% 12%, #fff9, transparent),
    radial-gradient(1.5px 1.5px at 85% 40%, #fff7, transparent),
    radial-gradient(1px 1px at 30% 70%, #fff5, transparent),
    radial-gradient(1px 1px at 55% 35%, #fff6, transparent),
    radial-gradient(1px 1px at 92% 78%, #fff5, transparent),
    radial-gradient(1px 1px at 6% 86%, #fff6, transparent);
  opacity: 0.8;
}
.title-screen::after { /* 窓枠の影 */
  content: ''; position: absolute; inset: -10%;
  background:
    repeating-linear-gradient(90deg, transparent 0 22%, rgba(0,0,0,0.35) 22% 23.2%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5));
  transform: skewX(-12deg); pointer-events: none; opacity: 0.55;
}
.moon {
  position: absolute; top: 7%; right: 12%; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fbf6e6, #cfd9df 55%, #8fa6b5);
  box-shadow: 0 0 60px 20px rgba(156, 200, 221, 0.25), 0 0 160px 60px rgba(156, 200, 221, 0.10);
  opacity: 0.85;
}
.dust i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: rgba(255, 236, 190, 0.7);
  animation: drift 14s linear infinite; opacity: 0;
}
.dust i:nth-child(odd) { animation-duration: 18s; }
.dust i:nth-child(3n) { width: 3px; height: 3px; animation-duration: 22s; }
@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.8; }
  100% { transform: translate(60px, -260px); opacity: 0; }
}
.title-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; }
.title-art { width: 92px; margin: 0 auto 8px; filter: drop-shadow(0 0 24px rgba(226, 194, 125, 0.35)); }
.hourglass-svg { width: 100%; height: auto; display: block; }
.hg-stream { stroke-dasharray: 3 4; animation: sand 1.2s linear infinite; }
@keyframes sand { to { stroke-dashoffset: -14; } }
.title-kicker {
  margin: 0; font-size: 0.85rem; letter-spacing: 0.5em; color: var(--gold);
  text-indent: 0.5em;
}
.title-main {
  margin: 8px 0 6px; font-family: var(--f-serif); font-weight: 800; line-height: 1.15;
  font-size: clamp(2.3rem, 8.5vw, 4.6rem); letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(156, 200, 221, 0.25), 0 4px 0 rgba(0, 0, 0, 0.4);
}
.title-main span { display: block; }
.title-main .t1 { font-size: 0.55em; color: var(--moon); letter-spacing: 0.3em; }
.title-main .t2 {
  background: linear-gradient(180deg, #fff6df 20%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-sub { color: var(--text-dim); font-family: var(--f-serif); margin: 6px 0 28px; font-size: 0.95rem; }
.title-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.title-meta {
  list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px;
  justify-content: center; color: var(--text-dim); font-size: 0.82rem;
}

/* ---------- 汎用ページ ---------- */
.page-screen { padding: 48px 16px 80px; }
.page-inner { max-width: 880px; margin: 0 auto; }
.page-kicker { margin: 0; color: var(--gold); letter-spacing: 0.4em; font-size: 0.75rem; }
.page-title { font-family: var(--f-serif); font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 4px 0 18px; letter-spacing: 0.1em; }
.page-lead { color: var(--text-dim); margin-top: -6px; }
.section-title {
  font-family: var(--f-serif); font-size: 1.25rem; margin: 40px 0 14px; letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.callout {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(226, 194, 125, 0.05); font-size: 0.92rem;
}
.callout small { display: block; color: var(--text-dim); margin-top: 6px; }
.partner-urls { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.partner-urls code {
  display: block; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.35);
  color: var(--moon); font-size: 0.95rem; word-break: break-all; user-select: all;
}

/* 遊び方 */
.howto-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.howto-list li {
  display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-soft);
}
.howto-no { font-family: var(--f-serif); font-size: 1.6rem; color: var(--gold); line-height: 1; padding-top: 4px; }
.howto-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(156, 200, 221, 0.10); color: var(--moon); }
.howto-ic .ico { width: 22px; height: 22px; }
.howto-list h3 { margin: 0 0 2px; font-size: 1.05rem; }
.howto-list p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }
@media (max-width: 520px) {
  .howto-list li { grid-template-columns: auto 1fr; }
  .howto-ic { display: none; }
}

/* 事件概要 */
.brief-paper {
  position: relative; padding: 28px 28px 22px; border-radius: 6px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.5), transparent 40%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink); font-family: var(--f-serif); box-shadow: var(--shadow);
  transform: rotate(-0.3deg);
}
.brief-paper p { margin: 0 0 0.9em; }
.brief-lead { font-weight: 800; font-size: 1.15rem; }
.brief-stamp {
  position: absolute; top: 14px; right: 16px; border: 2px solid var(--red); color: var(--red);
  padding: 2px 10px; font-family: var(--f-sans); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em;
  transform: rotate(4deg); opacity: 0.85;
}
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.person {
  display: flex; gap: 14px; padding: 14px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-soft);
}
.person-face, .iv-face {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-serif); font-size: 1.4rem; font-weight: 800; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #fff3d6, var(--gold-deep));
  box-shadow: 0 0 0 3px rgba(226, 194, 125, 0.15);
}
.person-name { font-weight: 700; font-size: 1.05rem; }
.person-name small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.1em; }
.person-role { color: var(--gold); font-size: 0.82rem; }
.person p { margin: 4px 0 0; font-size: 0.88rem; color: var(--text-dim); }

.mysteries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.mysteries li {
  padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(226, 194, 125, 0.04);
  display: flex; flex-direction: column;
}
.mq-no { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.2em; }
.mq-title { font-family: var(--f-serif); font-weight: 800; font-size: 1.1rem; }
.mq-prompt { font-size: 0.85rem; color: var(--text-dim); }
.mysteries.compact li { padding: 10px 12px; }

/* 役割選択 */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .role-grid { grid-template-columns: 1fr; } }
.role-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 22px 22px; text-decoration: none;
  border-radius: 18px; border: 1px solid var(--line-soft); overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.role-A:hover { border-color: var(--role-a); }
.role-B:hover { border-color: var(--role-b); }
.role-letter {
  position: absolute; right: -6px; top: -26px; font-family: var(--f-serif); font-size: 8rem; font-weight: 800; line-height: 1; opacity: 0.12;
}
.role-A .role-letter, .role-A .role-label { color: var(--role-a); }
.role-B .role-letter, .role-B .role-label { color: var(--role-b); }
.role-label { font-size: 0.8rem; letter-spacing: 0.25em; font-weight: 700; }
.role-name { font-family: var(--f-serif); font-size: 1.8rem; font-weight: 800; letter-spacing: 0.15em; }
.role-tag { font-weight: 700; }
.role-desc { color: var(--text-dim); font-size: 0.88rem; font-family: var(--f-serif); margin-top: 6px; }
.role-go { margin-top: 14px; color: var(--gold); font-weight: 700; font-size: 0.9rem; }

/* ---------- 捜査画面 ---------- */
.play-screen { --accent: var(--role-a); padding-bottom: 60px; }
.role-theme-B { --accent: var(--role-b); }
.play-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  background: rgba(10, 13, 22, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.ph-id { display: flex; align-items: center; gap: 10px; }
.role-badge {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--f-serif); font-weight: 800; font-size: 1.4rem; color: var(--ink); background: var(--accent);
}
.ph-role { font-family: var(--f-serif); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.1em; line-height: 1.2; }
.ph-sub { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.15em; }
.ph-timer { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); color: var(--text-dim); font-size: 0.95rem; margin-left: auto; }
.ph-actions { display: flex; gap: 6px; }
.ph-actions button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft); border-radius: 10px; cursor: pointer; font-size: 0.88rem;
}
.ph-actions button:hover { border-color: var(--accent); }
.ph-actions em {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--red); color: #fff; font-style: normal; font-size: 0.7rem; display: grid; place-items: center;
}
@media (max-width: 640px) {
  .ph-actions { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .ph-actions button { flex-direction: column; gap: 0; font-size: 0.72rem; min-height: 50px; padding: 4px; justify-content: center; }
  .ph-actions .ico { width: 20px; height: 20px; }
}
.play-main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 0; }
.play-intro p { margin: 4px 0 14px; color: var(--text-dim); font-size: 0.95rem; }
.mysteries-box { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 14px 14px; background: rgba(255,255,255,0.02); }
.mysteries-box summary { cursor: pointer; font-family: var(--f-serif); font-weight: 700; color: var(--gold); padding: 4px 0 10px; }
.ev-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.ev-head h2 { margin: 0; font-family: var(--f-serif); letter-spacing: 0.12em; font-size: 1.35rem; }
.ev-progress { color: var(--text-dim); font-size: 0.88rem; }
.ev-progress b { color: var(--accent); font-size: 1.1rem; }

.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .evidence-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.ev-card {
  position: relative; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 14px 12px; min-height: 190px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 30%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  transition: transform 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.ev-card::before { /* クリップ */
  content: ''; position: absolute; top: -7px; left: 22px; width: 14px; height: 26px; border-radius: 7px;
  border: 2px solid #9aa0a8; border-bottom-color: transparent; transform: rotate(8deg);
}
.ev-card:nth-child(3n+1) { transform: rotate(-0.6deg); }
.ev-card:nth-child(3n+2) { transform: rotate(0.5deg); }
.ev-card:hover { transform: translateY(-4px) rotate(0); box-shadow: 0 18px 34px rgba(0,0,0,0.55); }
.ev-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; }
.ev-no { font-family: var(--f-mono); font-weight: 700; color: var(--paper-dim); letter-spacing: 0.1em; padding-left: 26px; }
.ev-kind { padding: 1px 8px; border-radius: 4px; background: rgba(44, 38, 29, 0.08); color: var(--paper-dim); font-weight: 700; }
.ev-icon { color: #4a3f2e; margin-top: 4px; }
.ev-icon .ico { width: 30px; height: 30px; }
.ev-title { font-family: var(--f-serif); font-weight: 800; font-size: 1.05rem; line-height: 1.4; }
.ev-summary { font-size: 0.8rem; color: var(--paper-dim); line-height: 1.55; flex: 1; }
.ev-status { align-self: flex-start; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(194, 70, 58, 0.12); color: var(--red); }
.ev-card.is-viewed .ev-status { background: rgba(60, 120, 80, 0.14); color: #2f6a43; }
.ev-card.is-viewed::after {
  content: '調査済'; position: absolute; right: 10px; bottom: 34px; padding: 1px 8px; border: 2px solid rgba(47, 106, 67, 0.55);
  color: rgba(47, 106, 67, 0.7); font-weight: 800; font-size: 0.72rem; transform: rotate(-10deg); border-radius: 4px; letter-spacing: 0.1em;
}
@media (max-width: 520px) {
  .ev-card { min-height: 170px; padding: 12px 10px 10px; }
  .ev-title { font-size: 0.95rem; }
  .ev-summary { display: none; }
  .ev-card.is-viewed::after { bottom: 34px; }
}

.final-cta { text-align: center; margin: 40px auto 0; padding: 26px 16px; border-top: 1px solid var(--line-soft); }
.final-cta p { margin: 0 0 12px; font-family: var(--f-serif); color: var(--text-dim); }
.final-cta small { display: block; margin-top: 10px; color: var(--text-dim); }

/* ---------- モーダル ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px 16px;
  background: rgba(3, 4, 8, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(640px, 100%); max-height: min(88vh, 100%); display: flex; flex-direction: column;
  border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.22s, transform 0.22s;
}
.modal-backdrop.wide .modal { width: min(860px, 100%); }
.modal-backdrop.show .modal { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.modal-kicker { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.15em; }
.modal-head h2 { margin: 0; font-family: var(--f-serif); font-size: 1.35rem; letter-spacing: 0.06em; line-height: 1.4; }
.modal-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.04); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { border-color: var(--gold); }
.modal-body { overflow-y: auto; padding: 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-lead { color: var(--text-dim); margin-top: 0; }
@media (max-width: 640px) {
  .modal-backdrop { padding: 0; place-items: end stretch; }
  .modal, .modal-backdrop.wide .modal { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 18px 18px 0 0; }
  .modal-body { padding: 14px 12px calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- 証拠資料のデザイン ---------- */
.doc { position: relative; margin: 0 auto; color: var(--paper-ink); }
.doc b { color: inherit; }
.photo-doc .sticky-note b { color: #3b3418; }
.doc .hand, .hand { font-family: var(--f-hand); }
.doc-hint-line { color: var(--gold); font-size: 0.85rem; margin: 12px 0 0; }

/* 感熱紙プリントアウト */
.printout {
  max-width: 460px; padding: 22px 22px 26px; font-family: var(--f-mono); font-size: 0.88rem; line-height: 1.7;
  background: linear-gradient(180deg, #fbfaf6, #ecebe5); box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.printout::before, .printout::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 6px 10px, var(--ink-2) 5px, transparent 5.5px) 0 0 / 12px 10px repeat-x;
}
.printout::before { top: 0; transform: rotate(180deg); }
.printout::after { bottom: 0; }
.po-head { text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; color: #555; }
.po-rule { border-top: 1px dashed #888; margin: 10px 0; }
.po-title { font-weight: 700; text-align: center; font-family: var(--f-sans); font-size: 1rem; }
.po-meta { text-align: center; font-size: 0.78rem; color: #555; margin-bottom: 10px; }
.po-table { width: 100%; border-collapse: collapse; }
.po-table th { text-align: left; font-size: 0.72rem; color: #666; border-bottom: 1px solid #999; padding: 2px 4px; }
.po-table td { padding: 5px 4px; border-bottom: 1px dotted #c8c8c0; font-family: var(--f-mono), var(--f-sans); }
.po-table tr.hl td { background: rgba(226, 194, 125, 0.25); }
.po-note { font-size: 0.78rem; color: #444; font-family: var(--f-sans); }
.po-end { text-align: center; color: #888; margin-top: 12px; font-size: 0.72rem; }

/* 写真 */
.photo-doc { max-width: 760px; color: var(--text); }
.photo-frame { background: #f4f1ea; padding: 12px 12px 6px; box-shadow: 0 14px 34px rgba(0,0,0,0.6); transform: rotate(-0.4deg); }
.photo-wrap { position: relative; line-height: 0; }
.scene-svg, .zoom-svg, .cctv-svg, .plan-svg { width: 100%; height: auto; display: block; }
.photo-caption { font-family: var(--f-hand); color: #3a3a3a; text-align: center; padding: 6px 0 2px; line-height: 1.6; }
.hotspot {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: none; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hs-ring {
  position: absolute; inset: 9px; border-radius: 50%; border: 2px solid rgba(255, 220, 140, 0.95);
  box-shadow: 0 0 0 0 rgba(255, 220, 140, 0.6); animation: pulse 1.8s infinite;
  background: rgba(255, 220, 140, 0.12);
}
.hotspot.found .hs-ring { border-color: rgba(140, 220, 170, 0.9); animation: none; background: rgba(140, 220, 170, 0.12); }
.hotspot.active .hs-ring { border-width: 3px; transform: scale(1.15); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 220, 140, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(255, 220, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 220, 140, 0); } }
.sticky-note {
  margin: 18px 0 0 auto; max-width: 420px; padding: 14px 16px; font-family: var(--f-hand); font-size: 0.95rem; line-height: 1.7;
  background: linear-gradient(180deg, #fff3a8, #f5e27e); color: #3b3418; box-shadow: 0 8px 18px rgba(0,0,0,0.45); transform: rotate(0.8deg);
}
.hs-panel:empty { display: none; }
.hs-panel { margin-top: 16px; }
.hs-detail {
  display: grid; grid-template-columns: 1fr; gap: 14px; padding: 14px; border-radius: 12px;
  border: 1px solid rgba(255, 220, 140, 0.4); background: rgba(255, 220, 140, 0.06); animation: fadeIn 0.3s ease;
}
.hs-detail h4 { margin: 0 0 4px; display: flex; gap: 6px; align-items: center; color: var(--gold); }
.hs-detail p { margin: 0; }
.hs-zoom { border-radius: 50%; overflow: hidden; width: min(240px, 70%); margin: 0 auto; border: 3px solid #f4f1ea; box-shadow: 0 8px 20px rgba(0,0,0,0.5); aspect-ratio: 1; }
.hs-zoom svg { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .hs-detail:has(.hs-zoom) { grid-template-columns: 220px 1fr; align-items: center; } .hs-zoom { width: 100%; } }

/* 書式（報告書・検査記録） */
.form-doc {
  max-width: 640px; padding: 24px 24px 20px; background: linear-gradient(180deg, #fdfbf5, #f1ece0);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5); font-size: 0.93rem;
  background-image: linear-gradient(180deg, #fdfbf5, #f1ece0), repeating-linear-gradient(transparent 0 27px, rgba(0,0,0,0.04) 27px 28px);
}
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 3px double #3b3326; padding-bottom: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.form-title { font-family: var(--f-serif); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.15em; }
.form-sub { font-size: 0.78rem; color: var(--paper-dim); }
.stamp { border: 2px solid var(--red); color: var(--red); padding: 0 10px; font-weight: 800; transform: rotate(-6deg); letter-spacing: 0.2em; }
.form-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 0.88rem; }
.form-table th, .form-table td { border: 1px solid #b9ae98; padding: 6px 8px; text-align: left; vertical-align: top; }
.form-table th { background: rgba(60, 50, 30, 0.07); white-space: nowrap; width: 1%; font-weight: 700; }
.check-table th { width: auto; }
.check-table td.ng { color: #555; white-space: nowrap; }
.check-table td.pending { color: var(--red); font-weight: 800; white-space: nowrap; }
.form-list { padding-left: 1.3em; margin: 0; }
.form-list li { margin-bottom: 6px; }
.form-list u, .form-remark u { text-decoration-color: rgba(194, 70, 58, 0.6); text-decoration-thickness: 2px; }
.form-remark { margin-top: 12px; padding: 10px 12px; background: rgba(60, 50, 30, 0.05); border-left: 3px solid #b9ae98; font-size: 0.88rem; }
.form-sign { text-align: right; margin-top: 12px; font-size: 0.85rem; color: var(--paper-dim); }
.form-sign .hand { font-size: 1.3rem; color: #1f2a5a; margin-left: 8px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 4px 0 4px 28px; position: relative; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border: 1.5px solid #3b3326; }
.check-list li.on::after { content: '✓'; position: absolute; left: 2px; top: 0; font-family: var(--f-hand); color: #1f2a5a; font-size: 1.2rem; }

/* 防犯カメラ */
.cctv-doc { max-width: 760px; color: var(--text); }
.cctv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .cctv-grid { grid-template-columns: 1fr; } }
.cctv-grid figure { margin: 0; background: #0b0f0c; border: 1px solid #2b3a2e; border-radius: 8px; overflow: hidden; }
.cctv-grid figcaption { padding: 10px 12px; font-size: 0.88rem; color: #cfe2cf; }
.cctv-grid figcaption b { color: #9fe0a6; font-family: var(--f-mono); margin-right: 6px; }
.cctv-note { font-size: 0.85rem; color: var(--text-dim); }

/* 聞き込み */
.interview-doc { max-width: 680px; color: var(--paper-ink); }
.iv-head { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 10px; }
.iv-card {
  display: flex; gap: 14px; padding: 16px; margin-bottom: 12px; border-radius: 4px;
  background: linear-gradient(180deg, #fbf7ec, #efe6d0); box-shadow: 0 8px 18px rgba(0,0,0,0.4);
  border-left: 4px solid var(--gold-deep);
}
.iv-card:nth-child(odd) { transform: rotate(0.25deg); }
.iv-name { font-weight: 800; font-family: var(--f-serif); font-size: 1.05rem; }
.iv-name span { margin-left: 10px; font-family: var(--f-sans); font-weight: 700; font-size: 0.75rem; color: var(--paper-dim); }
.iv-quote { margin: 4px 0 0; font-family: var(--f-serif); line-height: 1.85; }
@media (max-width: 520px) { .iv-face { width: 40px; height: 40px; font-size: 1.1rem; } .iv-card { padding: 12px; gap: 10px; } }

/* 規程 */
.rule-doc { max-width: 640px; padding: 26px 26px 20px; background: #fdfcf8; box-shadow: 0 12px 30px rgba(0,0,0,0.5); font-size: 0.92rem; font-family: var(--f-serif); }
.rule-title { text-align: center; font-weight: 800; font-size: 1.1rem; padding-bottom: 8px; border-bottom: 1px solid #333; margin-bottom: 8px; }
.rule-doc h4 { margin: 16px 0 6px; font-size: 1rem; }
.rule-doc p { margin: 6px 0; }
.rule-table { width: 100%; border-collapse: collapse; margin: 6px 0; font-family: var(--f-sans); font-size: 0.86rem; }
.rule-table caption { text-align: left; font-weight: 700; padding: 6px 0 4px; font-family: var(--f-serif); }
.rule-table th, .rule-table td { border: 1px solid #999; padding: 6px 8px; text-align: left; }
.rule-table th { background: #eee9dc; }
.rule-note { font-size: 0.85rem; color: #555; }

/* 図面 */
.blueprint-doc { max-width: 780px; padding: 16px; background: #1d3f6e; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); color: #e6f1ff; }
.bp-title { font-family: var(--f-mono), var(--f-sans); font-size: 0.85rem; letter-spacing: 0.06em; padding-bottom: 8px; border-bottom: 1px solid rgba(230,241,255,0.4); margin-bottom: 10px; }
.bp-notes { margin: 12px 0 0; padding-left: 1.2em; font-size: 0.88rem; }
.bp-notes b { color: #ffd27a; }

/* クリップボード */
.clipboard-doc {
  max-width: 600px; padding: 40px 22px 20px; border-radius: 10px; background: #8a6440;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.clipboard-doc > *:not(.clip) { position: relative; }
.clipboard-doc::before { content: ''; position: absolute; inset: 26px 12px 12px; background: #fbfaf5; border-radius: 2px; }
.clip { position: absolute; top: 8px; left: 50%; width: 120px; height: 34px; margin-left: -60px; border-radius: 8px; background: linear-gradient(180deg, #d9dde2, #8e959e); box-shadow: 0 3px 6px rgba(0,0,0,0.4); z-index: 2; }
.cb-title { font-family: var(--f-serif); font-weight: 800; font-size: 1.2rem; text-align: center; margin-top: 8px; }
.cb-meta { font-size: 0.85rem; text-align: center; margin: 4px 0 10px; }
.cb-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.cb-table th, .cb-table td { border-bottom: 1px solid #c9c2b2; padding: 7px 6px; text-align: left; }
.cb-table th { font-size: 0.75rem; color: var(--paper-dim); }
.cb-table td:first-child { font-family: var(--f-mono); font-weight: 700; white-space: nowrap; }
.cb-note { font-size: 0.85rem; margin: 12px 0 4px; }
@media (max-width: 520px) { .cb-table { font-size: 0.78rem; } .cb-table th, .cb-table td { padding: 6px 3px; } }

/* 手帳 */
.notebook-doc {
  max-width: 480px; padding: 22px 22px 18px 46px; background: #fbf8ef; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  background-image: linear-gradient(90deg, transparent 34px, rgba(194,70,58,0.35) 34px 35.5px, transparent 35.5px), repeating-linear-gradient(#fbf8ef 0 29px, #cfd9e6 29px 30px);
  line-height: 30px; font-size: 1.02rem;
}
.notebook-doc p { margin: 0 0 30px; }
.nb-date { font-family: var(--f-mono); font-size: 0.8rem; color: var(--paper-dim); }
.notebook-doc .strike { text-decoration: line-through; text-decoration-color: rgba(30, 30, 80, 0.55); }

/* ---------- ヒント・メモ ---------- */
.hint-list { display: grid; gap: 14px; }
.hint-block { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line-soft); }
.hint-block h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-family: var(--f-serif); font-size: 1.05rem; }
.hint-block h3 small { margin-left: auto; color: var(--text-dim); font-family: var(--f-mono); font-size: 0.8rem; }
.q-no { font-size: 0.72rem; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--gold); font-family: var(--f-sans); letter-spacing: 0.1em; }
.hint-item { margin: 0 0 8px; padding: 8px 12px; border-left: 3px solid var(--gold); background: rgba(226,194,125,0.06); font-size: 0.92rem; animation: fadeIn 0.3s; }
.hint-item span { display: block; font-size: 0.72rem; color: var(--gold); font-weight: 700; }
.hint-done { color: var(--text-dim); font-size: 0.85rem; margin: 0; }
.notes {
  width: 100%; min-height: 260px; padding: 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fbf8ef; color: var(--paper-ink); font-family: var(--f-hand); font-size: 1rem; line-height: 1.8; resize: vertical;
}

/* ---------- 最終推理 ---------- */
.answer-form { display: grid; gap: 18px; }
.q-block { margin: 0; padding: 16px 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--ink-2); min-width: 0; }
.q-block legend { display: contents; }
.q-block .q-title { font-family: var(--f-serif); font-weight: 800; font-size: 1.2rem; margin-left: 8px; }
.q-block .q-prompt { display: block; color: var(--text-dim); font-size: 0.9rem; margin: 2px 0 12px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box {
  display: flex; flex-direction: column; height: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03); transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.opt:hover .opt-box { border-color: var(--line); }
.opt input:checked + .opt-box { border-color: var(--gold); background: rgba(226,194,125,0.12); box-shadow: inset 0 0 0 1px var(--gold); }
.opt-text { font-weight: 700; font-size: 1.02rem; font-family: var(--f-serif); }
.opt-sub { font-size: 0.78rem; color: var(--text-dim); }
.sticky-actions { position: sticky; bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 6px; background: linear-gradient(180deg, transparent, var(--ink) 35%); }
@media (max-width: 520px) { .opt-grid { grid-template-columns: 1fr 1fr; } .opt-box { padding: 10px; } }

/* ---------- エンディング ---------- */
.ending-screen { padding: 56px 16px 80px; text-align: center; }
.ending-true { background: radial-gradient(ellipse at 50% -10%, rgba(255, 214, 140, 0.25), transparent 60%); }
.ending-bad { background: radial-gradient(ellipse at 50% -10%, rgba(120, 30, 30, 0.35), transparent 60%); }
.ending-badge { display: inline-block; margin: 0; padding: 4px 16px; border: 1px solid var(--gold); color: var(--gold); letter-spacing: 0.4em; font-size: 0.78rem; border-radius: 99px; }
.ending-bad .ending-badge { border-color: var(--red); color: #f0a198; }
.ending-title { font-family: var(--f-serif); font-size: clamp(2rem, 7vw, 3.2rem); margin: 14px 0 20px; letter-spacing: 0.12em; }
.ending-true .ending-title { background: linear-gradient(180deg, #fff6df, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ending-stats { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 6px 28px; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,0.03); }
.ending-stats span { display: block; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.15em; }
.ending-stats b { font-family: var(--f-mono); font-size: 1.2rem; }
.ending-story { text-align: left; max-width: 680px; margin: 26px auto 0; font-family: var(--f-serif); font-size: 1.02rem; line-height: 2; }
.ending-story p { margin: 0 0 1em; }
.ending-closing { text-align: center; color: var(--gold); margin-top: 1.5em !important; }
.truth-reveal { padding-top: 20px; border-top: 1px dashed var(--line); }
.explain { text-align: left; max-width: 760px; margin: 20px auto 0; }
.explain-item { padding: 14px 16px; margin-bottom: 10px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-soft); }
.explain-item h3 { margin: 0 0 4px; font-family: var(--f-serif); color: var(--gold); font-size: 1.05rem; }
.explain-item p { margin: 0; font-size: 0.93rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* スマホでは「4つの謎」をコンパクトな2列に */
@media (max-width: 640px) {
  .mysteries.compact { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mysteries.compact li { padding: 8px 10px; }
  .mysteries.compact .mq-title { font-size: 0.98rem; }
  .mysteries.compact .mq-prompt { font-size: 0.75rem; line-height: 1.5; }
}
.modal-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal-close:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   作品一覧（サービスのトップ）
   ============================================================ */
.pc { display: inline; }
@media (max-width: 600px) { .pc { display: none; } }

.back-link {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 8px;
  border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(10, 13, 22, 0.55);
  color: var(--text-dim); font-size: 0.85rem; text-decoration: none; backdrop-filter: blur(4px);
}
.back-link:hover { color: var(--text); border-color: var(--line); }
.back-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.catalog-screen { max-width: 1120px; margin: 0 auto; padding: 28px 16px 80px; }
.cat-hero {
  position: relative; text-align: center; padding: 44px 16px 36px; margin-bottom: 26px;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-soft);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(226, 194, 125, 0.16), transparent 70%),
    radial-gradient(500px 300px at 90% 110%, rgba(156, 200, 221, 0.10), transparent 70%),
    linear-gradient(180deg, #0d1222, #0a0d16);
}
.cat-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 72% 14%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 86% 42%, #fff, transparent), radial-gradient(1px 1px at 32% 70%, #fff, transparent),
    radial-gradient(1px 1px at 56% 34%, #fff, transparent), radial-gradient(1px 1px at 8% 80%, #fff, transparent);
}
.cat-brand { position: relative; display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(226, 194, 125, 0.25), rgba(226, 194, 125, 0.05)); border: 1px solid var(--line); color: var(--gold);
}
.brand-mark .ico { width: 22px; height: 22px; }
.brand-name { display: block; font-family: var(--f-serif); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.18em; line-height: 1.2; }
.brand-en { display: block; font-size: 0.66rem; letter-spacing: 0.4em; color: var(--gold); }
.cat-title {
  position: relative; font-family: var(--f-serif); font-weight: 800; letter-spacing: 0.12em; line-height: 1.4;
  font-size: clamp(1.7rem, 5.4vw, 2.8rem); margin: 22px 0 10px;
  background: linear-gradient(180deg, #fff6df, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cat-lead { position: relative; color: var(--text-dim); margin: 0 auto; max-width: 620px; }
.cat-points { position: relative; list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.cat-points li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--text);
}
.cat-points .ico { color: var(--moon); }

.first-banner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 16px;
  padding: 16px 20px; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(100deg, rgba(226, 194, 125, 0.16), rgba(226, 194, 125, 0.04));
  border: 1px solid rgba(226, 194, 125, 0.45); transition: transform 0.15s, box-shadow 0.2s;
}
.first-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.first-banner:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.fb-kicker { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--ink); background: var(--gold); padding: 3px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.fb-title { font-weight: 700; }
.fb-go { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
  .first-banner { grid-template-columns: 1fr auto; }
  .fb-kicker { grid-column: 1 / -1; justify-self: start; }
}

.cat-section small { font-family: var(--f-sans); font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.05em; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
@media (max-width: 360px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-soft); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.work-card.is-available:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.work-card.is-first { border-color: rgba(226, 194, 125, 0.5); }
.wc-cover {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(ellipse at 50% 30%, rgba(226, 194, 125, 0.18), transparent 70%), linear-gradient(160deg, #1a2140, #0b0f1d);
}
.wc-cover .cover-art { width: 62%; max-height: 82%; filter: drop-shadow(0 0 14px rgba(226, 194, 125, 0.3)); }
.cover-tart { background: radial-gradient(ellipse at 50% 40%, rgba(255, 220, 140, 0.22), transparent 70%), linear-gradient(160deg, #3a2a1f, #16100c); }
.cover-hourglass { background: radial-gradient(ellipse at 50% 30%, rgba(226, 194, 125, 0.2), transparent 70%), linear-gradient(160deg, #141a33, #070910); }
.cover-lighthouse { color: #a9cfe0; background: radial-gradient(ellipse at 70% 30%, rgba(169, 207, 224, 0.18), transparent 70%), linear-gradient(170deg, #1d2b36, #0b1218); }
.cover-snow { color: #dfe8f2; background: radial-gradient(ellipse at 50% 20%, rgba(223, 232, 242, 0.16), transparent 70%), linear-gradient(170deg, #2a3240, #10141b); }
.cover-school { color: #e7b98f; background: radial-gradient(ellipse at 50% 30%, rgba(231, 185, 143, 0.2), transparent 70%), linear-gradient(170deg, #3a2633, #140d13); }
.is-planned .wc-cover .cover-art { opacity: 0.55; filter: grayscale(0.4); }
.wc-no {
  position: absolute; left: 14px; top: 12px; font-size: 0.7rem; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.75);
  font-family: var(--f-mono);
}
.wc-ribbon {
  position: absolute; right: 12px; top: 10px; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.05em;
}
.r-free { background: var(--gold); color: #1b1408; }
.r-paid { background: var(--moon); color: #0b1620; }
.r-planned { background: rgba(255, 255, 255, 0.1); color: var(--text-dim); border: 1px dashed rgba(255, 255, 255, 0.3); }
.wc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.wc-label { margin: 0; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; }
.wc-label span { color: var(--text-dim); }
.wc-title { font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.45; margin: 2px 0 8px; letter-spacing: 0.06em; }
.wc-world { margin: 0 0 14px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; flex: 1; }
.wc-meta {
  margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px;
  padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-soft);
}
.wc-meta div { min-width: 0; }
.wc-meta dt { font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.1em; }
.wc-meta dd { margin: 0; font-size: 0.86rem; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.price-free { color: var(--gold); }
.diff { display: inline-flex; gap: 2px; }
.diff i { width: 6px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.diff i.on { background: var(--gold); }
.wc-progress { margin: -4px 0 12px; font-size: 0.82rem; font-weight: 700; }
.wc-progress::before { content: '● '; }
.wc-progress.cleared { color: #8fdcb0; }
.wc-progress.progress { color: var(--moon); }
.wc-progress.played { color: var(--text-dim); }
.wc-actions .btn { width: 100%; }
.wc-play:disabled { cursor: not-allowed; opacity: 0.7; border-style: dashed; }
@media (max-width: 400px) {
  .wc-meta { grid-template-columns: 1fr 1fr; }
}

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan-item {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-soft);
}
.plan-item > .ico { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.plan-item h3 { margin: 0 0 2px; font-size: 1rem; }
.plan-item p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.cat-note { color: var(--text-dim); font-size: 0.82rem; text-align: center; margin-top: 18px; }

/* ============================================================
   チュートリアルの案内
   ============================================================ */
.guide {
  margin: 0 0 16px; padding: 14px 16px 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(226, 194, 125, 0.12), rgba(226, 194, 125, 0.04));
  border: 1px solid rgba(226, 194, 125, 0.45);
}
.guide-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guide-badge { font-size: 0.7rem; letter-spacing: 0.25em; color: var(--ink); background: var(--gold); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.guide-count { font-size: 0.82rem; color: var(--gold); font-weight: 700; }
.guide-steps { list-style: none; padding: 0; margin: 12px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.guide-steps li {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px;
  font-size: 0.78rem; color: var(--text-dim); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-soft);
}
.gs-dot {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}
.guide-steps li.done { color: #bfe9cf; }
.guide-steps li.done .gs-dot { background: #3f8f63; color: #fff; }
.guide-steps li.current { color: var(--text); border-color: var(--gold); }
.guide-steps li.current .gs-dot { background: var(--gold); color: var(--ink); }
.guide-now { padding: 12px 14px; border-radius: 12px; background: rgba(10, 13, 22, 0.55); }
.guide-now h3 { margin: 0 0 4px; font-family: var(--f-serif); font-size: 1.1rem; color: var(--gold); }
.guide-now p { margin: 0; font-size: 0.93rem; }
.guide-now .btn { margin-top: 10px; }
@media (max-width: 640px) {
  .guide-steps .gs-title { display: none; }
  .guide-steps li { padding: 4px; }
  .guide-steps li.current .gs-title { display: inline; }
  .guide-steps li.current { padding-right: 10px; }
}
.guide-target { position: relative; animation: guidePulse 1.6s ease-in-out infinite; z-index: 1; }
@keyframes guidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 194, 125, 0.0), 0 0 0 2px rgba(226, 194, 125, 0.9); }
  50% { box-shadow: 0 0 0 8px rgba(226, 194, 125, 0.18), 0 0 0 2px rgba(226, 194, 125, 0.9); }
}
.guide-inline {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem;
  background: rgba(226, 194, 125, 0.08); border: 1px solid rgba(226, 194, 125, 0.35);
}
.guide-inline .ico { color: var(--gold); margin-top: 3px; }

.next-case {
  margin-top: 36px; padding: 24px 18px; text-align: center; border-radius: 18px;
  border: 1px solid rgba(226, 194, 125, 0.45); background: radial-gradient(ellipse at 50% 0%, rgba(226, 194, 125, 0.16), transparent 70%), var(--ink-2);
}
.nc-kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.4em; color: var(--gold); }
.nc-text { margin: 6px 0 16px; }
