/*
Theme Name: Ero-Repo Theme
Theme URI: https://ero-repo.fun
Description: カスタムテーマ for ero-repo.fun
Author: ero-repo
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --brand-pink:        #e84393;
  --brand-pink-hi:     #ff5fa8;
  --brand-pink-lo:     #b8326f;
  --brand-pink-soft:   #ffb3d4;
  --brand-pink-glow:   rgba(232, 67, 147, 0.30);
  --brand-magenta:     #ff2d87;
  --brand-purple:      #6c5ce7;
  --brand-blue:        #4dabf7;
  --bg-0:              #15152a;
  --bg-1:              #1a1a2e;
  --bg-2:              #22223d;
  --bg-3:              #2b2b4a;
  --bg-4:              #363657;
  --bg-inset:          #0f0f1f;
  --bg-overlay:        rgba(8, 8, 22, 0.78);
  --fg-1:              #f5f5fa;
  --fg-2:              #b8b8cf;
  --fg-3:              #7b7b99;
  --fg-4:              #4e4e6e;
  --fg-on-pink:        #ffffff;
  --stroke-1:          rgba(255, 255, 255, 0.06);
  --stroke-2:          rgba(255, 255, 255, 0.12);
  --stroke-pink:       rgba(232, 67, 147, 0.45);
  --rating-gold:       #ffc93c;
  --grad-cta:          linear-gradient(180deg, #ff4d99 0%, #e84393 100%);
  --r-xs: 3px; --r-sm: 5px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --font-sans:   "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-mono:   "JetBrains Mono", ui-monospace, monospace;
  --content-max: 1200px;
  --header-h:    64px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-pink); text-decoration: none; transition: color 120ms; }
a:hover { color: var(--brand-pink-hi); }
h1,h2,h3,h4,h5,h6 { margin: 0; font-family: var(--font-sans); color: var(--fg-1); }
p { margin: 0 0 12px; color: var(--fg-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f0f1f; }
::-webkit-scrollbar-thumb { background: #363657; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #4e4e6e; }
::selection { background: var(--brand-pink); color: #fff; }

/* ===== HEADER ===== */
.er-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21,21,42,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke-1);
}
.er-header-bar {
  height: var(--header-h);
  max-width: var(--content-max); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.er-logo { display: flex; align-items: center; flex-shrink: 0; gap: 10px; text-decoration: none; }
.er-logo-icon { font-size: 22px; line-height: 1; }
.er-logo-text {
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--fg-1); white-space: nowrap;
}
.er-nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.er-nav-item {
  font-size: 13px; font-weight: 600;
  color: var(--fg-2);
  padding: 22px 10px;
  border-bottom: 2px solid transparent;
  transition: color 120ms, border-color 120ms;
  text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.er-nav-item:hover { color: var(--fg-1); }
.er-nav-item.is-active,
.er-nav-item.current-menu-item { color: var(--fg-1); border-bottom-color: var(--brand-pink); }
.er-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.er-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-inset);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-md);
  padding: 8px 12px; width: 220px;
  transition: border-color 120ms;
}
.er-search:focus-within { border-color: var(--stroke-pink); }
.er-search input {
  background: transparent; border: 0; outline: none;
  color: var(--fg-1); font-size: 13px;
  width: 100%; font-family: inherit;
}
.er-r18 {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--brand-magenta);
  border: 1px solid var(--brand-magenta);
  padding: 3px 7px; border-radius: var(--r-xs);
  background: rgba(255,45,135,0.08);
  flex-shrink: 0;
}
.er-cta-fanza {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: #fff; text-decoration: none;
  background: var(--grad-cta);
  padding: 9px 14px; border-radius: 6px;
  box-shadow: 0 4px 16px var(--brand-pink-glow);
  border: 1px solid var(--stroke-pink);
  white-space: nowrap;
  transition: transform 120ms, box-shadow 120ms;
}
.er-cta-fanza:hover { box-shadow: 0 6px 22px rgba(232,67,147,0.42); transform: translateY(-1px); color: #fff; }
.er-burger {
  display: none; background: transparent; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 4px;
}
.er-burger span { display: block; width: 20px; height: 2px; background: var(--fg-1); border-radius: 2px; }
.er-nav-mobile {
  display: none; flex-direction: column;
  background: var(--bg-1);
  border-top: 1px solid var(--stroke-1);
  padding: 8px 0;
}
.er-nav-mobile a {
  padding: 14px 24px; font-size: 14px; font-weight: 600;
  color: var(--fg-2); text-decoration: none;
  border-left: 2px solid transparent;
}
.er-nav-mobile a:hover { color: var(--fg-1); }
.er-nav-mobile a.is-active { color: var(--fg-1); border-left-color: var(--brand-pink); }

/* ===== RIBBON ===== */
.er-ribbon { border-top: 1px solid var(--stroke-1); background: var(--bg-0); }
.er-ribbon-inner {
  max-width: var(--content-max); margin: 0 auto;
  padding: 10px 24px;
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.er-ribbon-inner::-webkit-scrollbar { display: none; }
.er-chip {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 600;
  color: var(--fg-2);
  background: var(--bg-2);
  border: 1px solid var(--stroke-1);
  padding: 6px 12px; border-radius: var(--r-pill);
  white-space: nowrap; text-decoration: none;
  transition: all 120ms;
}
.er-chip:hover { background: var(--bg-3); color: var(--fg-1); }
.er-chip.is-active {
  background: var(--grad-cta); color: #fff;
  border-color: var(--stroke-pink);
  box-shadow: 0 4px 16px var(--brand-pink-glow);
}

/* ===== HERO ===== */
.er-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--stroke-1);
}
.er-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 85% 40%, rgba(232,67,147,0.18), transparent 70%),
              linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.er-hero-inner {
  position: relative;
  max-width: var(--content-max); margin: 0 auto;
  padding: 48px 24px 56px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 48px; align-items: center;
}
.er-hero-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-pink); margin-bottom: 16px;
}
.er-hero-title {
  font-size: 42px; line-height: 1.15; font-weight: 900;
  letter-spacing: -0.02em; margin: 0 0 10px; color: var(--fg-1);
}
.er-hero-author { font-size: 13px; color: var(--fg-2); margin-bottom: 20px; }
.er-hero-lede {
  font-size: 16px; line-height: 1.7; color: var(--fg-2);
  margin: 0 0 20px; max-width: 560px;
}
.er-hero-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.er-hero-stars { color: var(--rating-gold); font-size: 15px; letter-spacing: 2px; }
.er-hero-rating { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--fg-1); }
.er-hero-dot { color: var(--fg-4); }
.er-hero-meta-text { font-size: 12px; color: var(--fg-3); }
.er-hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.er-hero-tag {
  font-size: 11px; font-weight: 600; color: var(--fg-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke-1);
  padding: 4px 9px; border-radius: var(--r-pill);
}
.er-hero-cta-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.er-hero-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad-cta); color: #fff; font-weight: 700; font-size: 14px;
  padding: 14px 22px; border-radius: var(--r-md); text-decoration: none;
  box-shadow: 0 8px 28px rgba(232,67,147,0.36);
  border: 1px solid var(--stroke-pink); transition: transform 120ms;
}
.er-hero-cta-primary:hover { transform: translateY(-2px); color: #fff; }
.er-hero-cta-secondary {
  color: var(--fg-1); font-weight: 600; font-size: 14px;
  padding: 14px 18px; text-decoration: none;
  border: 1px solid var(--stroke-2); border-radius: var(--r-md);
}
.er-hero-affiliate { font-size: 11px; color: var(--fg-4); }
.er-hero-cover-wrap {
  position: relative; width: 100%; max-width: 300px;
  aspect-ratio: 2/3; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,67,147,0.25);
}
.er-hero-cover-wrap img { width: 100%; height: 100%; object-fit: contain; }
.er-hero-cover-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--rating-gold); color: var(--bg-1);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  padding: 4px 8px; border-radius: var(--r-xs);
}
.er-hero-no-thumb {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #22223d 0%, #1a1a2e 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-4); font-size: 13px;
}

