/* 同人・コミック セール厳選ラボ - スマホ最優先・高CVRダークテーマ */
:root {
  --bg: #0d1017;
  --bg-elev: #161b26;
  --bg-card: #1b2230;
  --bg-card-hover: #222b3d;
  --border: #2a3447;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #ff3366;
  --accent-hover: #ff1f57;
  --accent-2: #ff7a18;
  --gold: #fbbf24;
  --green: #10b981;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

/* PR & 18+ トップバー */
.top-notice {
  background: #080a0f;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 5px 12px;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 16, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.header-fav-pill {
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 5px 11px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.header-fav-pill:hover {
  background: rgba(251, 191, 36, 0.22);
}

@media (min-width: 1024px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .header-brand-row {
    display: contents;
  }
  .brand {
    order: 1;
    flex-shrink: 0;
    font-size: 16.5px;
    gap: 8px;
  }
  .nav-links {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
  }
  .nav-link {
    font-size: 11.5px;
    padding: 5px 7px;
  }
  .header-fav-pill {
    order: 3;
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 10px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 122, 24, 0.45);
  box-shadow: 0 2px 10px rgba(255, 51, 102, 0.25);
  flex-shrink: 0;
}

.brand-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--bg-card);
  border-color: var(--border);
}

.nav-link.hot {
  color: #ffd1dc;
  background: rgba(255, 51, 102, 0.16);
  border-color: rgba(255, 51, 102, 0.4);
}

/* ヒーロー */
.hero {
  background: radial-gradient(circle at 20% 20%, rgba(255, 51, 102, 0.18), transparent 55%),
              radial-gradient(circle at 80% 30%, rgba(255, 122, 24, 0.14), transparent 50%),
              var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(21px, 4vw, 30px);
  line-height: 1.3;
  font-weight: 800;
}

.hero p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text);
}
.stat-pill strong {
  color: var(--gold);
}

.quick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.12s, border-color 0.12s;
}

.quick-tab:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.quick-tab.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}

/* セクション */
.section {
  padding: 28px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-more {
  font-size: 13px;
  font-weight: 700;
  color: #ff7a9b;
}

/* フィルタ・検索バー */
.filter-bar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.search-input {
  flex: 1 1 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.select-input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
}

.chip-btn {
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s;
}

.chip-btn.active,
.chip-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.result-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-body {
    padding: 10px;
  }
  .card-actions .btn-sm {
    padding: 7px 4px;
    font-size: 11px;
    white-space: nowrap;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #475569;
  background: var(--bg-card-hover);
}

.card-thumb-box {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #090b10;
  overflow: hidden;
}

.card-thumb-wrap {
  display: block;
  width: 100%;
  height: 100%;
}

.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(13, 16, 23, 0.78);
  color: #f1f5f9;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.card-fav-btn:hover {
  transform: scale(1.08);
  border-color: var(--gold);
}

.fav-btn.is-fav {
  background: rgba(251, 191, 36, 0.22);
  border-color: var(--gold);
  color: var(--gold);
}

.detail-sub-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-fav-btn,
.btn-x-share {
  flex: 1 1 160px;
  padding: 10px 14px;
  font-size: 13px;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ff1f57, #ff6b00);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.badge-cat {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(13, 16, 23, 0.85);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-sample {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rating {
  color: var(--gold);
  font-weight: 800;
}

.price-row {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 17px;
  font-weight: 900;
  color: #ff6b8b;
}

.price-list {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s, transform 0.12s;
}
.btn:hover { opacity: 0.92; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 12.5px;
}

.btn-dlsite {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 10px 14px;
  font-size: 13px;
}

.btn-dlsite:hover {
  opacity: 0.94;
}

.btn-dlsite-outline {
  width: 100%;
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 11px 14px;
  font-size: 13.5px;
}

.btn-dlsite-outline:hover {
  background: rgba(14, 165, 233, 0.22);
  color: #fff;
}

.btn-sm {
  flex: 1;
  padding: 7px 8px;
  font-size: 11.5px;
}

.btn-lg {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
}

/* 比較テーブル（SEO特集ページ） */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* 作品詳細ページ */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  padding: 14px 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

@media (max-width: 820px) {
  .detail-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

.detail-cover {
  width: 100%;
  border-radius: 10px;
  background: #090b10;
}

.detail-title {
  margin: 6px 0 10px;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.35;
}

.detail-price-box {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.35);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

.detail-price-main {
  font-size: 28px;
  font-weight: 900;
  color: #ff6b8b;
}

.save-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: #cbd5e1;
}
.tag:hover {
  border-color: var(--accent);
  color: #fff;
}

