/* ero-kakaku — ダーク基調・レスポンシブ */
:root {
  --bg: #14161a;
  --bg-soft: #1c1f26;
  --bg-card: #22262f;
  --text: #e8e9ec;
  --text-dim: #a7adb8;
  --accent: #e5484d;
  --accent-soft: #ff6b6f;
  --border: #333845;
  --ok: #3fb68b;
  --warn: #e8b13a;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.site-logo .accent { color: var(--accent); }
.site-tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.95rem;
}
.site-nav a { color: var(--text); }

/* 年齢注意バナー */
.age-banner {
  background: #3a1416;
  border-bottom: 2px solid var(--accent);
  color: #ffd7d8;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.95rem;
}

/* メイン */
main { padding: 28px 0 48px; }

h1 {
  font-size: 1.7rem;
  line-height: 1.4;
  margin: 0 0 16px;
}
h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}
h3 { font-size: 1.1rem; margin: 24px 0 8px; }

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.4em; }
li { margin-bottom: 4px; }

.lead { font-size: 1.05rem; color: var(--text); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card h3 { margin-top: 0; }

.notice-collecting {
  border: 1px dashed var(--warn);
  background: rgba(232, 177, 58, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--warn);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ジャンルグリッド */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.genre-grid a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
}
.genre-grid a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* 条件セクション */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 6px;
  vertical-align: middle;
}
.badge-sale { background: var(--accent); color: #fff; }
.badge-sub { background: var(--ok); color: #fff; }
.badge-lowest { background: var(--warn); color: #1a1a1a; }

.empty-note { color: var(--text-dim); font-size: 0.92rem; }

/* 更新履歴 */
.update-list { list-style: none; padding-left: 0; }
.update-list li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.update-list time { color: var(--text-dim); margin-right: 10px; font-size: 0.9rem; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 24px 0 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 10px;
}
.site-footer a { color: var(--text-dim); }

/* 年齢確認モーダル */
.age-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.age-modal {
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
}
.age-modal h2 {
  border: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 1.35rem;
}
.age-modal .warn-mark {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}
.age-modal p { color: var(--text-dim); font-size: 0.95rem; }
.age-modal .buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-yes { background: var(--accent); color: #fff; }
.btn-no { background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); }

@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  .site-nav { margin-left: 0; }
  .site-logo { font-size: 1.25rem; }
}
