:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --text: #172033;
  --muted: #5c687c;
  --line: #dfe5ee;
  --brand: #164a8b;
  --brand-dark: #0b2f5f;
  --accent: #f4b63f;
  --soft: #eaf2fb;
  --danger-soft: #fff4e8;
  --ok-soft: #edf8f0;
  --shadow: 0 16px 40px rgba(22, 74, 139, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; }

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

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

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

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

.logo {
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: .02em;
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.hero {
  background: linear-gradient(135deg, #0b2f5f 0%, #164a8b 58%, #2e74bd 100%);
  color: #fff;
  padding: 64px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
}

h1, h2, h3 { line-height: 1.35; }
h1 { font-size: clamp(32px, 5vw, 54px); margin: 18px 0 16px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 54px 0 18px; }
h3 { font-size: 20px; margin: 30px 0 10px; }

.hero p { font-size: 17px; opacity: .94; }

.hero-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card ul { padding-left: 20px; margin: 12px 0 0; }

.main { padding: 42px 0 72px; }

.notice,
.card,
.article-card,
.toc,
.cta-box,
.check-box,
.info-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.notice { padding: 18px 20px; margin: 0 0 28px; }
.notice strong { color: var(--brand-dark); }

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

.article-card { padding: 22px; }
.article-card .label {
  display: inline-block;
  color: var(--brand-dark);
  background: var(--soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.article-card h3 { margin-top: 14px; }
.article-card p { color: var(--muted); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.toc { padding: 18px; position: sticky; top: 84px; }
.toc h2 { font-size: 17px; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 14px; }

.cta-box {
  background: linear-gradient(135deg, #fff9ed, #ffffff);
  padding: 24px;
  margin: 34px 0;
}

.check-box,
.info-box { padding: 20px; margin: 24px 0; }
.check-box { background: var(--ok-soft); }
.info-box { background: var(--soft); }
.warning { background: var(--danger-soft); }

.table-wrap { overflow-x: auto; margin: 22px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--line); padding: 12px; vertical-align: top; }
th { background: var(--soft); text-align: left; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1f2430;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 18px;
  margin-top: 8px;
}
.btn:hover { text-decoration: none; filter: brightness(.98); }

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero-grid,
  .article-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .nav { display: none; }
}