/* AI見どころボックス */
.review-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.review-box h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.review-catch {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 10px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.check-list li {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

/* サンプル画像ギャラリー */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.sample-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: #090b10;
  aspect-ratio: 4 / 3;
}

.sample-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.sample-item:hover img {
  transform: scale(1.04);
}

/* バナー */
.promo-banner {
  background: linear-gradient(135deg, #1f1428, #2d1423);
  border: 1px solid rgba(255, 51, 102, 0.45);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.promo-banner.dlsite-callout {
  background: linear-gradient(135deg, #0d1b2e, #12263f);
  border-color: rgba(56, 189, 248, 0.42);
}

/* スマホ下部固定CTA */
.sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  .has-sticky-cta {
    padding-bottom: 76px;
  }
  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: rgba(13, 16, 23, 0.96);
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    backdrop-filter: blur(8px);
  }
}

/* ライトボックス */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: 8px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* 18歳以上確認モーダル */
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 7, 11, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.age-modal.open { display: flex; }
.age-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.age-modal-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 122, 24, 0.45);
  box-shadow: 0 6px 18px rgba(255, 51, 102, 0.25);
}

.age-modal-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.age-modal-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.age-actions {
  display: flex;
  gap: 10px;
}

/* フッター */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #080a0f;
  padding: 28px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}
.footer-links a:hover { color: #fff; }

/* FAQアコーディオン（JS不要・CSP準拠） */
.badge-lowest {
  display: inline-block;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.badge-timing {
  display: inline-block;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.55);
  color: #fdba74;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.badge-drop {
  display: inline-block;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.52);
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.col-title {
  min-width: 190px;
}

.scroll-hint {
  display: none;
}

@media (max-width: 768px) {
  .scroll-hint {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0 0 6px;
    text-align: right;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 13.5px;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  line-height: 1.7;
}

/* 30秒おすすめ診断（今夜の1冊ファインダー） */
.finder-box {
  background: var(--bg-elev);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: var(--radius);
  margin: 14px 0 8px;
  overflow: hidden;
}

.finder-summary {
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffd1dc;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.finder-summary::-webkit-details-marker { display: none; }
.finder-summary::after {
  content: "開く ▾";
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.finder-box[open] .finder-summary::after { content: "閉じる ▴"; }

.finder-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.finder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  align-items: flex-end;
}

.finder-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex: 1 1 150px;
}

.finder-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.finder-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.finder-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.finder-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.4;
}

.finder-card-meta {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

/* 初回お得ガイド 3ルートグリッド */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ジャンル・サークル索引グリッド */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dir-grid {
    grid-template-columns: 1fr;
  }
}

.dir-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dir-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dir-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  word-break: break-word;
  line-height: 1.35;
}

.dir-card-title:hover {
  color: #ff7a9b;
  text-decoration: underline;
}

.dir-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dir-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dir-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.dir-badge.hot {
  background: rgba(255, 51, 102, 0.18);
  border: 1px solid rgba(255, 51, 102, 0.45);
  color: #ffd1dc;
}

.dir-badge.gold {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--gold);
}

.dir-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.dir-sublink {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.dir-sublink:hover {
  border-color: var(--accent);
  color: #fff;
}

.dir-subtag {
  font-size: 11px;
  color: var(--text-muted);
}

/* 全作品アーカイブ一覧・ページネーション */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.archive-row:hover {
  border-color: #475569;
  background: var(--bg-card-hover);
}

.archive-main {
  min-width: 0;
  flex: 1 1 auto;
}

.archive-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
  word-break: break-word;
}

.archive-title:hover {
  color: #ff7a9b;
  text-decoration: underline;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.archive-status-old {
  font-size: 10.5px;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 4px;
  padding: 1px 6px;
}

.archive-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.archive-price {
  color: #ff6b8b;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.page-btn:hover,
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .archive-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .archive-side {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ブログランキング応援導線ボックス（CSP準拠・純CSS） */
.ranking-support-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(255, 122, 24, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ranking-support-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 260px;
}

.ranking-support-text strong {
  font-size: 14.5px;
  color: var(--gold);
}

.ranking-support-text span {
  font-size: 12.5px;
  color: #cbd5e1;
}

.ranking-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-ranking {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.5);
  padding: 9px 14px;
  font-size: 12.5px;
}

.btn-ranking:hover {
  background: rgba(251, 191, 36, 0.28);
  color: #fff;
}

@media (max-width: 600px) {
  .ranking-support-actions {
    width: 100%;
  }
  .btn-ranking {
    flex: 1 1 100%;
  }
}
