/* ============================================================
   Webデザイナーの米株積立日記 - スタイルシート v3
   ダーク金融ターミナルテーマ

   v2 で追加した要素:
   - センチメントゲージ（マーケット心理の視覚表示）
   - 本日のピック（注目銘柄の大型カード）
   - セクター別カード（業界グルーピング）
   - 株価・予測価格の表示スタイル
   - ティッカーバッジの日本語対応

   v3 で追加した要素（2026-03-18 DesignSpecialistレビュー後）:
   - Noto Sans JP フォント導入（日本語の読みやすさ向上）
   - みく吹き出しコメント（.miku-bubble）
   - みくコメントセクション（.miku-comment-section）
   - モバイルカード型影響度表示（.impact-card-mobile）
   - 見通し列スタイル（.pick-outlook）
   ============================================================ */

/* Noto Sans JP: 日本語の可読性向上のため Google Fonts から読み込む
   display=swap でフォント未ロード時もフォールバックフォントで表示 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* ── リセット & 基本設定 ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* カラーパレット */
  --bg-primary:    #0f1117;
  --bg-secondary:  #1a1d27;
  --bg-tertiary:   #252836;
  --text-primary:  #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:    #64748b;

  /* アクセントカラー */
  --positive:      #22c55e;
  --positive-bg:   #052e16;
  --negative:      #ef4444;
  --negative-bg:   #2d0a0a;
  --neutral:       #94a3b8;
  --accent:        #3b82f6;
  --accent-hover:  #2563eb;

  /* 追加カラー: センチメントゲージ用 */
  --bullish:       #22c55e;
  --slightly-bullish: #86efac;
  --sentiment-neutral: #fbbf24;
  --slightly-bearish: #fb923c;
  --bearish:       #ef4444;

  /* サイズ */
  --radius:        8px;
  --radius-sm:     4px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  /* Noto Sans JP を優先、未ロード時はシステムフォントにフォールバック */
  font-family: 'Noto Sans JP', 'Segoe UI', 'Helvetica Neue', Arial, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── レイアウト ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── ヘッダー ────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--bg-tertiary);
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text-primary);
}

/* ── ヒーローエリア ────────────────────────────────────── */
.hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--bg-tertiary);
  margin-bottom: 2.5rem;
}

.hero-meta,
.report-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* ── 見出し・サマリー ───────────────────────────────────── */
.headline {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

/* ── レポートヘッダー ──────────────────────────────────── */
.report-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--bg-tertiary);
  margin-bottom: 2.5rem;
}

/* ── セクション ─────────────────────────────────────────── */
.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-tertiary);
}

