/* 国会ウォッチ。色はえんじ（本会議場の絨毯）〜紫系 */
:root {
  --ink:#241f26; --muted:#6b6270; --line:#e6e1e8; --bg:#faf7fa; --paper:#fff;
  --brand:#8c2f4a; --brand-dark:#6b2038; --accent:#6b3fa0; --accent-soft:#f3edfa;
  --shu:#8c2f4a; --san:#3f6ba0; --ryo:#6b3fa0; --warn:#b45309;
}
* { box-sizing: border-box; }
html { font-size:16px; }
body { margin:0; font-family:-apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.8; }
a { color:var(--brand); }
a:hover { color:var(--brand-dark); }
.wrap { max-width:1140px; margin:0 auto; padding:0 16px; }

/* ヘッダー・フッター */
.site-header { background:var(--paper); border-bottom:3px solid var(--brand); }
.site-header .wrap { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding-top:12px; padding-bottom:12px; }
.brand { font-weight:700; font-size:1.3rem; text-decoration:none; color:var(--brand); letter-spacing:.02em; }
.site-header nav { display:flex; gap:2px; flex-wrap:wrap; }
.site-header nav a { text-decoration:none; padding:6px 12px; border-radius:6px; color:var(--ink); font-size:.95rem; }
.site-header nav a:hover { background:var(--accent-soft); color:var(--accent); }
.search-form { display:flex; gap:6px; margin-left:auto; }
.search-form input { padding:6px 10px; border:1px solid var(--line); border-radius:6px; min-width:200px; font-size:.9rem; }
.search-form button { padding:6px 14px; border:none; border-radius:6px; background:var(--brand); color:#fff; cursor:pointer; }
.site-footer { border-top:1px solid var(--line); background:var(--paper); font-size:.85rem; color:var(--muted); padding:24px 0 32px; }

/* 全体の枠 */
.layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; padding-top:24px; padding-bottom:44px; }
.content { min-width:0; }
.sidebar .box { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:14px 16px; margin-bottom:18px; }
.sidebar h2 { font-size:1rem; margin:0 0 8px; border:none; padding:0; }

/* 見出し */
h1 { font-size:1.6rem; line-height:1.45; margin:8px 0 12px; }
h2 { font-size:1.2rem; margin:34px 0 12px; padding-left:10px; border-left:4px solid var(--brand); }
h3 { font-size:1.05rem; margin:22px 0 8px; }
.lead { color:var(--muted); }
.small, .source { font-size:.85rem; color:var(--muted); }
.crumbs { font-size:.85rem; color:var(--muted); }
section { margin-bottom:8px; }

