/* ============================================================
   静的コンテンツページ専用スタイル
   競合分析（みんかぶ・マイベスト構造）を参考に設計
   ============================================================ */

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

.page-updated {
  font-size: 0.8rem;
  color: #888;
  margin: -8px 0 24px;
}
.author-tag {
  background: #f0f4ff;
  color: #3b5bdb;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ── リード文 ── */
.lead-text {
  background: #f8f9fa;
  border-left: 4px solid #3b5bdb;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
  line-height: 1.9;
}

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

.ranking-note {
  font-size: 0.8rem;
  color: #888;
  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;
}
.ranking-card.rank-1 { border-color: #f5a623; box-shadow: 0 2px 12px rgba(245,166,35,0.15); }
.ranking-card.rank-2 { border-color: #adb5bd; }
.ranking-card.rank-3 { border-color: #cd7f32; }

.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: #f0f4ff;
  color: #3b5bdb;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
}

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

/* ── みくコメントボックス ── */
.miku-comment-box {
  background: #fffbf0;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.miku-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f08c00;
  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: #1a1a2e;
  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: #3b5bdb;
  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: #888; margin-top: 8px; }

/* ── みく結論コメント ── */
.miku-conclusion {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f0f4ff;
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0;
}
.miku-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #3b5bdb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.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; }

/* static-body内FAQはライトテーマに強制上書き
   components.css の var(--bg-secondary)=#1a1d27 / var(--text-secondary)=#94a3b8 を
   高特異度で差し替え (0,2,1) > components.css (0,1,0) */
body.static-body .faq-item {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
body.static-body .faq-q {
  background: rgba(99,102,241,0.06);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a1a2e;
  border-top: none;
}
body.static-body .faq-a {
  padding: 12px 16px 14px;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #374151;
  background: #fff;
  border-top: 1px solid #e8ecf0;
}

/* ── 免責 ── */
.disclaimer {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.7;
  margin-top: 32px;
}

/* ── レスポンシブ ── */
@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 overrides, mobile nav, avatar upgrade
   ============================================================ */

/* ── 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: #1a1a2e;
  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: #3d4a5c;
  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, #3b5bdb);
  background: rgba(59,91,219,0.07);
}
body.static-body .header-nav a.active {
  color: #ffffff;
  font-weight: 700;
  background: var(--accent, #3b5bdb);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ── Nav: horizontal scroll on all viewports (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;
  }
  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);
  }
}

/* ── Updated miku-avatar with SVG image ── */
.miku-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b5bdb;
}
.miku-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* ── Footer light override ── */
body.static-body .site-footer {
  background: #f8f9fa;
  border-top: 1px solid #e8ecf0;
  color: #888;
  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: #888;
  padding: 8px 0 12px;
}
body.static-body .breadcrumb a {
  color: #3b5bdb;
  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(59,91,219,0.04);
  border: 1px solid rgba(59,91,219,0.15);
  border-left: 4px solid var(--accent, #3b5bdb);
  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(--text-primary, #1d3557);
  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, #3b5bdb);
  text-decoration: none;
  transition: color 0.2s;
}
.toc a:hover {
  color: var(--accent-hover, #2b4bc0);
  text-decoration: underline;
}

/* ── Static page content typography (light theme) ── */
body.static-body .static-page h1 {
  color: #1d3557;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}
body.static-body .static-page h2 {
  color: #1d4ed8;
  font-size: 1.15rem;
  font-weight: 700;
  border-left: 4px solid var(--accent, #3b5bdb);
  border-bottom: none;
  background: rgba(59,91,219,0.04);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 36px 0 16px;
}
body.static-body .static-page h3 {
  color: #1e40af;
  font-size: 1.02rem;
  font-weight: 700;
  border-left: 2px solid rgba(59,130,246,0.6);
  padding-left: 10px;
  margin: 24px 0 12px;
}
body.static-body .static-page section p,
body.static-body .static-page p {
  color: #1e293b;
  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;
}
/* 金融数値: 等幅フォント + セマンティックカラー */
.num-positive { color: var(--color-status-positive, #16a34a); font-family: var(--font-mono, 'Consolas', monospace); font-weight: 700; }
.num-negative { color: var(--color-status-negative, #dc2626); font-family: var(--font-mono, 'Consolas', monospace); font-weight: 700; }
.num-neutral  { color: var(--color-status-neutral,  #d97706); font-family: var(--font-mono, 'Consolas', monospace); font-weight: 700; }
.num-mono     { font-family: var(--font-mono, 'Consolas', monospace); }

/* ── 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 #f0f0f0;
}
.related-list a {
  display: block;
  padding: 11px 4px;
  color: #3b5bdb;
  text-decoration: none;
  font-size: 0.9rem;
}
.related-list a:hover {
  color: #2b4bc0;
}

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

/* ── 1位CTA: オレンジグラデーション + シャイン ── */
.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: #3b5bdb;
}
.ranking-card.rank-2 .cta-btn:hover { background: #2f4ac4; }
.ranking-card.rank-3 .cta-btn:hover { background: #2f4ac4; }

/* ── カードにcontainでリペイント局所化 ── */
.ranking-card,
.faq-item {
  contain: layout style;
}

/* ── 固定フッターCTA: safe-area対応 + ライトバージョン ── */
@media (max-width: 768px) {
  body.static-body {
    /* ノッチ対応: safe-area分も確保 */
    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, #e67700, #f08c00);
    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(230,119,0,0.3); }
    95%           { box-shadow: 0 2px 20px rgba(230,119,0,0.55); }
  }
}

/* ── 比較表: スクロールヒント + sticky左列 ── */
.table-scroll-hint {
  display: none; /* デスクトップでは非表示 */
  font-size: 0.72rem;
  color: #888;
  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: #1a1a2e;
    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: #888;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 8px 0 12px;
  letter-spacing: 0.02em;
}

/* ============================================================
   v3: 収益最大化コンポーネント
   ① 効果訴求グラフ  ② 視覚的比較表  ③ 口コミ対話
   ============================================================ */

/* ── ① グラフセクション ── */
.graph-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
  border-radius: 16px;
  padding: 28px 20px;
  margin: 32px 0;
  text-align: center;
}
.graph-section .graph-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.graph-section .graph-sub {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 20px;
}
.graph-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 16px;
}
.graph-container svg { width: 100%; height: auto; display: block; }
.graph-result {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.graph-result-item {
  text-align: center;
}
.graph-result-item .result-label {
  font-size: 0.78rem;
  color: #555;
  display: block;
}
.graph-result-item .result-value {
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
}
.graph-result-item.nisa-result .result-value { color: #e67700; }
.graph-result-item.principal-result .result-value { color: #16a34a; }
.graph-profit-banner {
  background: #1a1a2e;
  color: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  margin-top: 16px;
  display: inline-block;
  font-size: 0.9rem;
}
.graph-profit-banner strong {
  color: #ffd43b;
  font-size: 1.3rem;
}
.graph-disclaimer {
  font-size: 0.68rem;
  color: #999;
  margin-top: 12px;
  line-height: 1.6;
}

/* ── ② 視覚的比較表（◎○△記号） ── */
.visual-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.visual-compare-table th {
  background: #1a1a2e;
  color: #fff;
  padding: 12px 8px;
  text-align: center;
  white-space: nowrap;
}
.visual-compare-table td {
  padding: 11px 8px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  vertical-align: middle;
}
.visual-compare-table tr.recommended td {
  background: #fef9c3;
}
.visual-compare-table tr.recommended td:first-child {
  font-weight: 700;
  position: relative;
}
.visual-compare-table tr.recommended td:first-child::before {
  content: "👑";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
}
.visual-compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  padding-left: 20px;
  white-space: nowrap;
}
.sym-excellent { color: #16a34a; font-size: 1.1rem; font-weight: 700; }
.sym-good      { color: #2563eb; font-size: 1.1rem; font-weight: 700; }
.sym-average   { color: #d97706; font-size: 1.0rem; }
.sym-poor      { color: #dc2626; font-size: 1.0rem; }
.recommend-tag {
  font-size: 0.7rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ── ③ 口コミ・対話型レビュー ── */
.reviews-section {
  margin: 40px 0;
}
.reviews-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3b5bdb;
}
.review-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.review-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f0f4ff;
  color: #3b5bdb;
  border: none;
  cursor: pointer;
}
/* 口コミカード */
.review-cards { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.review-user-info { flex: 1; }
.review-user-name { font-size: 0.85rem; font-weight: 700; color: #1a1a2e; }
.review-user-attr { font-size: 0.72rem; color: #888; }
.review-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 1px; }
.review-stars-score { font-size: 0.85rem; font-weight: 700; color: #f59e0b; margin-left: 4px; }
.review-body { font-size: 0.87rem; line-height: 1.8; color: #333; }
.review-body strong { color: #e67700; }
/* 対話型レビュー */
.review-dialogue { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.dialogue-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.dialogue-bubble.bubble-user { flex-direction: row; }
.dialogue-bubble.bubble-miku { flex-direction: row-reverse; }
.dialogue-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.dialogue-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dialogue-text {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.7;
}
.bubble-user .dialogue-text {
  background: #f0f4ff;
  color: #1a1a2e;
  border-radius: 0 12px 12px 12px;
}
.bubble-miku .dialogue-text {
  background: #fff9db;
  color: #1a1a2e;
  border-radius: 12px 0 12px 12px;
}
.dialogue-name {
  font-size: 0.68rem;
  color: #888;
  margin-bottom: 3px;
}
.bubble-user .dialogue-name { text-align: left; }
.bubble-miku .dialogue-name { text-align: right; }

@media (max-width: 767px) {
  .graph-section { padding: 20px 14px; }
  .graph-result-item .result-value { font-size: 1.1rem; }
  .visual-compare-table th,
  .visual-compare-table td { padding: 8px 5px; font-size: 0.76rem; }
  .dialogue-text { max-width: 85%; font-size: 0.82rem; }
}

/* ── 比較表 評価記号・ハイライト ── */
.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; }

/* ── おすすめ記事カード（rec-section） ── */
.rec-section {
  padding: 2rem 1.25rem;
  background: #f8f9ff;
  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: #1a1a2e; margin: 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 #e8ecf0;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  text-decoration: none;
  color: #1a1a2e;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.rec-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  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: #e8f4fd; color: #2563eb;
  border: 1px solid #bfdbfe;
  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: #1a1a2e; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.rec-card-desc {
  font-size: .75rem; color: #666; 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: #3b5bdb; font-weight: 600;
  margin-top: auto;
}

/* ── Amazon おすすめセクション ─────────────────────────────── */
/* style.css の .container .amazon-rec-section（日次レポート用ダーク）を静的ページで上書き */
.static-body .container .amazon-rec-section,
.amazon-rec-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fffbf0 !important;
  border: 1px solid #f0e6d0 !important;
  border-radius: 12px;
}
.static-body .container .amazon-rec-section h2,
.amazon-rec-section h2 {
  font-size: 1.1rem;
  margin-bottom: .8rem;
  color: #333 !important;
}
.static-body .container .amazon-rec-note,
.amazon-rec-note {
  font-size: .75rem;
  color: #888 !important;
  margin-bottom: 1rem;
}
.amazon-rec-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.static-page .amazon-rec-link {
  display: block;
  padding: 1rem 1.5rem;
  background: #ff9900;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s;
  text-align: center;
  line-height: 1.4;
}
.static-page .amazon-rec-link:hover {
  background: #e68a00;
}
@media (min-width: 640px) {
  .static-page .amazon-rec-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .static-page .amazon-rec-link {
    flex: 0 1 auto;
  }
}

/* ============================================================
   v3: compare-style shared components（全静的ページ共通）
   compare/beginners/ から昇格。他ページで .compare-hero 等を
   使えるよう共通化。既存クラス（.ranking-card / .comparison-table）
   とは共存（異なるクラス名で衝突なし）。
   ============================================================ */

/* ── ページヒーロー ── */
.compare-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f1f3d 100%);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 32px;
}
.compare-hero h1 { font-size: 1.6rem; line-height: 1.5; margin-bottom: 12px; }
/* ダーク背景内テキスト — 特異度 (0,3,1) で body.static-body .static-page p (0,2,2) を上書き */
body.static-body .static-page .compare-hero h1 { color: #fff; border-left: none; background: transparent; padding-left: 0; }
body.static-body .static-page .compare-hero p  { color: #e2e8f0; }
body.static-body .static-page .compare-hero .lead { color: #cbd5e1; font-size: 1rem; line-height: 1.8; }
body.static-body .static-page .compare-hero .meta { color: #94a3b8; font-size: 0.8rem; margin-bottom: 16px; }

/* ── 再発防止ユーティリティ: .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: #e2e8f0; }
body.static-body .static-page .on-dark .meta  { color: #94a3b8; }
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: #e2e8f0; border-left: none; background: transparent; padding-left: 0; }
body.static-body .static-page .on-dark h3     { color: #cbd5e1; border-left: none; padding-left: 0; }

/* ── みくのコメント（ライトテーマ版 — .miku-comment-box とは別スタイル）── */
.miku-comment {
  background: #fff;
  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: #374151;
}
.miku-comment .miku-name {
  font-size: 0.78rem;
  color: #3b82f6;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ── 結論ボックス ── */
.conclusion-box {
  background: #eff6ff;
  border: 2px solid #3b82f6;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}
.conclusion-box h3 { color: #1d4ed8; margin-bottom: 10px; font-size: 1rem; }
.conclusion-box p { color: #1e293b; font-size: 0.95rem; line-height: 1.7; }

/* ── ランキングリスト（v3、カード型）── */
/* .rank-card は .ranking-card（v1）と共存。.rank-card 内の .rank-badge にのみ
   丸バッジスタイルを適用し、.ranking-card 内の .rank-badge は既存スタイルのまま。 */
.ranking-list { list-style: none; padding: 0; margin: 0 0 32px 0; }
.rank-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  overflow: hidden;
}
.rank-card .rank-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.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: #1e293b; }
.rank-card.rank-3 .rank-badge { background: #b45309; color: #fff; }
.rank-name { font-size: 1.05rem; font-weight: 700; color: #1e293b; }
.rank-tag {
  margin-left: auto;
  font-size: 0.72rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.rank-card-body { padding: 16px 20px; }
.rank-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.feature-chip {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 20px;
}
.rank-pros-cons { font-size: 0.88rem; line-height: 1.7; color: #374151; }
.rank-pros-cons .pros { color: #15803d; }
.rank-pros-cons .cons { color: #b91c1c; }
.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;
}
.rank-cta:hover { opacity: 0.85; }
.cta-rakuten { background: #e0001b; color: #fff; }
.cta-sbi     { background: #1a56c4; color: #fff; }
.cta-monex   { background: #1a3a6e; color: #fff; }
.cta-matsui  { background: #e65c00; color: #fff; }
.cta-moomoo  { background: #1a1a2e; color: #fff; }
.pr-label { font-size: 0.72rem; color: #64748b; text-align: center; margin-bottom: 4px; }

/* ── 比較テーブル（v3 — .comparison-table とは別スタイル）── */
.compare-table-wrap { overflow-x: auto; margin: 28px 0; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.compare-table th {
  background: #1e3a5f;
  color: #e2e8f0;
  padding: 11px 14px;
  text-align: center;
  font-weight: 600;
}
.compare-table td {
  padding: 11px 14px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f8fafc; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: #1e293b; }
.check { color: #15803d; font-weight: 700; }
.cross { color: #b91c1c; }
.highlight-col { background: #eff6ff !important; }
th.highlight-col { color: #1e3a5f !important; }

/* ── ◎○△× 評価記号 ── */
.rating-s { color: #16a34a; font-weight: 700; font-size: 1.05rem; }
.rating-a { color: #2563eb; font-weight: 700; font-size: 1.05rem; }
.rating-b { color: #d97706; font-weight: 700; font-size: 1.05rem; }
.rating-c { color: #dc2626; font-weight: 700; font-size: 1.05rem; }

/* ── おすすめバッジ（比較表内） ── */
.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;
}

/* ── 比較表おすすめ行ハイライト ── */
.compare-row-highlight { background: #fef9c3 !important; }
.compare-row-highlight:hover { background: #fef5a8 !important; }

/* ── DMM株CTAボタン ── */
.cta-dmm { background: #1a1a2e; color: #fff; }

/* ── 未承認CTAボタン（rank-cta版）── */
.rank-cta.cta-disabled {
  background: #94a3b8;
  color: #fff;
  pointer-events: none;
  cursor: default;
}

/* ── セクション見出し（青左ボーダー型）── */
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  border-left: 4px solid #3b82f6;
  padding-left: 12px;
  margin: 32px 0 16px;
}

/* ── 読者の声（対話形式）── */
.review-dialogue {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  border-left: 4px solid #2563eb;
}
.review-user p, .review-miku p { margin: 8px 0 0 0; line-height: 1.7; font-size: 0.95rem; }
.review-name { font-weight: 700; font-size: 0.9rem; color: #1e293b; }
.review-stars { color: #f59e0b; font-size: 1.1rem; margin: 4px 0; }
.review-miku { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.review-miku .review-name { color: #2563eb; }

/* ── 積立シミュレーショングラフ ── */
.sim-graph {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}
.sim-graph h3 { font-size: 1rem; color: #1e293b; margin: 0 0 4px 0; }
.sim-graph .sim-note { font-size: 0.8rem; color: #64748b; margin: 0 0 16px 0; }
.sim-legend { display: flex; gap: 20px; font-size: 0.8rem; margin-top: 10px; }
.sim-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ── 書籍推薦カード（みくの投資本）── */
.book-rec-section { margin: 32px 0; }
.book-rec-lead {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 8px;
}
.book-card-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.book-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
}
.book-card--pick {
  border-color: #ff9900;
  box-shadow: 0 2px 10px rgba(255,153,0,0.12);
}
.book-pick-badge {
  display: inline-block;
  background: #ff9900;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.book-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.book-card-text { flex: 1; min-width: 0; }
.book-level-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.book-title { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin: 0 0 2px; }
.book-author { font-size: 0.78rem; color: #64748b; margin: 0 0 6px; }
.book-comment { font-size: 0.82rem; color: #374151; line-height: 1.6; margin: 0; }
.book-btn {
  display: inline-block;
  background: #ff9900;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.book-btn:hover { background: #e68a00; }

/* ── v3 レスポンシブ ── */
@media (max-width: 600px) {
  .compare-hero { padding: 24px 18px; }
  .compare-hero h1 { font-size: 1.3rem; }
  .rank-card .rank-card-header { flex-wrap: wrap; }
  .rank-tag { margin-left: 0; }
}
@media (max-width: 480px) {
  .book-card-inner { flex-direction: column; align-items: stretch; }
  .book-btn { text-align: center; }
}

/* ──────────────────────────────────────────────────────────────────
   Dark hero contrast guard (2026-04-21 added — navilab と同じ規約)
   濃紺グラデ背景の hero セクションでは light theme の h1/h2/h3 規則
   (color: #1a1a2e) が文字を暗くしてしまう問題を防止する。
   見出し→白、本文→白92%、<strong>→amber #fbbf24 + 800、リンク→sky #93c5fd
   .exp-hero / .guide-hero / .compare-hero / .hero / .home-hero / .asp-hero に適用。
   詳細: managed_agents/skills/design/css_class_guard.md §ダーク hero 命名規約
   ────────────────────────────────────────────────────────────────── */
body.static-body .static-page .exp-hero h1,
body.static-body .static-page .exp-hero h2,
body.static-body .static-page .exp-hero h3,
body.static-body .static-page .guide-hero h1,
body.static-body .static-page .guide-hero h2,
body.static-body .static-page .guide-hero h3,
body.static-body .static-page .compare-hero h1,
body.static-body .static-page .compare-hero h2,
body.static-body .static-page .compare-hero h3,
body.static-body .static-page .hero h1,
body.static-body .static-page .hero h2,
body.static-body .static-page .hero h3,
body.static-body .static-page .home-hero h1,
body.static-body .static-page .home-hero h2,
body.static-body .static-page .home-hero h3,
body.static-body .static-page .asp-hero h1,
body.static-body .static-page .asp-hero h2,
body.static-body .static-page .asp-hero h3,
body.static-body .static-page .gen-hero h1,
body.static-body .static-page .gen-hero h2,
body.static-body .static-page .gen-hero h3 {
  color: #fff;
}
body.static-body .static-page .exp-hero p,
body.static-body .static-page .guide-hero p,
body.static-body .static-page .compare-hero p,
body.static-body .static-page .hero p,
body.static-body .static-page .home-hero p,
body.static-body .static-page .asp-hero p,
body.static-body .static-page .gen-hero p {
  color: rgba(255,255,255,0.92);
}
body.static-body .static-page .exp-hero strong,
body.static-body .static-page .guide-hero strong,
body.static-body .static-page .compare-hero strong,
body.static-body .static-page .hero strong,
body.static-body .static-page .home-hero strong,
body.static-body .static-page .asp-hero strong,
body.static-body .static-page .gen-hero strong {
  color: #fbbf24;
  font-weight: 800;
}
body.static-body .static-page .exp-hero a:not(.btn):not(.cta),
body.static-body .static-page .guide-hero a:not(.btn):not(.cta),
body.static-body .static-page .compare-hero a:not(.btn):not(.cta),
body.static-body .static-page .hero a:not(.btn):not(.cta),
body.static-body .static-page .home-hero a:not(.btn):not(.cta),
body.static-body .static-page .asp-hero a:not(.btn):not(.cta),
body.static-body .static-page .gen-hero a:not(.btn):not(.cta) {
  color: #93c5fd;
  text-decoration: underline;
}
