/* ============================================================
   おとなのナビ - 静的コンテンツページ専用スタイル
   kabuyohou.jp の実績CSSをベースに
   ブランドカラーをパープル系に適応（アダルトジャンル用）

   v1: 初期実装（kabuyohou static-pages.css v3相当）
   ============================================================ */

/* ── ページ基本レイアウト ── */
.static-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 16px 100px;
}

.page-updated {
  font-size: 0.8rem;
  color: var(--text-muted, #5b5268);
  margin: -8px 0 24px;
}
.author-tag {
  background: rgba(93,67,151,0.08);
  color: var(--accent, #5d4397);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ── リード文 ── */
.lead-text {
  background: rgba(93,67,151,0.04);
  border-left: 4px solid var(--accent, #5d4397);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
  line-height: 1.9;
  color: var(--text-primary, #1a1530);
}

/* ── ランキングカード ── */
.ranking-section { margin-bottom: 40px; }

.ranking-note {
  font-size: 0.8rem;
  color: var(--text-muted, #5b5268);
  margin-bottom: 16px;
}

.ranking-cards { display: flex; flex-direction: column; gap: 20px; }

.ranking-card {
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  background: #fff;
  contain: layout style;
}
.ranking-card.rank-1 { border-color: #f5a623; box-shadow: 0 2px 12px rgba(245,166,35,0.15); }
.ranking-card.rank-2 { border-color: var(--accent, #5d4397); }
.ranking-card.rank-3 { border-color: var(--accent-light, #7c3aed); }

.rank-badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ranking-name {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #1a1a2e;
}

.ranking-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.stat {
  background: rgba(93,67,151,0.07);
  color: var(--accent, #5d4397);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
}

.ranking-point {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}

/* ── DMM商品カード（APIから自動取得） ── */
.product-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.product-thumb {
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  width: 120px;
  height: auto;
}
.ranking-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.genre-tag {
  background: rgba(93,67,151,0.09);
  color: var(--accent, #5d4397);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
}

/* ── DLsite人気作品グリッド ── */
.featured-works {
  margin: 32px 0;
  padding: 20px;
  background: rgba(93,67,151,0.04);
  border-radius: 12px;
}
.featured-works h2 { margin-top: 0; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.work-item {
  text-align: center;
}
.work-item img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.work-title {
  font-size: 0.78rem;
  color: #444;
  margin-top: 6px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pr-label {
  font-size: 0.65rem;
  color: #999;
  font-weight: normal;
}

/* ── ななコメントボックス ── */
.miku-comment-box {
  background: rgba(93,67,151,0.04);
  border: 1px solid rgba(93,67,151,0.15);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.miku-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent, #5d4397);
  display: block;
  margin-bottom: 4px;
}
.miku-comment-box p { font-size: 0.87rem; margin: 0; line-height: 1.7; }

/* ── CTAボタン ── */
.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; }
.cta-btn.cta-disabled {
  background: #adb5bd;
  cursor: default;
  pointer-events: none;
}
.cta-btn.cta-disabled::after {
  content: "（準備中）";
  font-size: 0.75rem;
  margin-left: 4px;
}

/* ── 比較表 ── */
.comparison-section { margin: 40px 0; }

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid #e8ecf0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.comparison-table th {
  background: #2d1b69;
  color: #fff;
  padding: 12px 10px;
  text-align: center;
  white-space: nowrap;
}
.comparison-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: #f8f9fa; }
.sec-name { font-weight: 700; text-align: left; white-space: nowrap; }

.table-cta {
  background: var(--accent, #5d4397);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
}
.table-cta.cta-disabled {
  background: #adb5bd;
  pointer-events: none;
}
.table-note { font-size: 0.75rem; color: var(--text-muted, #5b5268); margin-top: 8px; }

/* ── なな結論コメント ── */
.miku-conclusion {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(93,67,151,0.05);
  border-radius: 12px;
  border-left: 4px solid var(--accent, #5d4397);
  padding: 20px;
  margin: 32px 0;
}
.miku-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(93,67,151,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent, #5d4397);
}
.miku-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.miku-conclusion p { margin: 0; line-height: 1.8; font-size: 0.93rem; }

/* ── FAQセクション ── */
.faq-section { margin: 32px 0; }
.faq-section h2 { margin-bottom: 16px; }

.faq-item {
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  contain: layout style;
}
.faq-q {
  background: #f8f9fa;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a1a2e;
}
.faq-a {
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #444;
}

/* ── 免責 ── */
.disclaimer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.75rem;
  color: var(--text-muted, #5b5268);
  line-height: 1.7;
  margin-top: 32px;
}

/* ── アフィリエイトバナー ── */
.affiliate-banner {
  text-align: center;
  margin: 12px 0;
}

/* ── レスポンシブ ── */
@media (min-width: 768px) {
  .static-page { padding: 24px 24px 40px; }

  .ranking-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .ranking-stats { gap: 6px; }
  .stat { font-size: 0.72rem; }
  .miku-conclusion { flex-direction: column; }
  .comparison-table th,
  .comparison-table td { padding: 8px 6px; font-size: 0.78rem; }
}

/* ============================================================
   v2: Light theme, hamburger nav, header
   ============================================================ */

/* ── Body override for static pages ── */
body.static-body {
  background-color: #ffffff;
  color: #1a1a2e;
}

/* ── Header: light theme override ── */
body.static-body .site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8ecf0;
  margin-bottom: 0;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

body.static-body .site-logo {
  color: var(--heading-h1, #2d1b69);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

body.static-body .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

body.static-body .header-nav a {
  color: #3d3553;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
body.static-body .header-nav a:hover {
  color: var(--accent, #5d4397);
  background: rgba(93,67,151,0.07);
}
body.static-body .header-nav a.active {
  color: #ffffff;
  font-weight: 700;
  background: var(--accent, #5d4397);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ── Nav: horizontal on desktop ── */
body.static-body .header-nav {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 1;
  min-width: 0;
}
body.static-body .header-nav::-webkit-scrollbar {
  display: none;
}

/* ── Hamburger toggle (CSS-only) ── */
.hamburger-toggle {
  display: none;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hamburger-btn {
  display: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 60;
}
.hamburger-btn span,
.hamburger-btn span::before,
.hamburger-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #1a1a2e;
  position: absolute;
  left: 8px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger-btn span       { top: 17px; }
.hamburger-btn span::before { content: ''; top: -6px; }
.hamburger-btn span::after  { content: ''; top: 6px; }

@media (max-width: 767px) {
  .hamburger-btn {
    display: block;
  }

  body.static-body .header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: -1.5rem;
    right: -1.5rem;
    background: #ffffff;
    flex-direction: column;
    padding: 8px 20px 16px;
    border-bottom: 1px solid #e8ecf0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 0;
    overflow-x: visible;
  }

  body.static-body .header-nav a {
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    min-height: 44px; /* Apple HIG: タップターゲット最小44px */
    display: flex;
    align-items: center;
  }
  body.static-body .header-nav a:last-child {
    border-bottom: none;
  }

  /* Toggle open state via checkbox */
  .hamburger-toggle:checked ~ .hamburger-btn ~ .header-nav,
  .hamburger-toggle:checked + .hamburger-btn + .header-nav {
    display: flex;
  }
  .hamburger-toggle:checked ~ .hamburger-btn span,
  .hamburger-toggle:checked + .hamburger-btn span {
    background: transparent;
  }
  .hamburger-toggle:checked ~ .hamburger-btn span::before,
  .hamburger-toggle:checked + .hamburger-btn span::before {
    top: 0;
    transform: rotate(45deg);
  }
  .hamburger-toggle:checked ~ .hamburger-btn span::after,
  .hamburger-toggle:checked + .hamburger-btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ── Footer light override ── */
body.static-body .site-footer {
  background: #f8f9fa;
  border-top: 1px solid #e8ecf0;
  color: var(--text-muted, #5b5268);
  padding: 1.5rem 1.5rem;
}
body.static-body .site-footer a {
  color: #555;
}
body.static-body .site-footer a:hover {
  color: #1a1a2e;
}
body.static-body .footer-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
body.static-body .footer-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
body.static-body .footer-nav a {
  font-size: 0.82rem;
  color: #555;
  text-decoration: none;
}
body.static-body .footer-nav a:hover {
  color: #1a1a2e;
}

/* ── Breadcrumb light override ── */
body.static-body .breadcrumb {
  color: var(--text-muted, #5b5268);
  padding: 8px 0 12px;
}
body.static-body .breadcrumb a {
  color: var(--accent, #5d4397);
  text-decoration: none;
}
body.static-body .breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
}
body.static-body .breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  color: #bbb;
}

/* ── TOC styling ── */
.toc {
  background: rgba(93,67,151,0.04);
  border: 1px solid rgba(93,67,151,0.15);
  border-left: 4px solid var(--accent, #5d4397);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-h2, #3d2760);
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-title::before {
  content: '📋';
  font-size: 0.85rem;
}
.toc ol {
  padding-left: 1.4rem;
  margin: 0;
}
.toc li {
  margin-bottom: 6px;
  font-size: 0.88rem;
}
.toc a {
  color: var(--accent, #5d4397);
  text-decoration: none;
  transition: color 0.2s;
}
.toc a:hover {
  color: var(--accent-hover, #4a3780);
  text-decoration: underline;
}

/* ── Static page content typography (light theme) ── */
body.static-body .static-page h1 {
  color: var(--heading-h1, #2d1b69);
  font-family: var(--font-heading, 'Zen Maru Gothic', sans-serif);
  font-size: 1.5rem;
  line-height: 1.45;
  margin-bottom: 10px;
}
body.static-body .static-page h2 {
  color: var(--heading-h2, #3d2760);
  font-size: 1.15rem;
  font-family: var(--font-heading, 'Zen Maru Gothic', sans-serif);
  border-left: 4px solid var(--accent, #5d4397);
  border-bottom: none;
  background: rgba(93,67,151,0.04);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 36px 0 16px;
}
body.static-body .static-page h3 {
  color: var(--heading-h3, #4a3d8c);
  font-size: 1.02rem;
  border-left: 2px solid var(--accent-light, #7c3aed);
  padding-left: 10px;
  margin: 24px 0 12px;
}
body.static-body .static-page section p,
body.static-body .static-page p {
  color: var(--text-primary, #1a1530);
  line-height: 1.9;
  font-size: 0.93rem;
}
body.static-body .static-page section p + p,
body.static-body .static-page p + p {
  margin-top: 0.75rem;
}

/* ── 再発防止ユーティリティ: .on-dark ──────────────────────────────────
   ダーク背景コンテナに class="on-dark" を追加するだけでテキストが自動ライト化
   特異度 (0,3,1) で body.static-body .static-page p (0,2,2) に必ず勝つ  */
body.static-body .static-page .on-dark p,
body.static-body .static-page .on-dark .lead  { color: #e2d8f0; }
body.static-body .static-page .on-dark .meta  { color: #9b8ec4; }
body.static-body .static-page .on-dark h1     { color: #fff;    border-left: none; background: transparent; padding-left: 0; }
body.static-body .static-page .on-dark h2     { color: #e2d8f0; border-left: none; background: transparent; padding-left: 0; }
body.static-body .static-page .on-dark h3     { color: #c9b8e8; border-left: none; padding-left: 0; }

/* ── Related articles ── */
.related-articles {
  margin: 32px 0;
}
.related-articles h2 {
  font-size: 1rem !important;
  margin-bottom: 8px !important;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li {
  border-bottom: 1px solid #ede8f8;
}
.related-list a {
  display: block;
  padding: 11px 4px;
  color: var(--accent, #5d4397);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.related-list a:hover {
  color: var(--accent-hover, #4a3780);
}

/* ============================================================
   v3: MobileUX強化 — CTA差別化・セーフエリア・テーブル改善
   ============================================================ */

/* ── 1位CTA: オレンジグラデーション + シャイン（CV実績ベース）── */
.ranking-card.rank-1 .cta-btn {
  background: linear-gradient(135deg, #e67700, #f59f00);
  box-shadow: 0 4px 16px rgba(230,119,0,0.35);
  position: relative;
  overflow: hidden;
}
.ranking-card.rank-1 .cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.15);
  transform: rotate(25deg);
  animation: btn-shine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0%, 75%, 100% { left: -60%; }
  85%           { left: 130%; }
}

/* ── 2〜3位CTA: 深紫 ── */
.ranking-card.rank-2 .cta-btn,
.ranking-card.rank-3 .cta-btn {
  background: var(--accent, #5d4397);
}
.ranking-card.rank-2 .cta-btn:hover { background: var(--accent-hover, #4a3780); }
.ranking-card.rank-3 .cta-btn:hover { background: var(--accent-hover, #4a3780); }

/* ── 固定フッターCTA: safe-area対応 ── */
@media (max-width: 768px) {
  body.static-body {
    padding-bottom: max(80px, calc(60px + env(safe-area-inset-bottom)));
  }

  body.static-body .mobile-sticky-cta {
    background: rgba(255,255,255,0.97);
    border-top: 1px solid #e8ecf0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  body.static-body .mobile-cta-btn {
    background: linear-gradient(135deg, var(--accent, #5d4397), var(--accent-hover, #4a3780));
    border-radius: 10px;
    font-size: 1rem;
    padding: 14px 16px;
    min-height: 52px;
    animation: cta-pulse 3s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
  }
  body.static-body .mobile-cta-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }

  @keyframes cta-pulse {
    0%, 90%, 100% { box-shadow: 0 2px 12px rgba(124,58,237,0.3); }
    95%           { box-shadow: 0 2px 20px rgba(124,58,237,0.55); }
  }
}

/* ── 比較表: スクロールヒント + sticky左列 ── */
.table-scroll-hint {
  display: none;
  font-size: 0.72rem;
  color: var(--text-muted, #5b5268);
  text-align: right;
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .table-scroll-hint {
    display: block;
  }

  .table-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
  }
  .table-wrapper::-webkit-scrollbar { display: none; }

  .table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
    pointer-events: none;
    border-radius: 0 8px 8px 0;
  }

  .comparison-table {
    min-width: 520px;
  }

  .comparison-table .sec-name {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    border-right: 1px solid #e8ecf0;
  }
  .comparison-table thead th:first-child {
    position: sticky;
    left: 0;
    background: #2d1b69;
    z-index: 2;
  }

  /* CTA全幅・16px以上でiOSズーム防止 */
  .ranking-card .cta-btn {
    font-size: 1rem;
    padding: 15px 12px;
    width: 100%;
    display: block;
  }
}

/* ── Ad notice badge (記事内に広告を含みます) ── */
.ad-notice {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-muted, #5b5268);
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 8px 0 12px;
  letter-spacing: 0.02em;
}

/* ── 比較表 評価記号・ハイライト ── */
.grade-s { color: #16a34a; font-weight: 700; font-size: 1.1rem; }
.grade-a { color: #2563eb; font-weight: 700; font-size: 1.1rem; }
.grade-b { color: #d97706; font-weight: 700; font-size: 1.1rem; }
.grade-c { color: #dc2626; font-weight: 700; font-size: 1.1rem; }
.highlight-row { background: #fef9c3; }
.highlight-row:hover { background: #fef08a; }


/* ============================================================
   v3: デザイン近代化 — トップページのデザイントークンに統一
   (2026-03-25)
   ============================================================ */

/* ── ブランドカラーを lavender 系に統一 ── */
body.static-body {
  background-color: #FAF8F5;
  color: #3D3535;
  font-family: 'Noto Sans JP', sans-serif;
}
body.static-body h1,
body.static-body h2,
body.static-body h3 {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  color: #3D3535;
}

/* ── ヘッダー ── */
body.static-body .site-header { background: #FFFFFF; border-bottom: 1px solid #E8E0D8; }
body.static-body .site-logo { color: #7B6BA8; }
body.static-body .header-nav a:hover,
body.static-body .header-nav a.active { color: #7B6BA8; border-bottom-color: #9B8EC4; }

/* ── リード文 ── */
.lead-text { border-left-color: #9B8EC4; background: #F3EDE6; }

/* ── ランキングカード ── */
.ranking-card { border-radius: 14px; background: #FFFFFF; border-color: #E8E0D8; }
.ranking-card.rank-1 { border-color: #C4A882; box-shadow: 0 2px 12px rgba(196,168,130,.18); }
.ranking-card.rank-2 { border-color: #9B8EC4; }
.ranking-card.rank-3 { border-color: #C5BBE0; }
.ranking-name { color: #2d1f3d; }
.stat { background: #EDE5F7; color: #7B6BA8; border-radius: 20px; }

/* ── ななコメントボックス ── */
.miku-comment-box { background: #F3EDE6; border: 1px solid #DCC9B0; }
.miku-label { color: #7B6BA8; }

/* ── CTAボタン（アクティブ） ── */
.cta-btn {
  background: linear-gradient(135deg, #9B8EC4, #7B6BA8);
  border-radius: 50px;
  font-size: 0.9rem;
}
.cta-btn:hover { background: linear-gradient(135deg, #7B6BA8, #5d5492); opacity: .9; }

/* ── 比較表 ── */
.comparison-table th { background: #2d1f3d; }
.table-cta { background: #7B6BA8; border-radius: 6px; }
.table-cta:hover { background: #5d5492; }
.highlight-row { background: #F3EDE6; }
.highlight-row:hover { background: #EDE5F7; }

/* ── FAQ ── */
.faq-q { background: #F3EDE6; color: #2d1f3d; }
.faq-a { color: #3D3535; }
.faq-item { border-color: #E8E0D8; }

/* ── なな結論コメント ── */
.miku-conclusion { background: #F3EDE6; }
.miku-avatar { background: #EDE5F7; color: #7B6BA8; }

/* ── 免責文 ── */
.disclaimer { background: #F3EDE6; border: 1px solid #E8E0D8; border-radius: 10px; }

/* ── モバイルCTAバー ── */
.mobile-sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97); border-top: 1px solid #E8E0D8; padding: .75rem 1.25rem; }
.mobile-cta-btn {
  display: block; text-align: center; background: linear-gradient(135deg, #9B8EC4, #7B6BA8);
  color: #fff; padding: .75rem; border-radius: 50px; font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: opacity .2s;
}
.mobile-cta-btn:hover { opacity: .85; color: #fff; }

/* ── おすすめ記事カード（rec-section） ── */
.rec-section {
  padding: 2rem 1.25rem;
  background: #F3EDE6;
  border-radius: 12px;
  margin: 32px 0;
}
.rec-inner { max-width: 780px; margin: 0 auto; }
.rec-heading {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; margin-bottom: 1.25rem;
}
.rec-heading-icon { font-size: 1.1rem; }
.rec-heading h2 {
  font-size: 1rem; font-weight: 700; color: #3D3535; margin: 0;
  border-bottom: none; padding-bottom: 0;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
@media (max-width: 639px) {
  .rec-grid {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
}
.rec-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #F0EAE3;
  box-shadow: 0 2px 8px rgba(61,53,53,.07);
  text-decoration: none;
  color: #3D3535;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.rec-card:hover {
  box-shadow: 0 6px 20px rgba(61,53,53,.12);
  transform: translateY(-2px);
}
.rec-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.rec-card-body {
  padding: .75rem .85rem .9rem;
  display: flex; flex-direction: column; gap: .3rem; flex: 1;
}
.rec-card-badge {
  display: inline-block;
  background: #FFF3E0; color: #C05000;
  border: 1px solid #FDDCAB;
  font-size: .6rem; font-weight: 600;
  padding: .1rem .45rem; border-radius: 4px;
  white-space: nowrap; align-self: flex-start;
}
.rec-card-title {
  font-size: .83rem; font-weight: 700; line-height: 1.5;
  color: #3D3535; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.rec-card-desc {
  font-size: .75rem; color: #7A6F6F; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.rec-card-more {
  font-size: .72rem; color: #9B8EC4; font-weight: 600;
  margin-top: auto;
}

/* ── 関連記事グリッド（インラインスタイル代替クラス） ── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .rec-grid { grid-template-columns: 1fr; }
}

/* ── rec-section内のH2はボーダーデザインなし（記事H2上書き防止） ── */
body.static-body .static-page .rec-section h2,
body.static-body .static-page .related-articles h2 {
  border-left: none;
  background: transparent;
  padding: 0 0 8px;
  color: var(--text-primary, #1a1530);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* ── rec-section: ライトテーマ対応背景 ── */
body.static-body .static-page .rec-section {
  background: rgba(93,67,151,0.04);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ── Amazon おすすめセクション ─────────────────────────────── */
.amazon-rec-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #1a1625;
  border: 1px solid #2d2640;
  border-radius: 12px;
}
/* ダーク背景 — 高特異度で body.static-body .static-page h2/p に勝つ */
body.static-body .static-page .amazon-rec-section h2 {
  font-size: 1.1rem;
  margin-bottom: .8rem;
  color: #e8e0f0;
  border-left: none;
  background: transparent;
  padding-left: 0;
}
body.static-body .static-page .amazon-rec-section p,
body.static-body .static-page .amazon-rec-section .amazon-rec-note {
  font-size: .75rem;
  color: #8a80a0;
  margin-bottom: 1rem;
}
.amazon-rec-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.amazon-rec-link {
  display: inline-block;
  padding: .7rem 1.2rem;
  background: #ff9900;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
  text-align: center;
}
.amazon-rec-link:hover {
  background: #e68a00;
}
@media (min-width: 640px) {
  .amazon-rec-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .amazon-rec-link {
    flex: 0 1 auto;
  }
}
