/* ============================================================
   AI Content Platform — 共通コンポーネントライブラリ
   全サイト・全ページタイプで使用する再利用可能なUIコンポーネント集

   読み込み順: theme.css → components.css → pt-{page_type}.css
   ============================================================ */

/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Maru+Gothic:wght@700&display=swap');

/* ── リセット & 基本 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body, 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  line-height: var(--line-height, 1.8);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover, var(--accent)); }

/* ── レイアウト ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width, 1080px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 24px);
}
.container-narrow {
  max-width: var(--max-width-narrow, 860px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 24px);
}

/* ── サイトヘッダー（CLAUDE.md準拠クラス名） ────────────────── */
.site-header {
  background: var(--header-bg, var(--bg-primary));
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px var(--shadow-sm, rgba(0,0,0,0.12));
}
.header-inner {
  max-width: var(--max-width, 1080px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height, 56px);
  gap: 16px;
}
.site-logo {
  font-family: var(--font-heading, 'Zen Maru Gothic', 'Noto Sans JP', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--logo-color, var(--accent));
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--accent-hover, var(--accent)); }

/* ハンバーガーメニュー（checkbox方式 — CLAUDE.md準拠） */
.hamburger-toggle { display: none; }
.hamburger-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px;
  transition: background 0.2s;
}
.hamburger-btn:hover { background: var(--surface, rgba(255,255,255,0.06)); }
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger-toggle:checked ~ .hamburger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-toggle:checked ~ .hamburger-btn span:nth-child(2) { opacity: 0; }
.hamburger-toggle:checked ~ .hamburger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 1;
  min-width: 0;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  font-family: 'Courier New', 'Consolas', monospace;
  transition: color 0.2s;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--terminal-green, #00d4aa);
}

/* ── パンくずリスト ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 10px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); }

/* ── CTAボタン ─────────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--cta-bg, var(--accent));
  color: var(--cta-text, #fff);
  padding: 14px 28px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 16px var(--cta-shadow, rgba(0,0,0,0.2));
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--cta-shadow, rgba(0,0,0,0.3));
  color: var(--cta-text, #fff);
  opacity: 0.92;
}
.cta-btn:active { transform: translateY(0); }
.cta-btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.cta-btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.cta-btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.cta-btn--outline:hover { background: var(--accent); color: #fff; }

/* ── 関連記事カード（rec-card）────────────────────────────── */
.rec-section { padding: 40px 0; }
.rec-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rec-card {
  background: var(--surface, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius, 12px);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-md, rgba(0,0,0,0.2));
  border-color: var(--accent);
  color: var(--text-primary);
}
.rec-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.rec-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.rec-card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--badge-bg, rgba(255,255,255,0.1));
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.rec-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.rec-card-more {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
  padding-top: 4px;
}

