/* みーはん サイト共通（色・ヘッダー・フッター・ボタン） */
:root {
  --bg: #f6f4ff;
  --bg-2: #ece8ff;
  --card: #ffffff;
  --text: #1f1d3a;
  --muted: #4d4a72;
  --line: #dcd6f7;
  --accent: #7c66ff;
  --accent-soft: #ece8ff;
  --pink: #e85a9b;
  --ok: #1f9d6b;
  --ng: #a09cbf;
  --shadow: 0 10px 30px rgba(60, 40, 140, .10);
  --header-bg: rgba(246, 244, 255, .82);
  /* ヒーロー（夜空）はテーマに関係なく固定 */
  --night-1: #16182f;
  --night-2: #2e1e4a;
  --night-text: #f2f0ff;
  --night-muted: #c4bee6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16182f;
    --bg-2: #241a40;
    --card: #1f2140;
    --text: #f2f0ff;
    --muted: #c4bee6;
    --line: #36375e;
    --accent: #9a88ff;
    --accent-soft: #2c2a55;
    --pink: #ff7eb6;
    --ok: #4fd3a0;
    --ng: #6e6a92;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --header-bg: rgba(22, 24, 47, .82);
  }
}
:root[data-theme="dark"] {
  --bg: #16182f;
  --bg-2: #241a40;
  --card: #1f2140;
  --text: #f2f0ff;
  --muted: #c4bee6;
  --line: #36375e;
  --accent: #9a88ff;
  --accent-soft: #2c2a55;
  --pink: #ff7eb6;
  --ok: #4fd3a0;
  --ng: #6e6a92;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --header-bg: rgba(22, 24, 47, .82);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--text);
  /* 本文は OS の文字を使う（丸文字の Web フォントは Windows だと小さい字がにじむため） */
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 見出し・ボタン・ロゴなど大きい文字だけ丸文字 */
h1, h2, h3, .home, .btn, .badge, .tag, .kicker, .price, .round {
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.home {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .02em;
}
.home:hover { background: var(--accent-soft); }
.home .dot { color: var(--accent); }
.home .home-icon { display: none; font-size: 22px; line-height: 1; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a.btn { color: #fff; margin-left: 4px; }
.site-nav a.btn:hover { background: var(--accent); filter: brightness(1.08); }

/* 半画面・スマホでは 🏠 だけにする（config.js が html に home-compact / home-full を付ける） */
.home-compact .home .home-text { display: none; }
.home-compact .home .home-icon { display: inline; }
.home-compact .home { width: 44px; padding: 0; }
/* JS が動かないときは幅だけで判断 */
@media (max-width: 900px) {
  html:not(.home-full) .home .home-text { display: none; }
  html:not(.home-full) .home .home-icon { display: inline; }
  html:not(.home-full) .home { width: 44px; padding: 0; }
}
@media (max-width: 560px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 800; border: none;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; filter: none; }

h2.section-title { font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin: 0 0 8px; text-align: center; }
p.section-lead { color: var(--muted); text-align: center; margin: 0 0 28px; }

/* ---------- フッター ---------- */
.site-footer { padding: 40px 0 56px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 64px; }
.site-footer nav { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 規約・ポリシーなどの文章ページ ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 0 0; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; margin: 0 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.doc .intro { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.doc .toc { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; margin: 24px 0 8px; }
.doc .toc b { display: block; margin-bottom: 6px; }
.doc .toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 24px; }
.doc .toc a { color: var(--text); text-decoration: none; }
.doc .toc a:hover { color: var(--accent); text-decoration: underline; }
.doc h2 { font-size: 20px; font-weight: 800; margin: 40px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); scroll-margin-top: 76px; }
.doc h3 { font-size: 16px; font-weight: 800; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc code { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.doc a { color: var(--accent); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--accent-soft); font-weight: 700; }
.doc .table-scroll { overflow-x: auto; }
.doc .point { border-left: 4px solid var(--accent); background: var(--card); padding: 10px 14px; border-radius: 0 12px 12px 0; }
