@charset "UTF-8";
/* =========================================================================
   税リーグ問題まとめサイト 共通スタイル
   - 初心者向けメモ：このファイル1枚で全ページの見た目を決めています。
   - 色や余白は下の「:root」の変数を書き換えると一括で変えられます。
   ========================================================================= */

/* ---- 配色・基本設定（ここを変えると全体の色が変わります） ---- */
:root {
  --navy-900: #0b1622;   /* いちばん濃い紺（背景の一部） */
  --navy-800: #0d1b2a;   /* ヘッダーやフッターの背景 */
  --navy-700: #14213d;   /* 見出し帯など */
  --navy-600: #1b2a4a;
  --ink:      #1a2232;   /* 本文の文字色 */
  --paper:    #f7f8fa;   /* ページ全体の背景（紙っぽい薄いグレー） */
  --card:     #ffffff;   /* カードの背景（白） */
  --line:     #e3e6ec;   /* 罫線の色 */
  --muted:    #5b6472;   /* 補足文字（グレー） */

  --red:      #d7263d;   /* 批判・警告の赤 */
  --red-dark: #a71d30;
  --red-soft: #fdecef;   /* 赤の薄い背景 */
  --gold:     #c99a2e;   /* お金・数字の強調（金色） */
  --green:    #2f8f5b;   /* 「優等生」など肯定の緑 */
  --green-soft:#e8f5ee;
  --blue:     #2f6fb0;   /* リンク・中立情報 */

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(13, 27, 42, 0.06);
  --shadow-lg: 0 8px 30px rgba(13, 27, 42, 0.12);
  --maxw: 1080px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
}

/* ---- リセットと土台 ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* =========================================================================
   ヘッダー / グローバルナビ
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--red); color: #fff; font-size: 15px; font-weight: 900;
}
.brand small { display:block; font-weight: 500; font-size: 11px; color: #9fb0c3; letter-spacing:0; }

.nav { display: flex; gap: 4px; }
.nav a {
  color: #cdd7e3; font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.nav a.active { color: #fff; background: var(--red); }

/* ハンバーガー（スマホ用）*/
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 60px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--navy-800); padding: 8px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-120%); transition: transform .25s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* =========================================================================
   ヒーロー（各ページ上部の大きな見出し帯）
   ========================================================================= */
.hero {
  background:
    linear-gradient(180deg, rgba(11,22,34,0.86), rgba(11,22,34,0.94)),
    radial-gradient(1200px 400px at 80% -10%, rgba(215,38,61,0.35), transparent 60%);
  background-color: var(--navy-800);
  color: #fff; padding: 64px 0 56px;
}
.hero .container { position: relative; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: #ffd0d6; background: rgba(215,38,61,0.22);
  border: 1px solid rgba(215,38,61,0.5);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.25; margin: 0 0 16px; font-weight: 900; letter-spacing: .01em; }
.hero p.lead { font-size: clamp(15px, 2.2vw, 19px); color: #d6e0ec; max-width: 760px; margin: 0; }
.hero .hero-meta { margin-top: 22px; font-size: 13px; color: #9fb0c3; }

/* =========================================================================
   セクション見出し
   ========================================================================= */
.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head .kicker { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 6px 0 8px; font-weight: 900; color: var(--navy-800); }
.section-head p { color: var(--muted); margin: 0; max-width: 720px; }

h3 { font-size: 20px; font-weight: 800; color: var(--navy-800); margin: 32px 0 12px; }
h4 { font-size: 17px; font-weight: 800; color: var(--navy-700); margin: 24px 0 8px; }

/* =========================================================================
   カード / グリッド
   ========================================================================= */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card.link-card { transition: transform .15s ease, box-shadow .15s ease; display:block; color: inherit; }
.card.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .card-tag { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing:.04em; }
.card .card-arrow { color: var(--red); font-weight: 800; margin-top: 10px; display:inline-block; }

/* 数字カード（統計の強調）*/
.stat { text-align: center; padding: 26px 18px; }
.stat .num { font-size: clamp(30px, 6vw, 44px); font-weight: 900; color: var(--red); line-height: 1.1; letter-spacing: -0.01em; }
.stat .num.gold { color: var(--gold); }
.stat .num.green { color: var(--green); }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 600; }

/* =========================================================================
   論点ボックス（批判 / 反論）
   ========================================================================= */
.claim {
  border-left: 5px solid var(--red); background: var(--red-soft);
  padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0;
}
.claim .claim-label { font-weight: 800; color: var(--red-dark); font-size: 13px; }
.counter {
  border-left: 5px solid var(--blue); background: #eef4fb;
  padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0;
}
.counter .claim-label { font-weight: 800; color: var(--blue); font-size: 13px; }
.good {
  border-left: 5px solid var(--green); background: var(--green-soft);
  padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0;
}
.good .claim-label { font-weight: 800; color: var(--green); font-size: 13px; }

.note {
  background: #fff8e6; border: 1px solid #f0dfae; color: #7a5c12;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin: 16px 0;
}

/* =========================================================================
   表
   ========================================================================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background:#fff; }
table.data { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--navy-700); color: #fff; font-weight: 700; position: sticky; top: 0; white-space: nowrap; }
table.data tbody tr:nth-child(even) { background: #fafbfc; }
table.data tbody tr:hover { background: #f0f4f9; }
.badge { display:inline-block; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge.pub { background: var(--red-soft); color: var(--red-dark); }      /* 自治体所有＝公費 */
.badge.priv { background: var(--green-soft); color: var(--green); }       /* 民設民営 */
.badge.mix { background: #eef4fb; color: var(--blue); }
.badge.warn { background: #fff3d6; color: #8a6400; }

/* =========================================================================
   タイムライン（時系列）
   ========================================================================= */
.timeline { position: relative; margin: 30px 0; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--red), var(--gold)); border-radius: 3px;
}
.tl-item { position: relative; padding: 0 0 26px 48px; }
.tl-item::before {
  content: ""; position: absolute; left: 6px; top: 4px; width: 18px; height: 18px;
  background: #fff; border: 4px solid var(--red); border-radius: 50%; z-index: 1;
}
.tl-item.big::before { border-color: var(--gold); width: 22px; height: 22px; left: 4px; }
.tl-date { font-weight: 800; color: var(--red-dark); font-size: 14px; }
.tl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-top: 6px; box-shadow: var(--shadow);
}
.tl-card h4 { margin: 0 0 6px; font-size: 16px; }
.tl-card p { margin: 0 0 8px; font-size: 14.5px; }
.tl-src { font-size: 12px; color: var(--muted); }
.tl-src a { color: var(--muted); text-decoration: underline; }

