/* 静的ページ（作品・女優・ジャンル）用。配色は style.css と揃える */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #ff2d78;
  --accent-grad: linear-gradient(135deg, #ff2d78 0%, #ff8a3d 100%);
  --bg: #0e0a12;
  --surface: #1a1320;
  --line: rgba(255,255,255,0.1);
  --muted: rgba(255,255,255,0.6);
}

body {
  background: var(--bg);
  color: #fff;
  font-family: 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  line-height: 1.6;
}

body.gated { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, calc((100% - 960px) / 2 + 16px));
  background: rgba(14,10,18,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-logo img { height: 40px; width: auto; display: block; }

.site-search {
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
}

/* ---- Main ---- */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb .sep { margin: 0 6px; }

h1 {
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.h1-count {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border-radius: 12px;
  background: rgba(255,45,120,0.18);
  color: #ff7aa8;
  font-size: 13px;
  vertical-align: middle;
}

h2 {
  font-size: 16px;
  margin: 28px 0 12px;
}

.lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---- Buttons ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.btn-cta, .btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
}

.btn-cta {
  background: var(--accent-grad);
  box-shadow: 0 2px 14px rgba(255,45,120,0.4);
}

.btn-sub {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
}

/* ---- Video page ---- */
.player {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.player video { width: 100%; height: 100%; display: block; }

.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
  margin: 16px 0;
}

.meta dt { color: var(--muted); }
.meta dd a:not(.chip) { color: #ff7aa8; text-decoration: underline; text-underline-offset: 2px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px 10px;
}

.card { display: block; }

.card-thumb {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 6px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* サムネイル右半分がパッケージ表面 */
  display: block;
  transition: transform 0.2s;
}

.card:hover .card-thumb img { transform: scale(1.04); }

.card-actress {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  font-size: 13px;
}

.chip:hover { background: rgba(255,255,255,0.12); }
.chip-count { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ---- Footer ---- */
.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  border-top: 1px solid var(--line);
}

.footer-note {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ---- Age gate ---- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #08060b;
}

.age-gate[hidden] { display: none; }

.age-gate-box {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.age-gate-logo { width: 220px; max-width: 70%; height: auto; }
.age-gate-label { font-size: 20px; font-weight: 700; }
.age-gate-desc { font-size: 14px; color: rgba(255,255,255,0.65); }

.age-gate-box button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.btn-yes { background: var(--accent-grad); }
.btn-no  { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8) !important; }

@media (min-width: 720px) {
  h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
