/* プライバシーポリシーのページ（/privacy/・/privacy/en/）の見た目。日英2枚で共用。
   ゲーム本体の src/style.css は読まない（html・body の overflow: hidden で縦に送れなくなるため）。色と書体の並びは style.css の :root と同じ。
   本番の CSP は style-src 'self' なので、HTML に <style> や style 属性を書かず、ここにまとめる。
   明朝体は見出し（h1・h2）だけ。/fonts/shippori-mincho-b1-<版>/mincho.css（tools/fonts/fetch-mincho.mjs が書く）が @font-face を持つ */

:root {
  --paper: #f3efe7;
  --ink: #05060a;
  --red: #e5152c;
  --violet: #b99bff;
  --line: rgba(243, 239, 231, 0.3);
  --line-strong: rgba(243, 239, 231, 0.78);
  --mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  --gothic: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(243, 239, 231, 0.88);
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left));
}

/* ---------------------------------------------------------------- 上の帯（戻る・言語） */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  line-height: 44px;
}
.page-head a {
  display: inline-block;
  color: rgba(243, 239, 231, 0.76);
}

/* ---------------------------------------------------------------- 見出し */
h1,
h2 {
  font-family: var(--mincho);
  font-weight: 800;
  color: var(--paper);
}
h1 {
  margin: 20px 0 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}
h1::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  background: var(--red);
}
.lead {
  margin: 16px 0 28px;
}
h2 {
  margin: 34px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
}
ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}
li + li {
  margin-top: 0.4em;
}

/* ---------------------------------------------------------------- リンク */
a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(243, 239, 231, 0.45);
  text-underline-offset: 3px;
}
a:visited {
  color: var(--paper);
}
.page-head a:visited {
  color: rgba(243, 239, 231, 0.76);
}
a:hover {
  text-decoration-color: var(--paper);
}
a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- 外部への送信の表（幅 600px 以上） */
table {
  width: 100%;
  margin: 8px 0 1em;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.7;
}
thead th {
  padding: 0 12px 6px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(243, 239, 231, 0.76);
  text-align: left;
  vertical-align: bottom;
}
thead th:nth-child(1) {
  width: 28%;
}
thead th:nth-child(2),
thead th:nth-child(3) {
  width: 36%;
}
tbody td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody td:first-child {
  font-weight: 600;
  color: var(--paper);
}

/* ---------------------------------------------------------------- 末尾（運営者・問い合わせ先・制定日） */
.page-foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-size: 12px;
  color: rgba(243, 239, 231, 0.82);
}
.page-foot dl {
  margin: 0 0 1em;
}
.page-foot dt {
  font-size: 11px;
  color: rgba(243, 239, 231, 0.74);
}
.page-foot dd {
  margin: 0 0 8px;
}

/* ---------------------------------------------------------------- スマホ（幅 599px 以下）: 表を行ごとのカードに */
@media (max-width: 599px) {
  table,
  tbody,
  tr,
  td {
    display: block;
    width: auto;
  }
  /* 見出しの行は見た目だけ隠す（読み上げには残す） */
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  tr {
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: rgba(243, 239, 231, 0.04);
  }
  tbody td {
    padding: 0;
    border-bottom: 0;
  }
  tbody td:first-child {
    margin-bottom: 2px;
    font-size: 13px;
  }
  tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(243, 239, 231, 0.74);
  }
}

/* ---------------------------------------------------------------- 幅 768px 以上 */
@media (min-width: 768px) {
  body {
    font-size: 14px;
  }
  main {
    padding-top: 40px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 17px;
  }
}
