/*
Theme Name: Doujin Bright
Description: 同人誌紹介をメインにした、明るく読みやすいレビューブログテーマ。白ベース＋暖色アクセント。年齢認証ゲート内蔵。
Author: Aichan Media
Version: 1.0.0
Text Domain: doujin-bright
*/

:root {
  --bg: #faf9f6;          /* 温かみのある白 */
  --card: #ffffff;
  --text: #2b2b2b;
  --heading: #1f3a4d;     /* 濃紺 */
  --muted: #7a746a;
  --accent: #e76f51;      /* コーラル（ボタン・強調） */
  --accent-dark: #c9573c;
  --teal: #2a9d8f;        /* タグ・サブ */
  --border: #e7e2d9;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.9;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1520px; margin: 0 auto; padding: 0 24px; }

/* ── ヘッダー ── */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 0; }
.site-title { font-size: 22px; font-weight: 700; color: var(--heading); }
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; }
.site-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* オミタテのブランドロゴ＝「お見立て」由来のコーラル→ピンク→ティールのグラデ文字 */
.site-title a, .brand-logo {
  background: linear-gradient(90deg, #e76f51 0%, #d4537e 55%, #2a9d8f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800;
}
.hv-copy h1 .brand-logo { font-size: inherit; color: transparent; font-weight: 800; }
.global-nav ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.global-nav a {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; color: var(--heading); background: var(--bg);
}
.global-nav a:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* ── レイアウト ── */
/* 左:ジャンル / 中央:本文 / 右:広告 の3カラム（左右カラムは追従） */
.layout { display: grid; grid-template-columns: 220px minmax(0,1fr) 280px; gap: 26px; padding: 28px 0 48px; align-items: start; }
.genre-nav, .sidebar { position: sticky; top: 16px; }
/* 追従サイドバーが画面より高いと下のウィジェットが一生見えないため、内部スクロール化 */
.sidebar { max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 820px) { .sidebar { max-height: none; overflow-y: visible; } }
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0,1fr) 260px; }
  .genre-nav { position: static; grid-column: 1 / -1; order: -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .genre-nav .gn-block { margin-bottom: 0; }
  .genre-nav .gn-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .genre-nav .gn-list li { border: 0; padding: 0; }
  .genre-nav .gn-list a { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
  .genre-nav .gn-list .gn-count { display: none; }
}
@media (max-width: 820px) { .sidebar { position: static; } }
@media (max-width: 700px) { .layout { grid-template-columns: 1fr; } .genre-nav { grid-template-columns: 1fr; } }

/* 左サイドバー：ジャンルナビ */
.genre-nav .gn-block { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 18px; box-shadow: var(--shadow); }
.genre-nav .gn-title { font-size: 14px; color: var(--heading); border-left: 4px solid var(--accent); padding-left: 10px; margin: 0 0 12px; }
.gn-list { list-style: none; margin: 0; padding: 0; }
.gn-list li { border-bottom: 1px dashed var(--border); }
.gn-list li:last-child { border-bottom: 0; }
.gn-list a { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px; font-size: 14px; color: var(--heading); font-weight: 600; }
.gn-list a:hover { color: var(--accent-dark); text-decoration: none; }
.gn-list a.is-current { color: var(--accent-dark); }
.gn-count { font-size: 11px; font-weight: 400; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 8px; }
/* タグ雲の折りたたみ（初期は上位10個だけ表示） */
.gn-tags-collapsible.is-collapsed a:nth-child(n+11) { display: none; }
.gn-tags-toggle { display: block; width: 100%; margin-top: 8px; font-size: 12px; color: var(--muted);
  background: none; border: 1px dashed var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.gn-tags-toggle:hover { color: var(--accent); border-color: var(--accent); }
.gn-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gn-tags a { font-size: 11px; background: #e8f5f3; color: var(--teal); border-radius: 4px; padding: 3px 8px; }
.gn-tags a:hover { background: #d8efec; text-decoration: none; }
.gn-niche a { color: var(--accent-dark); }
/* 本当にニッチなジャンル（左下） */
.gn-niche-block { background: #fdf4f7; border-color: #f0d8e2; }
.gn-women-block { background: #fbeef4; border: 1px solid #ecc5d9; }
.gn-women-block .gn-title { color: #b83b6e; }
.gn-women-block .gn-list a { border-left: 3px solid #d4537e; }
.gn-niche-lead { font-size: 11px; color: var(--muted); margin: -4px 0 10px; }
.gn-niche-tags a { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #ecc9d8; color: #99355a; }
.gn-niche-tags a:hover { background: #fbeaf0; border-color: #d4537e; }
.gn-niche-tags .gn-count { font-size: 10px; color: #b78; background: #fbeaf0; padding: 0 5px; }

/* ニッチ入り口（トップ） */
.niche-entrance { margin: 8px 0 40px; padding: 22px; background: #fff7ef; border: 1px solid #f2e2d3; border-radius: 14px; }
.niche-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.niche-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--heading); }
.niche-chip:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.niche-chip span { font-size: 11px; font-weight: 400; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 7px; }

/* ── ヒーロー ── */
.hero { background: linear-gradient(120deg, #fff7ef, #eef7f6); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 28px; }
.hero h1 { color: var(--heading); font-size: 24px; margin: 0 0 8px; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── 記事カード（同人誌） ── */
.section-title { font-size: 20px; color: var(--heading); border-left: 5px solid var(--accent); padding-left: 12px; margin: 0 0 18px; }
.genre-block { margin-bottom: 40px; }
/* 🎮 ゲーム独立枠＝大枠5ジャンルと視覚的に分ける別パネル（紫アクセント） */
.games-zone { margin: 34px 0 40px; padding: 22px 20px 6px; border-radius: 18px;
  background: linear-gradient(135deg, #f4f0fb 0%, #eef6fb 100%); border: 1px solid #e2d8f0; }
.games-zone-head { margin: 0 0 20px; }
.games-zone-title { margin: 0; font-size: 22px; color: #6a4aa8; font-weight: 800; }
.games-zone-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.games-zone .game-block { margin-bottom: 26px; }
.games-zone .game-block .section-title { font-size: 17px; color: #5a3f97; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head .section-title { margin: 0; }

/* ── ジャンル別こいろちゃん（見出しの横に立たせる） ── */
.section-head.has-mascot { align-items: flex-end; gap: 12px; }
.section-head.has-mascot .section-title { margin-right: auto; }
.genre-mascot {
  height: 118px; width: auto; flex: none; align-self: flex-end;
  margin-bottom: -18px;           /* 見出しの罫線に“立っている”ように見せる */
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .16));
  pointer-events: none; user-select: none;
}
/* 背景が絵の一部（漫画・同人）は丸く抜いてアイコン化 */
.section-head.has-mascot .genre-mascot[src*="koiro-comic"],
.section-head.has-mascot .genre-mascot[src*="koiro-doujin"] {
  border-radius: 50%; height: 84px; margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14); filter: none;
}
@media (max-width: 720px) {
  .genre-mascot { height: 84px; margin-bottom: -10px; }
  .section-head.has-mascot .genre-mascot[src*="koiro-comic"],
  .section-head.has-mascot .genre-mascot[src*="koiro-doujin"] { height: 62px; }
}
.more-link { font-size: 15px; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.more-link:hover { text-decoration: none; }
.more-link-bottom-wrap { text-align: center; margin: 16px 0 4px; }
.more-link-bottom { display: inline-block; border: 2px solid var(--accent); border-radius: 999px;
  padding: 11px 28px; font-size: 15px; font-weight: 700; background: #fff; white-space: normal; line-height: 1.3; }
.more-link-bottom:hover { background: #fff2ec; }
.archive-desc { color: var(--muted); font-size: 14px; margin: -8px 0 20px; }

/* パンくず */
.breadcrumb { font-size: 12px; color: var(--muted); margin: 0 0 18px; line-height: 1.7; }
.breadcrumb a { color: var(--accent-dark); }
.breadcrumb .sep { margin: 0 7px; color: var(--border); }

/* ランキング */
.ranking .rank-wrap { position: relative; }
.rank-badge { position: absolute; top: 8px; left: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  background: var(--heading); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.rank-badge.rank-1 { background: #e0a100; } .rank-badge.rank-2 { background: #9aa3ab; } .rank-badge.rank-3 { background: #b5713b; }

/* 関連作品 */
.related { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ── お気に入り（ブックマーク） ── */
.fav-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border2); border-radius: 999px; padding: 6px 13px; }
.fav-link:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-dark); }
.fav-link .fav-heart { color: #ccc; }
.fav-link.has-fav .fav-heart { color: var(--accent); }
.fav-link .fav-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; text-align: center; padding: 0 5px; }
.cover-wrap { position: relative; }
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); color: #d0c9bf; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center; transition: transform .1s, color .15s; }
.fav-btn:hover { transform: scale(1.12); color: var(--accent); }
.fav-btn.on { color: var(--accent); background: #fff; }
.heart-pop { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 64px; color: var(--accent);
  pointer-events: none; z-index: 5; animation: heartPop .7s ease forwards; }
@keyframes heartPop { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.4); } 30% { opacity: .95; transform: translate(-50%,-50%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%,-70%) scale(1.3); } }
.fav-cta { margin-top: 24px; text-align: center; }
.fav-btn-lg { border: 2px solid var(--accent); background: #fff; color: var(--accent-dark); font-weight: 700; font-size: 15px;
  border-radius: 10px; padding: 12px 22px; cursor: pointer; }
.fav-btn-lg.on { background: var(--accent); color: #fff; }
.fav-cta-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.fav-empty { text-align: center; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 40px 20px; }
.fav-storage-note { font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 0 0 14px; }
.fav-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.fav-clear { font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.fav-clear:hover { color: #c0392b; border-color: #c0392b; }

/* ── 一覧ツール（期間フィルタ＋ページ番号ジャンプ） ── */
.list-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid #f0e2da; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.list-tools .lt-label { font-weight: 700; font-size: 13px; color: var(--heading); }
.list-tools input[type="date"], .list-tools input[type="number"] {
  border: 1px solid #e2d4ca; border-radius: 8px; padding: 6px 10px; font-size: 14px; background: #fff; color: var(--text); }
.list-tools input[type="number"].pj-input { width: 76px; text-align: center; }
.lt-tilde, .pj-total { color: var(--muted); font-size: 13px; }
.lt-go, .pj-go { cursor: pointer; border: 0; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 13px; border-radius: 8px; padding: 7px 16px; }
.lt-go:hover, .pj-go:hover { background: var(--accent-dark, #c0472f); }
.lt-clear { font-size: 12px; color: var(--muted); text-decoration: underline; margin-left: 4px; }
.list-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.list-tools.page-jump { display: inline-flex; margin: 14px 0 0; }
.no-results { background: #fff; border: 1px solid #f0e2da; border-radius: 12px; padding: 20px; color: var(--muted); }
@media (max-width: 480px) { .list-tools { gap: 6px; } .list-toolbar { justify-content: stretch; } }

/* ── トップ絞込ボタン（選択中は時々キラッと左→右へ光沢が流れる） ── */
.kfilter { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.kfilter-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 3px solid var(--accent); background: #fff; color: var(--accent-dark, #c0472f);
  font-weight: 800; font-size: 18px; border-radius: 999px; padding: 14px 30px; line-height: 1; transition: background .12s; }
.kfilter-btn:hover { background: #fff2ec; }
.kfilter-btn .kf-ic { font-size: 20px; }
.kfilter-btn.active { background: var(--accent); color: #fff; }
.kfilter-btn.active.blink { position: relative; overflow: hidden; }
.kfilter-btn.active.blink::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.62) 50%, transparent 58%);
  transform: translateX(-120%); animation: kfshine 3.4s ease-in-out infinite; }
@keyframes kfshine { 0%, 62% { transform: translateX(-120%); } 84%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .kfilter-btn.active.blink::after { animation: none; opacity: 0; } }
@media (max-width: 480px) { .kfilter-btn { flex: 1 1 auto; justify-content: center; padding: 13px 14px; font-size: 16px; } }

/* ── ヒーロー刷新（ブランド＋吹き出し＋今日のおすすめ1本） ── */
.hero-v2 { margin: 8px 0 26px; padding: 22px; border-radius: 16px;
  background: linear-gradient(135deg, #fff6f1 0%, #fdeef0 60%, #eef9f5 100%); border: 1px solid #f2d9ce; }
.hv-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.koiro-mascot { flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(231,111,81,.18)); }
/* こいろちゃん本体（実写）はブランドカラーのリングを巻いて丸く */
.koiro-brand-img {
  border-radius: 50%; object-fit: cover; object-position: top center;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 3px 12px rgba(231, 111, 81, .3); filter: none;
}
.hv-copy { min-width: 0; flex: 1; }
.hv-copy h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.3; color: var(--accent-dark, #c0472f); font-weight: 800; }
.hv-copy h1 span { color: var(--heading); font-size: 16px; font-weight: 700; }
/* あなたへのおすすめ2本（閲覧・保存履歴で中身が変わる） */
.hv-picks { position: relative; padding-top: 11px; }
.hv-picks-label { position: absolute; top: 0; left: 12px; z-index: 1; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.hv-picks-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hv-pick { display: inline-flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid #f0e2da;
  border-radius: 14px; padding: 14px 12px 12px; margin-top: 0; flex: 1 1 280px; max-width: 100%; position: relative; }
.hv-pick:hover { box-shadow: 0 6px 18px rgba(231,111,81,.16); text-decoration: none; transform: translateY(-1px); }
.hv-pick-cover { flex: 0 0 auto; }
.hv-pick-cover img { width: 62px; height: 88px; object-fit: cover; border-radius: 6px; display: block; }
.hv-pick-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hv-pick-title { font-size: 13px; font-weight: 700; color: var(--heading); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv-pick-stars { font-size: 12px; color: #f4a300; }
.hv-pick-stars em { color: var(--text); font-style: normal; font-weight: 700; }
.hv-pick-cta { font-size: 12px; font-weight: 700; color: var(--accent); }
@media (max-width: 860px) {
  .hero-v2 { grid-template-columns: 1fr; }
  .hv-pick { width: 100%; }
}
@media (max-width: 480px) {
  .hv-brand { flex-direction: column; text-align: center; }
  .hv-copy h1 { font-size: 22px; }
}

/* ── 🔥 今日のFANZA売れ筋（ジャンル別TOP5・毎日入れ替わり） ── */
.bestseller-block { margin: 22px 0 30px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.bs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.bs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bs-item a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); }
.bs-item a:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(231,111,81,.14); text-decoration: none; }
.bs-rank { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #b7a99f; color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bs-item.hot .bs-rank { background: var(--accent); }
.bs-thumb { flex: 0 0 auto; }
.bs-thumb img { width: 34px; height: 48px; object-fit: cover; border-radius: 4px; display: block; }
.bs-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bs-title { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--heading);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-stars { font-size: 10px; }

/* ── 🔥 注目度上昇キーワード（FANZA検索ランキング） ── */
.trending-block { margin: 22px 0 30px; padding: 20px; border-radius: 16px;
  background: linear-gradient(135deg, #fff5f0 0%, #fef0f4 55%, #f0faf7 100%); border: 1px solid #f4d8cd; }
.trend-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.trend-head .section-title { margin: 0; }
.trend-sub { font-size: 12px; color: var(--muted); }
.trend-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trend-col { background: var(--card); border: 1px solid #f0e2da; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.trend-col-head { font-weight: 800; color: var(--heading); font-size: 15px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 2px solid #f4d8cd; }
.trend-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.trend-item a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; color: var(--text); }
.trend-item a:hover { background: #fff2ec; text-decoration: none; }
.trend-rank { flex: 0 0 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 6px;
  font-weight: 800; font-size: 13px; color: #fff; background: #c9b8ad; }
.trend-item.hot .trend-rank { background: linear-gradient(135deg, #ff7a45, #e7365a); box-shadow: 0 2px 6px rgba(231,54,90,.3); }
.trend-word { font-size: 14px; font-weight: 600; }
.trend-item.hot .trend-word { color: var(--accent-dark, #c0472f); }
.trend-more { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--accent); }
@media (max-width: 900px) { .trend-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trend-cols { grid-template-columns: 1fr; } }

/* ── 特集カード（トップ導線） ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.feature-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff, #fff6f2);
  border: 1px solid #f0d9cf; border-radius: 12px; padding: 16px; transition: transform .12s, box-shadow .12s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(231,111,81,.16); text-decoration: none; }
.fc-ic { font-size: 26px; flex: 0 0 auto; }
.fc-title { font-weight: 700; color: var(--heading); font-size: 14px; line-height: 1.4; }

/* ── まとめ記事 ランキングリスト ── */
.rank-list { margin: 20px 0; }
.rank-item { display: grid; grid-template-columns: 44px 120px 1fr; gap: 14px; align-items: start;
  background: var(--card); border: 1px solid var(--line, #eee); border-radius: 12px; padding: 14px; margin: 0 0 14px; }
.ri-num { font-weight: 800; color: var(--accent); font-size: 17px; text-align: center; padding-top: 4px; }
.rank-item:nth-child(2) .ri-num { color: #d9a300; } /* 1位 金 */
.rank-item:nth-child(3) .ri-num { color: #9aa3ad; } /* 2位 銀 */
.rank-item:nth-child(4) .ri-num { color: #c08457; } /* 3位 銅 */
.ri-thumb img { width: 100%; border-radius: 8px; display: block; }
.ri-body h3 { margin: 0 0 6px; font-size: 16px; color: var(--heading); line-height: 1.4; }
.ri-stars { color: #f4a300; font-size: 14px; margin: 0 0 6px; }
.ri-body p { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.ri-buy { display: inline-block; background: var(--accent); color: #fff !important; font-weight: 700;
  font-size: 13px; border-radius: 8px; padding: 8px 16px; }
.ri-buy:hover { background: var(--accent-dark); text-decoration: none; }
@media (max-width: 560px) { .rank-item { grid-template-columns: 32px 84px 1fr; gap: 10px; } }

/* ── 試し読み（書籍系）── */
.tachiyomi-block { margin: 22px 0; }
.tachiyomi-block h2 { color: var(--heading); font-size: 19px; border-left: 5px solid var(--accent); padding-left: 12px; margin: 0 0 12px; }
/* 試し読みボタン＝FANZAへの送客＝収益の起点なので、一番目立つCTA色にする。
   ハードな点滅は使わない（広告に見えて逆にクリックされない／読んでいる最中に不快）。
   代わりに「ゆっくり脈打つ光」＋「たまに光が走る」で視線だけ集める。 */
.tachiyomi-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #ff7a4d 0%, #e8447f 100%);
  color: #fff !important; font-weight: 800; font-size: 16.5px; letter-spacing: .02em;
  border-radius: 12px; padding: 16px 30px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(232, 68, 127, .34);
  animation: tachiPulse 2.4s ease-in-out infinite;
}
/* 脈打つ光（0.5秒より速くしない＝チカチカさせない） */
@keyframes tachiPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(232, 68, 127, .34), 0 0 0 0 rgba(232, 68, 127, .42); }
  50%      { box-shadow: 0 4px 18px rgba(232, 68, 127, .46), 0 0 0 9px rgba(232, 68, 127, 0); }
}
.tachiyomi-btn:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-1px); }
.tachiyomi-btn:active { transform: translateY(1px); }
@media (max-width: 480px) {
  .tachiyomi-btn { display: flex; width: 100%; font-size: 16px; padding: 17px 20px; }
}
/* 動きを減らす設定の人には静止した状態で出す（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  .tachiyomi-btn { animation: none; }
}

/* ── 📖 立ち読みコーナー（サイドバー・/tachiyomi/ LPへの導線）── */
.lp-corner-note { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.lp-card { display: block; text-decoration: none; color: inherit; border: 1px solid #f0e2da; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #fff; transition: box-shadow .2s, transform .2s; }
.lp-card:hover { box-shadow: 0 6px 18px rgba(232, 68, 127, .18); transform: translateY(-2px); text-decoration: none; }
.lp-thumb { position: relative; display: block; }
.lp-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; display: block; }
.lp-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #ff7a4d, #e8447f); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.lp-title { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.45; padding: 8px 10px 2px; }
.lp-go { display: block; font-size: 12px; font-weight: 800; color: #e8447f; padding: 0 10px 9px; }

/* ── データ出典の注記 ── */
.source-note { margin: 18px 0 0; padding: 12px 14px; background: #fbf6f2; border: 1px solid #f0e2da;
  border-radius: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ── サンプル動画 ── */
.sample-movie { margin: 22px 0; }
.sample-movie h2 { color: var(--heading); font-size: 19px; border-left: 5px solid var(--accent); padding-left: 12px; margin: 0 0 12px; }
.sm-embed { position: relative; width: 100%; max-width: 720px; aspect-ratio: 3 / 2; background: #000; border-radius: 8px; overflow: hidden; }
.sm-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── サンプル画像 ── */
.sample-gallery { margin: 22px 0; }
.sample-gallery h2 { color: var(--heading); font-size: 19px; border-left: 5px solid var(--teal); padding-left: 12px; margin: 0 0 12px; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sg-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; aspect-ratio: 4/3; }
.sg-note { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.sg-item { cursor: zoom-in; }

/* ── ライトボックス（全画面表示） ── */
.lb-overlay { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); }
.lb-overlay.on { display: flex; }
.lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 6px 30px rgba(0,0,0,.6); }
.lb-close { position: fixed; top: 16px; right: 20px; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: #222; border: none; font-size: 34px; line-height: 1; cursor: pointer; z-index: 10001;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.lb-close:hover { background: var(--accent); color: #fff; transform: scale(1.06); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: #fff; border: none; font-size: 34px; cursor: pointer; z-index: 10001; }
.lb-nav:hover { background: rgba(255,255,255,.45); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px;
  background: rgba(0,0,0,.5); border-radius: 999px; padding: 5px 16px; z-index: 10001; }
.lb-buy { position: fixed; bottom: 54px; left: 50%; transform: translateX(-50%); z-index: 10001;
  background: var(--accent); color: #fff !important; font-weight: 700; font-size: 14px; border-radius: 10px; padding: 10px 22px; white-space: nowrap; }
.lb-buy:hover { background: var(--accent-dark); text-decoration: none; }
@media (max-width: 600px) { .lb-close { top: 10px; right: 12px; width: 46px; height: 46px; font-size: 30px; } .lb-nav { width: 44px; height: 44px; } }

/* ── 管理人レビュー（手書きのみ） ── */
.my-review { margin-top: 26px; background: #fff7ef; border: 1px solid #f2e2d3; border-radius: 12px; padding: 18px 20px; }
.my-review h2 { color: var(--accent-dark); font-size: 19px; margin: 0 0 6px; }
.my-review .mr-stars { color: #f4a340; font-size: 18px; letter-spacing: 2px; margin-bottom: 8px; }
.my-review .mr-body { font-size: 15px; color: var(--text); line-height: 1.85; }
.my-review .mr-body p { margin: 0 0 10px; }

/* ── こんな人におすすめ ── */
.osusume-box { margin-top: 24px; background: #eef7f6; border: 1px solid #d3ece9; border-radius: 12px; padding: 16px 20px; }
.osusume-box h2 { color: var(--teal); font-size: 17px; margin: 0 0 8px; }
.osusume-box ul { margin: 0; padding-left: 20px; }
.osusume-box li { color: var(--heading); margin: 4px 0; }

/* ── PR・おすすめカード（旧・広告プレースホルダ置換） ── */
.pr-card { display: flex; gap: 10px; align-items: flex-start; }
.pr-tag { position: absolute; }
.widget .pr-card .pr-tag { position: static; font-size: 10px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 4px; padding: 1px 7px; margin-bottom: 6px; display: inline-block; }
.pr-card { flex-wrap: wrap; }
.pr-thumb { flex: 0 0 82px; }
.pr-thumb img { width: 82px; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; }
.pr-body { flex: 1; min-width: 120px; }
.pr-title { display: block; font-size: 12.5px; font-weight: 600; color: var(--heading); line-height: 1.4; }
.pr-rating { margin: 4px 0; font-size: 12px; }
.pr-buy { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #fff !important; background: var(--accent); border-radius: 7px; padding: 5px 12px; }
.pr-buy:hover { background: var(--accent-dark); text-decoration: none; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.doujin-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.doujin-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.10); }
.doujin-card a.cover-link { display: block; }
.doujin-card .cover { aspect-ratio: 3 / 4; background: #f0ece4; overflow: hidden; }
.doujin-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doujin-card .body { padding: 12px 14px 14px; }
.doujin-card h2 { font-size: 15px; line-height: 1.5; margin: 0 0 6px; }
.doujin-card h2 a { color: var(--heading); }
.doujin-card .circle { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.badge-new { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 7px; margin-right: 6px; vertical-align: 2px; }
/* グッズ: カード左上の「種類」バッジ */
.goods-type-badge { position: absolute; top: 8px; left: 8px; z-index: 3; background: rgba(31,58,77,.82); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 999px; letter-spacing: .02em; backdrop-filter: saturate(1.2) blur(1px); pointer-events: none; }
/* グッズ: アーカイブ上部の種類チップ（横スクロール1行） */
.goods-chip-bar { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding: 4px 2px 10px; margin: 4px 0 6px; }
.goods-chip-bar::-webkit-scrollbar { height: 6px; }
.goods-chip-bar::-webkit-scrollbar-thumb { background: var(--border, #e7e2d9); border-radius: 999px; }
.gchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--heading, #1f3a4d); background: #fff; border: 1.5px solid var(--border, #e7e2d9); border-radius: 999px; padding: 8px 14px; line-height: 1; min-height: 20px; white-space: nowrap; transition: border-color .12s, background .12s, transform .12s; }
.gchip:hover { border-color: var(--accent, #e76f51); transform: translateY(-1px); }
.gchip.is-cur { background: var(--accent, #e76f51); border-color: var(--accent, #e76f51); color: #fff; }
.gchip-c { font-size: 11px; font-weight: 800; color: var(--accent, #e76f51); }
.gchip.is-cur .gchip-c { color: #fff; }
/* --- CV導線・ランキング強調（B） --- */
.hv-pick-cta { display: inline-block; align-self: flex-start; margin-top: 2px; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent, #e76f51); padding: 5px 13px; border-radius: 999px; letter-spacing: .01em; transition: filter .12s, transform .12s; }
.hv-pick:hover .hv-pick-cta { filter: brightness(1.07); transform: translateX(2px); }
.rank-badge.rank-1, .rank-badge.rank-2, .rank-badge.rank-3 { box-shadow: 0 2px 8px rgba(0,0,0,.30); }
.rank-badge.rank-1 { width: 34px; height: 34px; font-size: 16px; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(224,161,0,.55); }
/* --- モバイル最適化（C） --- */
@media (max-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gchip { padding: 11px 15px; }
}
@media (max-width: 600px) {
  .goods-header .global-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .goods-header .global-nav ul::-webkit-scrollbar { display: none; }
  .goods-header .global-nav a { white-space: nowrap; flex: 0 0 auto; }
}
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-list a { font-size: 11px; background: #e8f5f3; color: var(--teal); border-radius: 4px; padding: 2px 8px; }
.tag-list a:hover { text-decoration: none; background: #d8efec; }
.card-date { font-size: 11px; color: var(--muted); margin-top: 8px; }
.stars { color: #f4a340; letter-spacing: 1px; }
.card-rating { font-size: 12px; margin: 0 0 8px; color: var(--heading); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.card-rating .rc { color: var(--muted); font-size: 11px; }
/* 星はFANZAの評価＝こいろの採点ではないことを示す小さな出典バッジ */
.card-rating .rate-src {
  flex: none; font-size: 9px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: #f2efe9; border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 4px; line-height: 1.5;
}

/* ── 記事ページ ── */
.single-article { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.single-article .entry-header h1 { color: var(--heading); font-size: 26px; line-height: 1.5; margin: 0 0 10px; }
.entry-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.doujin-info { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 640px) { .doujin-info { grid-template-columns: 1fr; } }
.doujin-info .cover img { width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.info-table th { color: var(--muted); font-weight: 600; width: 7em; white-space: nowrap; }
.info-table td a { color: var(--accent); font-weight: 600; }
.info-table td a:hover { text-decoration: underline; }
.card .body .circle a, .doujin-card .circle a { color: var(--muted); }
.doujin-card .circle a:hover { color: var(--accent); text-decoration: underline; }
.buy-button {
  display: block; margin-top: 16px; background: var(--accent); color: #fff !important;
  text-align: center; font-weight: 700; border-radius: 10px; padding: 13px 18px; font-size: 15px;
}
.buy-button:hover { background: var(--accent-dark); text-decoration: none; }
.buy-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }

.entry-content { font-size: 16px; }
.entry-content h2 { color: var(--heading); font-size: 20px; border-left: 5px solid var(--teal); padding-left: 12px; margin: 32px 0 12px; }
.entry-content h3 { color: var(--heading); font-size: 17px; margin: 26px 0 10px; }
.entry-content blockquote { border-left: 4px solid var(--border); margin: 16px 0; padding: 4px 16px; color: var(--muted); background: var(--bg); border-radius: 0; }
.entry-content img { border-radius: 10px; }

.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 13px; }

/* ── サイドバー ── */
.sidebar .widget { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 18px; box-shadow: var(--shadow); }
.sidebar .widget-title { font-size: 14px; color: var(--heading); border-left: 4px solid var(--accent); padding-left: 10px; margin: 0 0 12px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px dashed var(--border); padding: 7px 0; font-size: 13px; }
.sidebar li:last-child { border-bottom: 0; }
.ad-slot { border: 2px dashed var(--border); border-radius: 10px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; background: var(--bg); }
.ad-slot .pr { font-size: 10px; letter-spacing: .1em; }

/* 右上・大枠ジャンル（大きな枠） */
.big-genre-widget { border: 2px solid var(--accent); }
.big-genres { display: flex; flex-direction: column; gap: 10px; }
.bg-tile { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--border); border-left: 6px solid var(--acc); transition: transform .12s, box-shadow .12s; }
.bg-tile:hover { transform: translateX(3px); box-shadow: 0 3px 10px rgba(0,0,0,.10); text-decoration: none; border-color: var(--acc); }
.bg-emoji { font-size: 26px; line-height: 1; }
.bg-name { flex: 1; font-size: 16px; font-weight: 700; color: var(--heading); line-height: 1.2; }
.bg-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.bg-arrow { color: var(--acc); font-weight: 700; font-size: 18px; }

/* ── フッター ── */
.site-footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 20px; }
.site-footer .inner { padding: 26px 0; font-size: 12px; color: var(--muted); text-align: center; }
.site-footer a { color: var(--muted); margin: 0 8px; }
.api-credit { margin-top: 10px; font-size: 12px; color: var(--muted); }
.api-credit a { margin: 0; }

/* ── 年齢認証ゲート ── */
.age-gate { position: fixed; inset: 0; background: rgba(31, 41, 51, .96); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.age-gate .panel { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 34px 30px; text-align: center; }
.age-gate h2 { color: var(--heading); font-size: 20px; margin: 0 0 10px; }
.age-gate p { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.age-gate .buttons { display: flex; gap: 12px; }
.age-gate button { flex: 1; border: 0; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; }
.age-gate .yes { background: var(--accent); color: #fff; }
.age-gate .yes:hover { background: var(--accent-dark); }
.age-gate .no { background: #eee; color: #555; }

/* ── ページネーション ── */
.pagination { margin-top: 26px; text-align: center; }
.pagination .page-numbers { display: inline-block; min-width: 36px; padding: 7px 10px; margin: 0 3px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--heading); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── 📖 立ち読み一覧への導線（サイドバー下の「一覧を見る」ボタン）── */
.lp-all-link { display: block; padding: 12px 14px; border: 2px solid #e8447f; border-radius: 10px; color: #e8447f; background: #fff7fb; font-size: 13px; font-weight: 900; text-align: center; text-decoration: none; transition: color .2s, background .2s, transform .2s; }
.lp-all-link:hover, .lp-all-link:focus-visible { color: #fff; background: #e8447f; text-decoration: none; transform: translateY(-1px); outline: none; }
@media (max-width: 600px) { .lp-all-link { min-height: 44px; display: flex; align-items: center; justify-content: center; } }

/* ── 📖 トップの立ち読みまとめセクション（サイドバーと同じカードをグリッドで並べる）── */
.lp-section-note { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.lp-grid .lp-card { margin-bottom: 0; height: 100%; display: flex; flex-direction: column; }
.lp-grid .lp-go { margin-top: auto; }
.lp-section-all { max-width: 420px; margin: 20px auto 0; }
@media (max-width: 600px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-grid .lp-title { font-size: 12px; padding: 7px 8px 2px; }
  .lp-grid .lp-go { font-size: 11px; padding: 0 8px 8px; }
}

/* ヘッダー右上の立ち読み導線（お気に入りの隣・こちらは色付きで目立たせる） */
.lp-nav-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700;
  color: #b92f63; background: #fff2f7; border: 1px solid #f3c3d7; border-radius: 999px; padding: 6px 13px; }
.lp-nav-link:hover, .lp-nav-link:focus-visible { text-decoration: none; color: #fff; background: #e8447f; border-color: #e8447f; }
.lp-nav-link .lp-nav-count { background: #e8447f; color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; text-align: center; padding: 0 5px; }
.lp-nav-link:hover .lp-nav-count, .lp-nav-link:focus-visible .lp-nav-count { background: #fff; color: #e8447f; }

/* 立ち読みカード：候補は多めに出し表示は先頭12件だけ。JSが未読を前に並べ替えるので未読が優先で出る */
.lp-grid .lp-card:nth-child(n+13) { display: none; }
/* 既読は薄く。並べ替え前に一瞬だけ出ても違和感がないよう控えめに */
.lp-card.is-read { opacity: .6; }
.lp-card.is-read .lp-thumb img { filter: grayscale(.35); }
.lp-card.is-read .lp-go::before { content: 'もう一度 '; }
