:root {
  color-scheme: light;
  --ink: #10243e;
  --muted: #52657a;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --line: #dce4ec;
  --accent: #ed6c30;
  --accent-dark: #a63c0b;
  --navy: #0b1b31;
  --navy-soft: #163252;
  --focus: #0067c5;
  --max: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible, summary:focus-visible {
  outline: .2rem solid var(--focus);
  outline-offset: .25rem;
  border-radius: .15rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.nav {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4.75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .55rem .55rem .55rem .15rem;
  background: var(--accent);
  color: var(--navy);
  font-size: .95rem;
  font-weight: 900;
}
.nav-links { display: flex; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block;
  padding: .5rem .75rem;
  border-radius: .4rem;
  color: #dfe9f4;
  text-decoration: none;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: var(--navy-soft); }
.nav-links a:focus-visible { outline-color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero::after {
  content: "助手";
  position: absolute;
  right: max(2vw, calc((100vw - var(--max)) / 2));
  bottom: -3.5rem;
  color: rgba(255,255,255,.045);
  font-size: clamp(11rem, 25vw, 24rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 31rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  display: grid;
  align-content: center;
}
.eyebrow {
  margin: 0 0 1rem;
  color: #ffb38d;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.03em; }
h1 { max-width: 13ch; margin: 0; font-size: clamp(2.7rem, 7vw, 5.7rem); }
.hero-copy { max-width: 39rem; margin: 1.5rem 0 0; color: #cedaea; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: var(--accent);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: #ff8751; }
.button.secondary { border-color: #49617e; background: transparent; color: #fff; }
.button.secondary:hover { background: var(--navy-soft); }

.page-heading { background: var(--navy); color: #fff; }
.page-heading .wrap { padding-block: clamp(3rem, 7vw, 5rem); }
.page-heading h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-heading p:last-child { max-width: 48rem; margin: 1rem 0 0; color: #cedaea; font-size: 1.12rem; }
.effective { margin: 1.5rem 0 0; color: #ffb38d; font-weight: 700; }

.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section h2 { margin: 0 0 1rem; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-lead { max-width: 46rem; color: var(--muted); font-size: 1.12rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.card {
  min-height: 15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  box-shadow: 0 .4rem 1.4rem rgba(16,36,62,.05);
}
.card .number { color: var(--accent-dark); font-weight: 850; font-size: .85rem; letter-spacing: .1em; }
.card h3 { margin: 2.5rem 0 .7rem; font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.statement { padding: clamp(2rem, 5vw, 4rem); background: var(--surface); border-left: .35rem solid var(--accent); }
.statement p { margin: 0; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.35; letter-spacing: -.02em; }
.text-link { font-weight: 800; }

.policy-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding-block: 3.5rem 6rem; }
.toc { position: sticky; top: 1rem; align-self: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }
.toc strong { display: block; margin-bottom: .7rem; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.toc li + li { margin-top: .25rem; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--accent-dark); text-decoration: underline; }
.prose { min-width: 0; }
.prose section { scroll-margin-top: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.prose section + section { padding-top: 2.4rem; }
.prose section:last-child { border-bottom: 0; }
.prose h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 3vw, 2rem); }
.prose h3 { margin: 1.5rem 0 .6rem; font-size: 1.15rem; }
.prose p, .prose ul, .prose ol { max-width: 48rem; }
.prose li + li { margin-top: .5rem; }
.callout { padding: 1.2rem 1.35rem; border: 1px solid #f0b899; border-left: .35rem solid var(--accent); border-radius: .4rem; background: #fff7f2; }
.callout strong { color: #80300b; }
.warning { border-color: #e9aaaa; border-left-color: #b42318; background: #fff5f4; }
.steps { counter-reset: steps; padding: 0; list-style: none; }
.steps > li { position: relative; padding-left: 3rem; }
.steps > li + li { margin-top: 1.4rem; }
.steps > li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -.1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 52rem) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { margin-top: 1.4rem; }
  .split, .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 38rem) {
  .nav { min-height: auto; padding-block: .8rem; align-items: flex-start; flex-direction: column; gap: .5rem; }
  .nav-links { width: 100%; justify-content: space-between; }
  .nav-links a { padding-inline: .45rem; }
  .hero-inner { min-height: 28rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .toc, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .page-heading { background: #fff; color: #000; }
  .page-heading p:last-child, .effective { color: #333; }
  .policy-layout { display: block; padding-top: 2rem; }
  .prose section { break-inside: avoid; }
}
