/* FanzaStaticGen — MSBダークテーマ完全移植 */
/* カラー変数 */
:root {
  --bg:         #0f0f0f;
  --bg-card:    #1a1a2e;
  --bg-header:  #12122a;
  --text:       #e0e0e0;
  --text-muted: #999;
  --accent:     #e94560;
  --cta:        #ff6b35;
  --cta-hover:  #ff8c5a;
  --border:     #333;
  --link:       #7eb8f7;
  --star:       #f5c518;
}

/* リセット & ベース */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* コンテナ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: 0.85; }

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 16px;
}
.site-nav a:hover { color: var(--text); }

/* メインコンテンツ */
.main-content {
  flex: 1;
  padding: 32px 0;
}

/* 姉妹サイトリンク */
.cross-site-links {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin: 16px 0;
}

.cross-site-links h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.cross-site-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cross-site-list li {
  margin: 0;
}

.cross-site-list a {
  font-size: 0.85rem;
  color: var(--link);
  text-decoration: none;
  transition: opacity 0.2s;
}

.cross-site-list a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* フッター */
.site-footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* ===== カードグリッド ===== */
.cards-grid {
  display: grid;
  gap: 20px;
}
.cards-grid--3 {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 600px) {
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.cards-grid--5 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
  .cards-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .cards-grid--5 { grid-template-columns: repeat(5, 1fr); }
}

/* ===== 商品カード ===== */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.2);
}

.card-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 7 / 10;
  background-color: #111;
}
.card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-image-link:hover img { transform: scale(1.04); }

.card-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* スコアバッジ */
.score-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(0,0,0,0.75);
  color: var(--text);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.score-badge--high { background-color: rgba(233, 69, 96, 0.85); }
.score-badge--mid  { background-color: rgba(255, 107, 53, 0.85); }
.score-badge--low  { background-color: rgba(0, 0, 0, 0.75); }

/* セールバッジ */
.sale-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-price-wrap { display: flex; align-items: center; gap: 8px; }

.card-rating { font-size: 0.8rem; }
.stars { color: var(--star); letter-spacing: -1px; }
.rating-badge-section .rating-stars { color: #f5c518; }
.rating-num { color: var(--text-muted); font-size: 0.75rem; }

/* ===== 価格 ===== */
.price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-current {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== CTAボタン ===== */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--cta) 0%, #e8451a 100%);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
  letter-spacing: 0.03em;
}
.cta-button:hover {
  background: linear-gradient(135deg, var(--cta-hover) 0%, var(--cta) 100%);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.55);
}
.cta-button:active { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4); }

.cta-primary { padding: 14px 24px; font-size: 1rem; width: 100%; }
.cta-large   { padding: 20px 36px; font-size: 1.15rem; }
.cta-small   { padding: 8px 14px; font-size: 0.8rem; width: 100%; }

/* パルスアニメーション */
@keyframes cta-pulse {
  0%   { box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5), 0 0 0 0 rgba(255, 107, 53, 0.6); }
  70%  { box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5), 0 0 0 16px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5), 0 0 0 0 rgba(255, 107, 53, 0); }
}
.cta-pulse { animation: cta-pulse 2s infinite; }

/* 割引バッジ */
.discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e94560, #c0392b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* CTAセクション */
.cta-section {
  text-align: center;
  padding: 32px 16px;
  margin: 32px 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cta-final {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-color: var(--accent);
}
.cta-lead {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.cta-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.cta-price-info {
  margin: 10px 0 16px;
  font-size: 1rem;
}

/* ===== 記事ページ ===== */
.article-page { max-width: 860px; margin: 0 auto; }

.article-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 600px) {
  .article-hero {
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: start;
  }
}

.article-hero-image img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.article-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
@media (min-width: 600px) { .article-title { font-size: 1.6rem; } }

.article-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.article-price .price-current { font-size: 1.4rem; }

/* セクション */
.article-section {
  margin: 40px 0;
}
.article-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 16px;
}

/* 商品情報テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.info-table th,
.info-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.info-table th {
  background-color: var(--bg-card);
  color: var(--text-muted);
  width: 35%;
  font-weight: 600;
}
.info-table tr:nth-child(even) td { background-color: rgba(255,255,255,0.02); }

/* 背徳建築度：説明文 */
.betrayal-score-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 520px;
}
.betrayal-score-description strong { color: var(--text); }
.score-metadata-container { display: flex; gap: 16px; align-items: flex-start; }
.score-chart-wrapper { flex-shrink: 0; width: 280px; }
.score-chart-wrapper svg { width: 100%; height: auto; max-width: 280px; }
.score-info { display: flex; flex-direction: column; gap: 8px; }
.score-rating { font-size: 1.1rem; font-weight: bold; color: var(--accent); }
.score-description { font-size: 0.9rem; color: var(--text-muted); }

/* スマホ: 背徳NTRスコアチャートが見切れないように */
@media (max-width: 599px) {
  .score-metadata-container { flex-wrap: wrap; }
  .score-chart-wrapper { width: 100%; max-width: 100%; min-width: 0; flex-shrink: 1; }
  .score-chart-wrapper svg { max-width: 100%; }
}

/* 商品説明 */
.article-description {
  line-height: 1.8;
  color: var(--text);
}

/* サンプルギャラリー（1カラム・スマホ最適化） */
.sample-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
.sample-thumb img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}
.sample-thumb img:hover {
  transform: scale(1.02);
}

/* おすすめ度スコアバー */
.review-stars { font-size: 1.1rem; }
.review-score-label { font-size: 0.85rem; color: var(--text-muted); margin-left: 6px; }
.review-score-bar {
  margin-top: 6px;
  height: 6px;
  background-color: var(--border);
  border-radius: 3px;
  overflow: hidden;
  max-width: 200px;
}
.review-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f5a623);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* AIレビュー */
.ai-review .review-body {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  line-height: 1.8;
  color: var(--text);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item dt {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
}
.faq-item dd {
  padding-left: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

/* 内部リンク */
.link-list { list-style: none; padding: 0; }
.link-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.link-list li:last-child { border-bottom: none; }
.link-list a { color: var(--link); }
.link-list a:hover { color: var(--accent); }

/* ===== インデックスページ ===== */
.page-header { margin-bottom: 32px; text-align: center; }
.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.page-subtitle { color: var(--text-muted); font-size: 0.95rem; }

.no-items { text-align: center; color: var(--text-muted); padding: 60px 0; }

/* ページネーション */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.page-link:hover {
  background-color: var(--bg-card);
  text-decoration: none;
}
.page-current {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-ellipsis {
  display: inline-block;
  padding: 8px 4px;
  color: var(--text-muted);
}

/* ユーティリティ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
