/* AVランキングナビ — FANZA動画紹介 dark editorial */
:root {
  --bg: #0d0d0f;
  --bg-elev: #16161a;
  --bg-card: #1a1a1f;
  --border: #2a2a32;
  --text: #f2f0f3;
  --muted: #9a96a0;
  --accent: #e8336d;
  --accent-soft: rgba(232, 51, 109, 0.15);
  --accent-hover: #ff4d85;
  --radius: 10px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Segoe UI", sans-serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Age gate ---- */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 8, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#age-gate.hidden {
  display: none;
}
.age-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.age-panel h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.age-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}
.age-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.logo span {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover,
.nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- Layout ---- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.section {
  margin-bottom: 48px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.section-head .more {
  font-size: 0.8rem;
  color: var(--accent);
}
.section-head .more:hover {
  color: var(--accent-hover);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(232, 51, 109, 0.22), transparent 55%),
    linear-gradient(180deg, #1c1c22 0%, #121216 100%);
  border: 1px solid var(--border);
  padding: 48px 28px;
  margin-bottom: 40px;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 36em;
  font-size: 0.95rem;
}
.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Axis teaser cards ---- */
.axis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .axis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .axis-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.axis-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition: border-color 0.15s, transform 0.15s;
}
.axis-card:hover {
  border-color: rgba(232, 51, 109, 0.45);
  transform: translateY(-2px);
}
.axis-card .axis-num {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.axis-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.axis-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

/* ---- Cards grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card.item-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  opacity: 0;
  transform: translateY(8px);
}
.card.item-card.show {
  opacity: 1;
  transform: translateY(0);
}
.card.item-card:hover {
  border-color: rgba(232, 51, 109, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}
.card .thumb {
  aspect-ratio: 3 / 4;
  background: #222;
  background-color: #222;
}
.card .cat {
  margin: 10px 12px 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.card .title {
  margin: 6px 12px 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .model {
  margin: 4px 12px 14px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .price-line {
  margin: 0 12px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}
.card .price-line .sale {
  color: var(--accent);
  font-weight: 600;
  margin-left: 6px;
}

/* ---- Ranking ---- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-row {
  display: grid;
  grid-template-columns: 44px 64px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.15s, background 0.15s;
}
.rank-row:hover {
  border-color: rgba(232, 51, 109, 0.4);
  background: #1e1e24;
}
.rank-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.rank-thumb {
  width: 64px;
  height: 84px;
  border-radius: 6px;
  background: #222;
}
.rank-mid .title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-mid .model {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.rank-move {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .rank-row {
    grid-template-columns: 36px 52px 1fr;
  }
  .rank-move {
    grid-column: 3;
    justify-self: start;
    margin-top: -4px;
  }
  .rank-thumb {
    width: 52px;
    height: 68px;
  }
}

/* ---- Genre tabs / hub ---- */
.genre-hub {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .genre-hub {
    grid-template-columns: repeat(3, 1fr);
  }
}
.genre-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.genre-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.genre-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}
.genre-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.genre-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.genre-tabs a.active,
.genre-tabs a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Editorial blurb ---- */
.blurb {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 22px;
}
.blurb h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text);
}
.blurb p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- Sale ---- */
.sale-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  counter-reset: step;
}
.sale-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.sale-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Review detail ---- */
.review-layout {
  display: grid;
  gap: 28px;
}
@media (min-width: 768px) {
  .review-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}
.review-cover {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1a1a1f;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
}
.review-meta h1 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.3;
}
.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.meta-list li {
  margin-bottom: 6px;
}
.meta-list strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 8px;
}
.review-blurb {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  max-width: 40em;
}
.cta-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #6a6670;
}

/* ---- About ---- */
.prose {
  max-width: 42em;
  color: var(--muted);
  font-size: 0.95rem;
}
.prose h1 {
  color: var(--text);
  margin: 0 0 16px;
}
.prose h2 {
  color: var(--text);
  margin: 28px 0 10px;
  font-size: 1.1rem;
}
.prose ul {
  padding-left: 1.2em;
}
.prose a {
  color: var(--accent);
}
.prose code {
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 40px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}
.site-footer .footer-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.site-footer .footer-links a {
  text-decoration: none;
}
.site-footer .footer-links a:hover {
  color: var(--accent);
}

/* ---- Misc ---- */
.loading {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0;
}
.demo-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(232, 51, 109, 0.4);
  pointer-events: none;
}
.notice {
  background: var(--accent-soft);
  border: 1px solid rgba(232, 51, 109, 0.35);
  color: #ffb3c9;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.empty {
  color: var(--muted);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}
