:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --ink: #18201b;
  --muted: #657067;
  --line: #dfe4dc;
  --accent: #165c45;
  --accent-soft: #e5f1eb;
  --warn-soft: #fff4da;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(28, 42, 34, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 242, 0.9);
  border-bottom: 1px solid rgba(223, 228, 220, 0.8);
}
.header-inner { min-height: 66px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--accent); }
.beta { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; }

.hero { padding: 72px 0 54px; }
.eyebrow, .section-kicker { color: var(--accent); letter-spacing: .12em; font-weight: 800; font-size: 12px; margin: 0 0 10px; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.1; letter-spacing: -.035em; max-width: none; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-copy { margin: 28px 0 14px; font-size: clamp(17px, 2vw, 22px); color: var(--muted); max-width: 760px; }
.hero-note { display: inline-block; margin-top: 8px; padding: 9px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }

.content-shell { padding-bottom: 64px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tab { border: 0; background: transparent; padding: 14px 18px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; font-weight: 800; }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.panel { min-height: 360px; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.panel-heading h2, .roadmap h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.025em; }
.updated-at { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }

.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); gap: 12px; margin-bottom: 20px; }
.toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.toolbar input, .toolbar select { width: 100%; min-height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; color: var(--ink); outline: none; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.status { min-height: 24px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.notice { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); font-size: 13px; }
.card-list { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; background: #eef1ed; color: #4d5a50; font-size: 12px; font-weight: 800; }
.tag.primary { background: var(--accent-soft); color: var(--accent); }
.tag.open { background: #e3f4e8; color: #176b38; }
.tag.upcoming { background: #e7eefc; color: #31599c; }
.tag.unknown { background: #f1f1f1; color: #666; }
.card h3 { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.4; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.metric { background: #f7f8f5; border-radius: 12px; padding: 10px 12px; }
.metric-label { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.metric-value { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; }
.expenses { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.feed-summary { margin: 10px 0 0; color: #405047; font-size: 14px; line-height: 1.7; }
.feed-action { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; background: #fff4dd; color: #705115; font-size: 13px; font-weight: 700; }

.roadmap { display: grid; grid-template-columns: minmax(240px, .7fr) 1fr; gap: 30px; align-items: start; margin-bottom: 72px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.roadmap p:last-child { margin: 2px 0 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 38px; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-title-line { white-space: normal; }
  .panel-heading { align-items: start; flex-direction: column; }
  .updated-at { text-align: left; }
  .toolbar { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}


/* Phase 1 usability: anonymous purpose filtering and action-oriented support cards */
.decision-guide {
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.decision-guide-heading {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) 1fr;
  gap: 28px;
  align-items: end;
}
.decision-guide-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: -.025em;
}
.decision-guide-heading > p { margin: 0; color: var(--muted); font-size: 14px; }
.need-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.need-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf7;
  color: #425047;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 750;
  font-size: 13px;
}
.need-chip:hover { border-color: #b8c8bf; }
.need-chip:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.need-chip.is-active { border-color: var(--accent); background: var(--accent); color: white; }
.need-summary {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.scheme-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(140px, 180px) minmax(180px, 230px); }
.filter-basis {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.tag.focus { background: #e9f2ff; color: #245b9e; }
.match-reason {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.insight-box { margin-top: 14px; padding: 12px; border-radius: 12px; background: #f6f8f5; }
.insight-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.insight-row { display: flex; flex-wrap: wrap; gap: 7px; }
.insight-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: #405047;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .scheme-toolbar { grid-template-columns: 1fr 1fr; }
  .scheme-toolbar .search-box { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .decision-guide { padding: 18px; }
  .decision-guide-heading { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .need-filter { display: grid; grid-template-columns: 1fr 1fr; }
  .need-chip { text-align: left; }
  .scheme-toolbar { grid-template-columns: 1fr; }
  .scheme-toolbar .search-box { grid-column: auto; }
}

@media (max-width: 460px) {
  .need-filter { grid-template-columns: 1fr; }
}
