/* こえこい ｜ 読みもののページ（利用規約・プライバシー・サポート・表記・相談窓口）
   合言葉なしで開く。アプリと同じ夜の色で、長い文章を読みやすく */

:root {
  --ink: #15121a;
  --ink-2: #1d1924;
  --line: rgb(245 240 234 / 0.14);
  --text: #f5f0ea;
  --sub: #b8aea6;
  --accent: #f0677e;
  --err: #ff9a9a;
  --ok: #9fe0b4;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 20px calc(env(safe-area-inset-bottom, 0px) + 64px);
}
.doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.doc-head a { color: var(--sub); font-size: 14px; text-decoration: none; }
.brand { font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }

h1 { font-size: 26px; line-height: 1.4; margin: 0 0 8px; }
h2 { font-size: 19px; line-height: 1.5; margin: 40px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
h3 { font-size: 16px; margin: 24px 0 6px; }
p, ul, ol, table, dl { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
a { color: var(--accent); }
small, .note { color: var(--sub); font-size: 14px; }
.lead { color: var(--sub); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { width: 34%; color: var(--sub); font-weight: 600; }
@media (max-width: 520px) {
  table.kv, table.kv tbody, table.kv tr, table.kv th, table.kv td { display: block; width: 100%; }
  table.kv th { border-bottom: 0; padding-bottom: 0; }
}

.lines { list-style: none; padding: 0; display: grid; gap: 12px; }
.lines li { margin: 0; padding: 14px 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; }
.lines b { display: block; font-size: 17px; }
.lines .tel { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.urgent { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--accent); background: rgb(240 103 126 / 0.1); }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--sub); }

form.support { display: grid; gap: 14px; margin-top: 12px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
button {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
.msg { min-height: 1.5em; margin: 0; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

.doc-foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.doc-foot a { color: var(--sub); }