/* ===== PROMO STRIP ===== */
.er-promo {
  background: linear-gradient(90deg, rgba(232,67,147,0.12) 0%, rgba(108,92,231,0.10) 100%);
  border-bottom: 1px solid rgba(232,67,147,0.2);
}
.er-promo-inner {
  max-width: var(--content-max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.er-promo-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  background: var(--brand-pink); color: #fff;
  padding: 3px 8px; border-radius: var(--r-xs); flex-shrink: 0;
}
.er-promo-main { font-size: 13px; font-weight: 700; color: var(--fg-1); }
.er-promo-sub { font-size: 12px; color: var(--fg-3); }
.er-promo-link {
  font-size: 12px; font-weight: 700; color: var(--brand-pink);
  text-decoration: none; flex-shrink: 0;
}

/* ===== SECTION LAYOUT ===== */
.er-container { max-width: var(--content-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.er-section { padding: 56px 24px; max-width: var(--content-max); margin: 0 auto; }
.er-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.er-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-pink); margin-bottom: 6px;
}
.er-section-title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--fg-1); margin: 0;
}
.er-see-all { font-size: 13px; font-weight: 600; color: var(--fg-2); text-decoration: none; }
.er-see-all:hover { color: var(--fg-1); }

/* ===== FILTERS ===== */
.er-filters {
  display: flex; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--stroke-1);
  border-radius: var(--r-pill); padding: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.er-filters::-webkit-scrollbar { display: none; }
