/* ガイド記事（/guide/）の見た目。色と書体は紹介ページにそろえる */
:root {
  --paper: #fbf8f8;
  --surface: #ffffff;
  --ink: #24151a;
  --muted: #6a5a60;
  --line: #ebe2e5;
  --red: #b3132a;
  --red-soft: #fbeaed;
  --gold: #f2c14e;
  --gold-deep: #c8912a;
  --stage: #7d0f1c;
  --stage-hi: #a3192b;
  --stage-deep: #43060f;
  --on-stage: #fff6ec;
  --on-stage-muted: rgba(255, 246, 236, 0.72);
  --font-ui: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-d: "Dela Gothic One", "Hiragino Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #151012; --surface: #1f181b; --ink: #f3eaed; --muted: #b3a5aa; --line: #33282c; --red: #e2475c; --red-soft: #3a1c24; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #151012; --surface: #1f181b; --ink: #f3eaed; --muted: #b3a5aa; --line: #33282c; --red: #e2475c; --red-soft: #3a1c24; color-scheme: dark; }

body { background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.95; letter-spacing: 0.04em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.inner { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }

.btn { display: inline-flex; align-items: center; gap: 0.5em; border-radius: 999px; padding: 0.7em 1.6em; font-weight: 900; text-decoration: none; letter-spacing: 0.08em; }
.btn-gold { background: var(--gold); color: var(--stage-deep); box-shadow: 0 0.3em 0 var(--gold-deep); }
.btn-gold:hover { background: #fffaf3; }

/* ---- 頭 ---- */
.top { background: var(--stage); background-image: radial-gradient(ellipse 70% 120% at 20% 0%, var(--stage-hi) 0%, var(--stage) 55%, var(--stage-deep) 100%); color: var(--on-stage); }
.nav { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-size: 1.25rem; letter-spacing: 0.06em; text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.nav .links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; font-weight: 700; color: var(--on-stage-muted); }
.nav .links a { text-decoration: none; }
.nav .links a:hover { color: var(--on-stage); }
.nav .btn { margin-left: auto; padding: 0.45em 1.2em; font-size: 0.9rem; box-shadow: none; }
@media (max-width: 640px) { .nav .links { display: none; } }

.page-head { padding-block: 28px 44px; max-width: 46rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 0.6em; margin: 0 0 14px; padding: 0; list-style: none; font-size: 0.82rem; color: var(--on-stage-muted); }
.crumbs li + li::before { content: "›"; margin-right: 0.6em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { margin: 0; font-weight: 900; font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.4; letter-spacing: 0.03em; }
.page-head .lead { margin: 14px 0 0; color: var(--on-stage-muted); font-size: 1.02rem; }
.page-head .meta { margin: 14px 0 0; font-size: 0.8rem; color: var(--on-stage-muted); }

/* ---- 本文 ---- */
.article { max-width: 46rem; margin: 0 auto; padding: 36px 16px 64px; }
.article h2 { margin: 56px 0 14px; padding-top: 18px; border-top: 2px solid var(--line); font-weight: 900; font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.5; letter-spacing: 0.03em; }
.article h2:first-of-type { margin-top: 32px; }
.article h3 { margin: 32px 0 8px; font-weight: 900; font-size: 1.12rem; line-height: 1.6; }
.article p { margin: 0 0 1.1em; }
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article li { margin-bottom: 0.35em; }
.article strong { background: linear-gradient(transparent 62%, rgba(242, 193, 78, 0.45) 62%); font-weight: 900; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; font-size: 0.95rem; }
.toc b { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--red); }

.answer { display: grid; gap: 4px; background: var(--red-soft); border-left: 5px solid var(--red); border-radius: 0 14px 14px 0; padding: 18px 22px; margin: 0 0 1.4em; }
.answer b { font-size: 0.82rem; color: var(--red); letter-spacing: 0.1em; }
.answer p { margin: 0; font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 12px 16px 0; font-size: 0.85rem; color: var(--muted); }
th, td { padding: 10px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 900; }
td em { font-style: normal; font-weight: 900; color: var(--red); }
table.text th, table.text td { white-space: normal; }
table.text td { text-align: left; min-width: 11em; }
.note { font-size: 0.85rem; color: var(--muted); }

/* 台本：読み上げる言葉の箱。右上のボタンでコピーできる */
.script { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 1.4em; }
.script .who { display: inline-block; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; color: #fff; background: var(--red); border-radius: 999px; padding: 0 0.9em; margin-bottom: 6px; }
.script p { margin: 0 0 0.6em; }
.script p:last-child { margin-bottom: 0; }
.script .stage-dir { color: var(--muted); font-size: 0.9rem; }
.copy { position: absolute; top: 12px; right: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); border-radius: 999px; font-size: 0.78rem; font-weight: 700; padding: 0.2em 0.9em; }
.copy:hover { color: var(--ink); border-color: var(--muted); }

/* アプリへの案内 */
.cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: center; background: var(--stage); background-image: radial-gradient(ellipse 80% 140% at 0% 0%, var(--stage-hi), var(--stage) 60%, var(--stage-deep)); color: var(--on-stage); border-radius: 20px; padding: 24px; margin: 2em 0; }
.cta img { width: 64px; height: 64px; grid-row: span 3; }
.cta b { font-size: 1.12rem; font-weight: 900; line-height: 1.5; }
.cta p { margin: 0; color: var(--on-stage-muted); font-size: 0.92rem; }
.cta .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 520px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta img { grid-row: auto; } }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding-block: 14px; font-weight: 900; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-d); color: var(--red); }
.faq details p { margin: 0 0 16px; padding-left: 1.9em; color: var(--muted); }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.related a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; font-weight: 900; line-height: 1.6; }
.related a:hover { border-color: var(--red); }
.related span { display: block; margin-top: 4px; font-weight: 500; font-size: 0.85rem; color: var(--muted); }

footer.site { background: var(--stage-deep); color: var(--on-stage-muted); font-size: 0.85rem; padding-block: 24px; }
footer.site .inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
