:root {
  --bg: #f4f6f6;
  --surface: #ffffff;
  --ink: #1b2124;
  --muted: #5c686e;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

.num, table, .data-list { font-variant-numeric: tabular-nums; }

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

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.site-name {
  font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em;
}
.site-name:hover { text-decoration: none; }
.menu-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--surface); color: var(--ink);
  border: 1px solid #d8dee0; border-radius: 999px; cursor: pointer;
}
.menu-button .bars { display: block; width: 18px; }
.menu-button .bars::before,
.menu-button .bars::after,
.menu-button .bars span {
  content: ""; display: block; height: 2px; background: var(--ink); margin: 4px 0;
}
.site-nav {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}
.site-nav.open { max-height: 320px; opacity: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0 20px; }
.site-nav li { margin: 2px 0; }
.site-nav a {
  display: block; padding: 10px 14px; color: var(--ink);
  background: var(--surface); border-radius: var(--radius);
}
.site-nav a:hover { text-decoration: none; background: #eceff0; }

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

/* 見出し・本文 */
h1 { font-size: 30px; line-height: 1.45; margin: 18px 0 10px; font-weight: 700; }
h2 { font-size: 21px; line-height: 1.5; margin: 40px 0 12px; font-weight: 700; }
.lead { font-size: 17px; color: var(--ink); }
.muted { color: var(--muted); font-size: 14px; }
.disclosure {
  background: var(--surface); border-radius: var(--radius);
  padding: 12px 16px; font-size: 13px; color: var(--muted); margin: 18px 0;
}

/* カード */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 8px;
}
@media (min-width: 760px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 18px;
  display: block; color: var(--ink);
}
.card:hover { text-decoration: none; background: #eceff0; }
.card .kind { font-size: 12px; color: var(--accent); font-weight: 600; }
.card .title { font-size: 16px; font-weight: 600; line-height: 1.55; margin-top: 6px; }
.card .note { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* 表 */
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; font-size: 15px; vertical-align: top; }
thead th { background: #e8ecec; font-weight: 600; }
tbody tr + tr td { border-top: 1px solid #eef1f1; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* データ欄 */
.data-list { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }

/* ボタン */
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.button:hover { text-decoration: none; opacity: 0.88; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--ink); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top::before {
  content: ""; width: 12px; height: 12px;
  border-top: 2px solid #fff; border-left: 2px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
}

/* フッター */
.site-footer { margin-top: 72px; padding: 34px 0 46px; background: #e8ecec; }
.site-footer .cols { display: grid; gap: 20px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--ink); }
.site-footer .fine { font-size: 12px; color: var(--muted); margin-top: 22px; line-height: 1.7; }

/* 出現の動き */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-nav { transition: none; }
}