.er-filters button {
  background: transparent; border: 0; color: var(--fg-2);
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--r-pill);
  cursor: pointer; font-family: inherit;
  white-space: nowrap; flex-shrink: 0;
}
.er-filters button.is-active {
  background: var(--grad-cta); color: #fff;
  box-shadow: 0 4px 16px var(--brand-pink-glow);
}

/* ===== GRIDS ===== */
.er-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.er-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.er-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== WORK CARD ===== */
.er-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--stroke-1);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms;
}
.er-card:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(0,0,0,0.45); }
.er-card-thumb {
  position: relative; aspect-ratio: 3/4;
  background: var(--bg-inset); overflow: hidden;
}
.er-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.er-card-thumb-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(21,21,42,0.7) 100%);
}
.er-card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px;
  letter-spacing: 0.06em; padding: 3px 7px; border-radius: var(--r-xs);
}
.er-card-badge-new  { background: var(--brand-magenta); color: #fff; }
.er-card-badge-sale { background: var(--rating-gold); color: var(--bg-1); }
.er-card-badge-hot  { background: #ff4757; color: #fff; }
.er-card-rank {
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffc93c 0%, #ff8c00 100%);
  color: var(--bg-1); font-family: var(--font-mono); font-weight: 900; font-size: 16px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); z-index: 2;
}
.er-card-no-thumb {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #22223d 0%, #1a1a2e 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-4); font-size: 12px;
}
.er-card-body { padding: 12px 14px 14px; }
.er-card-title {
  font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--fg-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 36px; margin-bottom: 4px;
}
.er-card-cat    { font-size: 11px; color: var(--fg-3); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-card-author { font-size: 11px; color: var(--fg-3); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-card-meta   { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.er-card-stars  { color: var(--rating-gold); font-size: 12px; }
.er-card-date   { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); }
.er-card-price  { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--fg-1); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.er-card-price-sale { color: var(--brand-magenta); }
.er-card-price-orig { color: var(--fg-4); font-weight: 400; text-decoration: line-through; font-size: 11px; }

/* ===== GENRE ROUNDUP CARDS ===== */
.er-roundup-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.er-roundup-card {
  position: relative; display: block;
  background: var(--bg-2); border: 1px solid var(--stroke-1);
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 180ms, border-color 180ms, box-shadow 180ms;
  min-height: 220px;
}
.er-roundup-card:hover { transform: translateY(-3px); border-color: var(--stroke-pink); box-shadow: 0 14px 44px rgba(0,0,0,0.45); }
.er-roundup-card.is-feature { grid-column: span 2; min-height: 260px; }
.er-roundup-blob {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
}
.er-roundup-body {
  position: relative; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; height: 100%;
}
.er-roundup-head { display: flex; align-items: center; justify-content: space-between; }
.er-roundup-tag {
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(232,67,147,0.22); border: 1px solid var(--stroke-pink);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.er-roundup-count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); }
.er-roundup-title { font-size: 18px; font-weight: 800; line-height: 1.35; color: var(--fg-1); margin: 6px 0 0; }
.er-roundup-excerpt {
  font-size: 13px; line-height: 1.65; color: var(--fg-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.er-roundup-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.er-roundup-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.er-roundup-arrow { font-size: 18px; color: var(--brand-pink); font-weight: 700; }

/* ジャンルカード内サムネイルストリップ */
.er-roundup-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: 100px; overflow: hidden;
}
.er-roundup-thumb-item {
  background-size: cover; background-position: center top;
  background-color: var(--bg-inset);
}
.er-roundup-card.is-feature .er-roundup-thumbs { height: 130px; }

/* ===== FOOTER ===== */
.er-footer { background: var(--bg-inset); border-top: 1px solid var(--stroke-1); margin-top: 64px; }
.er-footer-grid {
  max-width: var(--content-max); margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.er-footer-col { display: flex; flex-direction: column; gap: 10px; }
.er-footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-1); margin-bottom: 6px;
}
.er-footer-blurb { font-size: 13px; line-height: 1.65; color: var(--fg-2); margin: 0 0 16px; max-width: 320px; }
.er-footer-age {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; background: rgba(255,45,135,0.06);
  border: 1px solid rgba(255,45,135,0.3); border-radius: 6px; max-width: 340px;
}
.er-footer-age-badge {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  color: var(--brand-magenta); border: 1px solid var(--brand-magenta);
  padding: 3px 7px; border-radius: var(--r-xs);
}
.er-footer-age-text { font-size: 11px; line-height: 1.5; color: var(--fg-2); }
.er-footer-link { font-size: 13px; color: var(--fg-2); text-decoration: none; transition: color 120ms; }
.er-footer-link:hover { color: var(--fg-1); }
.er-footer-bottom { border-top: 1px solid var(--stroke-1); padding: 20px 0; }
.er-footer-bottom-inner {
  max-width: var(--content-max); margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.er-footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.er-footer-disclaimer { font-size: 11px; line-height: 1.65; color: var(--fg-4); }

/* ===== SINGLE POST ===== */
.er-single { max-width: 820px; margin: 0 auto; padding: 48px 24px; }
.er-single-header { margin-bottom: 32px; }
.er-single-cat {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--brand-pink); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.er-single-title { font-size: 36px; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.er-single-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--fg-3); padding-bottom: 24px; border-bottom: 1px solid var(--stroke-1); }
.er-single-thumb { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/9; }
.er-single-thumb img { width: 100%; height: 100%; object-fit: cover; }
.er-single-content { font-size: 15px; line-height: 1.8; color: var(--fg-2); }
.er-single-content h2 { font-size: 22px; font-weight: 800; color: var(--fg-1); margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--stroke-1); }
.er-single-content h3 { font-size: 18px; font-weight: 700; color: var(--fg-1); margin: 24px 0 10px; }
.er-single-content p { margin-bottom: 16px; }
.er-single-content img { border-radius: var(--r-md); margin: 20px 0; }
.er-single-content a { color: var(--brand-pink); }
.er-single-content a:hover { color: var(--brand-pink-hi); }
.er-single-cta-box {
  margin: 40px 0; padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(232,67,147,0.12) 0%, rgba(108,92,231,0.08) 100%);
  border: 1px solid var(--stroke-pink);
}
.er-single-cta-box h3 { font-size: 18px; color: var(--fg-1); margin-bottom: 8px; }
.er-single-cta-box p { font-size: 14px; color: var(--fg-2); margin-bottom: 16px; }
.er-btn-pink {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-cta); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: var(--r-md); text-decoration: none;
  box-shadow: 0 6px 20px var(--brand-pink-glow);
}
.er-btn-pink:hover { transform: translateY(-1px); color: #fff; }

/* ===== PAGINATION ===== */
nav.navigation { margin-top: 48px; }
.nav-links { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--fg-2); background: var(--bg-2);
  border: 1px solid var(--stroke-1); border-radius: var(--r-sm);
  text-decoration: none; transition: all 120ms;
}
.page-numbers:hover { color: var(--fg-1); background: var(--bg-3); border-color: var(--stroke-2); }
.page-numbers.current {
  background: var(--grad-cta); color: #fff !important;
  border-color: var(--stroke-pink);
  box-shadow: 0 4px 16px var(--brand-pink-glow);
}
.page-numbers.dots { background: transparent; border-color: transparent; color: var(--fg-4); cursor: default; }

