/* 検証ラボ — 共通スタイル
   方針: ダーク×ゴールドのガラス質感。カードは浮き上がらせ、数字を主役にする。 */

:root {
  --bg: #0a0d12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --ink: #ece8dc;
  --muted: #9aa3ad;
  --line: rgba(240, 212, 138, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d9a441;
  --gold-bright: #f0d48a;
  --gold-deep: #b97f26;
  --accent-soft: rgba(217, 164, 65, 0.12);
  --warn: #f0d48a;
  --warn-soft: rgba(217, 164, 65, 0.13);
  --bad: #ef9a8b;
  --bad-soft: rgba(224, 102, 82, 0.13);
  --radius: 16px;
  --shadow-card: 0 18px 36px rgba(0, 0, 0, 0.42),
    0 3px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -14px 24px rgba(0, 0, 0, 0.22);
  --shadow-card-hover: 0 28px 52px rgba(0, 0, 0, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -14px 24px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(217, 164, 65, 0.13), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(64, 96, 140, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 115%, rgba(217, 164, 65, 0.07), transparent 60%),
    linear-gradient(180deg, #0c1017 0%, var(--bg) 340px);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection { background: rgba(217, 164, 65, 0.4); }

a { color: var(--gold-bright); }
a:hover { text-decoration-thickness: 2px; }

/* ---------- 粒子背景（tsParticles） ---------- */
#tsparticles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.site-header, .wrap { position: relative; z-index: 1; }

/* ---------- レイアウト ---------- */
.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 13, 18, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(240, 212, 138, 0.45), transparent) 1;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.site-header .wrap { padding-top: 16px; padding-bottom: 12px; }
.site-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: linear-gradient(100deg, #f6e2a8 10%, var(--gold) 55%, var(--gold-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(217, 164, 65, 0.25);
}
.site-tagline {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.site-nav { margin-top: 10px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 3px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover {
  border-color: rgba(240, 212, 138, 0.5);
  background: rgba(217, 164, 65, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ---------- ヒーロー（トップのみ） ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 4px;
}
.hero-visual { flex: 0 0 auto; filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.55)); }
.hero-visual canvas { display: block; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin-top: 0; }

/* ---------- PR表記 ---------- */
.pr-note {
  background: var(--warn-soft);
  border: 1px solid rgba(240, 212, 138, 0.35);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--warn);
  margin: 0 0 26px;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- 見出し・本文 ---------- */
h1 {
  font-size: 30px;
  line-height: 1.45;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
h1 .hl {
  background: linear-gradient(100deg, #f6e2a8, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: 19px;
  margin: 42px 0 14px;
  padding: 0 0 8px 14px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: 0.02em;
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 9px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.55), 2px 2px 5px rgba(0, 0, 0, 0.5);
}
h2 .sec-no { color: var(--gold); margin-right: 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 16.5px; color: #d8d2c2; }
.meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
strong { color: #fff6e0; }

/* ---------- 判定バッジ ---------- */
.verdict {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 12px;
  vertical-align: middle;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.verdict-watch { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(240, 212, 138, 0.5); }
.verdict-reject { background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(239, 154, 139, 0.45); }
.verdict-none { background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line-soft); }

/* ---------- 表 ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 15px;
}
th, td {
  border: 1px solid var(--line-soft);
  padding: 9px 13px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: rgba(217, 164, 65, 0.14);
  color: var(--gold-bright);
  font-weight: 700;
}
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- カード（一覧・節目） ---------- */
.card-list { list-style: none; margin: 0; padding: 0; }
.card {
  background: linear-gradient(165deg, var(--surface-strong), var(--surface) 55%, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(240, 212, 138, 0.4);
}
.card h3 { margin: 0 0 4px; font-size: 16.5px; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--gold-bright); text-decoration: underline; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card .result-line {
  color: var(--gold-bright);
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.soon {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 8px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.04);
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.level-grid .card { margin-bottom: 0; text-align: center; }
.level-grid .card h3 { font-size: 18px; color: var(--gold-bright); }

/* ---------- 判定ボックス ---------- */
.verdict-box {
  background: linear-gradient(165deg, rgba(217, 164, 65, 0.14), rgba(217, 164, 65, 0.05));
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.verdict-box p { margin: 0; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 52px;
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.site-footer p { margin: 0 0 8px; }

/* ---------- KPIタイル ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 6px;
}
.kpi {
  background: linear-gradient(165deg, var(--surface-strong), var(--surface) 60%, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px 10px;
  text-align: center;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.kpi-v {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  line-height: 1.3;
}
.kpi-l {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

/* ---------- グラフ（SVG） ---------- */
.viz {
  margin: 18px 0 8px;
  padding: 16px 18px 10px;
  background: linear-gradient(165deg, var(--surface-strong), var(--surface) 60%, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.viz figcaption {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.viz svg { width: 100%; height: auto; display: block; }
.viz svg text { font-family: inherit; }
.viz-note {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 4px;
}

/* ---------- スクロール・リビール（fx.js） ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
  .card { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- モバイル ---------- */
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 24px; }
  h2 { font-size: 17px; }
  .hero { flex-direction: column; text-align: center; gap: 0; }
  .hero-visual canvas { width: 210px; height: 210px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-v { font-size: 20px; }
  .viz { padding: 13px 12px 8px; }
  .level-grid { grid-template-columns: 1fr; }
  th, td { padding: 7px 9px; }
}

.page-updated {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 12px;
  border: 1px solid rgba(240, 212, 138, 0.45);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--gold-bright, #f0d48a);
  background: rgba(240, 212, 138, 0.07);
}
.toc-list { list-style: none; margin: 10px 0 4px; padding: 0; }
.toc-list li { padding: 7px 2px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14.5px; }
.toc-list li:last-child { border-bottom: none; }
.toc-list .toc-note { color: #9a958a; font-size: 12.5px; margin-left: 8px; }