/* ── 比較表（◎/○/△ 記号・CLAUDE.md準拠）───────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-secondary, var(--surface));
  border-radius: var(--radius, 12px);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow-sm, rgba(0,0,0,0.1));
}
.comparison-table th {
  background: var(--table-header-bg, var(--accent));
  color: var(--table-header-text, #fff);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
  vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--surface, rgba(0,0,0,0.02)); }
/* おすすめ行ハイライト */
.highlight-row td { background: var(--highlight-row-bg, #fef9c3) !important; }
.highlight-row td:first-child {
  border-left: 4px solid var(--accent);
}
/* 評価記号（セマンティックカラー準拠） */
.grade-s { color: var(--color-status-positive, #3fb950); font-weight: 700; }
.grade-a { color: #2563eb; font-weight: 700; }
.grade-b { color: var(--color-status-neutral, #d29922); font-weight: 700; }
.grade-c { color: var(--color-status-negative, #f85149); font-weight: 700; }

/* ── ランキングカード ────────────────────────────────────────── */
.ranking-cards { display: flex; flex-direction: column; gap: 20px; }
.ranking-card {
  border: 2px solid var(--border-color, #e8ecf0);
  border-radius: var(--radius, 12px);
  padding: 24px;
  position: relative;
  background: var(--card-bg, var(--bg-primary));
  transition: transform 0.2s, box-shadow 0.2s;
}
.ranking-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px var(--shadow-md, rgba(0,0,0,0.12));
}
.ranking-card.rank-1 {
  border-color: #f5a623;
  box-shadow: 0 2px 16px rgba(245,166,35,0.18);
}
.ranking-card.rank-2 { border-color: #adb5bd; }
.ranking-card.rank-3 { border-color: #cd7f32; }
.rank-badge {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.ranking-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.ranking-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.stat {
  background: var(--badge-bg, rgba(255,255,255,0.08));
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── 口コミ・レビューカード ─────────────────────────────────── */
.review-card {
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius, 12px);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-stars { color: var(--star-color, #f5a623); font-size: 1rem; letter-spacing: 2px; }
.review-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.review-text {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* ── 対話形式口コミ ─────────────────────────────────────────── */
.review-dialogue { display: flex; flex-direction: column; gap: 16px; }
.dialogue-item { display: flex; gap: 12px; align-items: flex-start; }
.dialogue-item.char { flex-direction: row-reverse; }
.dialogue-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.bubble-user, .bubble-char {
  background: var(--surface, rgba(255,255,255,0.06));
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.86rem;
  line-height: 1.7;
  max-width: 80%;
  position: relative;
}
.bubble-user {
  border-radius: 0 12px 12px 12px;
  background: var(--surface, rgba(255,255,255,0.06));
}
.bubble-char {
  border-radius: 12px 0 12px 12px;
  background: var(--accent-light-bg, rgba(59,130,246,0.12));
  border: 1px solid var(--accent-border, rgba(59,130,246,0.2));
}
.bubble-user-name, .bubble-char-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

/* ── キャラクターコメントボックス ─────────────────────────────── */
.miku-comment-box,
.nana-comment-box,
.kai-comment-box,
.char-comment-box {
  background: var(--char-comment-bg, rgba(255,255,255,0.04));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius, 12px) var(--radius, 12px) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.88rem;
  line-height: 1.8;
}
.char-comment-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── FANZAレビュー用コンポーネント（rv-* クラス互換） ──────── */
.rv-product {
  background: var(--surface, rgba(255,255,255,0.05));
  border-radius: 14px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  overflow: hidden;
  padding: 20px;
}
.rv-product-rank {
  font-family: var(--font-heading, 'Zen Maru Gothic', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.rv-product-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rv-product-title {
  font-family: var(--font-heading, 'Zen Maru Gothic', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}
.rv-product-actress {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.rv-product-rating { font-size: 0.9rem; margin-bottom: 12px; }
.rv-point-label {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.rv-good-label { background: rgba(100,200,120,0.2); color: #7ec89a; }
.rv-bad-label { background: rgba(200,100,100,0.2); color: #e07070; }
.rv-product-points { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rv-product-points ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rv-product-points li {
  font-size: 0.82rem;
  padding-left: 16px;
  position: relative;
}
.rv-product-points li::before {
  content: "◎";
  position: absolute;
  left: 0;
  font-size: 0.62rem;
  color: #7ec89a;
}
.rv-bad p { font-size: 0.82rem; color: var(--text-muted); }
.rv-nana-comment {
  background: var(--char-comment-bg, rgba(155,142,196,0.12));
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.rv-nana-icon {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.rv-nana-comment p { font-size: 0.84rem; line-height: 1.7; }
.rv-cta {
  display: inline-block;
  background: var(--cta-bg, linear-gradient(135deg,var(--accent),var(--accent-hover)));
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.rv-cta:hover { opacity: 0.85; color: #fff; }

/* FANZAサンプル画像 */
.rv-sample-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color, rgba(255,255,255,0.1)); }
.rv-sample-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
}
.rv-sample-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.rv-sample-grid img { width: 100%; border-radius: 8px; object-fit: cover; }
.rv-sample-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.rv-sample-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── フッター ────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg, var(--bg-secondary, #1a1d27));
  color: var(--footer-text, var(--text-secondary));
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
  padding: 40px 0 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-width, 1080px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.82rem;
}
.footer-nav a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-disclaimer {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.06));
  padding-top: 16px;
  margin-top: 8px;
}
.footer-copyright {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── ステップガイド ──────────────────────────────────────────── */
.step-guide { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 0 0 28px 0;
  position: relative;
}
.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border-color, rgba(255,255,255,0.1));
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-content { flex: 1; padding-top: 8px; }
.step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.step-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── タグ・バッジ ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--surface, rgba(255,255,255,0.08));
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tag-accent {
  background: var(--accent-light-bg, rgba(59,130,246,0.12));
  color: var(--accent);
  border: 1px solid var(--accent-border, rgba(59,130,246,0.2));
}
.badge-pr { display: none; } /* PR/広告バッジは非表示（CLAUDE.md準拠） */

/* ── リードテキスト・コールアウト ────────────────────────────── */
.lead-text {
  background: var(--surface, rgba(255,255,255,0.04));
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 28px;
  line-height: 1.9;
  font-size: 0.95rem;
}
.callout {
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius, 12px);
  padding: 20px 24px;
  margin: 24px 0;
}
.callout-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--accent);
}

/* ── モバイル対応 ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rec-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hamburger-btn { display: flex; }
  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-height, 56px);
    left: 0;
    right: 0;
    background: var(--header-bg, var(--bg-primary));
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
    padding: 16px var(--container-pad, 24px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 99;
  }
  .hamburger-toggle:checked ~ nav.header-nav { display: flex; }
  .rv-sample-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rec-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.78rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
  .rv-product-inner { flex-direction: column; }
}
@media (min-width: 580px) {
  .rv-product-inner { flex-direction: row; gap: 20px; }
  .rv-product-thumb { width: 160px; flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════════════
   静的ページ共通スタイル (generate_static_pages.py 生成ページ)
   ─ compare-table, rank-cta, feature-chip, miku-comment 等
   ═══════════════════════════════════════════════════════════ */

/* ── 比較表 (v3 — .compare-table) ── */
.comparison-section { margin: 40px 0; }
.compare-table-wrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-sm);
}
.compare-table th {
  background: var(--table-header-bg, #1d2233);
  color: var(--table-header-text, #e2e8f0);
  padding: 11px 14px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.compare-table td {
  padding: 11px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-tertiary); }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--text-primary); }
.compare-row-highlight { background: rgba(245,158,11,0.12) !important; }
.compare-row-highlight:hover { background: rgba(245,158,11,0.18) !important; }
.sec-name { font-weight: 700; text-align: left; white-space: nowrap; min-width: 120px; }
.recommend-badge {
  display: inline-block;
  background: #3b5bdb;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── 評価記号 ── */
.rating-s { color: #16a34a; font-weight: 700; }
.rating-a { color: #2563eb; font-weight: 700; }
.rating-b { color: #d97706; font-weight: 700; }
.rating-c { color: #dc2626; font-weight: 700; }
.check { color: #15803d; font-weight: 700; }
.cross { color: #b91c1c; }
.highlight-col { background: rgba(59,130,246,0.12) !important; }
th.highlight-col { color: #93c5fd !important; }

/* ── テーブル内CTAリンク ── */
.table-cta {
  display: inline-block;
  background: #3b5bdb;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 600;
}
.table-cta:hover { background: #2f4dbf; color: #fff; }
.table-cta.cta-disabled { background: #adb5bd; pointer-events: none; }

/* ── スクロールヒント ── */
.table-scroll-hint {
  display: none;
  font-size: 0.72rem;
  color: #888;
  margin-bottom: 4px;
}
@media (max-width: 767px) { .table-scroll-hint { display: block; } }

/* ── ランキングCTAボタン (.rank-cta) ── */
.rank-cta {
  display: block;
  text-align: center;
  padding: 14px 13px;
  margin-top: 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s;
  background: #b45309;
  color: #fff;
}
.rank-cta:hover { opacity: 0.85; color: #fff; }
.rank-cta.cta-disabled { background: #adb5bd; pointer-events: none; }

/* ── 汎用CTAボタン (.cta-btn) ── */
.cta-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: #e67700;
  color: #fff;
  transition: background 0.2s;
}
.cta-btn:hover { background: #d46200; color: #fff; }
.cta-btn.cta-disabled { background: #adb5bd; pointer-events: none; cursor: default; }

/* ── フィーチャーチップ ── */
.feature-chip {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--surface);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}
.rank-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* ── かいコメント (.miku-comment) ── */
.miku-comment {
  background: var(--char-comment-bg, rgba(59,130,246,0.06));
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.miku-comment .miku-name {
  font-size: 0.78rem;
  color: #3b82f6;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ── 結論ボックス ── */
.conclusion-box {
  background: rgba(59,130,246,0.08);
  border: 2px solid rgba(59,130,246,0.4);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}
.conclusion-box h3 { color: #60a5fa; margin-bottom: 10px; font-size: 1rem; }
.conclusion-box p { color: var(--text-primary); font-size: 0.95rem; line-height: 1.7; }

/* ── ランキングリスト v3 (.rank-card) ── */
.ranking-list { list-style: none; padding: 0; margin: 0 0 32px 0; }
.rank-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow-md);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.rank-card .rank-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}
.rank-card .rank-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.rank-card.rank-1 .rank-badge { background: #fbbf24; color: #78350f; }
.rank-card.rank-2 .rank-badge { background: #94a3b8; color: #0f1117; }
.rank-card.rank-3 .rank-badge { background: #b45309; color: #fff; }
.rank-name { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.rank-tag {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.rank-card-body { padding: 16px 20px; }
.rank-pros-cons { font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); }
.rank-pros-cons .pros { color: #15803d; }
.rank-pros-cons .cons { color: #b91c1c; }

/* ── FAQ セクション ── */
.faq-section { margin: 40px 0; }
.faq-section > h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-left: 4px solid #6366f1;
  background: rgba(99,102,241,0.08);
  border-radius: 0 6px 6px 0;
  color: var(--text-primary);
  line-height: 1.4;
}
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(99,102,241,0.06);
  border-left: 4px solid #6366f1;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
}
.faq-q::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px 14px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}
.faq-a::before {
  content: 'A';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   目次 (.toc) — 全ページタイプ共通
   ページタイプに関わらず <nav class="toc"> で使用
   ============================================================ */
.toc {
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius, 12px);
  padding: 20px 24px;
  margin: 28px 0;
}
.toc-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-title::before {
  content: '📋';
  font-size: 0.9rem;
}
.toc ol,
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}
.toc ol li,
.toc-list li {
  counter-increment: toc;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.toc ol li::before,
.toc-list li::before {
  content: counter(toc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--accent, #3b82f6);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.toc ol a,
.toc-list a {
  color: var(--text-secondary, #475569);
  transition: color 0.2s;
  line-height: 1.5;
}
.toc ol li:hover a,
.toc-list a:hover { color: var(--accent); }
@media (max-width: 640px) { .toc { padding: 16px; } }

/* ============================================================
   セクション区切り (section[id^="section-"]) — 全ページタイプ共通
   generate_static_pages.py が出力する <section id="section-N"> に対応
   ranking / review / journal / recommend / guide / comparison 全て有効
   ============================================================ */
.static-page section[id^="section-"] {
  margin: 0;
  padding: 40px 0 0;
  border-top: 2px solid var(--border-color, #e5e7eb);
  position: relative;
}
.static-page section[id^="section-"]:first-of-type {
  border-top: none;
  padding-top: 8px;
}
.static-page section[id^="section-"] h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--accent, #312e81);
  background: var(--accent-light-bg, rgba(99,102,241,0.06));
  border-radius: 0 8px 8px 0;
  color: var(--text-primary, #1e1b4b);
  box-shadow: 0 1px 3px var(--shadow-sm, rgba(0,0,0,0.06));
}
.static-page section[id^="section-"] p {
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--text-secondary, #374151);
  margin-bottom: 16px;
}
.static-page section[id^="section-"] p:last-child { margin-bottom: 0; }
/* セクション間アクセントライン */
.static-page section[id^="section-"]:not(:first-of-type)::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--accent, #6366f1), var(--accent-dark, #312e81));
  margin-bottom: 12px;
  border-radius: 2px;
}

/* ── ガイドリンクセクション（デイリーレポート・各記事共通） ── */
.guide-links-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0;
}
.guide-links-title {
  color: #00d4aa;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
  margin-bottom: 14px;
}
.guide-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.guide-links-list li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.guide-links-list li:last-child { border-bottom: none; }
.guide-links-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: #94a3b8;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.guide-links-list li a:hover { color: #00d4aa; padding-left: 4px; }
.guide-links-list li a::before { content: '→'; color: #00d4aa; flex-shrink: 0; }
.guide-link-badge {
  font-size: 0.7rem;
  background: rgba(0,212,170,0.1);
  color: #00d4aa;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
}

/* ============================================================
   比較コンポーネント — my-best.com 風グラフィカル要素
   2026-04-21 追加 (DesignSpec 設計・CSS/SVG only・JS 依存ゼロ)
   詳細: docs/playbooks/writer-skill-analysis-2026-04-21.md
   spoke_generator が compare_items から自動挿入する
   ============================================================ */

/* 商品カード（画像 + 名前 + スコア + CTA）グリッド */
.compare-grid-imaged {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 1.8rem 0;
  overflow-x: auto;
}
.product-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.product-card-img {
  width: 80px; height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}
.product-card-body { flex: 1; min-width: 0; }
.product-card-name {
  font-size: .95rem; font-weight: 700; color: #1e293b;
  margin: 0 0 .3rem; line-height: 1.4;
}
.product-card-cta {
  display: inline-block; margin-top: .5rem;
  padding: .35rem .7rem;
  background: var(--accent, #312e81); color: #fff;
  border-radius: 6px; text-decoration: none;
  font-size: .78rem; font-weight: 700;
}
.product-card-cta:hover { opacity: .9; }

/* NoImage SVG プレースホルダー */
.noimage-svg {
  width: 80px; height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: #94a3b8;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}
.noimage-svg::before { content: "📷"; font-size: 1.6rem; }

/* ★スコア表示（SVG 5 個並び） */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  font-size: .9rem;
  color: #fbbf24;
}
.rating-stars[data-score="5"]::before { content: "★★★★★"; }
.rating-stars[data-score="4"]::before { content: "★★★★☆"; color: #fbbf24; }
.rating-stars[data-score="3"]::before { content: "★★★☆☆"; color: #fbbf24; }
.rating-stars[data-score="2"]::before { content: "★★☆☆☆"; color: #fbbf24; }
.rating-stars[data-score="1"]::before { content: "★☆☆☆☆"; color: #fbbf24; }
.rating-stars-value {
  font-size: .8rem; color: #475569; margin-left: .35rem; font-weight: 600;
}

/* 棒グラフ比較行（CSS-only・--val でバー幅制御）*/
.rating-bar-block {
  display: flex; flex-direction: column; gap: .4rem;
  margin: .8rem 0;
}
.rating-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
}
.rb-label {
  color: #475569; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rating-bar {
  position: relative;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.rating-bar::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--val, 50) * 1%);
  background: linear-gradient(90deg, var(--accent, #6366f1), var(--accent-dark, #312e81));
  border-radius: 4px;
}
.rating-bar.rb-positive::after { background: linear-gradient(90deg, #16a34a, #15803d); }
.rating-bar.rb-warn::after { background: linear-gradient(90deg, #f59e0b, #d97706); }
.rb-value {
  color: #1e293b; font-weight: 700; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 画像列付き比較表（モバイル対応 overflow-x scroll） */
.compare-table-imaged-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 1.5rem 0;
}
.compare-table-imaged {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 560px;
}
.compare-table-imaged th {
  background: #1e293b; color: #fff;
  padding: .8rem .6rem;
  font-size: .82rem; font-weight: 600;
  text-align: center;
  position: sticky; top: 0;
}
.compare-table-imaged th:first-child { text-align: left; }
.compare-table-imaged td {
  padding: .8rem .6rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}
.compare-table-imaged td:first-child {
  text-align: left;
  font-weight: 600;
}
.compare-table-imaged .ct-img {
  width: 56px; height: 56px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.compare-table-imaged .ct-noimg {
  width: 56px; height: 56px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 1.2rem;
}
.compare-table-imaged .ct-noimg::before { content: "📷"; color: #94a3b8; }
.compare-table-imaged tr.highlight-row td { background: #fef9c3; }