/* ===== BREADCRUMB ===== */
.er-breadcrumb {
  background: var(--bg-1); border-bottom: 1px solid var(--stroke-1);
}
.er-breadcrumb-inner {
  max-width: 820px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--fg-4);
}
.er-breadcrumb-inner a { color: var(--fg-3); text-decoration: none; transition: color 120ms; }
.er-breadcrumb-inner a:hover { color: var(--fg-1); }
.er-breadcrumb-inner span.sep { color: var(--fg-4); }
.er-breadcrumb-inner span.current { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }

/* ===== CONTENT TYPOGRAPHY (er-single-content) ===== */
.er-single-content ul,
.er-single-content ol { list-style: revert; padding-left: 22px; margin: 14px 0 18px; }
.er-single-content ul { list-style-type: disc; }
.er-single-content ol { list-style-type: decimal; }
.er-single-content li { margin-bottom: 6px; color: var(--fg-2); line-height: 1.75; }
.er-single-content blockquote {
  border-left: 3px solid var(--brand-pink);
  background: rgba(232,67,147,0.06);
  padding: 16px 20px; margin: 22px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.er-single-content blockquote p { color: var(--fg-1); margin: 0; font-style: italic; }
.er-single-content table {
  width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; overflow-x: auto; display: block;
}
.er-single-content th {
  background: var(--bg-2); color: var(--fg-1); font-weight: 700;
  padding: 10px 14px; border: 1px solid var(--stroke-2); text-align: left;
}
.er-single-content td {
  padding: 10px 14px; border: 1px solid var(--stroke-1); color: var(--fg-2);
}
.er-single-content tr:nth-child(even) td { background: var(--bg-1); }
.er-single-content strong, .er-single-content b { color: var(--fg-1); font-weight: 700; }
.er-single-content em, .er-single-content i { font-style: italic; }
.er-single-content code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--bg-2); padding: 2px 7px; border-radius: var(--r-xs);
  color: var(--brand-pink-soft); border: 1px solid var(--stroke-1);
}
.er-single-content pre {
  background: var(--bg-inset); padding: 16px;
  border-radius: var(--r-md); overflow-x: auto;
  border: 1px solid var(--stroke-1); margin: 20px 0;
}
.er-single-content pre code { background: transparent; padding: 0; border: 0; color: var(--fg-2); font-size: 0.9em; }
.er-single-content figure { margin: 22px 0; }
.er-single-content figcaption { font-size: 12px; color: var(--fg-4); text-align: center; margin-top: 8px; }
.er-single-content .wp-block-image img,
.er-single-content img { border-radius: var(--r-md); margin: 0; }
.er-single-content .wp-block-image { margin: 22px 0; }
.er-single-content .has-text-align-center { text-align: center; }
.er-single-content .wp-block-table { overflow-x: auto; }
.er-single-content hr { border: 0; border-top: 1px solid var(--stroke-1); margin: 28px 0; }
/* Gutenberg カラムブロック */
.er-single-content .wp-block-columns { display: flex; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
.er-single-content .wp-block-column { flex: 1; min-width: 200px; }
/* ポイントボックス */
.er-point-box {
  background: linear-gradient(135deg, rgba(232,67,147,0.10) 0%, rgba(108,92,231,0.06) 100%);
  border: 1px solid var(--stroke-pink); border-radius: var(--r-lg);
  padding: 20px 24px; margin: 28px 0;
}
.er-point-box-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--brand-pink); text-transform: uppercase; margin-bottom: 12px;
}
.er-point-box ul { list-style: none; padding: 0; margin: 0; }
.er-point-box ul li {
  padding: 6px 0 6px 20px; position: relative;
  font-size: 14px; color: var(--fg-2); border-bottom: 1px solid var(--stroke-1);
}
.er-point-box ul li:last-child { border-bottom: 0; }
.er-point-box ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-pink); font-weight: 700; }