/* =========================================================================
   出典・脚注
   ========================================================================= */
.sources { font-size: 13px; color: var(--muted); }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 6px; }
.src-tag {
  font-size: 11px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 4px;
}
.unverified { color: #8a6400; font-weight: 700; font-size: 12px; }

/* =========================================================================
   注意書き・免責
   ========================================================================= */
.disclaimer {
  background: #fbfbfc; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 13.5px; color: var(--muted);
}

/* 目次 */
.toc { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.toc strong { display:block; color: var(--navy-800); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--ink); }

/* =========================================================================
   写真つきケースカード（トップページの「注目のケース」用）
   ========================================================================= */
.photo-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  color: inherit; transition: transform .15s ease, box-shadow .15s ease;
}
.photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.photo-card .pc-img { position: relative; aspect-ratio: 16/9; background: var(--navy-800); overflow: hidden; }
.photo-card .pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card .pc-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; font-weight: 800; color: #fff; background: rgba(215,38,61,0.92);
  padding: 3px 10px; border-radius: 999px;
}
.photo-card .pc-body { padding: 14px 16px 16px; }
.photo-card .pc-body h3 { margin: 0 0 6px; font-size: 17px; }
.photo-card .pc-body p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.photo-card .pc-arrow { color: var(--red); font-weight: 800; font-size: 13px; }
/* 最重要ケース用の横型カード */
.photo-card.featured { flex-direction: row; border-left: 5px solid var(--red); }
.photo-card.featured .pc-img { width: 46%; aspect-ratio: auto; min-height: 220px; }
.photo-card.featured .pc-body { flex: 1; align-self: center; padding: 22px 24px; }
.photo-card.featured .pc-body h3 { font-size: 20px; }
.photo-card.featured .pc-body p { font-size: 14px; }
@media (max-width: 720px){ .photo-card.featured { flex-direction: column; } .photo-card.featured .pc-img { width: 100%; aspect-ratio: 16/9; min-height: 0; } }

/* =========================================================================
   YouTube動画グリッド（個別ケースの関連報道）
   ========================================================================= */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px){ .video-grid{ grid-template-columns: 1fr; } }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .vc-title { font-size: 14px; font-weight: 700; color: var(--navy-800); padding: 12px 14px; line-height: 1.55; }

/* =========================================================================
   スタジアム写真（各ケージのヒーロー下に置く帯状の写真＋クレジット）
   ========================================================================= */
.stadium-figure { margin: 0; background: var(--navy-900); }
.stadium-figure figure { margin: 0; position: relative; }
.stadium-figure img {
  display: block; width: 100%; max-height: 460px; object-fit: cover;
}
.stadium-figure figcaption {
  font-size: 12px; color: var(--muted);
  padding: 8px 20px; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
}
.stadium-figure figcaption .cap-main { color: var(--ink); font-weight: 600; }
.stadium-figure figcaption .cap-credit { color: var(--muted); }
.stadium-figure figcaption a { color: var(--muted); text-decoration: underline; }

/* ボタン */
.btn {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow);
}
.btn:hover { background: var(--red-dark); text-decoration: none; color:#fff; }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* =========================================================================
   フッター
   ========================================================================= */
.site-footer { background: var(--navy-900); color: #aebccd; padding: 40px 0 30px; margin-top: 60px; font-size: 14px; }
.site-footer a { color: #cdd7e3; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 26px; padding-top: 18px; font-size: 12px; color: #7f90a3; }

/* パンくず */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0; }
.breadcrumb a { color: var(--muted); }

/* ユーティリティ */
.center { text-align: center; }
.mt0{margin-top:0}.mb0{margin-bottom:0}
.pill-row { display:flex; flex-wrap:wrap; gap:8px; }
.pill { background:#fff; border:1px solid var(--line); border-radius:999px; padding:6px 14px; font-size:13px; font-weight:600; }