/* ── 市場概況テキスト ───────────────────────────────────── */
.overview-text {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ============================================================
   センチメントゲージ（マーケット心理の視覚表示）

   CSSのみでアニメーション付きゲージバーを実現。
   JavaScript 不要で静的サイトとしての軽量性を維持。
   ============================================================ */
.sentiment-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sentiment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sentiment-emoji {
  font-size: 1.5rem;
}

.sentiment-label {
  font-size: 1.2rem;
  font-weight: 700;
}

.sentiment-score {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
  font-family: 'Consolas', monospace;
}

/* ゲージバーのカラークラス */
.sentiment-bullish { color: var(--bullish); }
.sentiment-slightly-bullish { color: var(--slightly-bullish); }
.sentiment-neutral { color: var(--sentiment-neutral); }
.sentiment-slightly-bearish { color: var(--slightly-bearish); }
.sentiment-bearish { color: var(--bearish); }

/* ゲージバー本体 */
.sentiment-bar-container {
  width: 100%;
}

.sentiment-bar-bg {
  width: 100%;
  height: 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sentiment-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s ease-out;
  background: linear-gradient(90deg, var(--bearish), var(--sentiment-neutral), var(--bullish));
}

/* ゲージバーのfillカラーをクラスで上書き */
.sentiment-bar-fill.sentiment-bullish {
  background: var(--bullish);
}
.sentiment-bar-fill.sentiment-slightly-bullish {
  background: var(--slightly-bullish);
}
.sentiment-bar-fill.sentiment-neutral {
  background: var(--sentiment-neutral);
}
.sentiment-bar-fill.sentiment-slightly-bearish {
  background: var(--slightly-bearish);
}
.sentiment-bar-fill.sentiment-bearish {
  background: var(--bearish);
}

.sentiment-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   本日のピック（注目の1銘柄を大きく表示）

   読者が「今日はこの銘柄！」とすぐ分かるキャッチーなカード。
   株価と3日後予測を目立つ形で表示する。
   ============================================================ */
.today-pick-card {
  background: linear-gradient(135deg, var(--bg-secondary), #1e2235);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* 背景のアクセント光彩 */
.today-pick-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.pick-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pick-sector {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.pick-ticker-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pick-price {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pick-current-price {
  font-family: 'Consolas', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pick-prediction {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Consolas', monospace;
}

.pick-prediction.positive {
  color: var(--positive);
}

.pick-prediction.negative {
  color: var(--negative);
}

.pick-reason {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--bg-tertiary);
  padding-top: 0.75rem;
}

/* ============================================================
   セクター別カード（業界グルーピング）

   GICSセクターごとに銘柄をまとめて表示。
   カードの左ボーダーでセクター全体の方向を視覚化。
   ============================================================ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.sector-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--neutral);
}

.sector-card-positive {
  border-left-color: var(--positive);
}

.sector-card-negative {
  border-left-color: var(--negative);
}

.sector-card-neutral {
  border-left-color: var(--neutral);
}

.sector-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.sector-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sector-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.sector-badge.positive {
  background: var(--positive-bg);
  color: var(--positive);
}

.sector-badge.negative {
  background: var(--negative-bg);
  color: var(--negative);
}

.sector-badge.neutral {
  background: var(--bg-tertiary);
  color: var(--neutral);
}

/* ── 注目銘柄グリッド ───────────────────────────────────── */
.tickers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tickers-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.tickers-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.positive-title { color: var(--positive); }
.negative-title { color: var(--negative); }

.tickers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── ティッカーバッジ（日本語名対応） ────────────────────── */
.ticker-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ticker-badge.positive {
  background: var(--positive-bg);
  color: var(--positive);
  border: 1px solid var(--positive);
}

.ticker-badge.negative {
  background: var(--negative-bg);
  color: var(--negative);
  border: 1px solid var(--negative);
}

/* ── テーブル共通 ───────────────────────────────────────── */
.table-wrapper {
  overflow-x: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--bg-tertiary);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--bg-tertiary);
}

thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--bg-tertiary);
  transition: background 0.15s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--bg-secondary);
}

tbody td {
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  vertical-align: top;
}

/* ── 影響度テーブル固有 ─────────────────────────────────── */
.impact-table {
  table-layout: fixed;
  width: 100%;
  overflow-wrap: break-word;
}
.impact-table .ticker-cell {
  width: 14%;
  white-space: normal;
}
.impact-table .price-cell { width: 7%; white-space: nowrap; }
.impact-table td:nth-child(3) { width: 4%; white-space: nowrap; } /* 方向 */
.impact-table .reasoning { width: 50%; }
.impact-table .prediction-cell { width: 25%; }

.ticker-label {
  display: block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 700;
}

.ticker-label.positive {
  background: var(--positive-bg);
  color: var(--positive);
}

.ticker-label.negative {
  background: var(--negative-bg);
  color: var(--negative);
}

.ticker-label.neutral {
  background: var(--bg-tertiary);
  color: var(--neutral);
}

/* 影響方向テキスト */
.positive-text { color: var(--positive); font-weight: 600; }
.negative-text { color: var(--negative); font-weight: 600; }
.neutral-text  { color: var(--neutral); }

/* 影響強度ドット */
.strength-dots {
  font-family: monospace;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.strength-num {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 株価表示 */
.impact-table .price-cell {
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.predict-price {
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: block;
}

.predict-change {
  font-family: 'Consolas', monospace;
  font-size: 0.75rem;
  display: block;
  margin-top: 0.15rem;
}

/* 分析理由 */
.impact-table .reasoning {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

.reasoning-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* 見通し列 */
.impact-table .prediction-cell {
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── アーカイブテーブル固有 ─────────────────────────────── */
.archive-table .archive-summary {
  max-width: 360px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── ページタイトル ─────────────────────────────────────── */
.page-title {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--bg-tertiary);
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── ボタン ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.btn-secondary:hover {
  color: var(--accent-hover);
}

.link-btn {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.link-btn:hover {
  text-decoration: underline;
}

/* ── その他 ─────────────────────────────────────────────── */
.no-data {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ── フッター ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--bg-tertiary);
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 2;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-primary);
}

/* ── SNS共有ボタン ─────────────────────────────────────── */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--bg-tertiary);
}

.share-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.share-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-twitter {
  background-color: #1da1f2;
  color: #fff;
}

.share-hatena {
  background-color: #00a4de;
  color: #fff;
}

/* ── 免責事項 ──────────────────────────────────────────── */
.disclaimer {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  background-color: var(--bg-tertiary);
  border-left: 3px solid var(--text-secondary);
  border-radius: 0 4px 4px 0;
}

.disclaimer h3 {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.disclaimer p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
}

/* ── パンくずリスト（SEO・ナビゲーション） ───────────── */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--text-secondary); }

.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ── 比較ページ誘導バナー（内部リンク最重要導線） ───── */
.compare-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2a4a 100%);
  border: 1px solid #2d4a6e;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.compare-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.compare-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.compare-banner-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.compare-banner-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.compare-banner-btn:hover { background: var(--accent-hover); }