/* お知らせ帯 */
.notice { border-radius:8px; padding:10px 14px; margin:14px 0 0; font-size:.95rem; }
.notice.open { background:#eaf6ef; border:1px solid #bfe3cd; }
.notice.closed { background:var(--accent-soft); border:1px solid #ddd0f0; }

/* ヒーロー・数字 */
.hero { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:20px 24px; }
.hero h1 { margin-top:0; font-size:1.9rem; color:var(--brand); }
.stat-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:16px 0; }
.stat { background:var(--bg); border-radius:10px; padding:12px; text-align:center; }
.stat strong { display:block; font-size:1.7rem; color:var(--brand); line-height:1.25; }
.stat span { font-size:.8rem; color:var(--muted); }
.small-stats .stat strong { font-size:1.35rem; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 0; }
.button { display:inline-block; background:var(--brand); color:#fff !important; text-decoration:none; padding:11px 20px; border-radius:8px; font-weight:600; }
.button:hover { background:var(--brand-dark); }
.button.ghost { background:var(--paper); color:var(--brand) !important; border:1px solid var(--brand); }
.button.ghost:hover { background:var(--accent-soft); }
.cta { margin:16px 0 4px; }

/* カード */
.cards { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.card { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.card-title { font-weight:600; text-decoration:none; display:block; }
.card-meta { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:.85rem; color:var(--muted); margin-top:6px; align-items:center; }
.card-catch { margin:8px 0 0; font-size:.9rem; color:var(--muted); }
.card-speakers { margin:8px 0 0; display:flex; flex-wrap:wrap; gap:6px; }
.card-speakers a, .card-speakers span { font-size:.82rem; text-decoration:none; background:var(--bg); border:1px solid var(--line);
  border-radius:999px; padding:2px 10px; color:var(--ink); }
.card-speakers small { color:var(--muted); margin-left:5px; }

/* バッジ・タグ */
.badge { display:inline-block; font-size:.75rem; padding:1px 9px; border-radius:999px; color:#fff; background:var(--muted); }
.badge.shugiin { background:var(--shu); }
.badge.sangiin { background:var(--san); }
.badge.ryoin, .badge.ryoin-kyogikai { background:var(--ryo); }
.tag { display:inline-block; font-size:.75rem; padding:1px 8px; border-radius:4px; background:var(--accent-soft); color:var(--accent); }

/* 一覧 */
.compact { list-style:none; margin:0; padding:0; }
.compact li { padding:6px 0; border-bottom:1px solid var(--line); font-size:.9rem; }
.compact li:last-child { border-bottom:none; }
.compact .meta { display:block; font-size:.8rem; color:var(--muted); }
ol.compact { padding-left:1.4em; list-style:decimal; }
.daylist { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:0 20px; }
.daylist li { display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid var(--line); }
.daylist li a { flex:1; text-decoration:none; }
.inline-list { list-style:none; margin:4px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px 14px; font-size:.9rem; }
.dayblock { margin-bottom:20px; }
.dayblock h3 { margin:16px 0 8px; }
.agenda { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:12px 16px 12px 36px; margin:12px 0; }
.agenda li { padding:3px 0; }
.num { color:var(--muted); font-size:.85rem; white-space:nowrap; }
td.num, th.num { text-align:right; }

/* ランキング */
.rank-list { counter-reset:r; list-style:none; margin:12px 0; padding:0; }
.rank-list li { counter-increment:r; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:8px 12px 8px 44px; position:relative; background:var(--paper); border:1px solid var(--line);
  border-radius:8px; margin-bottom:6px; }
.rank-list li::before { content:counter(r); position:absolute; left:10px; top:50%; transform:translateY(-50%);
  width:24px; text-align:center; font-weight:700; color:var(--brand); font-size:.9rem; }
.rank-list li:nth-child(-n+3)::before { color:#fff; background:var(--brand); border-radius:50%; line-height:24px; height:24px; }
.rank-list a { text-decoration:none; font-weight:600; }
.rank-list .num { margin-left:auto; }

/* 語のチップ */
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chips a, .chips span { text-decoration:none; font-size:.85rem; background:var(--bg); border:1px solid var(--line);
  border-radius:999px; padding:3px 11px; color:var(--ink); }
.chips.large a, .chips.large span { background:var(--paper); padding:6px 13px; font-size:.95rem; }
.chips small { color:var(--muted); margin-left:5px; }
.chips.words a:hover { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }

/* 表 */
.facts { width:100%; border-collapse:collapse; background:var(--paper); border:1px solid var(--line); border-radius:10px; overflow:hidden; margin:14px 0; font-size:.93rem; }
.facts th, .facts td { text-align:left; padding:8px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.facts thead th { background:var(--bg); font-weight:600; white-space:nowrap; }
.facts tr:last-child td { border-bottom:none; }
.facts small { display:block; color:var(--muted); font-size:.75rem; line-height:1.4; }
.speakers td:first-child { white-space:nowrap; }

/* 発言の抜粋 */
.speeches { list-style:none; margin:12px 0; padding:0; }
.speeches li { background:var(--paper); border:1px solid var(--line); border-left:4px solid var(--accent);
  border-radius:8px; padding:10px 14px; margin-bottom:10px; }
.sp-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:.85rem; }
.sp-name { font-weight:600; text-decoration:none; font-size:.95rem; }
.sp-src { margin-left:auto; font-size:.8rem; }
.speeches p { margin:6px 0 0; font-size:.93rem; }

/* 棒グラフ */
.bars { list-style:none; margin:12px 0; padding:0; }
.bars li { display:flex; align-items:center; gap:10px; padding:3px 0; }
.bar-label { width:7em; font-size:.85rem; text-decoration:none; flex:none; }
.bar { flex:1; background:var(--bg); border-radius:4px; height:14px; overflow:hidden; border:1px solid var(--line); }
.bar i { display:block; height:100%; background:var(--brand); }
.bars .num { width:3.5em; text-align:right; }

/* 記事・固定ページ */
.article-body, .official { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:8px 20px 20px; margin-top:18px; }
.article-body h2:first-child, .official h2 { margin-top:18px; }
.howto ol { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:14px 16px 14px 36px; }

/* ページ送り・検索 */
.pager { display:flex; gap:6px; flex-wrap:wrap; margin:20px 0; }
.pager.between { justify-content:space-between; font-size:.9rem; }
.pager a, .pager .cur { padding:6px 12px; border:1px solid var(--line); border-radius:6px; text-decoration:none; background:var(--paper); }
.pager .cur { background:var(--brand); color:#fff; border-color:var(--brand); }
.filter { display:grid; grid-template-columns:repeat(3,1fr); gap:10px 14px; background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.filter label { display:flex; flex-direction:column; font-size:.85rem; color:var(--muted); gap:4px; }
.filter label.grow { grid-column:span 2; }
.filter select, .filter input { padding:8px 10px; border:1px solid var(--line); border-radius:6px; font-size:.95rem; color:var(--ink); background:#fff; }

@media (max-width: 880px) {
  .layout { grid-template-columns:1fr; }
  h1 { font-size:1.3rem; }
  .hero h1 { font-size:1.5rem; }
  .stat-row { grid-template-columns:repeat(2,1fr); }
  .filter { grid-template-columns:1fr; }
  .filter label.grow { grid-column:span 1; }
  .search-form { width:100%; margin-left:0; }
  .search-form input { flex:1; min-width:0; }
  .daylist { grid-template-columns:1fr; }
  .facts { display:block; overflow-x:auto; }
}
