:root {
  --blue: #175cff;
  --blue-deep: #0b3fd2;
  --navy: #061a40;
  --navy-soft: #18325f;
  --yellow: #ffd400;
  --orange: #ff5a36;
  --paper: #ffffff;
  --canvas: #f1f5fb;
  --muted: #63718a;
  --line: #d8e0ed;
  --focus: #ff5a36;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(6, 26, 64, .1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Arial, sans-serif;
  --bg: var(--canvas);
  --text: var(--navy);
  --primary: var(--blue);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(255, 212, 0, .26);
}

::selection { background: var(--yellow); color: var(--navy); }
a { color: inherit; text-underline-offset: .24em; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}
.skip-link:focus { transform: translateY(0); }

.reading-progress {
  position: fixed;
  z-index: 950;
  inset: 0 0 auto;
  height: 4px;
  background: rgba(255, 255, 255, .24);
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  z-index: 900;
  top: 0;
  background: rgba(6, 26, 64, .96);
  color: white;
  box-shadow: 0 8px 28px rgba(6, 26, 64, .14);
}
.header-inner {
  width: min(100% - 32px, 1240px);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
}
.brand b { font-size: 16px; }
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--navy);
  display: none;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  font: 700 14px/1 var(--font);
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  content: "";
  transition: transform 180ms ease-out;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before { position: absolute; transform: translateY(-6px); }
.nav-toggle-icon::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto 38%;
  width: 66vw;
  aspect-ratio: 1;
  border: min(14vw, 180px) solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.hero-inner {
  position: relative;
  width: min(100% - 32px, 1240px);
  min-height: 430px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0 36px;
  display: grid;
  align-content: space-between;
  gap: 60px;
}
.hero-title { max-width: 980px; }
.hero h1 {
  margin: 0;
  max-width: 13em;
  color: white;
  font-size: clamp(42px, 6.5vw, 82px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero-index {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .42);
}
.hero-index span {
  min-height: 58px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, .25);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}
.hero-index span:first-child { padding-left: 0; }
.hero-index span:last-child { border-right: 0; }

.reading-layout {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  padding: 64px 0 112px;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.document-nav-wrap { position: sticky; top: 96px; }
.document-nav {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}
.document-nav a {
  position: relative;
  min-height: 82px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #cbd7ee;
  text-decoration: none;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}
.document-nav a:last-child { border-bottom: 0; }
.document-nav a::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1);
}
.document-nav a:hover { color: white; background: rgba(255, 255, 255, .08); }
.document-nav a.is-active { color: var(--navy); background: var(--yellow); }
.document-nav a.is-active::after { transform: scaleY(1); }
.document-nav span {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.document-nav b {
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
}

.documents { min-width: 0; }
.document {
  position: relative;
  margin: 0 0 48px;
  scroll-margin-top: 92px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  overflow: clip;
}
.document-header {
  padding: clamp(26px, 4vw, 48px) clamp(24px, 6vw, 72px) 26px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.document-header > span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-right: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}
.document-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.document-copy {
  padding: 32px clamp(24px, 6vw, 72px) clamp(48px, 7vw, 80px);
  color: #1c2e4e;
  overflow-wrap: anywhere;
}
.document-copy h3 {
  margin: 2.15em 0 .72em;
  color: var(--navy);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  scroll-margin-top: 92px;
  text-wrap: pretty;
}
.document-copy h3:first-child { margin-top: 0; }
.document-copy p { margin: 0 0 1em; max-width: 75ch; }
.copy-list {
  max-width: 75ch;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
.copy-list > li {
  position: relative;
  margin: 0 0 .72em;
  padding-left: 24px;
}
.copy-list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.copy-list .copy-list {
  margin: .55em 0 0;
  color: var(--navy-soft);
}
.copy-list .copy-list > li::before {
  width: 6px;
  height: 2px;
  border-radius: 0;
  background: var(--orange);
}
.copy-list.ordered { counter-reset: course; }
.copy-list.ordered > li { counter-increment: course; padding-left: 42px; }
.copy-list.ordered > li::before {
  content: counter(course);
  top: 1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.source-placeholder { min-height: 1.7em; color: var(--muted); visibility: hidden; }
.table-scroll {
  width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.65;
}
th, td {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
tr > :last-child { border-right: 0; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--navy); color: white; font-weight: 700; }
tbody th { width: 22%; color: var(--navy); background: #edf3ff; }
tbody td:nth-child(2), tbody tr:last-child th, tbody tr:last-child td { font-variant-numeric: tabular-nums; font-weight: 700; }
.question {
  margin: 0 0 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.question p:first-child { margin-bottom: 10px; color: var(--navy); font-weight: 600; }
.answer-line {
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: end;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

footer {
  min-height: 120px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
}
footer a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .hero-inner { min-height: 380px; }
  .hero-index { grid-template-columns: repeat(3, 1fr); }
  .hero-index span:nth-child(3) { border-right: 0; }
  .hero-index span:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .reading-layout { display: block; padding-top: 28px; }
  .document-nav-wrap {
    position: fixed;
    z-index: 850;
    inset: 68px 0 auto;
    max-height: calc(100dvh - 68px);
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(6, 26, 64, .52);
    backdrop-filter: blur(10px);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 280ms cubic-bezier(.16, 1, .3, 1), opacity 180ms ease-out;
  }
  .document-nav-wrap.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .document-nav { max-width: 560px; margin: 0 auto; }
  .document-nav a { min-height: 64px; }
}

@media (max-width: 560px) {
  .header-inner, .hero-inner, .reading-layout { width: min(100% - 32px, 1240px); }
  .brand b { font-size: 15px; }
  .hero-inner { min-height: 390px; padding-top: 56px; gap: 44px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero-index { grid-template-columns: repeat(2, 1fr); }
  .hero-index span { min-height: 48px; padding: 8px 10px; }
  .hero-index span:nth-child(2n) { border-right: 0; }
  .hero-index span:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, .25); }
  .hero-index span:nth-child(-n+4) { border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .document { margin-bottom: 28px; border-radius: var(--radius-md); }
  .document-header { padding: 25px 22px 22px; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .document-header h2 { font-size: 24px; }
  .document-copy { padding: 26px 22px 44px 28px; font-size: 16px; line-height: 1.82; }
  .document-copy h3 { font-size: 19px; }
  .copy-list > li { padding-left: 22px; }
  .copy-list.ordered > li { padding-left: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 16mm; }
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .reading-progress, .document-nav-wrap, footer, .hero-index { display: none !important; }
  .hero { background: white; color: black; }
  .hero-inner { min-height: auto; width: auto; padding: 0 0 14mm; }
  .hero h1 { color: black; font-size: 25pt; }
  .reading-layout { width: auto; padding: 0; display: block; }
  .document { box-shadow: none; border: 0; border-radius: 0; overflow: visible; break-before: page; }
  .document:first-child { break-before: auto; }
  .document::before { display: none; }
  .document-header, .document-copy { padding-left: 0; padding-right: 0; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; font-size: 9pt; }
}