/* ── モバイル固定CTA（スマホCVR向上） ─────────────────── */
/* デスクトップでは非表示。スマホでのみ画面下に固定表示する。 */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(4px);
    border-top: 1px solid var(--bg-tertiary);
  }

  .mobile-cta-btn {
    display: block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
  }
}

/* ── レスポンシブ ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* 固定CTAに隠れないようにbody下部にpadding */
  body { padding-bottom: 80px; }

  .headline {
    font-size: 1.4rem;
  }

  .tickers-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .pick-ticker-name {
    font-size: 1.1rem;
  }

  .pick-current-price {
    font-size: 1.2rem;
  }

  .impact-table .reasoning {
    max-width: 100%;
  }
  .impact-table { table-layout: auto; }

  .today-pick-card {
    padding: 1rem 1.25rem;
  }

  /* モバイルで影響度テーブルをカード型に切り替える */
  .impact-table thead {
    display: none;
  }
  .impact-table tr {
    display: block;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 0.75rem;
  }
  .impact-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.25rem 0;
    border: none;
    font-size: 0.8rem;
  }
  .impact-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 70px;
    margin-right: 0.5rem;
  }
  .impact-table .reasoning {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── みく吹き出しコメント ──────────────────────────────────── */

/* レポートページ内のみくコメントセクション */
.miku-comment-section {
  background: linear-gradient(135deg, #1a1d27 0%, #1e2233 100%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.miku-comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.miku-comment-body {
  flex: 1;
}

.miku-comment-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.miku-comment-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* 吹き出し型（対話形式）のみくコメント */
.miku-bubble {
  position: relative;
  background: var(--bg-tertiary);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.miku-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  border: 5px solid transparent;
  border-right-color: var(--bg-tertiary);
  border-top-color: var(--bg-tertiary);
}

/* 今日のアクションセクション */
.today-action-section {
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.today-action-section h3 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.today-action-section p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.8;
}

/* ニュース→株価 因果分析セクション */
.news-impact-section {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.news-impact-section h2 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
  border-bottom: none;
  padding-bottom: 0;
}

.news-impact-text {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.9;
}

.news-sources-details {
  margin-top: 1rem;
  border-top: 1px solid var(--bg-tertiary);
  padding-top: 0.75rem;
}

.news-sources-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.news-sources-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.news-sources-list li {
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 0.25rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--bg-tertiary);
}

.news-sources-list li:last-child {
  border-bottom: none;
}

.news-sources-list a {
  color: var(--accent);
}

.news-sources-list a {
  color: var(--accent);
  text-decoration: none;
}

.news-sources-list a:hover {
  text-decoration: underline;
}

.news-sources-list small {
  color: var(--text-secondary);
}

/* 日本人投資家向け情報ボックス */
.jp-investor-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.jp-investor-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-top: 3px solid var(--accent);
}

.jp-investor-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.jp-investor-card-body {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .jp-investor-box {
    grid-template-columns: 1fr;
  }
  .miku-comment-section {
    gap: 0.75rem;
  }
  .miku-comment-avatar {
    width: 40px;
    height: 40px;
  }
}

/* 見通し（outlook）セル */
.outlook-cell {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 180px;
  line-height: 1.5;
}

