:root {
  color-scheme: light dark;
  --background: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #eef2fb;
  --text: #0b1220;
  --muted: #5b6578;
  --line: #dce3ee;
  --accent: #0e7c86;
  --accent-strong: #0a5c63;
  --focus: #e7a11a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #05070f;
    --surface: #0a0f1f;
    --surface-soft: #131a2c;
    --text: #eaf2ff;
    --muted: #8c9bb8;
    --line: #2a3450;
    --accent: #3df5ff;
    --accent-strong: #9fe9ee;
    --focus: #ffb547;
  }
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.85;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

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

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

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 0.875rem;
}

main { padding-block: 48px 80px; }

.document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 12px 34px rgb(18 37 63 / 8%);
}

h1, h2, h3 { line-height: 1.45; letter-spacing: 0.01em; }
h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 5vw, 2.35rem); }
h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.25rem;
  font-size: 1.2rem;
}
h3 { margin: 1.75rem 0 0.5rem; font-size: 1.05rem; }
p { margin: 0.65rem 0; }
ol, ul { padding-left: 1.45rem; }
li + li { margin-top: 0.45rem; }

.meta {
  margin: 0 0 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.lead { font-size: 1.05rem; }

.notice {
  margin: 1.5rem 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-soft);
}

.draft-banner {
  margin: 0 0 2rem;
  padding: 14px 18px;
  border: 1px solid var(--focus);
  border-radius: 10px;
  background: color-mix(in srgb, var(--focus) 14%, var(--surface));
  font-size: 0.9rem;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2rem;
}

.document-link {
  display: block;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
}

.document-link strong { display: block; margin-bottom: 8px; }
.document-link span { color: var(--muted); font-size: 0.875rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { width: 28%; color: var(--muted); font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

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

@media (max-width: 680px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: 14px; }
  .site-nav { justify-content: flex-start; }
  main { padding-block: 28px 56px; }
  .document-list { grid-template-columns: 1fr; }
  th, td { display: block; width: 100%; padding-inline: 0; }
  th { border-bottom: 0; padding-bottom: 2px; }
  td { padding-top: 2px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer { display: none; }
  main { width: 100%; padding: 0; }
  .document { border: 0; box-shadow: none; padding: 0; }
}
