/* ─────────────────────────────────────────────
   全ページ共通のスタイル（色・書体・ヘッダー・ボタン・フッター）と、
   規約・プライバシーポリシーなど文書ページ（.doc）／404（.notfound）の本文。
   トップページ（index.html）はこの後に home.css を重ねて読み込む。
   ───────────────────────────────────────────── */
:root {
  --teal: #12a594;
  --teal-deep: #0b7f72;
  --teal-pale: #e3f6f3;
  --coral: #ff7a59;
  --coral-pale: #ffece6;
  --ink: #223038;
  --muted: #5f6f78;
  --bg: #ffffff;
  --bg-2: #f4f8f8;
  --line: #dde6e6;
  --radius: 1.5rem;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.9;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.wrap {
  width: min(100% - 2rem, 68rem);
  margin: 0 auto;
}

/* ── ヘッダー ── */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.375rem; /* 22px */
  color: var(--teal-deep);
  text-decoration: none;
}
.brand .mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.625rem 0.625rem 0.625rem 0.125rem;
  background: var(--teal);
}
/* 読み方。ロゴ文字と同じ行のベースラインに揃える */
.brand .name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand .yomi {
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  color: var(--muted);
}
.header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem; /* 15px */
}
.header nav a {
  text-decoration: none;
  color: var(--muted);
}
.header nav a:hover {
  color: var(--teal-deep);
}
.header nav a.btn {
  color: #fff;
}

/* ── ボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9375rem; /* 15px */
  border: 0;
  cursor: pointer;
}
.btn:hover {
  background: #ec6a4a;
}
.btn.outline {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.btn.outline:hover {
  background: var(--teal-pale);
}

/* ── 文書ページ（規約・プライバシーポリシー・アカウントの削除） ── */
/* タイトル帯。トップの .alt セクションと同じ淡い面に乗せる */
.doc-head {
  background: var(--bg-2);
  padding: 3.5rem 0 3rem;
}
.doc-head .wrap,
.doc .wrap {
  max-width: 44rem;
}
.doc-head h1 {
  font-weight: 900;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem); /* 28–36px */
  line-height: 1.4;
  margin: 0 0 0.5rem;
}
.doc-head .updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem; /* 14px */
}
.doc {
  padding: 3rem 0 5rem;
}
.doc h2 {
  font-weight: 900;
  font-size: 1.25rem; /* 20px */
  line-height: 1.5;
  margin: 3rem 0 1rem;
  padding-left: 0.875rem;
  border-left: 4px solid var(--teal);
}
.doc h3 {
  font-weight: 700;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.5;
  margin: 1.75rem 0 0.75rem;
}
.doc p,
.doc ul,
.doc ol {
  margin: 0 0 1.25rem;
}
.doc ul {
  padding-left: 1.5rem;
}
.doc li {
  margin-bottom: 0.375rem;
}
.doc li::marker {
  color: var(--teal);
}
.doc a {
  color: var(--teal-deep);
  text-underline-offset: 0.2em;
}
/* 手順（番号付きリスト）。番号はティールの丸 */
.doc ol {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.doc ol li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  counter-increment: step;
}
.doc ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1875rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.875rem; /* 14px */
  line-height: 1.75rem;
  text-align: center;
}
.doc .note {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--teal-pale);
  font-size: 0.9375rem; /* 15px */
}
/* 表形式の項目 */
.doc .spec {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1.5rem;
  border: 1.5px solid var(--line);
  border-radius: 1rem;
}
.spec dt {
  padding: 0.75rem 0 0;
  font-weight: 700;
  font-size: 0.9375rem; /* 15px */
  color: var(--muted);
}
.spec dd {
  margin: 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
}
.spec dd:last-of-type {
  border-bottom: 0;
}
@media (min-width: 40rem) {
  .doc .spec {
    grid-template-columns: 8rem 1fr;
  }
  .spec dt {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .spec dd {
    padding: 0.75rem 0;
  }
  .spec dt:last-of-type {
    border-bottom: 0;
  }
}

/* ── 404 ── */
.notfound {
  padding: 6rem 0 7rem;
  text-align: center;
}
.notfound .code {
  margin: 0;
  font-weight: 900;
  font-size: 4.5rem; /* 72px */
  line-height: 1;
  color: var(--teal);
}
.notfound h1 {
  font-weight: 900;
  font-size: 1.5rem; /* 24px */
  margin: 1rem 0 0.5rem;
}
.notfound p {
  margin: 0 0 2rem;
  color: var(--muted);
}

/* ── フッター ── */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.8125rem; /* 13px */
  color: var(--muted);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}
