:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #536273;
  --line: #d7dee5;
  --surface: #ffffff;
  --surface-muted: #f5f7f9;
  --brand: #124f78;
  --brand-soft: #eaf2f7;
  --focus: #ffbf47;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--focus);
  border-radius: 4px;
  transform: translateY(-150%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-inner,
.page-shell {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 16px;
}

.product-name,
.operator-name {
  margin: 0;
}

.product-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.operator-name {
  color: var(--muted);
  font-size: 0.875rem;
}

.page-shell {
  padding-block: 48px 72px;
}

.document-header {
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.4;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 1.0625rem;
}

.document-meta,
.definition-list {
  margin: 24px 0 0;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  color: var(--muted);
  font-size: 0.875rem;
}

.document-meta div,
.definition-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) 1fr;
  gap: 16px;
}

.document-meta dt,
.document-meta dd,
.definition-list dt,
.definition-list dd {
  margin: 0;
}

.document-meta dt,
.definition-list dt {
  font-weight: 700;
}

.contents {
  margin: 32px 0 8px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.contents h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.contents ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 32px;
  margin: 0;
  padding-left: 1.5rem;
}

section {
  scroll-margin-top: 24px;
  padding-top: 48px;
}

section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.45rem;
}

section h2 span {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  font-size: 0.875rem;
}

section h3 {
  margin: 28px 0 8px;
  font-size: 1.08rem;
}

p,
ul,
ol {
  margin-block: 12px;
}

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

.definition-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--surface-muted);
}

tbody th {
  width: 28%;
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

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

.contact-card {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 20px;
  border-left: 4px solid var(--brand);
  background: var(--surface-muted);
  font-style: normal;
}

.deletion-request-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.deletion-request-card h3 {
  margin-top: 0;
}

.action-link {
  display: inline-block;
  min-height: 44px;
  margin-top: 4px;
  padding: 9px 16px;
  color: #ffffff;
  background: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.action-link:hover {
  color: var(--brand);
  background: var(--surface);
}

.contact-card span:first-child {
  font-weight: 700;
}

footer {
  padding: 24px 16px;
  color: var(--muted);
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.8125rem;
}

footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .header-inner {
    display: block;
  }

  .operator-name {
    margin-top: 2px;
  }

  .page-shell {
    padding-block: 32px 56px;
  }

  .contents {
    padding: 20px;
  }

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

  .document-meta,
  .document-meta div,
  .definition-list div {
    display: block;
  }

  .document-meta dd,
  .definition-list dd {
    margin-top: 2px;
  }

  section {
    padding-top: 40px;
  }

  section h2 {
    font-size: 1.25rem;
  }
}

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