/* 文章のページ（規約・プライバシーポリシー・使い方・問い合わせ・アカウント）。src/pages/doc_layout.ts */
:root { --bg: #11151c; --panel: #1a2029; --line: #2c3542; --text: #e6e9ee; --muted: #9aa4b2; --accent: #5aa9ff;
        --deal: #3ddc84; --take: #ff5c5c; --kill: #ffd447; --near: #ff9a3c; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.75 "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
a { color: var(--accent); }
.lang-menu { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang-menu button { background: var(--panel); color: var(--muted); border: 0; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.lang-menu button + button { border-left: 1px solid var(--line); }
.lang-menu button:hover { color: var(--text); }
.lang-menu button.on { background: var(--accent); color: #07121f; font-weight: bold; cursor: default; }

main { max-width: 880px; margin: 0 auto; padding: 24px 16px 0; }
main.guide { max-width: 1400px; }
main.guide > :not(.overview) { max-width: 880px; margin-left: auto; margin-right: auto; }
h1 { font-size: 24px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
h3 { font-size: 15px; margin: 22px 0 6px; }
p, li { margin: 0 0 8px; }
.lead { color: var(--muted); }
.cap { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.notice { border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.notice.ok { background: rgba(61, 220, 132, .12); border: 1px solid var(--deal); }
.notice.err { background: rgba(255, 92, 92, .12); border: 1px solid var(--take); }

/* 規約・プライバシーポリシー */
.legal h1 { font-size: 24px; }
.legal h2 { font-size: 16.5px; margin-top: 30px; scroll-margin-top: 12px; }
.legal h3 { margin-top: 28px; }
.legal .meta { color: var(--muted); font-size: 13px; margin: 0; }
.legal .meta + p:not(.meta) { margin-top: 16px; }
.legal .item { padding-left: 2.4em; text-indent: -2.4em; }
.legal ul { padding-left: 1.4em; }
.legal .table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; }
.legal .table-wrap:focus-visible { outline: 2px solid var(--kill); outline-offset: 2px; }
.legal table.ext { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 13.5px; line-height: 1.7; }
.legal table.ext th, .legal table.ext td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.legal table.ext th { color: var(--muted); font-weight: normal; white-space: nowrap; background: var(--panel); }
.legal table.ext tr:last-child td { border-bottom: 0; }
/* 1列目（サービス）と2列目（事業者）は、単語の途中で折らず、最低の幅を持たせる */
.legal table.ext th:nth-child(1), .legal table.ext td:nth-child(1) { min-width: 9em; }
.legal table.ext th:nth-child(2), .legal table.ext td:nth-child(2) { min-width: 11em; }
.legal table.ext th:nth-child(-n+2), .legal table.ext td:nth-child(-n+2) { overflow-wrap: normal; word-break: keep-all; }
.toc { margin: 0 0 24px; padding: 8px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.toc summary { cursor: pointer; color: var(--muted); }
.toc ol { list-style: none; margin: 8px 0 4px; padding: 0; columns: 2 260px; font-size: 13.5px; }
.toc li { margin: 0 0 4px; }

/* 使い方 */
.guide img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0 4px; }
.guide img.narrow { max-width: 560px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
       background: var(--kill); color: #000; font: bold 13px Arial, sans-serif; margin-right: 6px; vertical-align: 1px; }
table.terms { border-collapse: collapse; width: 100%; font-size: 14px; margin: 6px 0 12px; }
table.terms th, table.terms td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
table.terms th { color: var(--muted); font-weight: normal; white-space: nowrap; }
.c-deal { color: var(--deal); } .c-take { color: var(--take); } .c-kill { color: var(--kill); } .c-near { color: var(--near); }
.bar { display: inline-block; width: 64px; height: 8px; border-radius: 4px; vertical-align: middle; margin: 0 4px; }
.bar.warm { background: linear-gradient(90deg, #ffe25c, #ff9628, #d62828); }
.bar.cold { background: linear-gradient(90deg, #5aa0ff, #50dcf0, #149682); }
.tl-key { display: inline-block; padding: 0 6px; border-radius: 4px; }
.tl-key.warn { background: rgba(255, 212, 71, .12); border: 1px dashed var(--kill); }
.tl-key.alert-in { background: rgba(255, 92, 92, .18); border: 1px solid var(--take); }
.tl-key.alert-out { background: rgba(61, 220, 132, .15); border: 1px solid var(--deal); }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.overview figure { margin: 0; }
.overview img { margin: 0 0 4px; }
.legend { list-style: none; margin: 0; padding: 0; position: sticky; top: 12px; }
.legend li { display: flex; gap: 8px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line);
             border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 13.5px; line-height: 1.6; }
.legend .num { flex: none; margin: 1px 0 0; }
.legend b { display: block; font-size: 14px; }
.back { margin-top: 32px; }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; } .legend { position: static; } }

/* 問い合わせ・アカウント */
form.contact { display: grid; gap: 8px; margin-top: 16px; }
form.contact fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px 10px; margin: 0; }
form.contact legend { color: var(--muted); padding: 0 6px; }
.choice { display: inline-flex; gap: 6px; align-items: center; margin-right: 20px; cursor: pointer; }
.field { margin-top: 8px; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
input[type="email"], textarea { width: 100%; box-sizing: border-box; background: var(--panel); color: var(--text); border: 1px solid var(--line);
                                 border-radius: 6px; padding: 8px 10px; font: inherit; }
textarea { resize: vertical; min-height: 12em; }
input[type="email"]:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
/* おとりの欄（ボット用）。人には見せない */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; margin-top: 8px; }
button[type="submit"] { justify-self: start; background: var(--accent); color: #07121f; font: inherit; font-weight: bold; border: 0;
                        border-radius: 8px; padding: 8px 24px; cursor: pointer; }
button[type="submit"]:hover { filter: brightness(1.1); }
.lang-menu button[type="submit"] { background: var(--panel); color: var(--muted); font-weight: normal; border-radius: 0; padding: 4px 12px; }
.lang-menu button[type="submit"].on { background: var(--accent); color: #07121f; font-weight: bold; }
dl.account { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 16px 0; }
dl.account dt { color: var(--muted); }
dl.account dd { margin: 0; word-break: break-all; }
form.inline { margin: 8px 0 0; }
form.inline button[type="submit"] { background: var(--panel); color: var(--text); border: 1px solid var(--line); font-weight: normal; }
details.danger { border: 1px solid var(--take); border-radius: 8px; padding: 10px 14px; }
details.danger summary { cursor: pointer; color: var(--take); font-weight: bold; }
details.danger form { display: grid; gap: 10px; margin-top: 8px; }
button.danger[type="submit"] { background: var(--take); color: #1a0505; }

/* ログインの案内（/signin） */
.cta { display: inline-block; background: var(--accent); color: #07121f; font-weight: bold; text-decoration: none;
       padding: 10px 22px; border-radius: 8px; margin-top: 8px; }
.cta:hover { filter: brightness(1.1); }
button.cta { border: 0; font: inherit; font-weight: bold; cursor: pointer; }
.login-form { margin-top: 8px; }
.age-confirm { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.age-confirm input { margin-top: 3px; }
.form-error { color: var(--take); font-weight: bold; }
.consent { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
/* 使い方: レポートの「理論値」の印の見本（report.css の .est と同じ見た目） */
.est-mark { display: inline-block; padding: 0 4px; border: 1px solid #7a6630; border-radius: 3px; color: #e8c86a; font-size: 11px; line-height: 16px; vertical-align: middle; }
