/* ぽかぽかゲーム 共通スタイル */
:root {
  color-scheme: light;
  --bg: #fff4e6;
  --panel: #ffffff;
  --ink: #3b2a20;
  --sub: #8a6f5c;
  --accent: #ff7a3d;
  --accent2: #ffc94a;
  --line: #f0dcc6;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

/* ヘッダー */
.site-head { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 4px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--maru); font-weight: 900; font-size: 24px; letter-spacing: .02em;
}
.logo img { width: 40px; height: 40px; }

/* トップ */
.lead { margin: 18px 0 22px; font-family: var(--maru); font-weight: 700; font-size: 18px; line-height: 1.6; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 2px solid var(--line); border-radius: 18px; overflow: hidden;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line); }
.card:active { transform: translateY(1px); box-shadow: none; }
.card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--line); }
.card-body { display: block; padding: 12px 14px 14px; }
.card-title { display: block; font-family: var(--maru); font-weight: 900; font-size: 19px; line-height: 1.4; }
.card-line { display: block; margin-top: 2px; color: var(--sub); font-size: 14px; line-height: 1.5; }
.empty { grid-column: 1 / -1; margin: 8px 0; padding: 28px 16px; text-align: center; color: var(--sub); background: var(--panel); border: 2px dashed var(--line); border-radius: 18px; }

/* 文章ページ */
.doc { max-width: 680px; padding-bottom: 8px; }
.doc h1 { margin: 20px 0 8px; font-family: var(--maru); font-weight: 900; font-size: 26px; line-height: 1.4; }
.doc h2 { margin: 28px 0 6px; font-family: var(--maru); font-weight: 700; font-size: 19px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 1.3em; }
.button {
  display: inline-block; margin-top: 12px; padding: 10px 20px; border-radius: 12px;
  background: var(--accent); color: #fff; font-family: var(--maru); font-weight: 700; text-decoration: none;
}

/* フッター */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin-top: 40px; padding: 20px 16px max(28px, env(safe-area-inset-bottom));
  color: var(--sub); font-size: 14px;
}
.site-foot a { color: var(--sub); }
