/* FANZA作品紹介サイト（仮）— ダーク基調・スマホ優先レスポンシブ */
:root {
  --bg: #121216;
  --bg-card: #1d1d24;
  --bg-header: #17171d;
  --text: #e8e8ec;
  --text-sub: #a5a5b0;
  --accent: #e5487f;
  --accent-dark: #b92c5e;
  --border: #2c2c36;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.6;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 12px; }

/* ヘッダー */
.site-header { background: var(--bg-header); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.logo { color: var(--text); font-size: 1.15rem; font-weight: 700; }
.age-badge {
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
}
.main-nav { display: flex; gap: 18px; padding-top: 8px; padding-bottom: 12px; overflow-x: auto; }
.main-nav a { color: var(--text-sub); white-space: nowrap; font-size: .95rem; }
.main-nav a:hover { color: var(--text); text-decoration: none; }

main { padding-bottom: 32px; }
h2 { font-size: 1.25rem; border-left: 4px solid var(--accent); padding-left: 10px; margin: 28px 0 14px; }
h3 { font-size: 1.05rem; }

/* カードグリッド：スマホ2列 → 広い画面で3〜4列 */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.card-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: #26262f; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2b2b38, #1a1a22); color: var(--text-sub);
  font-size: 2rem; font-weight: 700;
}
.rank-badge {
  position: absolute; top: 6px; left: 6px; z-index: 1;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.card-body { padding: 10px; }
.card-title { font-size: .95rem; margin: 0 0 6px; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-meta { color: var(--text-sub); font-size: .8rem; margin: 2px 0; }
.card-price { color: var(--accent); font-weight: 700; margin: 6px 0 0; }

/* 詳細ページ */
.detail { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
@media (min-width: 720px) { .detail { grid-template-columns: 2fr 3fr; } }
.detail-thumb { aspect-ratio: 4 / 3; background: #26262f; border-radius: 8px; overflow: hidden; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb .thumb-placeholder { font-size: 3rem; }
.detail-info h2 { border: none; padding: 0; margin: 0 0 8px; font-size: 1.4rem; }
.detail-review { color: #f5c542; margin: 4px 0; }
.detail-price { font-size: 1.3rem; color: var(--accent); font-weight: 700; margin: 8px 0 14px; }
.tax-note { font-size: .75rem; color: var(--text-sub); font-weight: 400; margin-left: 6px; }

.btn {
  display: inline-block; text-align: center; border-radius: 8px;
  padding: 12px 20px; font-weight: 700; cursor: pointer;
}
.btn-buy { background: var(--accent); color: #fff; width: 100%; }
.btn-buy:hover { background: var(--accent-dark); text-decoration: none; }

.meta-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .92rem; }
.meta-table th, .meta-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.meta-table th { background: var(--bg-card); color: var(--text-sub); width: 30%; font-weight: 600; }

.intro { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 16px 14px; margin-top: 20px; }

/* 分類一覧 */
.tax-list { list-style: none; padding: 0; }
.tax-list li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; }
.tax-list .count { color: var(--text-sub); font-size: .85rem; }

/* フッター */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-header); padding: 18px 0 28px; margin-top: 12px; }
.site-footer p { color: var(--text-sub); font-size: .8rem; margin: 6px 0; }
.age-notice { color: var(--accent) !important; font-weight: 700; }

/* 年齢確認ゲート */
.gate-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.gate {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  max-width: 480px; width: 100%; padding: 32px 24px; text-align: center;
}
.gate-badge {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; margin: 0;
}
.gate h1 { font-size: 1.3rem; margin: 14px 0 10px; }
.gate-question { font-weight: 700; margin-top: 22px; }
.gate-buttons { display: grid; gap: 10px; margin-top: 14px; }
.btn-enter { background: var(--accent); color: #fff; }
.btn-enter:hover { background: var(--accent-dark); text-decoration: none; }
.btn-leave { background: transparent; color: var(--text-sub); border: 1px solid var(--border); }
.btn-leave:hover { text-decoration: none; color: var(--text); }
.gate-note { color: var(--text-sub); font-size: .8rem; margin-top: 18px; }
