/* pages.css — 規約・プライバシー・問い合わせ・運営者情報の共通スタイル。
   index.html / zukan.css と同じ空〜草原のトーンに合わせる。 */
:root {
  --panel: rgba(255, 250, 240, 0.94);
  --border: rgba(30, 60, 89, 0.18);
  --text: #173455;
  --sub: #486175;
  --accent: #edae1f;
  --accent-dark: #a9650b;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: #416f43;
}
body {
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 240, 190, 0.75) 0 5%, transparent 22%),
    linear-gradient(180deg, #497da9 0%, #8fc9e7 35%, #c5e2e7 54%, #5e8c4a 76%, #416f43 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
.wrap {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ---- 見出し ---- */
.pg-head {
  text-align: center;
  margin-bottom: 20px;
}
.pg-brand {
  display: inline-block;
  width: min(320px, 72%);
}
.pg-brand img { width: 100%; height: auto; display: block; }
h1 {
  margin: 14px 0 0;
  font-size: clamp(20px, 4.4vw, 27px);
  color: #fffaf0;
  text-shadow: 0 2px 6px rgba(23, 52, 85, 0.55);
}
.pg-updated {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(23, 52, 85, 0.5);
}

/* ---- 本文の紙 ---- */
.sheet {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 10px 26px rgba(23, 52, 85, 0.18);
  line-height: 1.9;
}
.sheet + .sheet { margin-top: 18px; }
.sheet h2 {
  font-size: 17px;
  margin: 26px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(237, 174, 31, 0.5);
}
.sheet h2:first-child { margin-top: 0; }
.sheet h3 { font-size: 15px; margin: 18px 0 4px; }
.sheet p { margin: 8px 0; }
.sheet ul, .sheet ol { margin: 8px 0; padding-left: 1.4em; }
.sheet li { margin: 4px 0; }
.sheet a { color: var(--accent-dark); }
.lead { color: var(--sub); }
.fine { font-size: 12px; color: var(--sub); }

/* 特に読ませたい一言(子ども向け・データを送らない、など) */
.note {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(237, 174, 31, 0.12);
}

/* 定義リスト(運営者情報) */
.meta { margin: 0; }
.meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}
.meta div:last-child { border-bottom: 0; }
.meta dt { flex: 0 0 8em; font-weight: 700; margin: 0; }
.meta dd { flex: 1 1 12em; margin: 0; }

/* ---- ボタン ---- */
.btn {
  display: inline-block;
  margin: 10px 0;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #4a3200;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(169, 101, 11, 0.3);
}
.btn:hover { background: #f5bd3a; }

/* ---- 足まわり ---- */
.pg-nav {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(23, 52, 85, 0.5);
}
.pg-nav a { color: #fffaf0; }
.pg-nav .sep { opacity: 0.6; margin: 0 6px; }
footer {
  text-align: center;
  margin-top: 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(23, 52, 85, 0.5);
}

@media (max-width: 600px) {
  .wrap { padding: 16px 12px 44px; }
  .sheet { padding: 20px 17px; border-radius: 15px; }
  .meta dt { flex-basis: 100%; }
}

/* ライセンス条文。原文をそのまま載せるので、折り返しつつ等幅で見せる。 */
.license {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
