:root {
  color-scheme: light;
  --navy: #071a46;
  --blue: #2e5aac;
  --blue-dark: #234689;
  --ink: #1a1c1e;
  --muted: #596273;
  --line: #dfe5ee;
  --surface: #ffffff;
  --background: #eef1f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI",
    "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--blue);
}

a:focus-visible {
  outline: 3px solid rgba(46, 90, 172, 0.35);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 229, 238, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(100% - 32px, 760px);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(7, 26, 70, 0.16);
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 650;
}

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

.page-shell {
  width: min(100% - 32px, 760px);
  margin: 32px auto 56px;
}

.legal-document {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(31, 54, 86, 0.09);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.45;
}

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

.updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.lead {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: #f4f7fc;
}

.toc {
  margin: 30px 0 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfd;
}

.toc strong {
  color: var(--navy);
}

.toc ol {
  margin: 10px 0 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
  margin: 4px 0;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

section {
  scroll-margin-top: 84px;
  margin-top: 38px;
  padding-top: 2px;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 21px;
}

h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 14px;
}

ul,
ol {
  padding-left: 1.5em;
}

li + li {
  margin-top: 7px;
}

.company-card,
.contact-card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f4f7fc;
}

.company-card dl {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 6px 16px;
  margin: 0;
}

.company-card dt {
  color: var(--muted);
  font-weight: 650;
}

.company-card dd {
  margin: 0;
}

.site-footer {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 0 0 max(28px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

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

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-header__inner {
    width: min(100% - 24px, 760px);
  }

  .brand span {
    display: none;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .page-shell {
    width: min(100% - 24px, 760px);
    margin-top: 20px;
  }

  .legal-document {
    border-radius: 18px;
  }

  .toc ol {
    columns: 1;
  }

  .company-card dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .company-card dd + dt {
    margin-top: 9px;
  }
}

@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .toc {
    display: none;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .legal-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  section {
    break-inside: avoid;
  }
}
