/* バカジュアルゲームのサイトの見た目：オフホワイトの地に濃い紺の文字、差し色は1色。
   ゲームと同じ太い黒縁・影・角丸・書体で顔つきをそろえる（notes/site-plan.md の9章）。 */
:root {
  --bg: #fbf8f1;
  --ink: #1b2233;
  --accent: #1d7a55; /* サイトの差し色（仮。site-plan.md の12章の6で決める） */
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'M PLUS Rounded 1c', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.7;
}
a { color: inherit; }
/* 1列で中央にそろえる（ゲームが少ないうちに2列にすると、右が空いて片寄る） */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー（固定しない） */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 6px; }
.series { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .2em; opacity: .7; }
.title { margin: 0; font-family: 'Dela Gothic One', sans-serif; font-weight: 400; font-size: clamp(30px, 8vw, 52px); line-height: 1.15; }
.title a { text-decoration: none; }
.furi-btn {
  flex: none; min-height: 44px; padding: 6px 14px;
  font: 800 14px 'M PLUS Rounded 1c', sans-serif; color: var(--ink);
  background: #fff; border: var(--line); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); cursor: pointer;
}
.furi-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.furi-btn:active { transform: translate(2px, 2px); box-shadow: none; }
body:not(.furi) rt { display: none; }
rt { font-size: .5em; font-weight: 800; }

.lead { margin: 4px 0 2px; font-size: clamp(16px, 4.2vw, 20px); font-weight: 800; }
.lead span { display: inline-block; } /* 折れるときは「、」と全角の空きの所で折れる */
.aside { margin: 0 0 14px; font-size: 13px; opacity: .65; } /* 広告なし・登録なし：大きく謳わない */

/* 約束の札（どれも同じ大きさ・強さ） */
.promises { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.promises li {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px;
  background: #fff; border: var(--line); border-radius: 12px; font-weight: 800; font-size: 15px;
}
.promises li.link { padding: 0; }
.promises li.link a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; text-decoration: none; }
.promises li.link a::after { content: '→'; margin-left: 6px; color: var(--accent); }

h2.sec { margin: 0 0 12px; font-family: 'Dela Gothic One', sans-serif; font-weight: 400; font-size: 22px; }

/* ゲームのカード（丸ごとリンク） */
/* 右下の影（4px）のぶん右を空けて、影まで含めて左右の余白をそろえる */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0 0 40px; padding: 0 4px 0 0; list-style: none; }
.card {
  display: block; overflow: hidden; text-decoration: none;
  background: #fff; border: var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.card:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: var(--line); background: #cfe3f7; }
.card .body { padding: 12px 16px 16px; }
.card h3 { margin: 0 0 4px; font-family: 'Dela Gothic One', sans-serif; font-weight: 400; font-size: 22px; line-height: 1.3; }
.card p { margin: 0; }
.card .meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; }
.play { margin-left: auto; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; }

/* 保護者の方へ（読み物） */
.doc h1 { font-family: 'Dela Gothic One', sans-serif; font-weight: 400; font-size: clamp(26px, 6vw, 36px); margin: 8px 0 4px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 28px 0 6px; padding-left: 10px; border-left: 6px solid var(--accent); }
.doc ul { padding-left: 1.3em; margin: 6px 0; }
.doc li { margin: 4px 0; }
.doc .toc { background: #fff; border: var(--line); border-radius: 14px; padding: 10px 16px; }
.doc .toc ul { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; background: #fff; font-size: 15px; }
.doc th, .doc td { border: 2px solid var(--ink); padding: 6px 10px; text-align: left; vertical-align: top; }
.doc .updated { font-size: 14px; opacity: .75; margin: 0; }
.doc blockquote { margin: 8px 0; padding: 8px 14px; background: #fff; border-left: 6px solid var(--ink); }

/* フッター */
.foot { margin-top: 24px; padding: 18px 0 32px; border-top: var(--line); font-size: 14px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 0; list-style: none; }
.foot a { display: inline-block; padding: 6px 0; font-weight: 800; }
.foot small { opacity: .75; }

@media (prefers-reduced-motion: reduce) { .card, .card:hover, .card:active { transition: none; transform: none; } }
