/*
Theme Name: Aff Noir
Description: 高速・ダーク系アフィリエイトテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: aff-noir
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:     #090909;
  --bg2:    #111111;
  --bg3:    #191919;
  --bg4:    #222222;
  --ac:     #e63946;
  --ac2:    #ff5c68;
  --text:   #e8e8e8;
  --muted:  #666666;
  --dim:    #444444;
  --border: #222222;
  --gold:   #f5c518;
  --silver: #aaaaaa;
  --bronze: #cd7f32;
  --font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans',
            'Noto Sans JP', sans-serif;
  --w:      1140px;
  --r:      5px;
  --t:      0.18s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t), opacity var(--t); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
*:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 40px 0; }
.section + .section { padding-top: 0; }

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  padding: 40px 0;
}
.top-grid > * { min-width: 0; }
@media (max-width: 900px) { .top-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 9, 9, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.site-title {
  margin: 0; font-size: inherit; font-weight: inherit;
  line-height: inherit; flex-shrink: 0;
}
.site-logo {
  font-size: 1.35rem; font-weight: 900; letter-spacing: 0.04em;
  color: var(--text); flex-shrink: 0;
}
.site-logo em { color: var(--ac); font-style: normal; }

/* Desktop nav */
.nav-menu {
  display: flex; align-items: center; gap: 2px;
}
.nav-menu a {
  padding: 6px 14px; font-size: 0.875rem; font-weight: 600;
  color: var(--muted); border-radius: var(--r);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.current {
  color: var(--text); background: var(--bg3);
}
.nav-menu .nav-ranking { color: var(--gold) !important; }
.nav-menu .nav-ranking:hover { background: rgba(245, 197, 24, 0.1) !important; }

/* Header search */
.nav-search { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-search input {
  width: 160px; padding: 6px 10px; font-size: 0.8rem;
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r);
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
  padding: 6px 12px; font-size: 0.8rem; font-weight: 600;
  color: var(--text); background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--r);
  cursor: pointer; transition: background var(--t);
  flex-shrink: 0;
}
.nav-search button:hover { background: var(--ac); border-color: var(--ac); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: fixed; top: 56px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 10px; gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 11px 14px; font-size: 0.9rem; }
  .nav-search { margin: 8px 4px 4px; }
  .nav-search input { flex: 1; width: auto; padding: 10px 12px; font-size: 0.9rem; }
  .nav-search button { padding: 10px 16px; font-size: 0.9rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; width: 100%;
  aspect-ratio: 16 / 6.5;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0005 0%, #0a0a0a 100%);
}
@media (max-width: 768px) { .hero { aspect-ratio: 16 / 9; } }
@media (max-width: 480px) { .hero { aspect-ratio: 4 / 3; } }

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 6s ease;
}
.hero:hover .hero-img { transform: scale(1.03); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.15) 100%
  );
}
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%);
  }
}

.hero-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 52px; max-width: 600px;
}
@media (max-width: 768px) {
  .hero-body {
    justify-content: flex-end;
    padding: 0 18px 28px;
    max-width: 100%;
  }
}

.hero-cat {
  display: inline-block;
  background: var(--ac); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px; margin-bottom: 12px;
  width: fit-content;
}
.hero-title {
  font-size: clamp(1.35rem, 3.2vw, 2.2rem);
  font-weight: 900; line-height: 1.35; color: #fff; margin-bottom: 14px;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--ac2); }
.hero-meta { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ac); color: #fff;
  padding: 11px 26px; border-radius: var(--r);
  font-size: 0.875rem; font-weight: 700;
  transition: background var(--t), transform var(--t);
  width: fit-content;
}
.hero-btn:hover { background: var(--ac2); color: #fff; transform: translateY(-2px); }
.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn-gold { background: var(--gold); color: #111; }
.hero-btn-gold:hover { background: #ffd83d; color: #111; }
.hero-btn-sub { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(4px); }
.hero-btn-sub:hover { background: rgba(255, 255, 255, 0.22); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.sec-title {
  font-size: 1rem; font-weight: 800; letter-spacing: 0.06em;
  position: relative; padding-left: 14px;
}
.sec-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 1em; background: var(--ac); border-radius: 2px;
}
.sec-more {
  font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--r);
  transition: border-color var(--t), color var(--t);
}
.sec-more:hover { border-color: var(--ac); color: var(--ac); }

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--bg2); border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden; transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.card:hover {
  border-color: var(--bg4);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.65);
}
.card-link { display: block; }
.card-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg3);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.32s ease;
}
.card:hover .card-thumb img { transform: scale(1.05); }

