/* プライバシーポリシー・利用規約・このサイトについて（読みもの用のページ） */
.doc { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
.doc .top { padding-top: 12px; }
.doc .lang { text-decoration: none; }
.doc article { margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 22px 20px; box-shadow: var(--shadow); }
.doc h1 { font-size: 24px; margin-bottom: 6px; }
.doc h2 { font-size: 17px; margin: 28px 0 8px; padding-top: 14px; border-top: 1px dashed var(--border); }
.doc h3 { font-size: 15px; margin: 18px 0 4px; }
.doc p, .doc li { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc a { color: var(--accent2); }
.doc .meta { color: var(--muted); font-size: 12px; margin: 0; }
.doc .note-red { color: var(--red); font-weight: 700; }
.doc .box { background: var(--bg); border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; margin: 8px 0; }
.doc dt { color: var(--muted); font-weight: 700; }
.doc dd { margin: 0; overflow-wrap: anywhere; }
.doc .cta { display: block; margin: 22px auto 0; max-width: 320px; }
.doc footer { margin-top: 20px; text-align: center; font-size: 12px; color: var(--muted); }
.doc footer a { color: var(--muted); margin: 0 6px; }

/* ギフトガイド（scripts/build-guides.mjs が作るページ） */
.doc .crumbs { margin: 10px 4px 0; font-size: 12px; color: var(--muted); }
.doc .crumbs a { color: var(--muted); }
.doc .pr { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 6px 0 12px; }
.doc .tips li + li { margin-top: 8px; }
.doc .gift-list { list-style: none; padding: 0; margin: 0; counter-reset: gift; }
.doc .gift { position: relative; padding: 12px 0 12px 34px; counter-increment: gift; }
.doc .gift + .gift { border-top: 1px dashed var(--border); }
.doc .gift::before { content: counter(gift); position: absolute; left: 0; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.doc .gift h3 { margin: 0 0 2px; font-size: 15px; }
.doc .gift p { margin: 2px 0; }
.doc .gift .range { font-size: 12px; font-weight: 700; color: var(--muted); }
.doc .gift .stores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.doc .store { display: inline-block; font-size: 12px; font-weight: 800; text-decoration: none; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); }
.doc .store.amazon { border-color: #f3a847; }
.doc .store.rakuten { border-color: #bf0000; }
.doc .cta-box { margin: 18px 0; padding: 14px 16px 18px; text-align: center; }
.doc .cta-box .cta-title { font-weight: 800; font-size: 15px; margin: 0 0 4px; }
.doc .cta-box .cta { margin-top: 12px; }
.doc .guide-index { list-style: none; padding: 0; }
.doc .guide-index li + li { border-top: 1px dashed var(--border); }
.doc .guide-index a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); }
.doc .guide-index b { display: block; font-size: 15px; }
.doc .guide-index span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.doc .gift .reason { font-weight: 700; }
.doc .gift .point { font-size: 13px; line-height: 1.8; background: var(--bg); border-radius: 12px; padding: 8px 12px; margin: 6px 0; }
.doc .gift .point b { display: block; font-size: 11px; color: var(--accent); letter-spacing: .04em; }
.doc .table-wrap { overflow-x: auto; margin: 8px 0; }
.doc table.summary { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc table.summary th, .doc table.summary td { text-align: left; padding: 7px 8px; border-bottom: 1px dashed var(--border); vertical-align: top; }
.doc table.summary th { font-size: 11px; color: var(--muted); white-space: nowrap; }
.doc table.summary td:nth-child(2) { white-space: nowrap; }
.doc table.summary td:nth-child(2), .doc table.summary td:nth-child(3) { color: var(--muted); font-size: 12px; }
.doc table.summary td:first-child { min-width: 9em; }
.doc .guide-filter { margin: 12px 0 4px; padding: 12px; border-radius: 16px; background: var(--bg); }
.doc .filter-row { display: flex; align-items: flex-start; gap: 8px; }
.doc .filter-row + .filter-row { margin-top: 8px; }
.doc .filter-label { flex: none; width: 4.2em; font-size: 11px; font-weight: 800; color: var(--muted); padding-top: 8px; }
.doc .guide-filter .chip { background: var(--card); }
.doc .filter-count { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.doc .guide-index li[hidden] { display: none; }
.doc .guide-filter .chip { padding: 5px 10px; font-size: 12px; }

/* 読みものページもアプリと同じベージュ基調に（装飾なし・ダークモードでもベージュのまま） */
html:root:not([data-sw]) {
  color-scheme: light;
  --bg: #f3ece1;
  --bg2: #ebe2d4;
  --card: #fbf7f0;
  --ink: #3a2a1f;
  --muted: #8b7865;
  --accent: #8a5a36;
  --accent2: #8a5a36;
  --accent-ink: #f6ead8;
  --border: #e2d6c4;
  --shadow: 0 10px 30px rgba(80, 50, 20, .08);
  --red: #a3352f;
}
html:root:not([data-sw]) body { background: #f3ece1; color: var(--ink); }
.doc .btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
html:root:not([data-sw]) .doc .chip.on { background: var(--card); border-color: var(--accent); }
.doc .lang { background: var(--card); }

/* 左上のマークはアプリと同じ「革の鍵穴」 */
.doc .brand { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 0; background: linear-gradient(160deg, #9a6a43, #7b4d2c 55%, #5e3a22); box-shadow: 0 4px 10px rgba(70, 40, 20, .2); outline: 1px dashed rgba(240, 220, 190, .6); outline-offset: -4px; }
.key-ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f1d9a2'/%3E%3Cstop offset='.5' stop-color='%23c9a15e'/%3E%3Cstop offset='1' stop-color='%23946c33'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='9' r='4.2' fill='url(%23g)'/%3E%3Cpath d='M9.7 11.5 8.4 19.5h7.2l-1.3-8z' fill='url(%23g)'/%3E%3C/svg%3E") center / contain no-repeat; }
.doc .brand .key-ico { width: 26px; height: 26px; }
