/* プライバシーポリシー・クッキーポリシーのページ（ゲームと同じダークテーマ） */
:root {
  --bg: #121a2b;
  --bg-top: #1a2542;
  --bg-deep: #0c1220;
  --panel: #1b2538;
  --panel-hi: #26324a;
  --ink: #eef2f8;
  --muted: #9aa7bd;
  --gold: #ffc94d;
  --line: #34425e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: linear-gradient(var(--bg-top), var(--bg) 420px);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(18, 26, 43, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { flex: none; display: block; }
.brand b { font-family: "Dela Gothic One", "M PLUS Rounded 1c", sans-serif; font-weight: 400; letter-spacing: 0.1em; font-size: 18px; }

.langs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--gold); color: #2a1e00; }

main { padding: 28px 0 48px; }

h1 {
  font-family: "Dela Gothic One", "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 8px 0 6px;
}
.dates { color: var(--muted); font-size: 13px; margin: 0 0 24px; }

h2 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  margin: 36px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
h3 { font-size: 15.5px; font-weight: 800; margin: 22px 0 6px; }

p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
li::marker { color: var(--muted); }
strong { color: #fff; }

.lead {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.note { color: var(--muted); font-size: 13.5px; }

.table {
  overflow-x: auto;
  margin: 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13.5px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--panel-hi); color: var(--muted); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}
table code { overflow-wrap: normal; } /* 区切り（. と -）でだけ折り返す。折り返し位置は legal.js が入れる */
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.tag.need { background: #23314f; color: #b9c8ea; }
.tag.opt { background: #3a2f12; color: var(--gold); }

/* 狭い画面では、表を1行ずつのカードにする（legal.js が .cards と各セルの見出しを付ける） */
@media (max-width: 640px) {
  .table.cards { overflow: visible; background: none; border: 0; border-radius: 0; }
  .table.cards table, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: auto; min-width: 0; }
  .table.cards thead { display: none; }
  .table.cards tr {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 14px;
    margin-bottom: 10px;
  }
  .table.cards td { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); justify-items: start; gap: 10px; padding: 5px 0; border: 0; }
  .table.cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; padding-top: 1px; }
  .table.cards td:first-child { font-weight: 800; }
  .table.cards code { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .brand b { font-size: 15px; letter-spacing: 0.08em; }
  .brand img { width: 26px; height: 26px; }
  .langs button { padding: 6px 8px; font-size: 12px; }
}

/* お問い合わせフォーム */
.form { margin: 24px 0 8px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req, .opt {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
}
.req { background: #3a2f12; color: var(--gold); }
.opt { background: #23314f; color: #b9c8ea; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iPhone で入力時に拡大されないように */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.form select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat; }
.form textarea { resize: vertical; min-height: 160px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form .field [aria-invalid="true"] { border-color: #ff6b6b; }
.form ::placeholder { color: #66738c; }
.hint, .counter { color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.6; }
.counter { text-align: right; }
.error { color: #ff8b8b; font-size: 13px; font-weight: 700; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.7; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--panel-hi); font-size: 14px; }
.status.bad { background: #3a1e24; color: #ffb4b4; }
.submit {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: #2a1e00;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 20px;
  cursor: pointer;
}
.submit:disabled { opacity: 0.6; cursor: wait; }
.done h2 { border: 0; padding: 0; margin: 0 0 8px; }
.form-closed { margin-top: 24px; }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 13px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }

/* 言語の切り替え（JavaScript が html の data-lang を書き換える。動かないときは日本語だけ出す） */
[data-only] { display: none; }
html:not([data-lang]) [data-only="ja"],
html[data-lang="ja"] [data-only="ja"],
html[data-lang="en"] [data-only="en"],
html[data-lang="ko"] [data-only="ko"] { display: revert; }
html:not([data-lang]) article[data-only="ja"],
html[data-lang="ja"] article[data-only="ja"],
html[data-lang="en"] article[data-only="en"],
html[data-lang="ko"] article[data-only="ko"] { display: block; }
html:not([data-lang]) .langs { display: none; }
