/* 新党ウォッチャー（非公式）
   トーン: 資料性を前面に出したデータベース寄り。応援スタンスは差し色と言葉で出す。 */

:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --ink: #1c1a17;
  --sub: #6b6660;
  --line: #e4e0d9;
  --acc: #c4471c;          /* 差し色: 応援の熱量担当 */
  --acc-soft: #fdf1ec;
  --link: #1b5e8a;
  --mark: #ffe08a;
  --warn-bg: #2b2622;
  --warn-ink: #f3ede4;
  --radius: 10px;
  --maxw: 900px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --panel: #201e1b;
    --ink: #eae6df;
    --sub: #98918a;
    --line: #33302c;
    --acc: #ef7a4b;
    --acc-soft: #2c211c;
    --link: #79bde6;
    --mark: #7a6320;
    --warn-bg: #0e0d0c;
    --warn-ink: #e6e0d7;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---- 非公式バー（常時表示） ---- */
.unofficial-bar {
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 12.5px;
  line-height: 1.6;
  padding: 9px 18px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}
.unofficial-bar .tag {
  flex: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 7px;
}
.unofficial-bar .text { max-width: 760px; }

/* ---- 選挙モードバー ---- */
.election-bar {
  background: var(--acc);
  color: #fff;
  font-size: 12.5px;
  padding: 9px 18px;
  text-align: center;
}
.election-bar a { color: #fff; text-decoration: underline; }
.election-bar strong { margin-right: 10px; }
.election-bar .note { display: block; opacity: .9; font-size: 11.5px; margin-top: 2px; }

/* ---- ヘッダ ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 18px 0;
}
.brand { display: block; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-name::after {
  content: "非公式";
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  vertical-align: 4px;
  margin-left: 8px;
  color: var(--acc);
  border: 1px solid var(--acc);
  border-radius: 3px;
  padding: 1px 6px;
}
.brand-sub { display: block; font-size: 12.5px; color: var(--sub); margin-top: 2px; }

.site-header nav {
  display: flex;
  gap: 2px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a {
  flex: none;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--ink); text-decoration: none; }
.site-header nav a.on { color: var(--acc); border-bottom-color: var(--acc); }

/* ---- 共通パーツ ---- */
main.wrap { padding-top: 30px; padding-bottom: 70px; }

/* ---- ホームのヒーロー: まず「この新党は何なのか」を説明する ---- */
.hero { padding: 8px 0 6px; }
.hero-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--acc);
}
.hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.45;
  margin-top: 4px;
}
.hero-prose { margin-top: 14px; }
.hero-prose p { font-size: 15px; line-height: 1.9; }
.hero-prose p + p { margin-top: 8px; }
.hero-prose strong {
  font-weight: 700;
  background: linear-gradient(transparent 68%, var(--mark) 68%);
}
.hero-src { font-size: 12.5px; color: var(--sub); margin-top: 14px; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.cta {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 8px;
  padding: 11px 26px;
  letter-spacing: .02em;
}
.cta:hover { filter: brightness(1.08); text-decoration: none; }
.cta-note { font-size: 13px; color: var(--sub); }
.cta-note strong { color: var(--ink); }

/* ---- いま動いていること ---- */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.now-card { border-top: 3px solid var(--acc); }
.now-card .card + .card { margin-top: 0; }
.now-date {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: .02em;
}
.now-card .t-title { font-size: 15px; font-weight: 700; margin-top: 2px; }
.now-card .t-body { font-size: 13px; color: var(--sub); margin-top: 4px; }

/* ---- 3本柱カード ---- */
.site-intro { font-size: 14.5px; line-height: 1.9; margin: -4px 0 14px; }
.site-intro strong {
  font-weight: 700;
  background: linear-gradient(transparent 68%, var(--mark) 68%);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.pillars .card + .card { margin-top: 0; }
.pillar .p-title { font-size: 15.5px; font-weight: 800; }
.pillar .p-title a { color: var(--ink); }
.pillar .p-title a:hover { color: var(--acc); text-decoration: none; }
.pillar .p-desc { font-size: 13px; color: var(--sub); margin-top: 6px; }
.p-search { margin: 12px 0 0; }
.p-search input[type=text] { padding: 8px 12px; font-size: 14px; min-width: 0; }
.p-search button { padding: 0 16px; }

/* ---- 候補者 ---- */
.c-name { font-size: 16px; }
.status {
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: 2px;
  background: var(--acc-soft);
  color: var(--acc);
  white-space: nowrap;
}
.status-elected { background: var(--acc); color: #fff; }
.status-left, .status-defeated { background: var(--line); color: var(--sub); }
.op-comment {
  background: var(--acc-soft);
  border-radius: 8px;
  padding: 10px 13px;
  margin-top: 10px;
  font-size: 13.5px;
}
.op-comment .label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--acc);
  margin-bottom: 2px;
}

/* ---- 参照リスト ---- */
.ref-list { list-style: none; font-size: 14px; }
.ref-list li + li { margin-top: 8px; }

h1.page-title { font-size: 24px; font-weight: 800; letter-spacing: .01em; }
p.page-lead { color: var(--sub); font-size: 14px; margin-top: 6px; }

section { margin-top: 38px; }
h2.sec {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  padding-left: 10px;
  border-left: 4px solid var(--acc);
  margin-bottom: 14px;
}
.sec-more { float: right; font-size: 12.5px; font-weight: 600; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card + .card { margin-top: 12px; }

.muted { color: var(--sub); font-size: 13px; }
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  color: var(--sub);
  font-size: 13.5px;
}

/* 一次ソースリンク（必須表示） */
.source {
  display: inline-block;
  font-size: 12px;
  color: var(--sub);
  margin-top: 8px;
}
.source::before { content: "出典 "; font-weight: 700; letter-spacing: .04em; }

/* ---- 基礎情報テーブル ---- */
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td {
  text-align: left;
  vertical-align: top;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
}
.facts th { width: 30%; color: var(--sub); font-weight: 600; white-space: nowrap; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.provisional {
  font-size: 11px;
  color: var(--acc);
  background: var(--acc-soft);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ---- タイムライン ---- */
.timeline { list-style: none; position: relative; padding-left: 18px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding: 0 0 22px 14px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -18px; top: 9px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline li.future::before { background: var(--line); }
.timeline .t-date {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 12.5px;
  color: var(--acc);
  letter-spacing: .02em;
}
.timeline li.future .t-date { color: var(--sub); }
.timeline .t-title { font-size: 15px; font-weight: 700; margin-top: 1px; }
.timeline .t-body { font-size: 13.5px; color: var(--sub); margin-top: 3px; }

/* ---- 検索 ---- */
.searchbox { display: flex; gap: 8px; margin: 18px 0 10px; }
.searchbox input[type=text] {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink);
}
.searchbox input[type=text]:focus { outline: none; border-color: var(--acc); }
.searchbox button {
  background: var(--acc);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.searchbox button:hover { filter: brightness(1.08); }

.search-note {
  font-size: 12.5px;
  color: var(--sub);
  background: var(--acc-soft);
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 20px;
}

/* 話者フィルターのチップ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 5px 14px;
}
.chip:hover { color: var(--ink); text-decoration: none; }
.chip.on { color: #fff; background: var(--acc); border-color: var(--acc); }

.sp-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--acc);
  border: 1px solid var(--acc);
  border-radius: 3px;
  padding: 0 5px;
  margin-right: 2px;
}

.hit-card { position: relative; }
.hit-head { display: flex; gap: 12px; margin-bottom: 8px; }
.hit-thumb { flex: none; }
.hit-thumb img { width: 120px; height: 68px; object-fit: cover; border-radius: 5px; display: block; background: var(--line); }
.hit-head-body { min-width: 0; }
@media (max-width: 560px) {
  .hit-thumb img { width: 96px; height: 54px; }
}
.hit-card .hits {
  float: right;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--acc);
  border: 1px solid var(--acc);
  border-radius: 11px;
  padding: 1px 9px;
}
.hit-card .vtitle { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.hit-card .vtitle:hover { color: var(--acc); }
.hit-card .vmeta { font-size: 11.5px; color: var(--sub); margin: 3px 0 8px; }
.snip {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink);
}
.snip:hover { text-decoration: none; }
.snip:hover .t { color: var(--acc); }
.snip .time {
  flex: none;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--acc);
  min-width: 56px;
  padding-top: 2px;
}
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---- 記事 ---- */
.article-list { list-style: none; }
.article-list li + li { margin-top: 12px; }
.article-list .a-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.article-list .a-title:hover { color: var(--acc); }
.article-list .a-meta { font-size: 12px; color: var(--sub); margin-top: 2px; }
.article-list .a-sum { font-size: 13.5px; color: var(--sub); margin-top: 6px; }

.article-body { margin-top: 26px; font-size: 15.5px; }
.article-body h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 32px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.article-body h3 { font-size: 15.5px; font-weight: 700; margin: 24px 0 8px; }
.article-body p { margin: 12px 0; }
.article-body ul, .article-body ol { margin: 12px 0 12px 22px; }
.article-body blockquote {
  border-left: 3px solid var(--line);
  padding-left: 14px;
  color: var(--sub);
  margin: 14px 0;
}

.source-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 26px;
  font-size: 13.5px;
}
.source-box .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--acc);
  display: block;
  margin-bottom: 4px;
}

/* ---- 動画を探す ---- */
.video-list { display: flex; flex-direction: column; gap: 12px; }
.video-list .card + .card { margin-top: 0; }
.video-card { display: flex; gap: 14px; color: var(--ink); }
.video-card:hover { text-decoration: none; border-color: var(--acc); }
.vc-thumb { position: relative; flex: none; width: 168px; }
.vc-thumb img { width: 168px; height: 94px; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
.vc-dur {
  position: absolute; right: 5px; bottom: 5px;
  background: rgba(0,0,0,.8); color: #fff;
  font-size: 10.5px; font-family: ui-monospace, monospace;
  border-radius: 3px; padding: 0 5px;
}
.vc-title { font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.video-card:hover .vc-title { color: var(--acc); }
.vc-meta { font-size: 12px; color: var(--sub); margin-top: 3px; }
.vc-sum { font-size: 13px; color: var(--sub); margin-top: 6px; line-height: 1.7; }

@media (max-width: 560px) {
  .video-card { flex-direction: column; gap: 10px; }
  .vc-thumb { width: 100%; }
  .vc-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ---- フッタ ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 26px 0 40px;
  font-size: 12.5px;
  color: var(--sub);
}
.site-footer p + p { margin-top: 8px; }
.site-footer .disclaimer { color: var(--ink); font-weight: 600; }

@media (max-width: 560px) {
  .brand-name { font-size: 18px; }
  h1.page-title { font-size: 20px; }
  .searchbox button { padding: 0 16px; }
  .facts th { width: 38%; }
}
