:root {
  --bg: #fff8f6;
  --surface: #fffcfb;
  --surface-subtle: #fdf0f5;
  --line: #d9bdd0;
  --line-strong: #c8a7bd;
  --text: #443553;
  --text-muted: #8d7a99;
  --text-faint: #b29eb7;
  --accent: #5a496f;
  --notice-bg: #fff6f3;
  --notice-line: #d989a6;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Hiragino Sans", "Yu Gothic UI",
    "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body,
button,
input,
select,
textarea {
  margin: 0;
  font-family: var(--font-ui);
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="ja"] body {
  word-break: normal;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.document {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(87, 70, 96, 0.06);
}

.hero-bar {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: none;
}

.hero-bar strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.document-body {
  padding: 0 24px 24px;
}

.hero-body {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.meta,
.locale-switch,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta {
  margin-top: 18px;
}

.locale-switch {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.locale-switch-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
}

.meta-chip,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-subtle) 72%, white 28%);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

a.badge[aria-current="page"] {
  border-color: #d989a6;
  background: #fbe3eb;
  color: #443553;
  font-weight: 600;
}

.notice {
  margin: 20px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--notice-line);
  border-radius: 12px;
  background: var(--notice-bg);
  color: var(--text-muted);
}

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

.content {
  display: block;
}

.card {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.content .card:first-child {
  border-top: 0;
}

.card-header {
  padding-bottom: 10px;
}

.card-header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.card-body h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
}

.card-body h3:first-child {
  margin-top: 0;
}

.card-body p,
.card-body li {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-muted);
}

.card-body p + p {
  margin-top: 10px;
}

.card-body ul,
.card-body ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.card-body li + li {
  margin-top: 4px;
}

.card-body table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
}

.card-body th,
.card-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.card-body th {
  width: 32%;
  background: var(--surface-subtle);
  color: var(--text);
  font-weight: 600;
}

.badge-row {
  margin-top: 12px;
}

.footer {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer p,
.muted {
  color: var(--text-faint);
}

.footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.accent {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .page {
    padding: 14px 10px 32px;
  }

  .document {
    border-radius: 12px;
  }

  .hero-bar {
    padding: 0 16px;
  }

  .document-body {
    padding: 0 16px 18px;
  }

  .hero-body {
    padding: 22px 0 20px;
  }

  h1 {
    font-size: 28px;
  }

  .card {
    padding: 20px 0;
  }

  .card-header h2 {
    font-size: 18px;
  }

  .card-body th,
  .card-body td {
    padding: 9px 10px;
  }
}