/* ===== ARCHIVE CATEGORY HEADER ===== */
.er-archive-header {
  background: linear-gradient(135deg, rgba(232,67,147,0.08) 0%, rgba(108,92,231,0.05) 100%);
  border-bottom: 1px solid var(--stroke-1);
  padding: 40px 24px 32px;
}
.er-archive-header-inner { max-width: var(--content-max); margin: 0 auto; }
.er-archive-count {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--fg-3); background: var(--bg-2); border: 1px solid var(--stroke-1);
  padding: 3px 10px; border-radius: var(--r-pill); margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .er-header-bar { gap: 16px; padding: 0 20px; }
  .er-search { display: none; }
  .er-nav { gap: 0; }
  .er-nav-item { padding: 22px 8px; font-size: 12px; }
  .er-grid-4 { grid-template-columns: repeat(3,1fr); }
  .er-grid-5 { grid-template-columns: repeat(3,1fr); }
  .er-grid-3 { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .er-roundup-grid { grid-template-columns: repeat(2,1fr); }
  .er-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .er-hero-inner { grid-template-columns: 1fr 240px; gap: 32px; }
  .er-section-title { font-size: 24px; }
}
@media (max-width: 767px) {
  .er-container { padding-left: 16px; padding-right: 16px; }
  .er-header-bar { height: 56px; padding: 0 16px; gap: 12px; }
  .er-nav { display: none; }
  .er-r18 { display: none; }
  .er-cta-fanza span { display: none; }
  .er-burger { display: flex; }
  .er-nav-mobile { display: flex; }
  .er-grid-4, .er-grid-5 { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .er-grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .er-roundup-grid { grid-template-columns: 1fr; }
  .er-roundup-card.is-feature { grid-column: span 1; min-height: 200px; }
  .er-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .er-hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 40px !important; }
  .er-hero-title { font-size: 26px !important; }
  .er-section-title { font-size: 22px; }
  .er-promo-sub { display: none; }
  .er-single-title { font-size: 26px; }
  .er-score-bar-row { grid-template-columns: 80px 1fr 32px; }
  .er-work-info-table th { width: 80px; font-size: 12px; }
  .er-work-info-table td { font-size: 13px; }
}

