:root {
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --bg-tint: #eef7f4;
  --text: #17202a;
  --muted: #5d6b78;
  --subtle: #7a8793;
  --border: #dce5ea;
  --primary: #24756b;
  --primary-dark: #185b52;
  --accent: #f4b84a;
  --danger-soft: #fff7ed;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
}

.brand-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  background: linear-gradient(180deg, #f3fbf8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}

h1 {
  max-width: 820px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  font-weight: 800;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--primary-dark);
}

main {
  padding: 42px 0 58px;
}

.section {
  margin-top: 44px;
}

.section:first-child {
  margin-top: 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 10px 0 0;
  padding-left: 1.3em;
}

li {
  margin: 6px 0;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.card.soft {
  background: var(--bg-soft);
}

.card.tint {
  background: var(--bg-tint);
  border-color: #cde6df;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

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

.plan-table th {
  background: var(--bg-soft);
  font-size: 14px;
}

.plan-table tr:last-child td {
  border-bottom: 0;
}

.notice {
  border: 1px solid #f1d8b2;
  border-radius: 8px;
  padding: 16px;
  background: var(--danger-soft);
  color: #5f4632;
}

.doc-title {
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.doc-title p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
}

.document {
  max-width: 860px;
}

.document h2 {
  margin-top: 36px;
  padding-top: 10px;
  font-size: 25px;
}

.document h3 {
  margin-top: 22px;
}

.document .lead {
  color: var(--muted);
  font-size: 16px;
}

.article-title h1 {
  max-width: 940px;
}

.article-body {
  max-width: 820px;
  font-size: 16px;
}

.article-body h2 {
  margin-top: 34px;
  font-size: 25px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-note {
  margin-top: 30px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #f1d8b2;
  background: var(--danger-soft);
  color: #5f4632;
  font-weight: 700;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.article-card h2,
.article-card h3 {
  font-size: 18px;
  line-height: 1.45;
}

.article-card p {
  margin: 0;
}

.article-card-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-link {
  margin-top: 18px;
  font-weight: 800;
}

.meta-list {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 16px 0 0;
}

.meta-list dt {
  color: var(--muted);
  font-weight: 800;
}

.meta-list dd {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-inner {
    padding: 52px 0 42px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .grid,
  .grid.two,
  .article-grid,
  .article-grid.compact {
    grid-template-columns: 1fr;
  }

  .plan-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}
