/* erojav01 static — dark theme (missav-inspired card design) */
:root {
  --bg: #0f0f14;
  --bg2: #16161d;
  --bg3: #1e1e28;
  --text: #e8e8ec;
  --text-dim: #9a9aa5;
  --accent: #ff5f6d;
  --accent2: #e0485f;
  --border: #26262f;
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
main { max-width: 1280px; margin: 0 auto; padding: 0 14px 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.site-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-logo { font-weight: 800; font-size: 20px; color: var(--accent); white-space: nowrap; }
.site-search { flex: 1; max-width: 520px; }
.site-search input {
  width: 100%; padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg3); color: var(--text);
  font-size: 14px; outline: none;
}
.site-search input:focus { border-color: var(--accent2); }
.lang-switch { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* ===== card (missav style) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
  margin-top: 16px;
}
@media (min-width: 768px)  { .grid { grid-template-columns: repeat(4, 1fr); gap: 18px 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.card { min-width: 0; }
.card-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  aspect-ratio: 16/9;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.card-link { display: block; width: 100%; height: 100%; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.card:hover .card-thumb { box-shadow: 0 4px 16px rgba(0,0,0,.6); }
.card-thumb video.card-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.card-thumb video.card-preview.on { opacity: 1; }
.card-thumb img.off { opacity: 0; }
.card-badge-duration {
  position: absolute; right: 5px; bottom: 5px;
  background: rgba(0,0,0,.72); color: #eee;
  font-size: 11px; line-height: 1; padding: 4px 7px;
  border-radius: 5px; letter-spacing: .5px;
}
.card-title {
  display: block; margin-top: 8px;
  font-size: 13px; font-weight: 500; line-height: 1.45;
  color: var(--text) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title:hover { color: var(--accent); }
.card-meta {
  margin-top: 3px; font-size: 11px; line-height: 1.5;
  display: flex; flex-wrap: wrap; gap: 2px 8px;
}
.card-meta a { color: var(--text-dim); }
.card-meta a:hover { color: var(--accent); text-decoration: underline; }
.card-actress { font-weight: 500; }
.card-maker, .card-series { opacity: .85; }

/* ===== work page ===== */
.breadcrumb { font-size: 12px; color: var(--text-dim); margin: 14px 0 6px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.work h1 { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.player { border-radius: var(--radius); overflow: hidden; background: #000; }
.player video, .player .fluid_video_wrapper { width: 100%; max-height: 72vh; }
.player-novideo { position: relative; }
.player-novideo img { width: 100%; opacity: .4; }
.player-novideo .novideo-note {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-dim);
}

/* CTA */
.cta { margin: 16px 0; }
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 26px; border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(224,72,95,.3);
  transition: transform .12s, box-shadow .12s;
}
.cta-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 5px 18px rgba(224,72,95,.45); }

/* chips & info */
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.chip {
  font-size: 12px; padding: 4px 11px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 16px;
  color: var(--text-dim);
}
.chip:hover { color: #fff; border-color: var(--accent2); }
.chip-actress { color: var(--accent); border-color: rgba(255,95,109,.4); }

.info { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.info th, .info td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.info th { width: 100px; color: var(--text-dim); font-weight: 400; white-space: nowrap; }
.info td a { color: var(--accent); }
.info td a:hover { text-decoration: underline; }

.intro { margin: 18px 0; }
.intro h2, .related h2 { font-size: 15px; margin: 22px 0 12px; font-weight: 600; }
.intro p { color: var(--text); font-size: 14px; }

/* related: flexグリッド（孤立行防止・少数行は中央寄せ） */
.grid-rel {
  display: flex; flex-wrap: wrap; gap: 14px 12px;
  margin-top: 8px; justify-content: center;
}
.grid-rel .card { flex: 0 0 calc(50% - 6px); min-width: 0; }
@media (min-width: 768px)  { .grid-rel { gap: 18px 16px; } .grid-rel .card { flex-basis: calc(25% - 12px); } }
@media (min-width: 1200px) { .grid-rel .card { flex-basis: calc(20% - 12.8px); } }

/* pagination */
.pagination { display: flex; gap: 5px; justify-content: center; margin: 26px 0; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination .current {
  padding: 7px 11px; border-radius: 6px; background: var(--bg3);
  border: 1px solid var(--border); font-size: 13px; min-width: 36px; text-align: center;
}
.pagination a:hover { border-color: var(--accent2); }
.pagination .current { background: var(--accent2); color: #fff; border-color: var(--accent2); }
.pagination .dots { color: var(--text-dim); padding: 7px 2px; }

/* ad slots（ExoClick。中央配置・高さ確保でレイアウトシフト防止） */
.ad-slot { margin: 20px auto; text-align: center; }
.ad-squares {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.ad-bottom { min-height: 60px; }
.ad-slot ins { display: inline-block; max-width: 100%; }
.ad-slot iframe { margin: 0 auto; max-width: 100%; }

/* term list */
.term-list { columns: 2; margin-top: 14px; font-size: 14px; }
@media (min-width: 768px) { .term-list { columns: 4; } }
.term-list li { list-style: none; padding: 4px 0; color: var(--text-dim); }
.term-list a { color: var(--text); }
.term-list a:hover { color: var(--accent); }

/* search page */
.search-result { padding: 10px 0; border-bottom: 1px solid var(--border); }
.search-result a { display: flex; align-items: center; gap: 10px; }
.search-result .code { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.sr-thumb {
  width: 96px; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 5px; background: var(--bg3); flex-shrink: 0;
}

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 14px 70px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); font-size: 13px; }
.site-footer a:hover { color: var(--accent); }
.adult-notice { margin-top: 12px; font-size: 11px; color: var(--text-dim); }

h1 { font-size: 19px; margin: 16px 0 4px; }
