:root {
  --bg-base: #F5F6FA;
  --bg-surface: #FFFFFF;
  --bg-surface-raised: #FFFFFF;
  --text-primary: #12141C;
  --text-secondary: #5B6172;
  --text-tertiary: #8A90A0;
  --accent: #0091EA;
  --accent-secondary: #8A2BE2;
  --accent-soft: rgba(0, 145, 234, 0.10);
  --divider: rgba(18, 20, 28, 0.10);
  --divider-strong: rgba(18, 20, 28, 0.16);
  --pill-bg: rgba(0, 145, 234, 0.08);
  --success: #1FAE64;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-base: #0A0B10;
    --bg-surface: #12141C;
    --bg-surface-raised: #1A1D28;
    --text-primary: #E8EAF0;
    --text-secondary: #9BA1B0;
    --text-tertiary: #6B7180;
    --accent: #00E5FF;
    --accent-secondary: #B845FF;
    --accent-soft: rgba(0, 229, 255, 0.10);
    --divider: rgba(255, 255, 255, 0.09);
    --divider-strong: rgba(255, 255, 255, 0.16);
    --pill-bg: rgba(0, 229, 255, 0.08);
    --success: #39FF88;
  }
}

:root[data-theme="dark"] {
  --bg-base: #0A0B10;
  --bg-surface: #12141C;
  --bg-surface-raised: #1A1D28;
  --text-primary: #E8EAF0;
  --text-secondary: #9BA1B0;
  --text-tertiary: #6B7180;
  --accent: #00E5FF;
  --accent-secondary: #B845FF;
  --accent-soft: rgba(0, 229, 255, 0.10);
  --divider: rgba(255, 255, 255, 0.09);
  --divider-strong: rgba(255, 255, 255, 0.16);
  --pill-bg: rgba(0, 229, 255, 0.08);
  --success: #39FF88;
}

* { box-sizing: border-box; }

html { background: var(--bg-base); }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }

.brand span {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.site-header nav {
  display: flex;
  gap: 22px;
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 120ms ease-out;
}

.site-header nav a:hover,
.site-header nav a:focus-visible { color: var(--accent); }

.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  border-top: 1px solid var(--divider);
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

.site-footer a:hover { color: var(--accent); }

.site-footer .copyright {
  color: var(--text-tertiary);
  font-size: 12.5px;
}

/* --- 見出し付き読み物コンテンツ(法的文書・サポート記事共通) --- */

.doc-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--divider);
}

.eyebrow {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.doc-head h1 {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.doc-head .meta {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

nav.toc {
  margin: 40px 0 8px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
}

nav.toc .toc-label {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

nav.toc ol {
  columns: 2;
  column-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.toc li { break-inside: avoid; margin-bottom: 8px; }

nav.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  display: block;
  padding: 3px 0;
  transition: color 120ms ease-out;
}

nav.toc a:hover, nav.toc a:focus-visible { color: var(--accent); }

section.doc-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--divider);
  scroll-margin-top: 20px;
}

section.doc-section:last-of-type { border-bottom: none; }

.num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.wrap h2 {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px;
  text-wrap: balance;
}

.wrap p { margin: 0 0 14px; color: var(--text-primary); }
.wrap p:last-child { margin-bottom: 0; }

.wrap ul, .wrap ol.clauses { margin: 0 0 14px; padding-left: 1.3em; }
.wrap li { margin-bottom: 8px; }
.wrap li:last-child { margin-bottom: 0; }

.wrap strong { font-weight: 700; }

.wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 18px;
  font-size: 14.5px;
}

.wrap th, .wrap td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

.wrap th {
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  width: 30%;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--pill-bg);
  border: 1px solid var(--divider-strong);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 4px 0 18px;
}

.notice .icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.notice p { margin: 0; font-size: 14px; color: var(--text-secondary); }

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 24px 26px;
  margin-top: 6px;
}

.contact-card .name { font-weight: 700; font-size: 15.5px; margin-bottom: 4px; }
.contact-card a { color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-card a:hover { text-decoration: underline; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #00131A;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: #00131A; }
}
:root[data-theme="dark"] .btn-primary { color: #00131A; }

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 14px; align-items: flex-start; }
  nav.toc ol { columns: 1; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