.pick-outlook {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

/* ── Amazon おすすめセクション（日次レポート用・ダークテーマ対応）── */
/* .container スコープで dailyページ限定。トップページ(home-body)のインラインスタイルを上書きしない */
.container .amazon-rec-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1500 0%, #1f1a05 100%);
  border: 1px solid #3d3200;
  border-radius: var(--radius);
}
.container .amazon-rec-section h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.container .amazon-rec-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.container .amazon-rec-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.container .amazon-rec-link {
  display: block;
  padding: 0.75rem 1.2rem;
  background: #ff9900;
  color: #fff !important;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.2s;
}
.container .amazon-rec-link:hover { background: #e68a00; }
@media (min-width: 640px) {
  .container .amazon-rec-links { flex-direction: row; flex-wrap: wrap; }
  .container .amazon-rec-link { flex: 0 1 auto; }
}

/* ── 影響度テーブルのモバイル最適化 ──────────────────── */
@media (max-width: 640px) {
  .impact-table thead { display: none; }
  .impact-table, .impact-table tbody, .impact-table tr, .impact-table td {
    display: block; width: 100%;
  }
  .impact-table tr {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 1rem; margin-bottom: 1rem;
  }
  .impact-table td {
    padding: 0.25rem 0; border: none; font-size: 0.85rem;
  }
  .impact-table td::before {
    content: attr(data-label);
    font-weight: 700; color: var(--text-secondary);
    display: block; font-size: 0.75rem; margin-bottom: 0.15rem;
  }
  .impact-table td.ticker-cell { font-size: 1rem; font-weight: 700; }
  .impact-table td.reasoning { line-height: 1.6; }
}

/* ── テクニカル分析（トレンド転換シグナル）─────────────── */
.technical-section { margin: 2rem 0; }
.technical-section h2 {
  font-size: 1.1rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 1.25rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-tertiary);
}
.technical-no-signal {
  background: var(--bg-secondary); border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius); padding: 1.25rem;
  color: var(--text-secondary); font-size: 0.9rem; text-align: center;
}
.trend-group-title {
  font-size: 0.95rem; font-weight: 700;
  margin: 1.25rem 0 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.trend-group-title.bullish { color: var(--positive); }
.trend-group-title.bearish { color: var(--negative); }
.trend-cards { display: flex; flex-direction: column; gap: 1rem; }
.trend-card {
  background: var(--bg-secondary); border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius); padding: 1.25rem;
  transition: border-color 0.2s;
}
.trend-card:hover { border-color: var(--accent); }
.trend-card.bullish { border-left: 4px solid var(--positive); }
.trend-card.bearish { border-left: 4px solid var(--negative); }
.trend-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.75rem;
}
.trend-card-ticker { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.trend-card-signal {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 12px;
}
.trend-card-signal.gc { background: var(--positive-bg); color: var(--positive); }
.trend-card-signal.dc { background: var(--negative-bg); color: var(--negative); }
.trend-card-chart {
  margin: 0.75rem 0; border-radius: var(--radius-sm); overflow: hidden;
}
.trend-card-chart svg { width: 100%; height: auto; display: block; }
.trend-card-indicators {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem;
}
.trend-indicator { font-size: 0.8rem; color: var(--text-secondary); }
.trend-indicator-value { font-weight: 700; color: var(--text-primary); }
.trend-indicator-value.positive { color: var(--positive); }
.trend-indicator-value.negative { color: var(--negative); }
.trend-card-price { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }
.trend-card-price .current { font-weight: 700; color: var(--text-primary); font-size: 1rem; }
.chart-price-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart-sma20-line { fill: none; stroke: var(--positive); stroke-width: 1.5; stroke-dasharray: 4 2; }
.chart-sma50-line { fill: none; stroke: var(--negative); stroke-width: 1.5; stroke-dasharray: 8 3; }
.chart-price-area { fill: url(#priceGradient); opacity: 0.3; }
.chart-grid-line { stroke: var(--bg-tertiary); stroke-width: 0.5; }
.chart-label { font-size: 9px; fill: var(--text-muted); }
.chart-legend {
  display: flex; gap: 1rem; margin-top: 0.5rem;
  font-size: 0.75rem; color: var(--text-secondary);
}
.chart-legend-item { display: flex; align-items: center; gap: 0.3rem; }
.chart-legend-line { width: 16px; height: 2px; display: inline-block; }

/* ── 週次コラム ��───────────────────────────────── */

.weekly-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.weekly-highlight-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
}

.weekly-highlight-day {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.weekly-highlight-event {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.weekly-highlight-thought {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.weekly-miku-mini {
  border-radius: 50%;
  flex-shrink: 0;
}

/* 週次コラム一覧 */
.weekly-index-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.weekly-index-card {
  display: block;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  transition: transform 0.15s;
}

.weekly-index-card:hover {
  transform: translateX(4px);
}

.weekly-index-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.weekly-index-title {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ── ガイドリンクセクション（デイリーレポート詳細ページ） ── */
.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;
}
