/* ===== 共通デザイン ===== */
:root {
  --bg: #fff8ee;
  --card: #ffffff;
  --ink: #2b2118;
  --sub: #7a6a5c;
  --accent: #ff6b3d;
  --accent2: #ffd23f;
  --line: #f0e2cf;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header { text-align: center; padding: 28px 0 12px; }
.site-header .logo { font-size: 44px; line-height: 1; }
.site-header h1 { font-size: 26px; margin: 8px 0 4px; letter-spacing: .02em; }
.site-header h1 a { text-decoration: none; }
.site-header p { margin: 0; color: var(--sub); font-size: 14px; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 4px 0 #c94a22; transition: transform .05s;
  font-family: inherit;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c94a22; }
.btn.sub { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.center { text-align: center; }

/* セクション */
.section { margin: 28px 0; }
.section h2 { font-size: 19px; margin: 0 0 10px; }
.section .note { color: var(--sub); font-size: 12px; margin: -6px 0 10px; }

/* ジャンルボタン */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 14px; cursor: pointer; font-family: inherit; color: var(--ink);
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ゲームカード */
.cards { display: grid; gap: 10px; }
.card {
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; text-decoration: none; transition: transform .1s, border-color .1s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent2); }
.card .icon {
  flex: 0 0 56px; height: 56px; font-size: 34px; display: grid; place-items: center;
  background: var(--bg); border-radius: 12px;
}
.card .title { font-weight: 800; font-size: 16px; }
.card .desc { font-size: 13px; color: var(--sub); margin-top: 2px; }
.card .tags { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; background: var(--bg); border-radius: 6px; padding: 1px 7px; color: var(--sub); }
.tag.new { background: var(--accent); color: #fff; }

/* 広告枠 */
.ad-slot { margin: 24px auto; text-align: center; min-height: 100px; }
.ad-slot .ad-placeholder {
  border: 2px dashed #d8c8b4; border-radius: 12px; color: #b09c86;
  font-size: 12px; padding: 36px 8px;
}

/* フッター */
.site-footer {
  border-top: 2px solid var(--line); margin-top: 40px; padding: 20px 0 40px;
  text-align: center; font-size: 13px; color: var(--sub);
}
.site-footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* 文章ページ（プライバシーポリシー等） */
.doc { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; margin-top: 16px; }
.doc h2 { font-size: 17px; margin-top: 24px; }
.doc p, .doc li { font-size: 14px; }

/* ===== ゲームページ ===== */
.game-bar {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 2px solid var(--line);
}
.game-bar a { text-decoration: none; font-size: 14px; font-weight: 700; }
.game-bar .gtitle { font-weight: 800; font-size: 15px; }
.icon-btn { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.game-area { max-width: 480px; margin: 0 auto; padding: 16px; user-select: none; -webkit-user-select: none; }
.result {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: center; margin-top: 16px;
}
.result .big { font-size: 40px; font-weight: 900; color: var(--accent); }
.result .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.hidden { display: none !important; }
