/* =========================================================
   事業再構築補助金の闇 — 共通スタイル
   調査報道風のダークテーマ（濃紺 × 警告レッド）
   ========================================================= */

:root {
  --bg:        #0b0f1a;   /* ほぼ黒に近い濃紺（背景） */
  --bg-2:      #121826;   /* カードなどの少し明るい背景 */
  --bg-3:      #1a2233;   /* さらに一段明るい面 */
  --line:      #2a3346;   /* 罫線 */
  --text:      #e7ecf3;   /* 基本の文字色 */
  --text-mute: #9aa7bd;   /* 補助的な文字色 */
  --accent:    #e23b4e;   /* 警告レッド（闇のアクセント） */
  --accent-2:  #ff6b5e;   /* 明るめレッド */
  --gold:      #d9a441;   /* 金額・注意を引く数字 */
  --blue:      #4b9fff;   /* リンク・情報 */
  --green:     #35c08a;   /* 補足のポジティブ */
  --maxw:      920px;
  --radius:    14px;
  --shadow:    0 10px 40px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
               "ヒラギノ角ゴ ProN W3", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

/* 背景の薄いグリッド質感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(226,59,78,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(75,159,255,.07), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー / ナビ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,26,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7a1420);
  display: grid; place-items: center; font-size: 18px; box-shadow: 0 0 18px rgba(226,59,78,.5);
}
.brand small { display:block; font-weight: 500; font-size: 11px; color: var(--text-mute); letter-spacing:.05em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--text-mute); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 7px 11px; border-radius: 8px;
}
.nav a:hover, .nav a.active { color: #fff; background: var(--bg-3); }

/* ---------- ヒーロー ---------- */
.hero { padding: 74px 0 40px; text-align: center; }
.hero .eyebrow {
  display: inline-block; color: var(--accent-2); font-weight: 700; letter-spacing: .18em;
  font-size: 12.5px; border: 1px solid rgba(226,59,78,.4); padding: 5px 14px; border-radius: 999px;
  background: rgba(226,59,78,.08);
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 60px); line-height: 1.12; margin: 22px 0 14px; font-weight: 900;
  letter-spacing: .01em;
}
.hero h1 .yami {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #ff6b5e, #b3172a);
  text-shadow: 0 0 40px rgba(226,59,78,.35);
}
.hero p.lead { color: var(--text-mute); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ---------- 見出し ---------- */
h2.section {
  font-size: clamp(23px, 3.6vw, 30px); font-weight: 800; margin: 8px 0 6px;
  padding-left: 14px; border-left: 5px solid var(--accent); line-height: 1.3;
}
h3 { font-size: 20px; font-weight: 800; margin: 34px 0 10px; color: #fff; }
.section-lead { color: var(--text-mute); margin: 0 0 26px; }

/* ---------- 汎用カード ---------- */
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }

/* ---------- 統計カード（数字） ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin: 26px 0; }
.stat {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative; overflow: hidden;
}
.stat::after { content:""; position:absolute; right:-30px; top:-30px; width:90px; height:90px; border-radius:50%; background: radial-gradient(circle, rgba(226,59,78,.14), transparent 70%); }
.stat .num { font-size: 34px; font-weight: 900; line-height: 1.1; color: #fff; }
.stat .num.red { color: var(--accent-2); }
.stat .num.gold { color: var(--gold); }
.stat .label { color: var(--text-mute); font-size: 13.5px; margin-top: 6px; }
.stat .sub { color: var(--text-mute); font-size: 11.5px; margin-top: 4px; opacity:.8; }

/* ---------- タイムライン ---------- */
.timeline { position: relative; margin: 24px 0; padding-left: 26px; }
.timeline::before { content:""; position:absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 22px 4px; }
.tl-item::before { content:""; position:absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(226,59,78,.15); }
.tl-item .date { color: var(--accent-2); font-weight: 700; font-size: 13.5px; }
.tl-item .tl-title { font-weight: 700; color: #fff; margin: 2px 0 3px; }
.tl-item p { margin: 0; color: var(--text-mute); font-size: 15px; }

/* ---------- テーブル ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 560px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-3); color: #fff; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }
td .amt { color: var(--gold); font-weight: 700; }

/* ---------- 事件カード一覧 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; margin: 24px 0; }
.case-card {
  display: block; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.case-card:hover { transform: translateY(-3px); border-color: rgba(226,59,78,.55); box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.case-card .badge { display:inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing:.03em; }
.badge.guilty  { background: rgba(226,59,78,.16);  color: var(--accent-2); border:1px solid rgba(226,59,78,.4); }
.badge.arrest  { background: rgba(217,164,65,.14);  color: var(--gold);    border:1px solid rgba(217,164,65,.4); }
.badge.public  { background: rgba(75,159,255,.14);  color: var(--blue);    border:1px solid rgba(75,159,255,.4); }
.badge.probe   { background: rgba(154,167,189,.14); color: var(--text-mute); border:1px solid var(--line); }
.case-card h4 { margin: 12px 0 6px; font-size: 17.5px; font-weight: 800; color: #fff; line-height: 1.4; }
.case-card .meta { color: var(--text-mute); font-size: 13px; display:flex; gap: 14px; flex-wrap: wrap; }
.case-card .amt { color: var(--gold); font-weight: 800; }
.case-card .arrow { position:absolute; right: 18px; bottom: 16px; color: var(--accent); font-weight: 800; }

/* ---------- 事件詳細ページ ---------- */
.case-hero { padding: 40px 0 10px; }
.case-hero .badge { font-size: 12px; }
.case-hero h1 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 900; margin: 14px 0 10px; line-height: 1.25; }
.fact-list { list-style: none; padding: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.fact-list li:last-child { border-bottom: none; }
.fact-list li:nth-child(odd) { background: rgba(255,255,255,.015); }
.fact-list .k { color: var(--text-mute); font-size: 13.5px; font-weight: 700; }
.fact-list .v { font-size: 15.5px; }
.fact-list .v .amt { color: var(--gold); font-weight: 800; }

/* YouTube / 動画リンク */
.video-links { margin: 22px 0; }
.video-link {
  display:flex; align-items:center; gap: 12px; text-decoration: none; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.video-link:hover { border-color: var(--accent); }
.video-link .yt { flex:none; width: 40px; height: 28px; border-radius: 6px; background: #ff0000; display:grid; place-items:center; color:#fff; font-size: 15px; }
.video-link .vt { font-size: 14.5px; font-weight: 600; }
.video-link small { display:block; color: var(--text-mute); font-weight: 400; }

/* 出典 */
.sources { margin: 26px 0 0; padding: 18px 20px; background: var(--bg-2); border: 1px dashed var(--line); border-radius: 12px; }
.sources h4 { margin: 0 0 8px; font-size: 13px; color: var(--text-mute); letter-spacing:.05em; text-transform: uppercase; }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { font-size: 13px; color: var(--text-mute); margin-bottom: 6px; word-break: break-all; }
.sources a { color: var(--blue); }

/* 注意書き / コールアウト */
.callout { border-left: 4px solid var(--accent); background: rgba(226,59,78,.06); padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 22px 0; color: var(--text); font-size: 15px; }
.callout.info { border-left-color: var(--blue); background: rgba(75,159,255,.06); }
.callout.note { border-left-color: var(--text-mute); background: rgba(154,167,189,.06); }
.callout strong { color: #fff; }

/* リンク・ボタン */
a { color: var(--blue); }
.btn { display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-weight:700; font-size:14.5px;
  padding: 11px 20px; border-radius: 10px; background: var(--accent); color:#fff; border: none; }
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color:#fff; }
.btn-row { display:flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; justify-content:center; }

.back-link { display:inline-flex; align-items:center; gap:6px; color: var(--text-mute); text-decoration:none; font-size:14px; font-weight:600; margin: 24px 0 0; }
.back-link:hover { color:#fff; }

/* セクション区切り */
section.block { padding: 30px 0; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* カード内リスト */
.card ul { padding-left: 20px; }
.card li { margin-bottom: 8px; }

/* 免責 */
.disclaimer { font-size: 12.5px; color: var(--text-mute); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 24px 0; line-height: 1.7; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 0 46px; color: var(--text-mute); font-size: 13.5px; }
.site-footer .wrap { display:flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items:center; }
.site-footer a { color: var(--text-mute); text-decoration: none; margin-right: 14px; }
.site-footer a:hover { color:#fff; }
.site-footer .sig { color: var(--text); font-weight: 700; }

/* モバイル */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 30px; }
  .nav { display:none; }
  .fact-list li { grid-template-columns: 96px 1fr; }
}
