/* 真夜中シネマ - 共通スタイル
   デザイン：C案「深夜のレンタルビデオ店」
   黒基調＋ネオンピンク、注意書きイエローを少量。角丸は最小・影なし（発光はロゴ等の文字のみ）。
   外部ライブラリ不使用。英字・数字フォントは自前配信の Barlow Condensed。 */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0d10;
  --bg-panel: #141419;
  --bg-card: #17171e;
  --bg-thumb: #101016;
  --border: #26262e;
  --border-strong: #3a3a44;
  --text: #ded9d4;
  --text-2: #b9b3ac;
  --text-muted: #97909b;
  --neon: #ff2e88;
  --neon-soft: #ff8ac2;
  --neon-deep: #d81159;
  --neon-dim: #571233;
  --warn: #ffd21f;
  --warn-ink: #161616;
  --warn-dim: #8a7400;
  --danger: #ff6b6b;
  --radius: 2px;
  --font-latin: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic,
    "Noto Sans JP", Meiryo, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--neon-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* 年齢確認前は本文を見せない */
body:not(.age-verified) { overflow: hidden; }

/* 年齢確認ゲート */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
body.age-verified .age-gate { display: none; }
.age-gate-box {
  max-width: 520px;
  width: 100%;
  background: #121218;
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--neon);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.gate-confirm::before {
  content: "R18";
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 2px 14px 4px;
  border: 2px solid var(--warn);
  border-radius: var(--radius);
  color: var(--warn);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  line-height: 1.2;
}
.age-gate-box h1 { font-size: 1.4rem; margin: 0 0 8px; letter-spacing: 0.06em; }
.age-gate-box .gate-site-name {
  color: var(--neon-soft);
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-shadow: 0 0 6px rgba(255, 46, 136, 0.55), 0 0 20px rgba(255, 46, 136, 0.28);
}
.age-gate-box p { color: var(--text-2); font-size: 0.95rem; }
.age-gate-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  background: #1b1b22;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; border-color: var(--neon); color: #fff; }
.btn-primary { background: var(--neon-deep); border-color: var(--neon-deep); color: #fff; font-weight: bold; }
.btn-primary:hover { background: #e91e73; border-color: #e91e73; color: #fff; }
.btn-disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.gate-exit-message { display: none; }
.age-gate.exited .gate-confirm { display: none; }
.age-gate.exited .gate-exit-message { display: block; }

/* PR表記バー（注意書きイエローの帯） */
.pr-bar {
  background: var(--warn);
  color: var(--warn-ink);
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 2px solid #000;
}

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #0a0a0d;
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffe3f1;
  letter-spacing: 0.1em;
  text-shadow: 0 0 6px rgba(255, 46, 136, 0.6), 0 0 22px rgba(255, 46, 136, 0.3);
}
.site-logo::after {
  content: "R18";
  display: inline-block;
  margin-left: 12px;
  padding: 0 7px 1px;
  border: 1.5px solid var(--warn);
  border-radius: var(--radius);
  color: var(--warn);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  vertical-align: 0.28em;
  text-shadow: none;
}
.site-logo:hover { text-decoration: none; color: #fff; }
.site-logo small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: normal;
  letter-spacing: 0.3em;
  text-shadow: none;
}
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--text-2); font-size: 0.95rem; }
.main-nav a:hover { color: var(--neon-soft); text-decoration: none; }