/* ===== レビューサマリーボックス ===== */
.er-review-summary {
  background: linear-gradient(135deg, rgba(108,92,231,.12), rgba(232,67,147,.08));
  border: 1px solid var(--stroke-pink);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 24px 0;
}
.er-review-summary-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.er-review-summary-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-1);
  margin: 0 0 14px;
}
.er-review-recommend {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--fg-2);
  background: rgba(255,255,255,.04);
  border-radius: var(--r-md);
  padding: 10px 14px;
}
.er-review-recommend-label {
  color: var(--brand-pink);
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===== 作品情報テーブル ===== */
.er-work-info {
  margin: 24px 0;
  background: var(--bg-2);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.er-work-info-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-bottom: 1px solid var(--stroke-1);
  background: var(--bg-3);
}
.er-work-info-table {
  width: 100%;
  border-collapse: collapse;
}
.er-work-info-table th,
.er-work-info-table td {
  padding: 10px 20px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--stroke-1);
  line-height: 1.5;
}
.er-work-info-table tr:last-child th,
.er-work-info-table tr:last-child td { border-bottom: none; }
.er-work-info-table th {
  color: var(--fg-3);
  font-weight: 600;
  width: 110px;
  white-space: nowrap;
}
.er-work-info-table td { color: var(--fg-1); }
.er-work-info-table a { color: var(--brand-pink); text-decoration: none; }
.er-work-info-table a:hover { text-decoration: underline; }

/* ===== スコアバー ===== */
.er-score-bars {
  margin: 24px 0;
  background: var(--bg-2);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-lg);
  padding: 20px 24px;
}
.er-score-bars-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.er-score-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.er-score-bar-label {
  font-size: 13px;
  color: var(--fg-2);
  font-weight: 600;
}
.er-score-bar-track {
  height: 8px;
  background: var(--bg-4);
  border-radius: 99px;
  overflow: hidden;
}
.er-score-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.er-score-bar-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-1);
  text-align: right;
}
.er-score-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke-1);
  font-size: 14px;
  color: var(--fg-3);
  text-align: right;
}
.er-score-total strong {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--rating-gold);
  margin: 0 4px;
}

/* ===== 目次 ===== */
.er-toc {
  margin: 28px 0;
  background: var(--bg-2);
  border: 1px solid var(--stroke-1);
  border-left: 3px solid var(--brand-pink);
  border-radius: var(--r-lg);
  padding: 18px 24px;
}
.er-toc-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.er-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-h2;
}
.er-toc-h2 {
  counter-increment: toc-h2;
  margin-bottom: 7px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.er-toc-h2::before {
  content: counter(toc-h2) '.';
  color: var(--brand-pink);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.er-toc-h2 a {
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 120ms;
  line-height: 1.5;
}
.er-toc-h2 a:hover { color: var(--fg-1); }
.er-toc-h3 {
  padding-left: 22px;
  margin-bottom: 5px;
}
.er-toc-h3 a {
  font-size: 13px;
  color: var(--fg-4);
  text-decoration: none;
  transition: color 120ms;
}
.er-toc-h3 a::before { content: '└ '; color: var(--stroke-2); }
.er-toc-h3 a:hover { color: var(--fg-2); }

/* ===== SNSシェア ===== */
.er-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--stroke-1);
}
.er-share-label {
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 600;
}
.er-share-x {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: opacity 120ms;
}
.er-share-x:hover { opacity: .75; }

/* ===== FANZAボタン強化 ===== */
.er-btn-fanza {
  display: flex;
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(232,67,147,.4);
  letter-spacing: .04em;
}
.er-cta-sample-badge {
  margin-top: 10px;
  font-size: 13px;
  color: #22c55e;
  font-weight: 700;
  text-align: center;
}

/* ===== 評価バッジ ===== */
.er-single-rating-badge {
  background: var(--rating-gold);
  color: #1a1a2e;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-family: var(--font-mono);
}
