:root {
  color-scheme: light dark;
  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --text: #1c2333;
  --muted: #56627a;
  --border: #c8d2e5;
  --accent: #087a50;
  --accent-soft: #dcf3e9;
  --link: #3158c8;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1e;
    --surface: #161c33;
    --surface-alt: #1e2643;
    --text: #eaeefc;
    --muted: #a9b4d8;
    --border: #48547d;
    --accent: #5ee0ae;
    --accent-soft: #10382a;
    --link: #9bbcff;
    --warn: #f0c25a;
    --warn-bg: #322810;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo,
    system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.page {
  padding-block: 42px 72px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

h1,
h2,
h3 {
  line-height: 1.4;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.4em 0 0.65em;
  font-size: clamp(21px, 3vw, 27px);
  padding-bottom: 0.25em;
  border-bottom: 1px solid var(--border);
}

h3 {
  margin: 1.7em 0 0.45em;
  font-size: 18px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  color: #fff;
  background: #087a50;
  font-weight: 700;
  text-decoration: none;
}

.button--secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

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

.card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.card h3 {
  margin-top: 0;
}

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

.callout {
  margin-block: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

.callout--warn {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}

.table-wrap {
  overflow-x: auto;
  margin-block: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

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

th {
  background: var(--surface-alt);
}

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-alt);
  font-size: 0.92em;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  margin: 16px 0;
  padding: 4px 0 4px 48px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.faq {
  margin-block: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
}

.faq p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.site-footer__inner {
  padding-block: 24px 36px;
}

.site-footer p {
  margin: 6px 0;
}

@media (max-width: 720px) {
  .site-header__inner {
    display: block;
    padding-block: 14px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 10px;
    gap: 8px 14px;
  }

  .page {
    padding-block: 30px 56px;
  }

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