/* つうじる — 紹介・規約・プライバシーのページの見た目（2026-12-02 クロちゃん。特商法・購入のページと同じ色） */
:root {
  --bg: #fbfaf7; --fg: #1d222b; --sub: #646b78; --line: #e2e0d9;
  --ai: #1b2c4a; --ai-fg: #eef2f8; --hinoki: #ead7b0; --hinoki-fg: #2b2010;
  --card: #ffffff; --warn: #b77b0c; --bubble-en: #eef2f8; --bubble-ja: #f6efe0;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Figtree", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181e; --fg: #eceef2; --sub: #9aa1ad; --line: #2c3039;
    --ai: #22365c; --ai-fg: #e6ebf4; --hinoki: #3b2e18; --hinoki-fg: #f3e4c4;
    --card: #1c2028; --warn: #f2b33d; --bubble-en: #22365c; --bubble-ja: #3b2e18;
  }
}
:root[data-theme="dark"] {
  --bg: #15181e; --fg: #eceef2; --sub: #9aa1ad; --line: #2c3039;
  --ai: #22365c; --ai-fg: #e6ebf4; --hinoki: #3b2e18; --hinoki-fg: #f3e4c4;
  --card: #1c2028; --warn: #f2b33d; --bubble-en: #22365c; --bubble-ja: #3b2e18;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.8; }
a { color: inherit; }
.top { background: var(--ai); color: var(--ai-fg); padding: calc(env(safe-area-inset-top) + 20px) 16px 22px; }
.top-in, main, .foot-in { max-width: 680px; margin: 0 auto; }
.back {
  display: inline-block; color: var(--ai-fg); text-decoration: none; font-weight: 700; font-size: .9rem;
  border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px;
}
h1 { margin: 8px 0 0; font-size: 1.4rem; line-height: 1.45; }
.date { margin: 6px 0 0; font-size: .9rem; opacity: .85; }
main { padding: 12px 16px 8px; }
.mail { font-family: var(--font-en); word-break: break-all; }

/* 規約・ポリシーの本文 */
.doc h2 { font-size: 1.1rem; margin: 30px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc p { margin: 8px 0; }
.doc ol, .doc ul { margin: 8px 0; padding-left: 1.6em; }
.doc li { margin: 4px 0; }
.doc li > ul { margin: 4px 0; }
.doc .intro { margin-top: 14px; }
.doc .end { text-align: right; margin-top: 24px; }
.table-wrap { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .9rem; line-height: 1.6; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--bg); font-weight: 700; white-space: nowrap; }
/* スマホの幅では、表の1行を1枚のカードにする（見出しは各欄の上に小さく。ページの script が data-label を入れる） */
@media (max-width: 560px) {
  .table-wrap.stack { overflow: visible; border: 0; background: transparent; }
  .table-wrap.stack table { min-width: 0; }
  .table-wrap.stack thead { display: none; }
  .table-wrap.stack tr { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 6px 0; }
  .table-wrap.stack td { display: block; border: 0; padding: 4px 14px; }
  .table-wrap.stack td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--sub); }
  .table-wrap.stack td:first-child { font-weight: 700; }
  .table-wrap.stack td:first-child::before { display: none; }
}

/* ページの下（どのページにも同じリンク） */
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; padding: 22px 16px calc(env(safe-area-inset-bottom) + 32px); color: var(--sub); font-size: .88rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .brand { text-align: center; margin-top: 14px; }
