:root {
  --bg: #f6f7f8;
  --card: #ffffff;
  --text: #16202a;
  --muted: #5b6773;
  --line: #dbe1e7;
  --brand: #215c3d;
  --brand-soft: #eef5f0;
  --accent: #b9d3c2;
  --shadow: 0 10px 30px rgba(22, 32, 42, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Hiragino Sans, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 247, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner, .container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
}

.brand small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-card, .panel, .page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 40px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .88rem;
  font-weight: 700;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  font-weight: 700;
}

.button.primary {
  background: var(--brand);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--brand);
}

.side-stack {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 24px;
}

.panel ul, .check-list, .plain-list {
  margin: 0;
  padding-left: 1.1em;
}

.section {
  padding: 28px 0 0;
}

.section + .section {
  padding-top: 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card p:last-child,
.panel p:last-child,
.page-card p:last-child {
  margin-bottom: 0;
}

.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 16px;
}

.kv dt {
  font-weight: 700;
  color: var(--muted);
}

.kv dd {
  margin: 0;
}

.notice {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.page-hero {
  padding: 56px 0 12px;
}

.page-card {
  padding: 32px;
}

.breadcrumbs {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
  width: 28%;
}

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}

.muted { color: var(--muted); }
.small { font-size: .92rem; }
.tight > *:last-child { margin-bottom: 0; }

@media (max-width: 920px) {
  .hero-grid,
  .cards,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    padding: 12px 0;
  }

  .hero-card,
  .panel,
  .page-card,
  .card {
    padding: 22px;
    border-radius: 18px;
  }

  .hero {
    padding-top: 36px;
  }
}
