/* プライバシーポリシー・利用条件などの文書ページ（共通部分は common.css / game.css） */

.doc {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 24px clamp(16px, 4vw, 40px) 32px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.85;
}
.doc h2 {
  margin: 32px 0 8px;
  padding-left: 10px;
  border-left: 6px solid var(--green);
  font-size: 1.15rem;
}
.doc h2:first-of-type { margin-top: 8px; }
.doc p, .doc li { font-size: 0.95rem; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc .lead { color: var(--ink-soft); }
.doc .date { margin-top: 32px; text-align: right; color: var(--ink-soft); font-size: 0.85rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 8px 0; }
.doc th, .doc td { border: 1px solid #d8c9b0; padding: 6px 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper-dark); white-space: nowrap; }
.doc .box {
  margin: 12px 0;
  padding: 10px 14px;
  background: #f3faef;
  border: 2px solid var(--green);
  border-radius: 12px;
}
.doc-links { text-align: center; font-size: 0.9rem; margin: 0 0 32px; }
.doc-links a { margin: 0 8px; }

@media (max-width: 560px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc th { border-bottom: 0; }
}

/* 遊び方ガイド */
.guide-hero { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin-bottom: 8px; }
.guide-hero .art { width: 96px; height: 96px; }
.guide-hero h2 { margin: 0; padding: 0; border: 0; font-size: 1.5rem; }
.guide-hero p { margin: 4px 0 0; color: var(--ink-soft); }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 6px; }
.guide-cta a {
  display: inline-block; padding: 10px 28px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 900; font-size: 1.1rem;
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
}
.guide-cta a.sub { background: #fff; color: var(--ink); font-size: 0.95rem; }
.doc .steps { counter-reset: step; list-style: none; padding-left: 0; }
.doc .steps li { position: relative; padding-left: 2.2em; margin: 8px 0; }
.doc .steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.1em;
  width: 1.6em; height: 1.6em; display: grid; place-items: center;
  background: var(--green); color: #fff; border-radius: 50%; font-weight: 900; font-size: 0.85rem;
}
.doc .faq dt { font-weight: 900; margin-top: 10px; }
.doc .faq dt::before { content: "Q. "; color: var(--red); }
.doc .faq dd { margin: 2px 0 0 1.4em; }
.doc .faq dd::before { content: "A. "; font-weight: 900; color: var(--green); }
.other-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.other-games a {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.88rem;
}
.other-games .art { width: 32px; height: 32px; flex: none; }
.shogo-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.shogo-list li { padding: 2px 10px; background: #fff8e0; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.shogo-list li.rare { background: linear-gradient(120deg, #fff3b0, #ffd54a); }

/* 運営者情報の SNS ボタン（ポータルのフッターと同じ形） */
.doc .sns-links { display: flex; flex-wrap: wrap; gap: 8px; }
.doc .sns-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px 6px 8px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
  font-weight: 900; font-size: 0.9rem; text-decoration: none;
}
.doc .sns-links .art { width: 26px; height: 26px; }
.guide-hero p.alt { font-size: 0.8rem; margin-top: 2px; }
