:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #5b6678;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --border: #d9e0ec;
  --shadow: 0 10px 24px rgba(23, 41, 70, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
}
.container { width: min(1100px, 92vw); margin: 32px auto; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.h1 { font-size: 1.8rem; font-weight: 700; margin: 0; }
.subtle { color: var(--muted); font-size: 0.95rem; }
.grid { display:grid; gap:16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding:16px; border:1px solid var(--border); border-radius:12px; background:#f9fbff; }
.stat .label{ color:var(--muted); font-size: .85rem; }
.stat .value{ font-size:1.25rem; font-weight:700; margin-top:6px; }
.btn { display:inline-block; border:none; border-radius:10px; padding:10px 14px; font-weight:600; cursor:pointer; text-decoration:none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background:#eef3ff; color:#18419f; }
.input, textarea {
  width: 100%; border:1px solid var(--border); border-radius:10px; padding:10px 12px; font-size:1rem;
}
.form-row { margin-bottom: 12px; }
.notice { background:#eef6ff; border:1px solid #c9ddff; padding:12px; border-radius:10px; }
.color-pill { display:inline-block; padding:4px 10px; border-radius:99px; font-weight:700; font-size:.85rem; }
.gray{ background:#eceff3; }
.red{ background:#fee2e2; }
.yellow{ background:#fef3c7; }
.green{ background:#dcfce7; }
.blue{ background:#dbeafe; }
table { width:100%; border-collapse:collapse; }
th, td { border-bottom:1px solid var(--border); padding:10px; text-align:left; vertical-align: top; }
.badge { display:inline-block; margin-right:6px; padding:4px 8px; border-radius:99px; background:#eef2ff; }
.option-list { display:grid; grid-template-columns: 1fr; gap:12px; margin: 10px 0 6px; }
@media (min-width: 900px) {
  .option-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.option { border:1px solid var(--border); border-radius:12px; padding:12px 14px; background:#fff; line-height: 1.45; }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }

 .chart-box { position: relative; height: 240px; width: 100%; }
 .chart-box canvas { display: block; width: 100% !important; height: 100% !important; }

.md-content { line-height: 1.7; }
.md-content h1, .md-content h2, .md-content h3, .md-content h4 { margin: 14px 0 8px; }
.md-content h1 { font-size: 1.6rem; }
.md-content h2 { font-size: 1.35rem; }
.md-content h3 { font-size: 1.15rem; }
.md-content a { color: var(--primary); text-decoration: underline; }
.md-content ul, .md-content ol { padding-left: 1.2rem; }
.md-content pre { background:#0b1020; color:#e7eefc; padding:12px 14px; border-radius:12px; overflow:auto; }
.md-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: .95em; }
.md-content :not(pre) > code { background:#eef2ff; padding:2px 6px; border-radius:8px; color:#1e2a5a; }
.md-content table { width:100%; border-collapse:collapse; margin: 12px 0; }
.md-content th, .md-content td { border:1px solid var(--border); padding:8px 10px; }
.md-content blockquote { border-left:4px solid #c9ddff; padding:6px 12px; margin: 10px 0; background:#f5f9ff; }
