/* プライバシーポリシーとサポートのページ（2026-11-10）。色はゲームの紙と藍に合わせる */
:root { --paper: #f1e9d8; --surface: #fffaf0; --ink: #142a3e; --muted: #675f50; --line: #e2d5bb; --ai: #142d4a; --shu: #de4a2c; }
@media (prefers-color-scheme: dark) { :root { --paper: #0f1a24; --surface: #172532; --ink: #e6eef3; --muted: #93a5b3; --line: #26394a; --ai: #f2c14e; --shu: #f06a4e; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%; }
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.app { margin: 0; font-weight: 700; color: var(--muted); font-size: 14px; }
.app a { color: inherit; text-decoration: none; }
h1 { font-size: 26px; line-height: 1.4; margin: 6px 0 16px; color: var(--ai); }
h2 { font-size: 18px; margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 1.5px solid var(--line); }
a { color: var(--ai); }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); }
td:first-child { white-space: nowrap; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
ul { padding-left: 1.3em; }
dl { margin: 0; }
dt { font-weight: 700; margin-top: 16px; }
dd { margin: 4px 0 0; color: var(--ink); }
.date, .links { margin-top: 40px; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { td:first-child { white-space: normal; width: 6.5em; } }

/* サポートのページ（11/10 見やすく） */
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.head .icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 2px 8px rgba(20, 42, 62, .15); flex: none; }
.head h1 { margin: 0; }
.lead { color: var(--muted); margin: 0; }
.ways { display: grid; gap: 12px; }
@media (min-width: 600px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.way h3 { margin: 0 0 6px; font-size: 16px; }
.way p { margin: 0; font-size: 15px; }
.way .where { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.mail { display: block; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--ai); color: var(--surface); text-align: center; font-weight: 700; text-decoration: none; word-break: break-all; }
@media (prefers-color-scheme: dark) { .mail { color: #142a3e; } }
.cat { font-size: 14px; color: var(--muted); margin: 20px 0 8px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 16px 16px; font-size: 15px; }
footer.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
footer.links p { margin: 0; }
.note { margin-top: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line); }
.note h3 { margin: 0 0 4px; font-size: 15px; }
.note p, .note ul { margin: 0; font-size: 14px; }
.note ul { margin-top: 4px; }
.credit { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* ゲームへの戻り道（2026-11-12）。アプリの中で開いたとき（?from=app）は出さない */
.top { display: flex; justify-content: flex-end; margin: -8px 0 4px; font-size: 14px; font-weight: 700; }
.top a { text-decoration: none; padding: 8px 0; }
.playfoot { margin-top: 40px; }
.playfoot a { display: block; padding: 14px; border-radius: 12px; background: #f2c14e; color: #142a3e; border: 2px solid #142a3e; text-align: center; font-weight: 700; text-decoration: none; }
html:not(.webon) .play { display: none; }   /* Web 版が公開されているときだけ「遊ぶ」を出す（ページの script が webon を付ける） */
