:root {
  color-scheme: light;
  --bg: #f4f8f8;
  --surface: #ffffff;
  --surface-muted: #edf6f5;
  --ink: #153033;
  --muted: #607477;
  --line: #d5e3e2;
  --brand: #087f7a;
  --brand-deep: #075e5c;
  --accent: #f2a44a;
  --shadow: 0 18px 48px rgba(21, 67, 67, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(35, 171, 161, 0.13), transparent 28rem),
    linear-gradient(180deg, #f8fbfb 0%, var(--bg) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans", "Noto Sans CJK SC", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(213, 227, 226, 0.88);
  background: rgba(248, 251, 251, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(145deg, var(--brand), #20aaa1);
  box-shadow: 0 7px 18px rgba(8, 127, 122, 0.22);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.language-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.language-nav a {
  min-width: 36px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.language-nav a:hover {
  background: var(--surface-muted);
}

.language-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  padding-block: 54px 74px;
}

.document {
  min-width: 0;
  border: 1px solid rgba(213, 227, 226, 0.8);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.document-hero {
  position: relative;
  padding: clamp(34px, 6vw, 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(242, 164, 74, 0.25), transparent 13rem),
    linear-gradient(135deg, #075e5c 0%, #0a817b 64%, #12a198 100%);
  color: #fff;
}

.document-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 12px;
  color: #bdebe7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.document-body {
  padding: clamp(30px, 6vw, 68px);
}

.notice {
  margin: 0 0 40px;
  padding: 20px 22px;
  border: 1px solid #b9dcda;
  border-left: 4px solid var(--brand);
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
  background: var(--surface-muted);
}

.notice strong {
  color: var(--brand-deep);
}

section {
  scroll-margin-top: 100px;
}

section + section {
  margin-top: 50px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

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

.action-panel {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #b9dcda;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f0f9f8 0%, #fffaf4 100%);
}

.action-panel h3 {
  margin-top: 0;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(8, 127, 122, 0.2);
}

.action-link:hover {
  background: var(--brand-deep);
  color: #fff;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: deletion-step;
}

.steps li {
  position: relative;
  display: block;
  min-height: 58px;
  margin: 0;
  padding: 16px 16px 16px 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfd;
  counter-increment: deletion-step;
}

.steps li::before {
  content: counter(deletion-step);
  position: absolute;
  top: 13px;
  left: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.data-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfdfd;
}

.data-card h3 {
  margin-top: 0;
}

.data-card ul {
  margin-bottom: 0;
}

.privacy-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.toc {
  align-self: start;
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  margin: 0;
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}

.toc a:hover {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #eaf3f2;
}

.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    grid-row: 1;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    padding-block: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-nav {
    gap: 2px;
  }

  .language-nav a {
    min-width: 31px;
    padding-inline: 7px;
  }

  .page-shell {
    gap: 18px;
    padding-block: 22px 44px;
  }

  .document {
    border-radius: 22px;
  }

  .document-hero,
  .document-body {
    padding: 30px 22px;
  }

  .toc {
    padding: 18px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .action-panel {
    padding: 20px;
  }

  .footer-inner {
    min-height: 130px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

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

  .page-shell {
    display: block;
    width: 100%;
    padding: 0;
  }

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

  .document-hero {
    padding: 28px 0;
    background: #fff;
    color: #000;
  }

  .document-hero::after {
    display: none;
  }

  .eyebrow,
  .lead,
  .document-meta {
    color: #333;
  }

  .document-body {
    padding: 0;
  }

  section + section {
    break-before: auto;
  }
}