/* レイアウト */
.container { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
section { margin-bottom: 44px; }
h2.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  word-break: auto-phrase;
  margin: 0 0 18px;
  padding-top: 14px;
  border-top: 2px solid var(--border-strong);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
h2.section-title::before {
  content: "";
  flex: none;
  width: 10px;
  height: 1em;
  background: var(--neon);
  transform: translateY(0.12em);
}
.note { color: var(--text-muted); font-size: 0.88rem; }
.sample-badge {
  display: inline-block;
  background: var(--warn);
  color: var(--warn-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 1px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.shelf-label {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  color: var(--neon-soft);
  margin: 0 0 8px;
}

/* ジャンル棚 */
.genre-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.genre-list a {
  display: inline-block;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon-dim);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}
.genre-list a:hover { border-color: var(--neon); border-left-color: var(--neon); text-decoration: none; color: #fff; }

/* 作品カード（ビデオ棚の密なグリッド） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-card:hover { border-color: var(--border-strong); }
a.work-card { color: var(--text); text-decoration: none; cursor: pointer; }
a.work-card:hover { text-decoration: none; }
a.work-card:hover .work-title { text-decoration: underline; }
.work-link span { color: var(--neon-soft); }
.rank-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 10px 4px; color: var(--text); text-decoration: none; box-sizing: border-box; }
.rank-row:hover { text-decoration: none; background: var(--bg-panel); }
.rank-row:hover .rank-title { text-decoration: underline; }
.rank-link span { color: var(--neon-soft); }
.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(45deg, #111118 0 10px, #15151d 10px 20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 8px 22px;
}
.work-thumb::after {
  content: "NO IMAGE";
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--neon-soft);
}
.work-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-title { font-weight: bold; margin: 0; }
.work-meta { color: var(--text-muted); font-size: 0.82rem; margin: 0; }
.work-desc { font-size: 0.9rem; margin: 0; flex: 1; color: var(--text-2); }
.work-link { margin-top: 8px; font-size: 0.9rem; font-weight: 600; }

/* ピックアップ */
.pickup {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--neon);
  border-radius: var(--radius);
  padding: 20px;
}
.pickup h3 { margin: 0 0 8px; font-size: 1.25rem; }

/* ランキング棚 */
.ranking-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ranking-list li {
  border-bottom: 1px solid var(--border);
}
.rank-num {
  flex: none;
  width: 64px;
  font-family: var(--font-latin);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--neon-soft);
  text-align: right;
}
.ranking-list li:first-child .rank-num { color: var(--neon); font-weight: 500; }
.rank-body { flex: 1; min-width: 0; }
.rank-title { font-weight: bold; margin: 0; }
.rank-link { flex: none; margin: 0; font-size: 0.9rem; font-weight: 600; }

/* 新着リスト */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.news-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.news-date {
  flex: none;
  width: 76px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* 記事 */
.article-header h1 { font-size: 1.65rem; font-weight: 800; line-height: 1.45; margin: 0 0 10px; word-break: auto-phrase; }
.article-header { border-bottom: 2px solid var(--border-strong); padding-bottom: 14px; margin-bottom: 24px; }
table.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-panel);
  margin: 16px 0;
  font-size: 0.95rem;
}
table.info-table th, table.info-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.info-table th { background: #1d1d24; color: var(--text-2); width: 30%; white-space: nowrap; }
.placeholder-box {
  border: 1px dashed var(--warn-dim);
  background: #17150c;
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  font-size: 0.92rem;
  color: var(--text-2);
}
.placeholder-box .ph-title { color: var(--warn); font-weight: bold; display: block; margin-bottom: 4px; }
.cta-area { text-align: center; margin: 28px 0; padding: 24px 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-area .btn { min-width: 260px; max-width: 100%; }

/* 404 */
.nf-main { text-align: center; padding-top: 64px; }
.nf-code {
  font-family: var(--font-latin);
  font-weight: 300;
  font-size: 5rem;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--neon-soft);
  text-shadow: 0 0 8px rgba(255, 46, 136, 0.5), 0 0 28px rgba(255, 46, 136, 0.25);
}
.nf-back { margin-top: 24px; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0a0a0d;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer-inner { max-width: 1080px; margin: 0 auto; padding: 20px 16px; }
.site-footer ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--neon-soft); }

/* モバイル対応 */
@media (max-width: 600px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { margin-left: 0; }
  .article-header h1 { font-size: 1.32rem; }
  table.info-table th { width: 38%; white-space: normal; }
  .age-gate-box { padding: 24px 18px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .rank-num { width: 48px; font-size: 2rem; }
  .news-list li { gap: 10px; }
  .news-date { width: 62px; }
  .nf-code { font-size: 3.6rem; }
}

/* 実画像サムネイル */
.work-thumb.has-img { padding: 0; }
.work-thumb.has-img::after { content: none; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* サンプル動画埋め込み */
.sample-movie { margin: 12px auto; max-width: 720px; }
.sample-movie iframe { width: 100%; height: auto; aspect-ratio: 3 / 2.2; border: 1px solid var(--border); display: block; background: #000; box-sizing: border-box; overflow: hidden; }

/* サイト内検索 */
.search-box { margin: 16px 0 8px; }
.search-box input { width: 100%; padding: 12px 14px; font-size: 1rem; background: var(--bg-panel); border: 1px solid var(--border-strong); color: var(--text); border-radius: 3px; box-sizing: border-box; }
