:root {
  --bg: #12141c;
  --bg-card: #1c1f2b;
  --bg-card-hover: #21243133;
  --text: #e6e6ec;
  --text-dim: #9a9aab;
  --accent: #e0507a;
  --accent-hover: #ea6b90;
  --border: #2a2d3a;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.3), 0 1px 6px rgba(0,0,0,0.2);
  --shadow-2: 0 4px 14px rgba(0,0,0,0.38), 0 1px 4px rgba(0,0,0,0.3);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

header.site-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title { font-size: 1.2rem; font-weight: bold; }

.pr-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

main { max-width: 860px; margin: 0 auto; padding: 24px 20px; }

.disclosure-banner {
  background: #24202a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 20px;
  margin-bottom: 16px;
}

.article-card h2 { margin-top: 0; font-size: 1.05rem; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

footer.site-footer nav a { margin: 0 8px; color: var(--text-dim); }

footer.site-footer .footer-genre-nav {
  justify-content: center;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

footer.site-footer .footer-genre-nav .tag-nav-label {
  display: block;
  width: 100%;
  margin: 0 0 6px;
}

.sns-placeholder { color: var(--text-dim); font-size: 0.75rem; opacity: 0.7; }

/* 年齢確認ゲート */
#age-gate-overlay {
  position: fixed;
  inset: 0;
  background: #05060a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-align: center;
  padding: 20px;
}

#age-gate-overlay .gate-box { max-width: 420px; }
#age-gate-overlay h1 { font-size: 1.3rem; margin-bottom: 12px; }
#age-gate-overlay p { color: #b8b8c4; font-size: 0.9rem; }

.gate-buttons { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }

.gate-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s var(--ease);
}

.gate-btn:hover { transform: translateY(-1px); }

.gate-btn.yes { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
.gate-btn.yes:hover { background: var(--accent-hover); }
.gate-btn.no { background: transparent; color: var(--text-dim); border-color: var(--border); }
.gate-btn.no:hover { color: var(--text); border-color: var(--text-dim); }

body.gate-active > *:not(#age-gate-overlay) { display: none; }

/* 商品一覧グリッド */
main.wide { max-width: 1200px; }

.genre-nav {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.genre-tab {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.genre-tab:hover { color: var(--text); text-decoration: none; }

.genre-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: bold;
}

.new-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.list-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.list-controls select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  transition: border-color 0.15s var(--ease);
}

.list-controls select:hover { border-color: var(--text-dim); }

.list-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#site-search {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  width: 180px;
  transition: border-color 0.15s var(--ease);
}

#site-search::placeholder { color: var(--text-dim); }
#site-search:focus { outline: none; border-color: var(--accent); }

.tag-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
}

.tag-nav-label { font-size: 0.85rem; color: var(--text-dim); margin-right: 4px; }

.pickup-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pickup-card {
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
}

.pickup-card:hover { text-decoration: underline; }

.tag-guide-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: -6px 0 16px;
}

.compare-table-wrap { overflow-x: auto; margin: 16px 0 24px; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table th, .compare-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table th { background: var(--bg-card); white-space: nowrap; }
.compare-table td:nth-child(3) { white-space: nowrap; }

.compare-table-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-table-thumb img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.compare-section-thumb {
  display: block;
  margin: 12px 0 16px;
}

.compare-section-thumb img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: #3a3e50;
}

.product-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #23263266, #23263266 10px, #1a1c2666 10px, #1a1c2666 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: center;
}

.product-thumb .thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.55) saturate(1.15);
  transform: scale(1.15);
}

.product-thumb .thumb-fg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumb .video-embed-slot {
  padding: 10px;
}

.product-thumb .duration-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

/* ライト動画などの公式埋め込みコードをここに差し込む */
.video-embed-slot {
  width: 100%;
  height: 100%;
}

.product-info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }

.product-code { font-size: 0.7rem; color: var(--text-dim); }

.product-title {
  font-size: 0.9rem;
  line-height: 1.4rem;
  min-height: 2.8rem;
  margin: 4px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-cta {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.product-cta:hover { text-decoration: none; background: var(--accent-hover); transform: translateY(-1px); }

.product-card[hidden] { display: none; }

.tag-row {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  gap: 4px;
  height: 24px;
  margin: 4px 0 8px;
}

.tag-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.6;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.tag-chip:hover { color: var(--text); border-color: var(--accent); }

.tag-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tag-filter-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -10px 0 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.tag-filter-status[hidden] { display: none; }

.tag-filter-status #tag-filter-current {
  color: var(--text);
  font-weight: bold;
}

.tag-filter-status button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.tag-filter-status button:hover { color: var(--text); border-color: var(--accent); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.article-tags .tag-chip-static {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.product-thumb-link { display: block; color: inherit; }
.product-thumb-link:hover { text-decoration: none; }

.list-controls-label { font-weight: bold; color: var(--text); }

/* 作品詳細ページの大きい埋め込み枠 */
.detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(45deg, #23263266, #23263266 10px, #1a1c2666 10px, #1a1c2666 20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

.detail-hero .video-embed-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.updated-date {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: -8px 0 16px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 6px; }
.breadcrumb-current { color: var(--text-dim); }

.banner-slot {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
}
.banner-slot ins { display: inline-block; max-width: 100%; }

/* スティッキーCTA(モバイルでスクロール追従する購入ボタン) */
.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.35);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.25s var(--ease);
}

.sticky-cta-bar.visible { transform: translateY(0); }

.sticky-cta-bar .pr-badge { margin-left: 0; flex-shrink: 0; }

.sticky-cta-bar .sticky-cta-link {
  flex: 1;
  max-width: 420px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s var(--ease);
}

.sticky-cta-bar .sticky-cta-link:hover { text-decoration: none; background: var(--accent-hover); }

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 20px;
}

.share-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-right: 2px;
}

.share-btn {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.share-btn:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

body.gate-active .sticky-cta-bar { display: none; }

.performer-line {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.performer-chip {
  color: var(--accent);
  font-weight: 600;
}

.performer-chip:hover { text-decoration: underline; }

.article-toc {
  margin: 4px 0 20px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.article-toc .toc-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.article-toc ol {
  margin: 0;
  padding-left: 20px;
}

.article-toc li {
  margin: 4px 0;
  font-size: 0.88rem;
}

.article-toc a { color: var(--accent); }