.badge-new {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: #10b981; color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 3px;
}
.card-body { padding: 12px 14px; }
.card-cat {
  font-size: 0.68rem; color: var(--ac); font-weight: 700;
  letter-spacing: 0.04em; margin-bottom: 5px;
}
.card-title {
  font-size: 0.875rem; font-weight: 700; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-title { color: var(--ac2); }
.card-date { margin-top: 8px; font-size: 0.7rem; color: var(--muted); }

/* ============================================================
   RANKING LIST (top page / sidebar compact)
   ============================================================ */
.rank-list {
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
  cursor: pointer;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: var(--bg3); }

.rank-num {
  flex-shrink: 0; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; border-radius: 4px;
}
.rank-num.n1 { background: var(--gold);   color: #000; }
.rank-num.n2 { background: var(--silver); color: #000; }
.rank-num.n3 { background: var(--bronze); color: #fff; }
.rank-num.nx { background: var(--bg4);   color: var(--muted); font-size: 0.8rem; }

.rank-thumb {
  flex-shrink: 0; width: 70px; height: 46px;
  border-radius: 3px; overflow: hidden; background: var(--bg3);
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rank-body { flex: 1; min-width: 0; }
.rank-title {
  font-size: 0.85rem; font-weight: 700; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-item:hover .rank-title { color: var(--ac); }
.rank-stars { color: var(--gold); font-size: 0.75rem; margin-top: 3px; letter-spacing: -1px; }

.rank-cta {
  flex-shrink: 0;
  background: var(--ac); color: #fff !important;
  padding: 5px 12px; border-radius: var(--r);
  font-size: 0.72rem; font-weight: 700;
  transition: background var(--t);
  white-space: nowrap;
}
.rank-item:hover .rank-cta { background: var(--ac2); }
@media (max-width: 560px) { .rank-cta { display: none; } }

/* ============================================================
   RANKING PAGE (full)
   ============================================================ */
/* ランキングAVグリッド */
.rank-av-wrap { position: relative; }
.rank-av-num {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; line-height: 1;
  background: var(--bg4); color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.rank-av-num.n1 { background: #c9a227; color: #000; }
.rank-av-num.n2 { background: #9e9e9e; color: #000; }
.rank-av-num.n3 { background: #a0522d; color: #fff; }

.rank-page-list { display: flex; flex-direction: column; gap: 14px; }

.rank-page-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px; transition: border-color var(--t), box-shadow var(--t);
}
.rank-page-item:hover {
  border-color: var(--bg4);
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}
.rank-page-num {
  flex-shrink: 0; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; border-radius: var(--r);
}
.rank-page-num.n1 { background: var(--gold);   color: #000; }
.rank-page-num.n2 { background: var(--silver); color: #000; }
.rank-page-num.n3 { background: var(--bronze); color: #fff; }
.rank-page-num.nx { background: var(--bg3);   color: var(--muted); font-size: 1.1rem; }

.rank-page-thumb {
  flex-shrink: 0; width: 160px; height: 100px;
  border-radius: var(--r); overflow: hidden; background: var(--bg3);
}
.rank-page-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rank-page-body { flex: 1; min-width: 0; }
.rank-page-title {
  font-size: 1rem; font-weight: 800; line-height: 1.45; margin-bottom: 6px;
  color: var(--text);
}
.rank-page-item:hover .rank-page-title { color: var(--ac2); }
.rank-page-stars { color: var(--gold); font-size: 1rem; letter-spacing: -1px; margin-bottom: 8px; }
.rank-page-excerpt {
  font-size: 0.82rem; color: var(--muted); line-height: 1.65; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rank-page-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ac); color: #fff !important;
  padding: 9px 22px; border-radius: var(--r);
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em;
  transition: background var(--t), transform var(--t);
}
.rank-page-cta:hover { background: var(--ac2); transform: translateY(-1px); }

@media (max-width: 640px) {
  .rank-page-item { flex-wrap: wrap; gap: 14px; }
  .rank-page-thumb { width: 100%; height: 180px; }
  .rank-page-num { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
}
.widget-head {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
  position: relative; padding-left: 22px;
}
.widget-head::before {
  content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0.8em; background: var(--ac); border-radius: 2px;
}

/* Side rank list */
.side-rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.side-rank-item:last-child { border-bottom: none; }
.side-rank-item:hover { background: var(--bg3); }
.side-rank-num {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 900; border-radius: 3px;
}
.side-rank-num.n1 { background: var(--gold);   color: #000; }
.side-rank-num.n2 { background: var(--silver); color: #000; }
.side-rank-num.n3 { background: var(--bronze); color: #fff; }
.side-rank-num.nx { background: var(--bg3);   color: var(--muted); }
.side-rank-thumb {
  flex-shrink: 0; width: 50px; height: 34px;
  border-radius: 3px; overflow: hidden; background: var(--bg3);
}
.side-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-rank-title {
  font-size: 0.75rem; line-height: 1.4; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.side-rank-item:hover .side-rank-title { color: var(--ac); }

/* Category list */
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text);
  transition: background var(--t);
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { background: var(--bg3); color: var(--ac); }
.cat-item .cat-count { font-size: 0.72rem; color: var(--muted); }
.cat-item:hover .cat-count { color: var(--ac); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-wrap { padding: 36px 0 60px; }

.single-hero {
  position: relative; width: 100%; aspect-ratio: 16 / 7;
  overflow: hidden; background: var(--bg2); margin-bottom: 28px;
  border-radius: var(--r);
}
@media (max-width: 768px) {
  .single-hero { aspect-ratio: 16 / 9; margin-bottom: 20px; border-radius: 0; }
  .single-wrap { padding: 24px 0 48px; }
}
.single-hero img { width: 100%; height: 100%; object-fit: cover; }
.single-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 55%);
}

.single-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px; font-size: 0.78rem; color: var(--muted);
}
.single-cat-badge {
  background: var(--ac); color: #fff;
  padding: 2px 10px; border-radius: 3px;
  font-size: 0.7rem; font-weight: 700;
}
.single-title {
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  font-weight: 900; line-height: 1.4; margin-bottom: 28px;
}
.single-divider {
  border: none; border-top: 1px solid var(--border); margin: 28px 0;
}

/* Article content */
.entry-content {
  font-size: 0.95rem; line-height: 1.9;
}
.entry-content h2 {
  font-size: 1.2rem; font-weight: 800;
  margin: 36px 0 14px; padding: 10px 14px 10px 18px;
  background: var(--bg2); border-left: 4px solid var(--ac);
  border-radius: 0 var(--r) var(--r) 0;
}
.entry-content h3 {
  font-size: 1.05rem; font-weight: 700;
  margin: 28px 0 10px; padding-left: 12px;
  border-left: 3px solid var(--border);
}
.entry-content p  { margin-bottom: 18px; }
.entry-content img { border-radius: var(--r); margin: 16px 0; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 16px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content a  { color: var(--ac); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ac2); }
.entry-content strong { color: #fff; font-weight: 700; }
.entry-content blockquote {
  border-left: 3px solid var(--border); padding-left: 16px;
  color: var(--muted); margin: 16px 0;
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.85rem;
}
.entry-content th, .entry-content td {
  padding: 8px 12px; border: 1px solid var(--border); text-align: left;
}
.entry-content th { background: var(--bg3); font-weight: 700; }

.tokusho-table th { width: 30%; white-space: nowrap; }
.pp-updated { font-size: 0.8rem; color: var(--muted); margin-top: 2.5em; }

/* Affiliate CTA button (use in content with .aff-btn shortcode/block) */
.aff-btn, .entry-content .aff-btn {
  display: block; text-align: center; text-decoration: none !important;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: #fff !important;
  padding: 16px 28px; border-radius: var(--r);
  font-size: 1rem; font-weight: 800; letter-spacing: 0.04em;
  margin: 24px 0;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.28);
}
.aff-btn:hover, .entry-content .aff-btn:hover {
  background: linear-gradient(135deg, var(--ac2) 0%, var(--ac) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.4);
}

/* Auto-generated description CTA button (aap-auto-poster plugin) */
.aap-cta-wrap { text-align: center; margin: 30px 0; }
.aap-cta-btn {
  display: inline-block; text-decoration: none !important;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: #fff !important;
  padding: 14px 32px; border-radius: var(--r);
  font-size: 1.06rem; font-weight: 800; letter-spacing: 0.05em;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.28);
}
.aap-cta-btn:hover {
  background: linear-gradient(135deg, var(--ac2) 0%, var(--ac) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.4);
}

/* Single post meta box */
.post-aff-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-top: 3px solid var(--ac);
  border-radius: 0 0 var(--r) var(--r);
  padding: 20px; margin-top: 32px;
}
.post-aff-title { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.post-aff-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: -1px; margin-bottom: 14px; }
.post-aff-cta {
  display: block; text-align: center;
  background: var(--ac); color: #fff !important;
  padding: 14px 24px; border-radius: var(--r);
  font-size: 1rem; font-weight: 800;
  transition: background var(--t), transform var(--t);
  text-decoration: none !important;
}
.post-aff-cta:hover { background: var(--ac2); transform: translateY(-1px); }

/* Related posts */
.related { margin-top: 48px; }
.related .card-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .related .card-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.arch-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.arch-label {
  font-size: 0.72rem; color: var(--ac); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px;
}
.arch-title {
  font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: baseline; gap: 10px;
}
.arch-count { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.arch-title-row { display: flex; align-items: baseline; gap: 10px; }

/* 女優一覧ハブ */
.actress-index-intro { margin-bottom: 28px; }
.actress-index-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; margin-bottom: 48px;
}
.actress-index-card {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 14px;
  text-decoration: none; transition: border-color var(--t), background var(--t);
}
.actress-index-card:hover { border-color: var(--ac); background: var(--bg3); }
.actress-index-name { color: var(--text); font-weight: 700; font-size: 0.9rem; }
.actress-index-count { color: var(--muted); font-size: 0.75rem; flex-shrink: 0; margin-left: 8px; }

/* ランキングカード直下のFANZAボタン */
.rank-av-cta {
  display: block; text-align: center; margin-top: 8px;
  background: var(--ac); color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 8px 10px; border-radius: var(--r); text-decoration: none;
  transition: background var(--t);
}
.rank-av-cta:hover { background: var(--ac2); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 14px 0; font-size: 0.75rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ac); }
.breadcrumb .sep { color: var(--dim); }
.breadcrumb .current-crumb { color: var(--text); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px; padding: 36px 0 8px;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 6px;
  border-radius: var(--r); font-size: 0.875rem; font-weight: 600;
  border: 1px solid var(--border);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.pagination a:hover { border-color: var(--ac); color: var(--ac); }
.pagination span.current { background: var(--ac); border-color: var(--ac); color: #fff; }
.pagination span.dots { border-color: transparent; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border); margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px; padding: 44px 0 36px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.footer-logo em { color: var(--ac); font-style: normal; }
.footer-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.75; }
.footer-h {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text); margin-bottom: 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 0.8rem; color: var(--muted); transition: color var(--t); }
.footer-links a:hover { color: var(--ac); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 16px 0; border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--dim);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--dim); transition: color var(--t); }
.footer-bottom-links a:hover { color: var(--muted); }

/* ============================================================
   404
   ============================================================ */
.not-found { text-align: center; padding: 80px 0 60px; }
.not-found-code {
  font-size: clamp(5rem, 15vw, 9rem); font-weight: 900;
  color: var(--bg3); line-height: 1; margin-bottom: 12px;
  letter-spacing: -0.05em;
}
.not-found-msg { font-size: 1rem; color: var(--muted); margin-bottom: 28px; }
.btn-primary {
  display: inline-block;
  background: var(--ac); color: #fff !important;
  padding: 11px 28px; border-radius: var(--r);
  font-weight: 700; font-size: 0.9rem;
  transition: background var(--t), transform var(--t);
  text-decoration: none;
}
.btn-primary:hover { background: var(--ac2); transform: translateY(-1px); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#totop {
  position: fixed; bottom: 20px; right: 20px;
  width: 40px; height: 40px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1.1rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), background var(--t), border-color var(--t);
  z-index: 50; cursor: pointer;
}
#totop.visible { opacity: 1; pointer-events: auto; }
#totop:hover { background: var(--ac); border-color: var(--ac); color: #fff; }

/* ============================================================
   AV WORKS — グリッド & カード
   ============================================================ */
.av-archive-wrap { padding: 8px 0 60px; }

.av-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.av-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .av-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .av-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.av-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.av-card:hover {
  border-color: var(--bg4); transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.65);
}
.av-card-link { display: block; }
.av-card-jacket {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--bg3);
}
.av-card-pr {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.72); color: #aaa;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 2px 5px; border-radius: 3px; pointer-events: none;
}
.pr-notice {
  font-size: 0.72rem; color: var(--muted);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 4px; padding: 5px 12px; margin-bottom: 18px;
}
.av-card-jacket img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.32s ease;
}
.av-card:hover .av-card-jacket img { transform: scale(1.04); }

.av-card-body { padding: 10px 12px 12px; }
.av-card-code {
  font-size: 0.65rem; color: var(--muted);
  font-family: monospace; letter-spacing: 0.04em; margin-bottom: 4px;
}
.av-card-title {
  font-size: 0.8rem; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px;
}
.av-card:hover .av-card-title { color: var(--ac2); }
.av-card-actress {
  font-size: 0.72rem; color: var(--ac); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.av-card-actress a { color: inherit; }
.av-card-actress a:hover { text-decoration: underline; }
.av-card-date  { font-size: 0.65rem; color: var(--muted); margin-bottom: 4px; }
.av-card-stars { color: var(--gold); font-size: 0.72rem; letter-spacing: -1px; }

/* コラム記事内の作品カード埋め込み（[work-card]） */
.work-card-embed { max-width: 250px; margin: 20px auto 28px; }
.work-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px; margin: 20px auto 28px;
}
@media (max-width: 680px) { .work-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   AV WORKS — ソートタブ
   ============================================================ */
.av-sort-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.av-sort-tab {
  padding: 6px 16px; border: 1px solid var(--border); border-radius: var(--r);
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.av-sort-tab:hover  { border-color: var(--ac); color: var(--ac); }
.av-sort-tab.active { background: var(--ac); border-color: var(--ac); color: #fff; }

/* ============================================================
   AV WORKS — 作品詳細ページ
   ============================================================ */
.av-single-wrap { padding: 28px 0 60px; }

.av-single {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px; align-items: start; margin-bottom: 48px;
}
@media (max-width: 720px) {
  .av-single { grid-template-columns: minmax(0, 1fr); }
  .av-single-jacket { /*max-width: 260px;*/ }
}

.av-single-jacket img {
  width: 100%; border-radius: var(--r);
  border: 1px solid var(--border); display: block;
}
.av-cta-btn {
  display: block; text-align: center;
  background: var(--ac); color: #fff !important;
  padding: 14px; border-radius: var(--r);
  font-weight: 800; font-size: 0.95rem; margin-top: 12px;
  transition: background var(--t), transform var(--t);
  text-decoration: none !important;
}
.av-cta-btn:hover { background: var(--ac2); transform: translateY(-1px); }

.av-single-title {
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 900; line-height: 1.4; margin-bottom: 14px;
}
.av-single-stars { color: var(--gold); font-size: 1.2rem; letter-spacing: -1px; margin-bottom: 16px; }

.av-meta-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.85rem; margin-bottom: 20px;
}
.av-meta-table th,
.av-meta-table td { padding: 7px 12px; border: 1px solid var(--border); text-align: left; }
.av-meta-table th { background: var(--bg3); font-weight: 700; color: var(--muted); white-space: nowrap; width: 28%; }
.av-meta-table td a { color: var(--ac); }
.av-meta-table td a:hover { text-decoration: underline; }

.av-single-excerpt {
  font-size: 0.88rem; line-height: 1.85; color: var(--muted);
  padding: 16px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r);
}
.av-single-content { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ============================================================
   TAXONOMY ARCHIVE HEADER（女優・メーカー etc.）
   ============================================================ */
.tax-header { padding: 28px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tax-label  { font-size: 0.72rem; color: var(--ac); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.tax-title  { font-size: 1.4rem; font-weight: 900; display: flex; align-items: baseline; gap: 10px; }
.tax-count  { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.tax-desc   { font-size: 0.85rem; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.tax-intro  { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; margin-bottom: 28px; }
.tax-intro p { font-size: 0.9rem; color: var(--text); line-height: 1.9; margin: 0 0 0.8em; }
.tax-intro p:last-child { margin-bottom: 0; }
.tax-intro strong { color: var(--ac); }

/* ============================================================
   CHARACTER PROFILE CARDS
   ============================================================ */
.chara-profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
@media (max-width: 600px) {
  .chara-profiles-grid { grid-template-columns: minmax(0, 1fr); }
}

.chara-profile-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 20px 20px;
  text-align: center;
}
.chara-profile-luna { border-top: 3px solid rgba(126,184,247,0.7); }
.chara-profile-rei  { border-top: 3px solid rgba(230,57,70,0.7); }

.chara-profile-icon img {
  width: 110px; height: 110px;
  object-fit: contain; border-radius: 50%;
  background: var(--bg3); border: 3px solid var(--border);
  margin: 0 auto 12px; display: block;
}
.chara-profile-luna .chara-profile-icon img { border-color: rgba(126,184,247,0.6); }
.chara-profile-rei  .chara-profile-icon img { border-color: rgba(230,57,70,0.5); }

.chara-profile-name {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 10px;
}
.chara-profile-luna .chara-profile-name { color: #7eb8f7; }
.chara-profile-rei  .chara-profile-name { color: var(--ac); }
.chara-profile-name span {
  font-size: 0.72rem; font-weight: 400; color: var(--muted); margin-left: 4px;
}

.chara-profile-desc {
  font-size: 0.83rem; color: var(--muted);
  line-height: 1.8; text-align: left; margin-bottom: 14px;
}

.chara-profile-tags {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.chara-profile-tag {
  font-size: 0.68rem; padding: 3px 10px;
  border-radius: 99px; border: 1px solid var(--border); color: var(--muted);
}
.chara-profile-luna .chara-profile-tag { border-color: rgba(126,184,247,0.3); color: rgba(126,184,247,0.8); }
.chara-profile-rei  .chara-profile-tag { border-color: rgba(230,57,70,0.3);  color: rgba(230,57,70,0.8); }

/* ============================================================
   ILLUSTRATION SHORTCODE
   ============================================================ */
.illust { --illust-w: 220px; line-height: 0; }
.illust img { width: var(--illust-w); max-width: 100%; height: auto; }

.illust-right  { float: right; margin: 4px 0 20px 28px; }
.illust-left   { float: left;  margin: 4px 28px 20px 0; }
.illust-center { float: none; margin: 28px auto; text-align: center; }
.illust-center img { margin: 0 auto; }

/* float を解除するためのクリアフィックス */
.entry-content::after,
.page-content::after { content: ''; display: table; clear: both; }

@media (max-width: 540px) {
  .illust-right,
  .illust-left {
    float: none;
    margin: 20px auto;
    text-align: center;
  }
  .illust-right img,
  .illust-left img { margin: 0 auto; max-width: 55%; }
}

/* ============================================================
   CHARA DIALOGUE（キャラクター会話）
   ============================================================ */
.chara-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 28px 0;
}

.chara-icon {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 80px;
}
.chara-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
}
.chara-luna .chara-icon img { border-color: rgba(126,184,247,0.6); }
.chara-rei  .chara-icon img { border-color: rgba(230,57,70,0.6); }

.chara-name {
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.chara-luna .chara-name { color: #7eb8f7; }
.chara-rei  .chara-name { color: var(--ac); }

.chara-balloon {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.85;
}
.chara-balloon p { margin: 0; }
.chara-luna .chara-balloon { border-color: rgba(126,184,247,0.25); }
.chara-rei  .chara-balloon { border-color: rgba(230,57,70,0.25); }

/* 左向き吹き出し尻尾（ルナ） */
.chara-balloon-left::before,
.chara-balloon-left::after {
  content: '';
  position: absolute;
  top: 22px;
  width: 0;
  height: 0;
}
.chara-balloon-left::before {
  left: -9px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid rgba(126,184,247,0.25);
}
.chara-balloon-left::after {
  left: -7px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid var(--bg2);
}

/* 右向き吹き出し尻尾（レイ） */
.chara-balloon-right::before,
.chara-balloon-right::after {
  content: '';
  position: absolute;
  top: 22px;
  width: 0;
  height: 0;
}
.chara-balloon-right::before {
  right: -9px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid rgba(230,57,70,0.25);
}
.chara-balloon-right::after {
  right: -7px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 8px solid var(--bg2);
}

@media (max-width: 480px) {
  .chara-icon { width: 60px; }
  .chara-icon img { width: 60px; height: 60px; }
  .chara-balloon { font-size: 0.82rem; padding: 10px 12px; }
}

/* ============================================================
   AAP AUTO POSTER — キャラクター名バッジ（ダークテーマ上書き）
   プラグインのインラインCSSより高い詳細度で上書き
   ============================================================ */
.entry-content .aap-angel {
  background: rgba(126, 184, 247, 0.12) !important;
  color: #7eb8f7 !important;
  border: 1px solid rgba(126, 184, 247, 0.25);
}
.entry-content .aap-demon {
  background: rgba(230, 57, 70, 0.12) !important;
  color: #e63946 !important;
  border: 1px solid rgba(230, 57, 70, 0.25);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-post { padding: 40px 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   CONVERSION ENHANCEMENTS
   ============================================================ */

/* --- av-card CTA ラベル --- */
.av-card-cta {
  font-size: 0.75rem; color: var(--ac); font-weight: 700;
  margin-top: 8px; letter-spacing: .02em;
}

/* --- 3列グリッド（ピックアップ用） --- */
.av-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .av-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- taxonomy ピックアップ --- */
.tax-pickup { margin-bottom: 40px; }

/* --- 女優FANZAリンクボタン --- */
.tax-fanza-btn {
  display: inline-block; margin-top: 16px;
  background: var(--ac); color: #fff !important;
  padding: 12px 24px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none !important;
  transition: background .18s;
}
.tax-fanza-btn:hover { background: #ff5c68; }

/* --- 見放題プランバナー --- */
.premium-banner { margin: 0 0 4px; }
.premium-banner-link {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #1a0a1e 0%, #2d0a2e 100%);
  border: 1px solid #6b006b; border-radius: 8px;
  padding: 14px 18px; text-decoration: none !important;
  transition: border-color .2s, box-shadow .2s;
}
.premium-banner-link:hover {
  border-color: #cc44cc;
  box-shadow: 0 0 14px rgba(200, 0, 200, .25);
}
.premium-banner-label {
  flex-shrink: 0; background: rgba(255,255,255,.12); color: #aaa;
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 3px; letter-spacing: .05em;
}
.premium-banner-body { flex: 1; min-width: 0; }
.premium-banner-text {
  font-size: 0.85rem; font-weight: 700; color: #f0c8ff; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.premium-banner-cta {
  flex-shrink: 0; background: var(--ac); color: #fff !important;
  font-size: 0.8rem; font-weight: 700;
  padding: 9px 14px; border-radius: 5px; white-space: nowrap;
  text-decoration: none !important;
}
@media (max-width: 520px) {
  .premium-banner-link { flex-wrap: wrap; }
  .premium-banner-cta  { width: 100%; text-align: center; }
}

/* --- 作品ページCTA補足テキスト --- */
.av-cta-note {
  font-size: 0.7rem; color: var(--muted); text-align: center; margin-top: 8px;
}

/* --- フローティングCTAバー --- */
.float-cta {
  position: fixed; bottom: -80px; left: 0; right: 0; z-index: 900;
  background: rgba(9, 9, 9, .96); border-top: 1px solid var(--border);
  padding: 10px 0; transition: bottom .28s ease;
  backdrop-filter: blur(6px);
}
.float-cta.visible { bottom: 0; }
.float-cta-inner {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
}
.float-cta-title {
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.float-cta-btn {
  flex-shrink: 0; background: var(--ac); color: #fff !important;
  padding: 10px 22px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none !important;
  transition: background .18s; white-space: nowrap;
}
.float-cta-btn:hover { background: #ff5c68; }
@media (max-width: 480px) {
  .float-cta-title { display: none; }
  .float-cta-btn   { width: 100%; text-align: center; }
}

/* ============================================================
   ANNOUNCEMENT BAR（キャンペーン自動表示）
   ============================================================ */
.announce-bar {
  background: var(--ac); padding: 9px 16px;
  text-align: center; font-size: 0.82rem; font-weight: 700;
}
.announce-link {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  color: #fff !important; text-decoration: none !important;
}
.announce-badge {
  background: #fff; color: var(--ac);
  padding: 2px 8px; border-radius: 3px;
  font-size: 0.72rem; letter-spacing: .04em; white-space: nowrap;
}
.announce-text { color: #fff; }
.announce-end  { color: rgba(255,255,255,.8); font-size: 0.75rem; white-space: nowrap; }
.announce-cta  { color: #fff; text-decoration: underline; font-size: 0.78rem; white-space: nowrap; }

/* ============================================================
   CHARA DIALOGUE SECTION & FAQ（シングル作品ページ）
   ============================================================ */
.chara-dialogue-section {
  margin: 36px 0;
}
.chara-dialogue-section .sec-head {
  margin-bottom: 16px;
}

/* ================================================================
   ジャンルクイックナビ
   ================================================================ */
.genre-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 8px;
}
.genre-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.genre-btn:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: #fff;
}
.genre-btn-count {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg4);
  border-radius: 10px;
  padding: 1px 6px;
  transition: background .18s, color .18s;
}
.genre-btn:hover .genre-btn-count {
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
}

/* ================================================================
   注目女優
   ================================================================ */
.actress-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) { .actress-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .actress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.actress-card {
  display: block;
  text-decoration: none;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg2);
  transition: transform .2s;
}
.actress-card:hover { transform: translateY(-4px); }

.actress-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.actress-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .3s;
}
.actress-card:hover .actress-thumb img { transform: scale(1.06); }
.actress-no-img {
  width: 100%;
  height: 100%;
  background: var(--bg4);
}
.actress-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
}
.actress-overlay-name {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  padding: 0 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actress-body {
  padding: 8px 10px;
}
.actress-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actress-card:hover .actress-name { color: var(--ac2); }
.actress-count {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================================
   レビュー件数・無料サンプルバッジ・サンプル画像スライダー
   ============================================================ */
.av-review-score {
  font-size: 1rem; font-weight: 800; color: var(--gold);
  margin-left: 6px; vertical-align: middle;
}
.av-review-count {
  font-size: 0.78rem; color: var(--muted);
  margin-left: 4px; vertical-align: middle; font-weight: 400;
}

/* 無料サンプルバッジ */
.av-cta-badge {
  display: inline-block;
  background: #fff; color: var(--ac);
  font-size: 0.68rem; font-weight: 800;
  padding: 2px 7px; border-radius: 20px;
  margin-right: 8px; vertical-align: middle;
  letter-spacing: .03em; line-height: 1.6;
}

/* サンプル画像スライダー */
.sample-slider-wrap { margin: 32px 0; }
.sample-slider {
  position: relative; overflow: hidden;
  border-radius: var(--r); background: #000;
  max-width: 680px; margin: 0 auto;
}
.sample-slider-track {
  display: flex; transition: transform .35s ease;
  will-change: transform;
}
.sample-slide {
  min-width: 100%; display: flex;
  align-items: center; justify-content: center;
}
.sample-slide img {
  width: 100%; max-height: 420px;
  object-fit: contain; display: block;
}
.sample-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff; border: none;
  font-size: 2rem; line-height: 1; padding: 8px 14px;
  cursor: pointer; border-radius: 4px; z-index: 2;
  transition: background .2s;
}
.sample-slider-btn:hover { background: rgba(0,0,0,.8); }
.sample-slider-prev { left: 8px; }
.sample-slider-next { right: 8px; }
.sample-slider-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.sample-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  padding: 0; transition: background .2s;
}
.sample-dot.active { background: #fff; }

/* サンプル動画（クリック・トゥ・ロード） */
.sample-movie-wrap { margin: 32px 0; }
.sample-movie-facade {
  position: relative; display: block; width: 100%;
  max-width: 680px; margin: 0 auto; padding: 0;
  aspect-ratio: 3 / 2; border: none; cursor: pointer;
  border-radius: var(--r); overflow: hidden; background: #000;
}
.sample-movie-facade img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; opacity: .65; transition: opacity .2s;
}
.sample-movie-facade:hover img { opacity: .45; }
.sample-movie-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ac); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; padding-left: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .2s;
}
.sample-movie-facade:hover .sample-movie-play {
  transform: translate(-50%, -50%) scale(1.1);
}
.sample-movie-label {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%); white-space: nowrap;
  color: #fff; font-size: .82rem; font-weight: 700;
  background: rgba(0,0,0,.6); padding: 4px 14px; border-radius: 20px;
}
.sample-movie-frame {
  position: relative; width: 100%; max-width: 680px;
  margin: 0 auto; aspect-ratio: 3 / 2;
  border-radius: var(--r); overflow: hidden; background: #000;
}
/* プレイヤーは固定サイズ描画のため、実サイズのiframeをJSのscaleで枠に合わせる */
.sample-movie-frame iframe {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0; border: 0;
}
.sample-movie-note {
  max-width: 680px; margin: 8px auto 0;
  font-size: .75rem; color: var(--muted); text-align: right;
}

/* ============================================================
   管理バー + sticky ヘッダー干渉対策
   ============================================================ */
/* デスクトップ管理バー（32px） */
.admin-bar .site-header {
    top: 32px;
}
/* スマホ管理バー（46px） */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================================
   モバイル: ヘッダーとheroの境界を明確化
   ============================================================ */
@media (max-width: 768px) {
    .site-header {
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }
    .hero {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }
}

/* ============================================================
   ブログランキング応援ボックス
   ============================================================ */
.support-box {
    text-align: center;
    padding: 18px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--r);
    margin: 28px 0;
}
.support-box-text {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 10px;
}
.support-box a {
    display: inline-block;
    line-height: 0;
    margin: 0 5px;
    vertical-align: middle;
}
.sidebar .widget .support-box {
    border: none;
    margin: 0;
    padding: 14px 12px;
}
