:root {
  --bg: #fbfaf7;
  --text: #22201c;
  --muted: #6b665d;
  --line: #ddd8cd;
  --accent: #2f5d62;
  --accent-text: #ffffff;
  --note-bg: #f1eee6;
  --gate-bg: #fbfaf7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --text: #ece8df;
    --muted: #a9a397;
    --line: #3a3732;
    --accent: #7fb3b8;
    --accent-text: #10201f;
    --note-bg: #26241f;
    --gate-bg: #1b1a18;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.85;
  font-size: 16px;
}

a { color: var(--accent); }

.site { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { padding: 24px 0 8px; border-bottom: 1px solid var(--line); }
.site-name { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; }
.site-name a { color: var(--text); text-decoration: none; }
.site-nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-nav a { font-size: 0.9rem; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }

.ad-disclosure {
  margin: 16px 0 0;
  padding: 8px 12px;
  background: var(--note-bg);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.ad-label {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border: 1px solid var(--muted);
  border-radius: 3px;
  font-size: 0.75rem;
  line-height: 1.6;
}

.content { padding: 8px 0 32px; }
.content h1 { font-size: 1.6rem; line-height: 1.4; margin: 24px 0 16px; }
.content h2 { font-size: 1.2rem; margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.content h3 { font-size: 1.05rem; margin: 24px 0 4px; }
.content table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.content th, .content td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.content th { background: var(--note-bg); }
.table-wrap { overflow-x: auto; }
.lead { font-size: 1.05rem; }
.note { padding: 12px 16px; background: var(--note-bg); border-radius: 6px; }
.calc { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

.site-footer { border-top: 1px solid var(--line); padding: 16px 0 40px; font-size: 0.85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.credit { margin: 12px 0 4px; }
.footer-note, .footer-copy { margin: 4px 0; }

/* 年齢確認の入口：既定で全画面に出し、確認済みなら隠す */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--gate-bg);
  overflow-y: auto;
}
.age-ok .age-gate { display: none; }
.age-gate-box { max-width: 480px; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.age-gate-title { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; }
.age-gate-actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.age-gate-yes, .age-gate-no {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.age-gate-yes { border: 0; background: var(--accent); color: var(--accent-text); }
.age-gate-no { border: 1px solid var(--line); color: var(--text); background: transparent; }
.age-gate-note { font-size: 0.8rem; color: var(--muted); margin: 4px 0; }
