:root {
  --bg: #12141c;
  --bg-card: #1c1f2b;
  --text: #e6e6ec;
  --text-dim: #9a9aab;
  --accent: #e0507a;
  --border: #2a2d3a;
}

* { 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;
}

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.75rem;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  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: 8px;
  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: 10px;
  padding: 18px;
  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); }

.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: 6px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.gate-btn.yes { background: var(--accent); color: #fff; }
.gate-btn.no { background: #333; color: #ccc; }

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;
}

.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: 1;
}

.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: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  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;
  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;
}

/* ライト動画などの公式埋め込みコードをここに差し込む */
.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;
  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: 8px 0;
  border-radius: 6px;
  font-size: 0.85rem;
}
.product-cta:hover { text-decoration: none; opacity: 0.9; }

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

.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: 10px;
  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;
}
