@charset "UTF-8";
/* =========================================================
   見守りウェブ Dashboard Redesign
   参照テンプレート準拠のデザインシステム
   ========================================================= */

/* ========== Design Tokens (CSS Custom Properties) ========== */
/* みまもりウェブ 新ロゴ準拠 — やさしく親しみやすいUI・安心感・寄り添い */
:root {
  /* ===== カラーパレット — モバイル共通の深い青緑（爽やか・信頼感） ===== */
  --mw-primary-dark: #084451;
  --mw-bg-selected: #DDEEF2;
  --mw-primary-blue: #0C586A;     /* メイン青緑（やさしい爽やかさ） */
  --mw-primary-teal: #6496A3;     /* サブ青緑（やや明るい） */
  --mw-soft-gray: #637C83;        /* ソフトグレー */

  /* 背景 — ほんのり青緑がかった白 */
  --mw-bg-primary: #FFFFFF;       /* カード背景（白） */
  --mw-bg-secondary: #F4F8F9;     /* メイン背景（微青緑） */
  --mw-bg-tertiary: #EAF3F5;      /* 沈み背景（ライト青緑） */

  /* テキスト — 青緑寄りニュートラル（視認性最優先） */
  --mw-text-primary: #18363D;     /* メイン文字 */
  --mw-text-secondary: #526B72;   /* 補助文字 */
  --mw-text-body: #18363D;        /* 本文用 */
  --mw-text-tertiary: #526B72;    /* 薄い補助文字 */

  /* 境界線 — 青緑寄りグレー（少し締まり） */
  --mw-border-light: #CFDDE1;     /* ライトボーダー */
  --mw-border-medium: #B8D3DA;    /* やや濃いボーダー */

  /* アクセント */
  --mw-accent-positive: #4F8A68;  /* ポジティブグリーン（深め） */
  --mw-accent-neutral: #637C83;   /* ニュートラルグレー */
  --mw-accent-attention: #B8863B; /* 注意（ウォームイエロー） */

  /* 影 — より柔らかく広い */
  --mw-shadow-soft: 0 1px 6px rgba(0,0,0,0.03);
  --mw-shadow-card: 0 2px 12px rgba(0,0,0,0.04);
  --mw-shadow-float: 0 8px 24px rgba(0,0,0,0.07);

  /* レイアウト */
  --mw-sidebar-width: 260px;
  --mw-radius-sm: 12px;           /* ボタン・小要素 */
  --mw-radius-md: 16px;           /* カード */
  --mw-radius-lg: 24px;           /* モーダル・大要素 */

  /* 見出し専用カラー */
  --mw-text-heading: #18363D;

  /* ===== フォント — やさしい太さのゴシック体 ===== */
  --mw-font-sans: 'Noto Sans JP', 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', Meiryo, sans-serif;
  --mw-font-heading: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Sans', 'BIZ UDPGothic', Meiryo, sans-serif;

  /* ボタン用 */
  --mw-btn-primary-bg: #0C586A;
  --mw-btn-primary-hover: #084451;
  --mw-btn-primary-text: #FFFFFF;

  /* ===== タイポグラフィ — 親しみ・可読性優先 ===== */
  --mw-font-size-base: 15.5px;        /* 本文 */
  --mw-font-size-sm: 13.5px;          /* 補足テキスト */
  --mw-font-size-xs: 11.5px;          /* 最小補足 */
  --mw-font-size-lg: 19px;            /* セクション見出し */
  --mw-font-size-menu: 15px;          /* サイドメニュー */
  --mw-font-size-submenu: 14px;       /* サブメニュー */
  --mw-font-size-card-title: 14px;    /* カードラベル */
  --mw-font-size-card-value: 44px;    /* KPI数値 */
  --mw-line-height-base: 1.8;         /* 本文行間 */
  --mw-line-height-heading: 1.5;      /* 見出し行間 */

  /* ===== クライアントアクセント — ロゴ下クライアント名の色 ===== */
  --mw-client-accent: #18363D;        /* クライアント名テキストと同一 */
}

/* ========== Body ========== */
body {
  font-family: var(--mw-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--mw-line-height-base);
  font-size: var(--mw-font-size-base);
  color: var(--mw-text-primary);
  background: var(--mw-bg-secondary);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   見出しフォント（やさしい太さのゴシック体）
   ========================================================================== */
.page-title {
  font-family: var(--mw-font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 26px;
}

h1, h2, h3 {
  font-family: var(--mw-font-heading);
  color: var(--mw-text-heading);
  line-height: var(--mw-line-height-heading);
  letter-spacing: 0.03em;
}
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }

/* ========== Sidebar Override ========== */
.sidebar {
  width: var(--mw-sidebar-width);
  background: var(--mw-bg-primary);
  color: var(--mw-text-primary);
  border-right: 1px solid var(--mw-border-light);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}

.sidebar-header {
  padding: 0;


}

.sidebar-header .logo-area {
  display: block;
  border-bottom: 1px solid var(--mw-border-light);
  padding: 13px 20px 20px;
  background-color: #fff;
}

.sidebar-header .logo-area img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-header .logo-subcatch {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: #444444;
  text-align: center;
  letter-spacing: 0.18em;
  line-height: 1;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

/* ロゴ: テキスト版を非表示にし画像版を使う */
.sidebar-header .logo {
  display: none;
}

/* ユーザー情報 (サイドバー内) */
.sidebar-user-info {
  padding: 18px 24px;
  margin-top: 0;
  border-top: none;
  border-bottom: 1px solid var(--mw-border-light);
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--mw-text-primary);
}

.sidebar-user-plan {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mw-text-tertiary);
}

/* ========== Sidebar Navigation ========== */
.sidebar-nav {
  padding: 0;
}

.sidebar-nav .nav-section {
  padding: 24px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--mw-border-light);
}

.sidebar-nav .nav-section:last-child {
  border-bottom: none;
}

.sidebar-nav .nav-section-title {
  padding: 0 24px 12px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mw-text-secondary);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.sidebar-nav .nav-link {
  padding: 12px 24px;
  color: var(--mw-text-primary);
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.sidebar-nav .nav-link:hover {
  background: var(--mw-bg-secondary);
  color: var(--mw-text-primary);
}

.sidebar-nav .nav-link.active {
  background: var(--mw-bg-selected);
  color: var(--mw-primary-blue);
  font-weight: 600;
  border-left: 4px solid var(--mw-primary-blue);
  border-right: none;
}

.sidebar-nav .nav-link.active::before {
  display: none;
}

.sidebar-nav .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.sidebar-nav .nav-icon svg {
  width: 17px;
  height: 17px;
}
.sidebar-nav .nav-link.active .nav-icon {
  opacity: 1;
  color: var(--mw-primary-blue);
}

/* 仮想メニュー（子メニュー領域）の背景色 — 常時表示 */
.sidebar-nav .nav-submenu {
  background-color: #fff;
}
.sidebar-nav .nav-submenu .nav-link {
  padding: 9px 24px 9px 56px;
  font-size: 13.5px;
  font-weight: 500;
  color: #555;
  position: relative;
}
.sidebar-nav .nav-submenu .nav-link::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.15s, transform 0.15s;
}
.sidebar-nav .nav-submenu .nav-link:hover {
  background: #f8f8f6;
  color: var(--mw-primary-blue);
}
.sidebar-nav .nav-submenu .nav-link:hover::before {
  background: var(--mw-primary-blue);
}
.sidebar-nav .nav-submenu .nav-link.active {
  background: rgba(12, 88, 106, 0.10);
  color: var(--mw-primary-blue);
  font-weight: 500;
}
.sidebar-nav .nav-submenu .nav-link.active::before {
  background: var(--mw-primary-blue);
  width: 5px;
  height: 5px;
}

/* サブメニュー内の見出し（仮想カテゴリ） */
.nav-submenu-heading {
  padding: 10px 24px 4px 44px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.04em;
  list-style: none;
  user-select: none;
  pointer-events: none;
}
.nav-submenu-heading:first-child {
  padding-top: 6px;
}

/* サブグループ (例: 口コミアンケート、サイト分析、SEO、サイトレポート)
   - 親ラベルは親メニュー直下リンクと同じあしらい (色 #555 / 13.5px / weight 500) + 左にドット
   - 子は薄い横線マーカー
*/
.sidebar-nav .nav-subgroup-wrapper {
  margin-top: 6px;
}
.sidebar-nav .nav-subgroup-label {
  display: block;
  position: relative;
  padding: 9px 40px 9px 56px;
  font-size: 13.5px;
  font-weight: 500;
  color: #555;
  letter-spacing: normal;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.sidebar-nav .nav-subgroup-label:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--mw-primary-blue);
}
.sidebar-nav .nav-subgroup-toggle-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #b0bec5;
  transition: transform 0.2s;
  line-height: 1;
}
.sidebar-nav .nav-subgroup-wrapper.collapsed .nav-subgroup-toggle-arrow {
  transform: translateY(-50%) rotate(-90deg);
}
.sidebar-nav .nav-subgroup-wrapper.collapsed .nav-subgroup-menu {
  display: none;
}
.sidebar-nav .nav-subgroup-label::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
}
.sidebar-nav .nav-subgroup-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-nav .nav-subgroup-menu .nav-link {
  padding: 9px 24px 9px 76px;
  font-size: 13.5px;
}
.sidebar-nav .nav-subgroup-menu .nav-link::before {
  left: 58px;
  width: 8px;
  height: 1.5px;
  border-radius: 1px;
  background: #b0bec5;
}
.sidebar-nav .nav-subgroup-menu .nav-link:hover::before {
  background: var(--mw-primary-blue);
}
.sidebar-nav .nav-subgroup-menu .nav-link.active::before {
  background: var(--mw-primary-blue);
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
}

/* 折りたたみトグル（集客のようす） */
.nav-link-toggle {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--mw-text-primary);
}
/* 拡張機能バッジ（改善ツール等） */
.nav-ext-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  color: #5B8C6A;
  background: rgba(91, 140, 106, 0.12);
  border-radius: 9px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
}

.nav-toggle-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.2s ease;
  opacity: 0.5;
}
.nav-item-collapsible.collapsed .nav-toggle-arrow {
  transform: rotate(-90deg);
}
.nav-item-collapsible.collapsed .nav-submenu {
  display: none;
}
/* 月次レポート: 常時展開（accordion から独立） */
.nav-item-always-open .nav-submenu {
  display: block !important;
}
.nav-item-always-open .nav-toggle-arrow {
  transform: rotate(0deg) !important;
  opacity: 0.3;
}

/* ========== Main Wrapper ========== */
.main-content {
  background: var(--mw-bg-secondary);
}

/* ========== Topbar Override ========== */
.topbar {
  background: var(--mw-bg-primary);
  border-bottom: 1px solid var(--mw-border-light);
  padding: 20px 40px;
}

.topbar .page-title {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'BIZ UDPGothic', Meiryo, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #000;
}

.topbar .topbar-right .report-setting-btn {
  background: var(--mw-primary-blue);
  border-radius: var(--mw-radius-sm);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
}

.topbar .topbar-right .report-setting-btn:hover {
  background: #084451;
  box-shadow: var(--mw-shadow-card);
}

.topbar .topbar-right .logout-btn {
  background: #7A8086;
  border-radius: var(--mw-radius-sm);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
}

.topbar .topbar-right .logout-btn:hover {
  background: #6B7178;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  background: var(--mw-bg-primary);
  border-bottom: 1px solid var(--mw-border-light);
}

.breadcrumb a {
  color: var(--mw-primary-blue);
}

/* ========== Content Area ========== */
.content-area {
  padding: 44px 48px 64px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== Period Info Bar — .period-info に統一済み (2026-03) ========== */

/* ========== Dashboard Infographic → 参照テンプレの status-summary スタイル ========== */
.dashboard-infographic {
  display: block;
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-md);
  padding: 40px;
  margin-bottom: 36px;
  color: var(--mw-text-primary);
  box-shadow: none;
}

.dashboard-infographic-title {
  font-size: 25px;
  font-weight: 600;
  color: var(--mw-text-heading);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  padding-right: 240px;
  line-height: 1.5;
}

.dashboard-infographic-title .icon {
  margin-right: 8px;
}

/* ========== Corner CTA (Latest Report) — 参照スタイル ========== */
.info-monthly-link--corner {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 12px 18px;
  border-radius: var(--mw-radius-sm);
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--mw-shadow-card);
  text-decoration: none;
}

.info-monthly-link--corner:hover {
  background: #333;
  box-shadow: var(--mw-shadow-float);
}

/* ========== Corner CTA group (横並び) — 月次 + 戦略レポート ========== */
.info-monthly-link__group {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  z-index: 2;
}
.info-monthly-link__group .info-monthly-link {
  padding: 12px 18px;
  border-radius: var(--mw-radius-sm);
  background: var(--mw-accent-positive); /* 月次レポート: テーマグリーン */
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--mw-shadow-card);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.info-monthly-link__group .info-monthly-link:hover {
  background: #3F7359; /* slightly darker green */
  box-shadow: var(--mw-shadow-float);
}
.info-monthly-link__group .info-monthly-link--strategy {
  background: #1a1a1a; /* 戦略レポート: ブラック */
}
.info-monthly-link__group .info-monthly-link--strategy:hover {
  background: #333;
}

/* ========== レポートアクション群（月次確定 / 速報 を分離） ========== */
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 22px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid #CFDDE1;
  border-radius: var(--mw-radius-md, 10px);
}
.report-actions .monthly-actions,
.report-actions .recent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}
.report-actions .recent-actions {
  border-left: 1px dashed #D6D3CC;
  padding-left: 28px;
}
.report-actions__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6B6B66;
  text-transform: none;
}
.report-actions .monthly-actions .report-actions__label::before {
  content: "📌 ";
}
.report-actions .recent-actions .report-actions__label::before {
  content: "⚡ ";
}
.report-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* メインCTA（月次系）：既存の info-monthly-link を強い色のまま流用 */
.report-actions .info-monthly-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--mw-radius-sm, 8px);
  background: var(--mw-accent-positive, #4A7D63);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--mw-shadow-card, 0 1px 3px rgba(0,0,0,0.1));
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
}
.report-actions .info-monthly-link:hover {
  background: #3F7359;
  box-shadow: var(--mw-shadow-float, 0 4px 10px rgba(0,0,0,0.12));
  transform: translateY(-1px);
}
.report-actions .info-monthly-link--strategy {
  background: #1a1a1a;
}
.report-actions .info-monthly-link--strategy:hover {
  background: #333;
}

/* サブCTA（速報系）：控えめなアウトライン */
.report-actions .info-monthly-link--secondary {
  background: #fff;
  color: #4A4A48;
  border: 1px solid #D6D3CC;
  box-shadow: none;
}
.report-actions .info-monthly-link--secondary:hover {
  background: #F4F2EC;
  color: #18363D;
  border-color: #B8B4A9;
  transform: translateY(-1px);
}

/* スマホ：縦積み */
@media (max-width: 768px) {
  .report-actions {
    flex-direction: column;
    gap: 14px;
  }
  .report-actions .recent-actions {
    border-left: none;
    border-top: 1px dashed #D6D3CC;
    padding-left: 0;
    padding-top: 14px;
  }
}

/* ========== Score + KPI 横並びレイアウト ========== */
.info-top-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 24px;
}

/* ========== 今月の見守り結果カード（点数ではなく状態をやさしく伝える） ========== */
.info-watch {
  flex-shrink: 0;
  width: 300px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px;
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-left: 4px solid var(--mw-accent-neutral);
  border-radius: var(--mw-radius-sm);
}
.info-watch-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-watch-emoji {
  font-size: 20px;
  line-height: 1;
}
.info-watch-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mw-text-tertiary);
}
.info-watch-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--mw-text-primary);
}
.info-watch-text {
  font-size: 13px;
  line-height: 1.85;
  color: var(--mw-text-secondary);
  white-space: pre-line;
}
/* 状態別アクセント */
.info-watch--good    { border-left-color: var(--mw-accent-positive); background: #F3FAF5; }
.info-watch--good    .info-watch-title { color: #2F7D4F; }
.info-watch--caution { border-left-color: #D9A441; background: #FCF8EF; }
.info-watch--caution .info-watch-title { color: #9A6B14; }
.info-watch--warning { border-left-color: #C95A4F; background: #FCF3F2; }
.info-watch--warning .info-watch-title { color: #B0433A; }
.info-watch--nodata  { border-left-color: var(--mw-accent-neutral); }
.info-watch--nodata  .info-watch-title { color: var(--mw-text-secondary); }

/* ========== Score ========== */
.info-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 36px;
  background: var(--mw-bg-secondary);
  border-radius: var(--mw-radius-sm);
  border: 1px solid var(--mw-border-light);
  flex-shrink: 0;
}

/* SVG Donut Gauge */
.info-score-gauge {
  position: relative;
  width: 120px;
  height: 120px;
}
.score-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.score-progress {
  transition: stroke-dashoffset 0.8s ease-out;
}
.score-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.info-score-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--mw-primary-blue);
}

.info-score-unit {
  font-size: 16px;
  font-weight: 600;
  margin-left: 1px;
}
.info-score-label {
  margin-top: 3px;
  font-size: 11px;
  color: var(--mw-text-tertiary);
}

.info-score-diff {
  font-size: 14px;
  font-weight: 600;
}

.info-score-diff.positive { color: var(--mw-accent-positive); }
.info-score-diff.negative { color: #C95A4F; }
.info-score-diff.neutral  { color: var(--mw-accent-neutral); }

.info-score-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--mw-text-secondary);
}

/* Score Breakdown Link */
.info-score-breakdown-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--mw-client-accent, #333333);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.info-score-breakdown-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
}

/* ========== KPI Area（右側） ========== */
.info-kpi-area {
  flex: 1;
  min-width: 0;
}

.info-kpi-heading {
  margin: 0 0 12px;
}

/* ========== KPI Cards（コンパクト版） ========== */
.info-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
  padding-top: 0;
}

.info-kpi-item {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 5px;
  min-width: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.info-kpi-item:hover {
  box-shadow: var(--mw-shadow-float);
  border-color: var(--mw-border-medium);
  transform: translateY(-1px);
  background: var(--mw-bg-primary);
}

.info-kpi-icon {
  font-size: 16px;
  opacity: 0.7;
}

.info-kpi-label {
  font-size: var(--mw-font-size-card-title);
  color: var(--mw-text-secondary);
  font-weight: 600;
  opacity: 1;
}

.info-kpi-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--mw-text-tertiary);
  margin-top: 2px;
  line-height: 1.4;
  letter-spacing: 0;
}

.info-kpi-value {
  font-size: var(--mw-font-size-card-value);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mw-text-heading);
}

.info-kpi-diff {
  font-size: var(--mw-font-size-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.info-kpi-diff.positive { color: var(--mw-accent-positive); }
.info-kpi-diff.negative { color: #C95A4F; }
.info-kpi-diff.neutral  { color: var(--mw-accent-neutral); }

.info-kpi-breakdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 11px;
  color: var(--mw-text-tertiary, #94a3b8);
  line-height: 1.4;
  margin-top: 4px;
  width: 100%;
  min-width: 0;
}
.info-kpi-breakdown:empty { display: none; }
.info-kpi-breakdown .bk-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mw-bg-secondary, #f1f5f9);
  color: var(--mw-text-secondary, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.info-kpi-breakdown .bk-sep { display: none; }

.info-kpi-hint {
  font-size: var(--mw-font-size-xs);
  color: var(--mw-text-tertiary);
}

/* KPI card — button reset (button化に伴うリセット) */
button.info-kpi-item {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* KPI card — active/selected state */
.info-kpi-item.is-active {
  border-color: var(--mw-primary-blue);
  border-bottom: 3px solid var(--mw-primary-blue);
  background: rgba(12, 88, 106, 0.04);
  box-shadow: var(--mw-shadow-soft);
}
.info-kpi-item.is-active .info-kpi-label {
  color: var(--mw-primary-blue);
  font-weight: 600;
}
.info-kpi-item.is-active .info-kpi-hint {
  color: var(--mw-primary-blue);
}

/* ========== KPI Card — Loading State ========== */
.info-kpi-item.is-kpi-loading [data-kpi-role="value"] {
  background: linear-gradient(90deg, var(--mw-bg-tertiary) 25%, var(--mw-border-light) 50%, var(--mw-bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: mw-shimmer 1.5s infinite;
  border-radius: 8px;
  color: transparent;
  min-width: 60px;
  min-height: 46px;
}
.info-kpi-item.is-kpi-loading [data-kpi-role="diff"] {
  background: linear-gradient(90deg, var(--mw-bg-tertiary) 25%, var(--mw-border-light) 50%, var(--mw-bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: mw-shimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent;
  min-width: 50px;
  min-height: 16px;
}

/* Loading text + spinner */
.info-kpi-loading-text {
  font-size: 11px;
  color: var(--mw-text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.info-kpi-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--mw-border-light);
  border-top-color: var(--mw-primary-blue);
  border-radius: 50%;
  animation: kpi-spin 0.8s linear infinite;
}
@keyframes kpi-spin {
  to { transform: rotate(360deg); }
}

/* Fade-in on value arrival */
.info-kpi-item.is-kpi-loaded [data-kpi-role="value"],
.info-kpi-item.is-kpi-loaded [data-kpi-role="diff"] {
  animation: kpi-fade-in 0.4s ease;
}
@keyframes kpi-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== KPI Card — Error State ========== */
.info-kpi-item.is-kpi-error [data-kpi-role="value"] {
  font-size: 13px;
  color: var(--mw-text-tertiary);
  min-height: 46px;
  display: flex;
  align-items: center;
}
.info-kpi-retry-btn {
  font-size: 11px;
  color: var(--mw-primary-blue);
  background: none;
  border: 1px solid var(--mw-primary-blue);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  margin-top: 2px;
  font-family: inherit;
}
.info-kpi-retry-btn:hover {
  background: rgba(12, 88, 106, 0.08);
}

/* Timeout warning */
.info-kpi-timeout-text {
  font-size: 10px;
  color: var(--mw-accent-attention);
  margin-top: 2px;
}

/* ========== Summary Text ========== */
.info-summary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 1100px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: #4a6d7c;
  margin-top: 0;
  margin-bottom: 16px;
}
.info-summary-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  color: var(--mw-primary-blue);
  opacity: 0.7;
}
.info-summary-icon svg {
  width: 18px;
  height: 18px;
}
.info-summary-text {
  flex: 1;
  min-width: 0;
}

/* ========== Breakdown Details → 参照テンプレの chart-area スタイル ========== */
.info-breakdown-details {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mw-border-light);
}

.info-breakdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mw-primary-blue);
  cursor: pointer;
  padding: 11px 22px;
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-medium);
  border-radius: var(--mw-radius-sm);
  transition: background 0.2s, box-shadow 0.2s;
}
.info-breakdown-toggle:hover {
  background: var(--mw-bg-tertiary);
  box-shadow: var(--mw-shadow-soft);
}

.info-breakdown-toggle-icon {
  font-size: 16px;
  opacity: 0.7;
}

.info-breakdown-arrow {
  margin-left: auto;
  color: var(--mw-text-tertiary);
  transition: transform 0.2s;
}

details[open] .info-breakdown-arrow {
  transform: rotate(180deg);
}

.info-breakdown-body {
  margin-top: 16px;
}

.info-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.info-breakdown-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--mw-text-secondary);
  border-bottom: 2px solid var(--mw-border-light);
  background: transparent;
}

.info-breakdown-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mw-border-light);
  color: var(--mw-text-primary);
}

.info-breakdown-table .bd-icon {
  margin-right: 8px;
}

.info-breakdown-table .bd-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 数値列ヘッダーも右揃え（2〜4列目: 当月・先月・前月比） */
.info-breakdown-table thead th:nth-child(2),
.info-breakdown-table thead th:nth-child(3),
.info-breakdown-table thead th:nth-child(4) {
  text-align: right;
}

.info-breakdown-table .bd-num.positive { color: var(--mw-accent-positive); }
.info-breakdown-table .bd-num.negative { color: #C95A4F; }
.info-breakdown-table .bd-num.neutral  { color: var(--mw-accent-neutral); }

.info-breakdown-table .bd-prev {
  color: var(--mw-text-tertiary);
}

.bd-score-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd-score-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--mw-bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.bd-score-bar {
  height: 100%;
  background: var(--mw-primary-teal);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.bd-score-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--mw-text-secondary);
  white-space: nowrap;
}

/* ========== Monthly Section (結論サマリー) ========== */
.info-monthly {
  margin-top: 32px;
  background: linear-gradient(135deg, #F0F0EE 0%, #F8F8F7 100%);
  border: 1px solid var(--mw-border-light);
  border-left: 4px solid var(--mw-primary-blue);
  border-radius: var(--mw-radius-md);
  padding: 30px 34px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.info-monthly-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mw-border-light);
}

.info-monthly-title {
  font-size: 23px;
  font-weight: 600;
  color: var(--mw-text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-monthly-pin {
  font-size: 18px;
}

.info-monthly-summary {
  font-size: 16px;
  color: var(--mw-text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.info-monthly-summary strong {
  color: var(--mw-text-primary) !important;
}

.info-monthly-summary .point-head {
  font-size: 16px;
  font-weight: 700;
  color: var(--mw-text-heading);
  display: block;
  margin-bottom: 4px;
}

/* ========== Highlights → 参照テンプレの insight-card スタイル ========== */
.info-monthly-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mw-border-light);
}

.info-monthly-highlight-item {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-left: 3px solid var(--mw-primary-teal);
  border-radius: var(--mw-radius-sm);
  padding: 26px;
}

.info-monthly-highlight-item:nth-child(2) {
  border-left-color: var(--mw-accent-attention);
}

.info-monthly-highlight-item:nth-child(3) {
  border-left-color: var(--mw-primary-blue);
}

.info-monthly-highlight-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--mw-text-heading);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.info-monthly-highlight-value {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
}

/* ========== Highlight Detail Accordion ========== */
.highlight-detail-accordion {
  margin-top: 12px;
}

.highlight-detail-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mw-primary-blue);
  cursor: pointer;
  font-weight: 500;
}

.highlight-detail-arrow {
  color: var(--mw-text-tertiary);
  transition: transform 0.2s;
}

details[open] > .highlight-detail-toggle .highlight-detail-arrow {
  transform: rotate(180deg);
}

.highlight-detail-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mw-border-light);
}

.highlight-detail-section {
  margin-bottom: 16px;
}

.highlight-detail-section:last-child {
  margin-bottom: 0;
}

.highlight-detail-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mw-text-heading);
  margin-bottom: 10px;
}

.highlight-detail-section-text {
  font-size: 14.5px;
  color: var(--mw-text-body, #3a3a3a);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.highlight-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-detail-list li {
  padding: 6px 0 6px 18px;
  font-size: 14.5px;
  color: var(--mw-text-body, #3a3a3a);
  line-height: 1.85;
  letter-spacing: 0.02em;
  position: relative;
}

.highlight-detail-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--mw-text-tertiary);
}

.highlight-detail-more-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--mw-primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.highlight-detail-more-link:hover {
  text-decoration: underline;
}

/* ========== Summary 3-Block Layout ========== */
.info-summary-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-summary-block {
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--mw-border-light);
}

.info-summary-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-summary-block:first-child {
  padding-top: 0;
}

.info-summary-block-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--mw-text-heading);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.info-summary-block-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  top: 1px;
}

.info-summary-block-text {
  font-size: 15px;
  color: var(--mw-text-secondary);
  line-height: 2.05;
  padding-left: 26px;
}

.info-summary-block-text p {
  margin: 0 0 6px;
}

.info-summary-block-text p:last-child {
  margin-bottom: 0;
}

.info-summary-block-text strong {
  color: var(--mw-text-primary);
  font-weight: 700;
}

.info-summary-block-text .point-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--mw-text-heading);
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .info-summary-block {
    padding: 22px 0 20px;
  }
  .info-summary-block-label {
    font-size: 15px;
  }
  .info-summary-block-text {
    font-size: 14px;
    line-height: 1.95;
    padding-left: 0;
  }
}

/* ========== Monthly Empty State ========== */
.monthly-empty {
  text-align: center;
  padding: 40px 24px;
  margin-top: 24px;
  border-top: 1px solid var(--mw-border-light);
}

.monthly-empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.monthly-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mw-text-heading);
  margin-bottom: 12px;
}

.monthly-empty-text {
  font-size: 14px;
  color: var(--mw-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.monthly-empty-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--mw-primary-teal);
  color: #fff;
  border: none;
  border-radius: var(--mw-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.monthly-empty-btn:hover {
  box-shadow: var(--mw-shadow-float);
  opacity: 0.95;
}

/* ========== Congratulations Banner ========== */
.info-congrats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--mw-radius-sm);
  animation: congrats-fade-in 0.5s ease-out;
}
@keyframes congrats-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.info-congrats-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.info-congrats-body {
  flex: 1;
  min-width: 0;
}
.info-congrats-title {
  font-size: 14px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 2px;
}
.info-congrats-text {
  font-size: 13px;
  color: #15803d;
  line-height: 1.5;
}

/* ========== 「AIに聞く」ボタン ========== */
.ask-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  background: linear-gradient(135deg, var(--mw-primary-blue) 0%, var(--mw-primary-teal) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(12, 88, 106, 0.2);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.ask-ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 88, 106, 0.3);
}
.ask-ai-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(12, 88, 106, 0.2);
}
.ask-ai-btn:focus-visible {
  outline: 2px solid var(--mw-primary-teal);
  outline-offset: 2px;
}
.ask-ai-btn__icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
/* 小サイズ（ハイライトカード内） */
.ask-ai-btn--sm {
  padding: 5px 12px;
  font-size: 11.5px;
  margin-top: 8px;
  box-shadow: 0 1px 4px rgba(12, 88, 106, 0.15);
}
/* section-title 内の配置 */
.section-title .ask-ai-btn {
  margin-left: auto;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .info-congrats {
    padding: 12px 14px;
    gap: 10px;
  }
  .info-congrats-icon {
    font-size: 24px;
  }
  .info-congrats-title {
    font-size: 13px;
  }
  .info-congrats-text {
    font-size: 12px;
  }
  .ask-ai-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  .ask-ai-btn--sm {
    padding: 4px 10px;
    font-size: 10.5px;
  }
}

/* ========== KPI Trend Inline Chart ========== */
.kpi-trend-inline {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
}

.kpi-trend-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kpi-trend-inline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mw-text-heading);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-trend-inline-icon {
  font-size: 16px;
}

.kpi-trend-inline-meta {
  font-size: 11px;
  color: var(--mw-text-tertiary);
  white-space: nowrap;
}

.kpi-trend-inline-body {
  position: relative;
}

.kpi-trend-loading {
  display: none;
}
.kpi-trend-loading.active {
  display: block;
}

.kpi-trend-skeleton {
  height: 260px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease infinite;
  border-radius: var(--mw-radius-sm);
}

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.kpi-trend-chart-wrap {
  height: 260px;
  position: relative;
  transition: opacity 0.3s ease;
}

.kpi-trend-error {
  text-align: center;
  padding: 60px 0;
  color: var(--mw-text-tertiary);
  font-size: 14px;
}
.kpi-trend-error p {
  margin: 0 0 12px;
}

.kpi-trend-retry {
  display: inline-block;
  padding: 8px 20px;
  background: var(--mw-primary-blue);
  color: #fff;
  border: none;
  border-radius: var(--mw-radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.kpi-trend-retry:hover {
  background: var(--mw-primary-teal);
}

/* ========== Loading Overlay ========== */
.loading-overlay .spinner {
  border-color: var(--mw-border-light);
  border-top-color: var(--mw-primary-teal);
}

/* ========== Sidebar Overlay ========== */
.sidebar-overlay {
  z-index: 99;
}

.sidebar-overlay.active {
  background: rgba(0, 0, 0, 0.3);
}

/* ========== Section Title (共通) ========== */
.section-title,
.kpi-section-title {
  font-size: var(--mw-font-size-lg);
  font-weight: 600;
  color: var(--mw-text-heading);
  letter-spacing: 0.02em;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .topbar .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {

  /* トップバー / パンくず → common.css のモバイルスタイルを継承 */

  .content-area {
    padding: 16px 12px;
    overflow-x: hidden;
    word-break: break-word;
  }

  /* ========== 期間セレクター ========== */
  .period-selector {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }

  .period-btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ========== 期間情報バー — .period-info に統一済み (2026-03) ========== */

  /* ========== サマリー ========== */
  .info-summary { font-size: 14px; gap: 6px; }
  .info-summary-icon { width: 22px; height: 22px; margin-top: 2px; }
  .info-summary-icon svg { width: 16px; height: 16px; }

  /* ========== 本文可読性（モバイル） ========== */
  .highlight-detail-section-text,
  .highlight-detail-list li { font-size: 14px; line-height: 1.85; }
  .section-content,
  .highlight-box p,
  .list-box li,
  .action-text,
  .beginner-report-desc { font-size: 14.5px; line-height: 1.85; }

  /* ========== テーブル: 横スクロール対応 ========== */
  .info-breakdown-details,
  .info-breakdown-body,
  .table-section,
  .data-table-wrapper,
  .chart-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .info-breakdown-table,
  .data-table,
  .cv-data-table,
  .actual-cv-table,
  .cv-routes-table {
    min-width: 480px;     /* テーブルの最小幅を保証（横スクロールで全体表示） */
    font-size: 12px;
  }

  .info-breakdown-table th,
  .info-breakdown-table td,
  .data-table th,
  .data-table td {
    padding: 8px 6px;
    white-space: nowrap;
  }

  .info-breakdown-table .bd-prev {
    display: none;
  }

  .data-table tbody td.page-url {
    max-width: 180px;
  }

  /* ========== KPI グリッド ========== */
  .info-kpi {
    grid-template-columns: 1fr;
  }

  /* ========== KPI カード（モバイル文字サイズ） ========== */
  .info-kpi-value {
    font-size: 36px;
  }
  .info-kpi-label {
    font-size: 13px;
  }

  /* ========== KPI トレンドインラインチャート ========== */
  .kpi-trend-inline {
    padding: 16px;
  }
  .kpi-trend-chart-wrap {
    height: 220px;
  }
  .kpi-trend-skeleton {
    height: 220px;
  }

  /* ========== インフォグラフィック ========== */
  .info-top-row {
    flex-direction: column;
    gap: 20px;
  }

  .info-score {
    width: 100%;
  }

  .info-watch {
    width: 100%;
  }

  .info-monthly-highlights {
    grid-template-columns: 1fr;
  }

  .dashboard-infographic-title {
    padding-right: 0;
    font-size: 18px;
  }

  .info-monthly-link--corner {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    text-align: center;
    margin-bottom: 16px;
  }

  .info-monthly-link__group {
    position: relative;
    top: auto;
    right: auto;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px;
  }
  .info-monthly-link__group .info-monthly-link {
    text-align: center;
    white-space: normal;
  }

  /* ========== 各種セクション ========== */
  .kpi-section-title,
  .info-monthly-title,
  .info-kpi-heading,
  .section-title,
  .table-title {
    font-size: 15px;
  }
}

/* ==========================================================================
   共通コンポーネント — 全ページで使用
   参照テンプレートのデザインシステムに統一
   ========================================================================== */

/* ========== Loading Overlay (analysis, report-settings 共通) ========== */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner,
.loading-content {
  background: var(--mw-bg-primary);
  padding: 32px;
  border-radius: var(--mw-radius-sm);
  text-align: center;
  box-shadow: var(--mw-shadow-float);
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 4px solid var(--mw-border-light);
  border-top-color: var(--mw-primary-teal);
  border-radius: 50%;
  animation: mw-spin 0.8s linear infinite;
}

@keyframes mw-spin {
  to { transform: rotate(360deg); }
}

.loading-content p {
  margin: 10px 0;
  color: var(--mw-text-secondary);
  font-size: 15px;
}
.loading-content p:first-of-type {
  font-size: 18px;
  font-weight: 600;
  color: var(--mw-primary-blue);
}

/* ========== Page Header (report-latest) ========== */
.page-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-header .page-title {
  font-size: 24px;
  color: var(--mw-text-primary);
}
.action-btns {
  display: flex;
  gap: 12px;
}
.btn-report {
  padding: 11px 22px;
  border-radius: var(--mw-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-report.btn-secondary {
  background: var(--mw-bg-primary);
  color: var(--mw-text-secondary);
  border: 1px solid var(--mw-border-medium);
}
.btn-report.btn-secondary:hover {
  background: var(--mw-bg-secondary);
}
.btn-report.btn-primary {
  background: var(--mw-primary-blue);
  color: #fff;
}
.btn-report.btn-primary:hover {
  box-shadow: var(--mw-shadow-float);
  opacity: 0.9;
}

/* ========== Period Info / Period Display (report, analysis 共通) ========== */
.period-info {
  background: var(--mw-bg-tertiary);
  border: 1px solid var(--mw-border-medium);
  border-radius: var(--mw-radius-md);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.period-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.period-label-v2 {
  font-size: 13px;
  color: var(--mw-text-tertiary);
  font-weight: 600;
}
.period-value {
  font-size: 15px;
  color: var(--mw-text-primary);
  font-weight: 600;
}
.period-divider {
  width: 1px;
  height: 24px;
  background: var(--mw-border-light);
}
/* .period-display は .period-info と同一デザインに統一 */
.period-display {
  background: var(--mw-bg-tertiary);
  border: 1px solid var(--mw-border-medium);
  border-radius: var(--mw-radius-md);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ========== Period Selector (gcrev-period-selector) ========== */
.gcrev-period-selector {
  margin-bottom: 16px;
}
.period-selector {
  display: flex;
  gap: 8px;
  background: var(--mw-bg-tertiary);
  padding: 5px;
  border-radius: var(--mw-radius-sm);
}
.period-btn {
  padding: 9px 18px;
  border: none;
  background: transparent;
  color: var(--mw-text-tertiary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--mw-radius-sm);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.period-btn:hover {
  color: var(--mw-text-primary);
}
.period-btn.active {
  background: var(--mw-bg-primary);
  color: var(--mw-primary-blue);
  box-shadow: var(--mw-shadow-soft);
}

/* ========== Summary Banner → 参照テンプレ準拠（白カード＋左ボーダー） ========== */
.summary-banner {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-left: 4px solid var(--mw-primary-teal);
  border-radius: var(--mw-radius-md);
  padding: 34px;
  margin-bottom: 36px;
  color: var(--mw-text-primary);
  box-shadow: none;
}
.summary-banner h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--mw-text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--mw-text-secondary);
}
.summary-content strong {
  color: var(--mw-text-primary);
}

/* ========== Summary Cards (analysis-device, age, source 共通) ========== */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.summary-card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-md);
  padding: 30px;
  transition: all 0.25s ease;
}
.summary-card:hover {
  box-shadow: var(--mw-shadow-float);
  border-color: var(--mw-border-medium);
  transform: translateY(-1px);
}
.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.summary-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mw-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.summary-card-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--mw-text-heading);
  margin: 8px 0;
  letter-spacing: -0.02em;
}
.summary-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
}
.summary-card-change.positive {
  background: rgba(82, 140, 90, 0.12);
  color: #4F8A68;
}
.summary-card-change.negative {
  background: rgba(201, 90, 79, 0.1);
  color: #C95A4F;
}
.summary-card-change.neutral {
  background: rgba(12, 88, 106, 0.08);
  color: var(--mw-primary-blue);
}
.summary-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--mw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--mw-bg-secondary);
}
.summary-card-detail {
  font-size: 13px;
  color: var(--mw-text-tertiary);
  margin-top: 12px;
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background: var(--mw-bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  background: var(--mw-primary-teal);
}
.progress-fill.mobile  { background: #3B6FB8; }
.progress-fill.desktop { background: #2E9960; }
.progress-fill.tablet  { background: #E0A020; }

/* ========== Chart Section (全 analysis ページ共通) ========== */
.chart-section {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-md);
  padding: 28px;
  margin-bottom: 28px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mw-text-heading);
}
.chart-actions {
  display: flex;
  gap: 8px;
}
.chart-btn {
  padding: 8px 16px;
  border: 1px solid var(--mw-border-light);
  background: var(--mw-bg-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mw-text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}
.chart-btn:hover {
  background: var(--mw-bg-secondary);
  border-color: var(--mw-border-medium);
}
.chart-container {
  position: relative;
  height: 300px;
}
.chart-placeholder {
  width: 100%;
  height: 300px;
  background: var(--mw-bg-secondary);
  border-radius: var(--mw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mw-text-tertiary);
  font-size: 14px;
  border: 2px dashed var(--mw-border-light);
}

/* ========== Data Table (全 analysis ページ共通) ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead {
  background: var(--mw-bg-secondary);
  border-bottom: 2px solid var(--mw-border-light);
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--mw-text-secondary);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mw-border-light);
  color: var(--mw-text-primary);
}
.data-table tbody tr:hover {
  background: var(--mw-bg-secondary);
}

/* Sortable columns */
.data-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 24px;
  transition: background 0.15s ease;
}
.data-table thead th.sortable:hover {
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-primary);
}
.data-table thead th.sortable .sort-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--mw-border-medium);
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.data-table thead th.sortable.sort-asc .sort-icon .arrow-up,
.data-table thead th.sortable.sort-desc .sort-icon .arrow-down {
  color: var(--mw-primary-blue);
}
.data-table thead th.sortable.sort-asc,
.data-table thead th.sortable.sort-desc {
  background: rgba(12, 88, 106, 0.06);
  color: var(--mw-primary-blue);
}

/* Page URL column */
.data-table tbody td.page-url {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.data-table tbody td.page-url a {
  color: #0C586A;
  text-decoration: none;
}
.data-table tbody td.page-url a:hover {
  opacity: 0.85;
  text-decoration: underline;
}
.data-table tbody td.page-url small {
  color: var(--mw-text-tertiary);
  font-weight: 400;
}

/* Device icon */
.device-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ========== Digest Grid / Cards (analysis, report-latest 共通) ========== */
.digest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.digest-card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-md);
  padding: 28px;
  transition: all 0.25s ease;
}
.digest-card:hover {
  box-shadow: var(--mw-shadow-float);
  border-color: var(--mw-border-medium);
}
.digest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.digest-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mw-text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.detail-link {
  font-size: 13px;
  color: var(--mw-primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.detail-link:hover {
  color: var(--mw-primary-teal);
}
.digest-chart-placeholder {
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.digest-chart-placeholder canvas {
  max-width: 100%;
  max-height: 100%;
}
.digest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.digest-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--mw-border-light);
  gap: 12px;
}
.digest-list-item:last-child {
  border-bottom: none;
}
.digest-list-item-name {
  font-size: 14px;
  color: var(--mw-text-secondary);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.digest-list-item-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--mw-text-primary);
  margin-left: auto;
  white-space: nowrap;
}
.digest-list-item-change {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.digest-list-item-change.positive {
  background: rgba(82, 140, 90, 0.12);
  color: #4F8A68;
}
.digest-list-item-change.negative {
  background: rgba(201, 90, 79, 0.1);
  color: #C95A4F;
}
.digest-list-item-change.neutral {
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-tertiary);
}

/* ========== KPI Grid / Cards (report-latest) ========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-md);
  padding: 28px;
  transition: all 0.25s ease;
}
.kpi-card:hover {
  box-shadow: var(--mw-shadow-float);
  border-color: var(--mw-border-medium);
}
.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.kpi-title {
  font-size: 13px;
  color: var(--mw-text-secondary);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.kpi-term {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0;
}
/* インフォボタン (?) */
.kpi-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 50%;
  color: #888;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 4px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.kpi-info-btn:hover {
  background: none;
  color: #555;
}
.kpi-card.info-open .kpi-info-btn {
  background: var(--mw-primary-blue);
  color: #fff;
}
/* ツールチップ（説明文） */
.kpi-info-tip {
  display: none;
  font-size: 12px;
  line-height: 1.6;
  color: #666;
  background: #f8f8f6;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 4px 0;
}
.kpi-card.info-open .kpi-info-tip {
  display: block;
}

/* 海外アクセス除外バッジ */
.report-notice-info {
  background: #EFF6FF;
  border-left: 4px solid #3B82F6;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #1E40AF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--mw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--mw-bg-secondary);
}
.kpi-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--mw-text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
}
.kpi-change.positive {
  color: #4F8A68;
  background: rgba(82, 140, 90, 0.12);
}
.kpi-change.negative {
  color: #C95A4F;
  background: rgba(201, 90, 79, 0.1);
}
.kpi-change.neutral {
  color: var(--mw-primary-blue);
  background: rgba(12, 88, 106, 0.08);
}
.kpi-sparkline {
  margin-top: 16px;
  height: 50px;
  background: var(--mw-bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mw-text-tertiary);
  font-size: 12px;
}

/* ========== Report Meta ========== */
.report-meta {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 12px;
  color: var(--mw-text-tertiary);
  font-weight: 600;
}
.meta-value {
  font-size: 18px;
  color: var(--mw-text-primary);
  font-weight: 600;
}
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-complete {
  background: rgba(82, 140, 90, 0.15);
  color: #4F8A68;
}

/* ========== Report Content / Sections ========== */
.report-content {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-md);
  padding: 40px;
}
.report-section {
  margin-bottom: 40px;
}
.report-section:last-child {
  margin-bottom: 0;
}
.report-content .section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--mw-text-heading);
  margin-bottom: 16px;
  padding-bottom: 12px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--mw-border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-content {
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--mw-text-body, #3a3a3a);
}

/* Highlight Box */
.highlight-box {
  background: var(--mw-bg-secondary);
  border-left: 3px solid var(--mw-primary-teal);
  padding: 20px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.highlight-box h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--mw-primary-blue);
  margin-bottom: 8px;
}
.highlight-box p {
  font-size: 15px;
  color: var(--mw-text-body, #3a3a3a);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* List Box */
.list-box ul {
  padding-left: 20px;
}
.list-box li {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--mw-text-body, #3a3a3a);
}
.list-box li strong {
  color: var(--mw-text-primary);
}

/* ========== Next Actions / Action Items ========== */
.next-actions {
  display: grid;
  gap: 16px;
}
.action-item {
  background: var(--mw-bg-secondary);
  border-left: 3px solid var(--mw-primary-teal);
  padding: 16px;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: start;
  gap: 12px;
}
.action-priority {
  background: var(--mw-primary-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.action-priority.high   { background: #C95A4F; }
.action-priority.medium { background: var(--mw-accent-attention); }
.action-priority.low    { background: var(--mw-primary-teal); }
.action-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--mw-text-body, #3a3a3a);
}

/* ========== Report Empty State ========== */
.report-empty {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 60px 20px;
  text-align: center;
}

/* Point Head */
.point-head {
  font-weight: 700;
  color: var(--mw-text-primary);
}

/* ========== Beginner Report Items (report-latest) ========== */
.beginner-report-item {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mw-border-light);
  font-weight: 400;
}
.beginner-report-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.beginner-report-title {
  font-size: 17px;
  font-weight: 400;
  color: var(--mw-text-heading);
  margin: 0 0 10px 0;
  line-height: 1.5;
}
.beginner-report-title-text {
  font-weight: 600;
}
.beginner-report-title-text strong {
  font-weight: 600;
}
.beginner-report-desc {
  margin: 0 0 14px 0;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--mw-text-body, #3a3a3a);
  font-weight: 400;
}
.beginner-report-desc p {
  margin: 0;
  font-weight: 400;
}
.beginner-report-desc strong,
.beginner-report-desc b,
.beginner-report-desc span {
  font-weight: 400;
}

/* Beginner report action box (default: teal) */
.beginner-report-action {
  background: var(--mw-bg-secondary);
  border-left: 3px solid var(--mw-primary-teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-top: 12px;
  font-weight: 400;
}
.beginner-report-action__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--mw-primary-blue);
  margin-bottom: 8px;
}
.beginner-report-action__body {
  line-height: 1.8;
  color: var(--mw-text-secondary);
  font-size: 15px;
  font-weight: 400;
}
.beginner-report-action__body p { margin: 0; font-weight: 400; }
.beginner-report-action__body strong,
.beginner-report-action__body b,
.beginner-report-action__body span { font-weight: 400; }

/* Safety: reset unintended bold inside beginner items */
.beginner-report-item strong { font-weight: 400; }
.beginner-report-item .beginner-report-title-text { font-weight: 600; }
.beginner-report-item .beginner-report-action__label { font-weight: 700; }

/* BEM: --good (green accent) */
.beginner-report-item--good .beginner-report-action {
  background: rgba(82, 140, 90, 0.08);
  border-left-color: var(--mw-accent-positive);
}
.beginner-report-item--good .beginner-report-action__label {
  color: #4F8A68;
}
.beginner-report-item--good .beginner-report-action__body {
  color: var(--mw-text-secondary);
}

/* BEM: --issue (attention accent) */
.beginner-report-item--issue .beginner-report-action {
  background: rgba(201, 90, 79, 0.06);
  border-left-color: #C95A4F;
}
.beginner-report-item--issue .beginner-report-action__label {
  color: var(--mw-primary-blue);
}
.beginner-report-item--issue .beginner-report-action__body {
  color: var(--mw-text-secondary);
}

/* ========== Rank Badge / Trend Badge (analysis-region, pages, keywords) ========== */
.rank-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-tertiary);
  text-align: center;
  line-height: 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  margin-right: 8px;
}
.rank-badge.top5 {
  background: var(--mw-primary-teal);
  color: #fff;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.trend-badge.up {
  background: rgba(82, 140, 90, 0.12);
  color: #4F8A68;
}
.trend-badge.down {
  background: rgba(201, 90, 79, 0.1);
  color: #C95A4F;
}
.trend-badge.neutral {
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-tertiary);
}

/* ========== Source Badge (analysis-source) ========== */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--mw-bg-tertiary);
  border-radius: var(--mw-radius-sm);
  font-size: 14px;
  font-weight: 600;
}

/* Source card tooltip */
.source-card {
  position: relative;
  cursor: help;
}
.source-card .help-tooltip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  pointer-events: none;
  position: absolute;
  top: -8px;
  right: 8px;
  z-index: 50;
  background: rgba(44, 62, 64, 0.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--mw-radius-sm);
  font-size: 12px;
  line-height: 1.5;
  max-width: 260px;
}
.source-card:hover .help-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.source-card .help-icon { opacity: 0.6; }
.source-card:hover .help-icon { opacity: 1; }

/* Channel title */
.channel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ja-label {
  display: block;
  width: 100%;
}

/* ========== Filter Section (analysis-pages, keywords) ========== */
.filter-section {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}
.filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group {
  flex: 1;
  min-width: 200px;
}
.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mw-text-secondary);
  margin-bottom: 8px;
  display: block;
}
.filter-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--mw-border-medium);
  border-radius: var(--mw-radius-sm);
  font-size: 14px;
  transition: all 0.25s ease;
}
.filter-input:focus {
  outline: none;
  border-color: var(--mw-primary-blue);
  box-shadow: 0 0 0 3px rgba(12, 88, 106, 0.08);
}
.filter-btn {
  padding: 10px 20px;
  background: var(--mw-primary-blue);
  color: #fff;
  border: none;
  border-radius: var(--mw-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  background: var(--mw-primary-teal);
}
.filter-btn.secondary {
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-secondary);
}
.filter-btn.secondary:hover {
  background: var(--mw-border-light);
}

/* ========== Table Section (analysis-pages, keywords) ========== */
.table-section {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 24px;
}
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.table-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mw-text-heading);
}
.table-actions {
  display: flex;
  gap: 8px;
}
.table-btn {
  padding: 8px 16px;
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-secondary);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.table-btn:hover {
  background: var(--mw-border-light);
}

/* ========== Pagination (analysis-pages) ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}
.pagination-btn {
  padding: 8px 12px;
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-medium);
  color: var(--mw-text-secondary);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pagination-btn:hover {
  background: var(--mw-bg-secondary);
  border-color: var(--mw-primary-blue);
}
.pagination-btn.active {
  background: var(--mw-primary-blue);
  color: #fff;
  border-color: var(--mw-primary-blue);
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== Settings Card / Form (report-settings) ========== */
.settings-card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 32px;
  margin-bottom: 24px;
}
.settings-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--mw-text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-card > p {
  color: var(--mw-text-tertiary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mw-text-secondary);
  margin-bottom: 8px;
}
.form-group label .required {
  color: #C95A4F;
  font-weight: 700;
}
.form-group input[type="url"],
.form-group input[type="text"],
.form-group input[type="month"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mw-border-medium);
  border-radius: var(--mw-radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--mw-bg-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input[type="url"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="month"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mw-primary-blue);
  box-shadow: 0 0 0 3px rgba(12, 88, 106, 0.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Output mode */
.output-mode-group {
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 20px;
  margin-bottom: 24px;
}
.output-mode-group h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--mw-text-heading);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.output-mode-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.output-mode-option {
  flex: 1;
  min-width: 200px;
}
.output-mode-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.output-mode-option label {
  display: block;
  padding: 16px;
  border: 2px solid var(--mw-border-medium);
  border-radius: var(--mw-radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--mw-bg-primary);
}
.output-mode-option input[type="radio"]:checked + label {
  border-color: var(--mw-primary-blue);
  background: rgba(12, 88, 106, 0.05);
}
.output-mode-option label strong {
  display: block;
  font-size: 15px;
  color: var(--mw-text-primary);
  margin-bottom: 4px;
}
.output-mode-option label span {
  display: block;
  font-size: 13px;
  color: var(--mw-text-tertiary);
  line-height: 1.5;
}

/* Generation count */
.generation-count-info {
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.count-icon { font-size: 24px; }
.count-title {
  font-size: 13px;
  color: var(--mw-primary-blue);
  font-weight: 600;
  margin-bottom: 4px;
}
.count-detail {
  font-size: 16px;
  font-weight: 700;
  color: var(--mw-text-heading);
}
.count-detail .current { color: var(--mw-primary-blue); }
.count-detail .remaining {
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--mw-radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-secondary {
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-secondary);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--mw-border-light);
}
.btn-secondary.has-changes {
  background: var(--mw-primary-blue);
  color: #fff;
  box-shadow: var(--mw-shadow-card);
}
.btn-secondary.has-changes:hover:not(:disabled) {
  background: var(--mw-primary-teal);
  box-shadow: var(--mw-shadow-float);
}
.btn-generate {
  background: var(--mw-primary-blue);
  color: #fff;
  flex: 1;
  min-width: 200px;
}
.btn-generate:hover:not(:disabled) {
  background: var(--mw-primary-teal);
  box-shadow: var(--mw-shadow-float);
}

/* Error / Success messages */
.error-box {
  display: none;
  background: rgba(201, 90, 79, 0.06);
  border: 2px solid #C95A4F;
  color: #9C4940;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: var(--mw-radius-sm);
  font-size: 14px;
}
.error-box.visible { display: block; }
.error-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.success-message {
  background: rgba(82, 140, 90, 0.1);
  border: 2px solid var(--mw-accent-positive);
  border-radius: var(--mw-radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  color: #4F8A68;
  font-size: 14px;
}

/* Admin refresh section */
.admin-refresh-section {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid var(--mw-border-light);
  border-left: 3px solid var(--mw-accent-attention);
  border-radius: 0 10px 10px 0;
  padding: 16px;
  margin-bottom: 24px;
}
.admin-refresh-section h3 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--mw-text-primary);
}
.admin-refresh-section p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--mw-text-secondary);
}
.btn-refresh {
  background: var(--mw-primary-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-refresh:hover {
  background: var(--mw-primary-teal);
}

/* ========== Actual CV Table (report-settings) ========== */
.actual-cv-note {
  font-size: 13px;
  color: var(--mw-text-tertiary);
  line-height: 1.7;
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 12px 14px;
  margin: 12px 0 18px;
}
.actual-cv-tools {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
}
.actual-cv-tools .form-group {
  margin-bottom: 0;
  min-width: 260px;
}
.actual-cv-table-wrap {
  overflow: auto;
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  background: var(--mw-bg-primary);
}
.actual-cv-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
.actual-cv-table th,
.actual-cv-table td {
  border-bottom: 1px solid var(--mw-border-light);
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
}
.actual-cv-table th {
  position: sticky;
  top: 0;
  background: var(--mw-bg-secondary);
  z-index: 1;
  font-weight: 700;
  color: var(--mw-text-secondary);
}
.actual-cv-table td.date {
  text-align: left;
  font-weight: 700;
  color: var(--mw-text-secondary);
  white-space: nowrap;
}
.actual-cv-table td.day-sum {
  font-weight: 700;
  color: var(--mw-text-primary);
  background: var(--mw-bg-secondary);
}
.actual-cv-table input[type="number"] {
  width: 76px;
  padding: 8px 10px;
  border: 1px solid var(--mw-border-medium);
  border-radius: var(--mw-radius-sm);
  font-size: 14px;
  text-align: center;
}

/* Additional Actual CV styles (report-settings) */
.actual-cv-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.actual-cv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-radius: 20px;
  font-size: 13px;
  color: var(--mw-text-secondary);
  font-weight: 600;
}
.actual-cv-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.cv-routes-table {
  width: 100%;
  border-collapse: collapse;
}
.cv-routes-table th,
.cv-routes-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--mw-border-light);
  font-size: 14px;
}
.cv-routes-table th {
  background: var(--mw-bg-secondary);
  font-weight: 600;
  color: var(--mw-text-secondary);
}
.drag-handle {
  cursor: grab;
  color: var(--mw-text-tertiary);
  font-size: 16px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--mw-border-medium);
  background: var(--mw-bg-primary);
  border-radius: var(--mw-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--mw-text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  border-color: var(--mw-primary-blue);
  color: var(--mw-primary-blue);
}
.btn-remove-route {
  background: none;
  border: none;
  color: var(--mw-text-tertiary);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}
.btn-remove-route:hover {
  color: #C95A4F;
}
.btn-reset-cv {
  background: var(--mw-bg-tertiary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--mw-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--mw-text-secondary);
  cursor: pointer;
}
.btn-reset-cv:hover {
  background: var(--mw-border-light);
}
.form-text {
  font-size: 13px;
  color: var(--mw-text-tertiary);
  margin-top: 4px;
}
.month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.month-nav-btn {
  padding: 6px 12px;
  border: 1px solid var(--mw-border-medium);
  background: var(--mw-bg-primary);
  border-radius: 8px;
  font-size: 13px;
  color: var(--mw-text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}
.month-nav-btn:hover {
  border-color: var(--mw-primary-blue);
  color: var(--mw-primary-blue);
}

/* ========== Source Page Extras ========== */
.en-label {
  font-size: 11px;
  color: var(--mw-text-tertiary);
}

/* ========== Button Size Variants ========== */
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ========== CV Analysis (analysis-cv) ========== */
.cv-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.cv-summary-card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 32px;
  transition: all 0.25s ease;
}
.cv-summary-card:hover {
  border-color: var(--mw-primary-teal);
  box-shadow: var(--mw-shadow-float);
}
.cv-summary-card.highlight {
  background: rgba(12, 88, 106, 0.04);
  border-color: var(--mw-primary-blue);
}
.cv-summary-label {
  font-size: 14px;
  color: var(--mw-text-tertiary);
  margin-bottom: 12px;
  font-weight: 500;
}
.cv-summary-value {
  font-size: 42px;
  font-weight: 700;
  color: var(--mw-primary-blue);
  margin-bottom: 12px;
  line-height: 1;
}
.cv-summary-unit {
  font-size: 20px;
  color: var(--mw-primary-blue);
  margin-left: 4px;
}
.cv-summary-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--mw-radius-sm);
  margin-bottom: 16px;
}
.cv-summary-change.up {
  background: rgba(82, 140, 90, 0.12);
  color: #4F8A68;
}
.cv-summary-change.down {
  background: rgba(201, 90, 79, 0.1);
  color: #C95A4F;
}
.cv-summary-change.neutral {
  background: rgba(12, 88, 106, 0.08);
  color: var(--mw-primary-blue);
}
.cv-summary-comment {
  font-size: 13px;
  color: var(--mw-text-secondary);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--mw-border-light);
}

.cv-section {
  margin-bottom: 48px;
}

.cv-analysis-card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 40px;
  margin-bottom: 32px;
}
.cv-analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--mw-border-light);
}
.cv-analysis-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--mw-text-heading);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cv-analysis-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.cv-analysis-badge.important {
  background: rgba(157, 166, 174, 0.15);
  color: var(--mw-primary-blue);
}
.cv-analysis-badge.recommend {
  background: rgba(82, 140, 90, 0.12);
  color: #4F8A68;
}

.cv-chart-area {
  margin-bottom: 32px;
  padding: 16px;
  background: var(--mw-bg-secondary);
  border-radius: var(--mw-radius-sm);
}
.cv-chart-container {
  position: relative;
  height: 300px;
}

.cv-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.cv-data-item {
  padding: 20px;
  background: var(--mw-bg-secondary);
  border-radius: var(--mw-radius-sm);
  border-left: 3px solid var(--mw-primary-teal);
}
.cv-data-item-label {
  font-size: 13px;
  color: var(--mw-text-tertiary);
  margin-bottom: 8px;
}
.cv-data-item-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--mw-primary-blue);
}
.cv-data-item-sub {
  font-size: 12px;
  color: var(--mw-primary-blue);
  margin-top: 4px;
}

.cv-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
.cv-data-table th {
  background: var(--mw-bg-secondary);
  color: var(--mw-text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--mw-border-light);
}
.cv-data-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--mw-text-primary);
  border-bottom: 1px solid var(--mw-border-light);
}
.cv-data-table tr:hover {
  background: var(--mw-bg-secondary);
}
.cv-data-table .number {
  text-align: right;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}
.cv-data-table tr.row-highlight {
  background: rgba(12, 88, 106, 0.05);
}
.cv-data-table tr.row-highlight td {
  font-weight: 600;
  color: var(--mw-primary-blue);
}

/* CV Insight Box */
.cv-insight-box {
  background: var(--mw-bg-secondary);
  border-left: 3px solid var(--mw-accent-attention);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin-top: 32px;
}
.cv-insight-box-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mw-primary-blue);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-insight-box-content {
  font-size: 14px;
  color: var(--mw-text-secondary);
  line-height: 1.8;
}

/* CV Compare Box */
.cv-compare-box {
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cv-compare-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cv-compare-item-label {
  font-size: 12px;
  color: var(--mw-text-tertiary);
  font-weight: 500;
}
.cv-compare-item-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--mw-text-primary);
}
.cv-compare-divider {
  width: 1px;
  height: 40px;
  background: var(--mw-border-light);
}

/* CV Label Breakdown（表示ラベル別ゴール内訳） */
.cv-label-breakdown {
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.cv-label-breakdown-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cv-label-breakdown-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mw-text-primary);
}
.cv-label-breakdown-note {
  font-size: 12px;
  color: var(--mw-text-tertiary);
}
.cv-label-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.cv-label-breakdown-item {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cv-label-breakdown-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.cv-label-breakdown-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mw-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-label-breakdown-src {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.cv-label-breakdown-src.manual {
  background: #fef3c7;
  color: #92400e;
}
.cv-label-breakdown-src.reviewed {
  background: #dbeafe;
  color: #1e40af;
}
.cv-label-breakdown-src.ga4 {
  background: #e5e7eb;
  color: #4b5563;
}
.cv-label-breakdown-src.inquiries_api {
  background: #d1fae5;
  color: #065f46;
}
.cv-label-breakdown-item-value {
  font-size: 22px;
  font-weight: 700;
  color: #0C586A;
  line-height: 1.2;
}
.cv-label-breakdown-item-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--mw-text-tertiary);
  margin-left: 2px;
}
.cv-label-breakdown-item-ratio {
  font-size: 11px;
  color: var(--mw-text-tertiary);
}

/* CV Tab Toggle */
.cv-tab-toggle {
  display: inline-flex;
  background: var(--mw-bg-tertiary);
  border-radius: var(--mw-radius-sm);
  padding: 3px;
  gap: 2px;
}
.cv-tab-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--mw-text-tertiary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cv-tab-btn.active {
  background: var(--mw-bg-primary);
  color: var(--mw-text-primary);
  box-shadow: var(--mw-shadow-soft);
}

/* Help Icon Tooltip */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-tertiary);
  border-radius: 50%;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
}
.help-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--mw-text-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: var(--mw-radius-sm);
  white-space: normal;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  line-height: 1.5;
}
.help-icon:hover::after {
  opacity: 1;
}

/* CV Warning */
.cv-realloc-warning {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid var(--mw-border-light);
  border-left: 3px solid var(--mw-accent-attention);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--mw-text-secondary);
  line-height: 1.6;
}

/* CV Methodology Details */
.cv-methodology-details {
  background: var(--mw-bg-secondary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  margin-bottom: 32px;
}
.cv-methodology-details summary {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mw-text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-methodology-details summary::-webkit-details-marker {
  display: none;
}
.cv-methodology-details summary::before {
  content: '▶';
  font-size: 10px;
  transition: transform 0.2s;
}
.cv-methodology-details[open] summary::before {
  transform: rotate(90deg);
}
.cv-methodology-content {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--mw-text-secondary);
  line-height: 1.8;
}
.cv-methodology-caveat {
  font-size: 13px;
  color: var(--mw-text-tertiary);
  margin-top: 12px;
  font-style: italic;
}

/* CV Loading Skeleton */
.cv-loading-skeleton {
  background: linear-gradient(90deg, var(--mw-bg-tertiary) 25%, var(--mw-border-light) 50%, var(--mw-bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: mw-shimmer 1.5s infinite;
  border-radius: var(--mw-radius-sm);
  height: 20px;
  margin-bottom: 8px;
}
@keyframes mw-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== MEO Dashboard Period Btn Override ========== */
.page-template-page-meo-dashboard .period-btn.active {
  background: var(--mw-bg-primary);
  color: var(--mw-primary-blue);
  border-color: var(--mw-primary-teal);
}
.page-template-page-meo-dashboard .summary-grid {
  gap: 20px;
}

/* ========== Shared Responsive — All Pages ========== */
@media (max-width: 1024px) {
  .cv-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .action-btns {
    width: 100%;
    flex-direction: column;
  }
  .btn-report {
    width: 100%;
    justify-content: center;
  }
  .report-content {
    padding: 24px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .period-info,
  .period-display {
    flex-direction: column;
    align-items: flex-start;
  }
  .period-divider {
    display: none;
  }
  .digest-grid {
    grid-template-columns: 1fr;
  }
  .summary-cards {
    grid-template-columns: 1fr;
  }
  .chart-container {
    height: 250px;
  }
  .data-table {
    font-size: 12px;
  }
  .data-table th,
  .data-table td {
    padding: 8px 12px;
  }
  .filter-row {
    flex-direction: column;
  }
  .filter-group {
    width: 100%;
  }
  .table-section {
    overflow-x: auto;
  }
  .cv-analysis-card {
    padding: 24px;
  }
  .cv-data-table th,
  .cv-data-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
  .cv-compare-box {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .cv-compare-divider {
    width: 100%;
    height: 1px;
  }
}

/* ========== Account Page Overrides ========== */
.account .card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
  box-shadow: none;
}
.account .card h2 {
  color: var(--mw-text-heading);
  border-bottom-color: var(--mw-primary-teal);
}
.account .form-group label {
  color: var(--mw-text-secondary);
}
.account .form-group input {
  border-color: var(--mw-border-medium);
  border-radius: var(--mw-radius-sm);
}
.account .form-group input:focus {
  border-color: var(--mw-primary-blue);
  box-shadow: 0 0 0 3px rgba(12, 88, 106, 0.08);
  outline: none;
}
.account .form-note {
  color: var(--mw-text-tertiary);
}
.account .info-display {
  background: var(--mw-bg-secondary);
  border-radius: var(--mw-radius-sm);
}
.account .info-display strong {
  color: var(--mw-text-primary);
}
.account .info-display span {
  color: var(--mw-text-secondary);
}
.account .btn {
  background: var(--mw-primary-blue);
  border-radius: var(--mw-radius-sm);
}
.account .btn:hover {
  background: var(--mw-primary-teal);
}
.account .btn-secondary {
  background: var(--mw-bg-tertiary);
  color: var(--mw-text-secondary);
}
.account .btn-secondary:hover {
  background: var(--mw-border-light);
}
.account .btn-danger {
  background: #C95A4F;
}
.account .btn-danger:hover {
  background: #9C4940;
}
.account .toggle-switch input:checked + .slider {
  background-color: var(--mw-primary-teal);
}
.account .notification-item {
  background: var(--mw-bg-secondary);
  border-radius: var(--mw-radius-sm);
}
.account .notification-label strong {
  color: var(--mw-text-primary);
}
.account .notification-label small {
  color: var(--mw-text-tertiary);
}
.account .welcome h1 {
  color: var(--mw-text-heading);
}

/* ========== Service Page Overrides ========== */
.service .welcome h1 {
  color: var(--mw-text-heading);
}
.service .bl.option {
  background: rgba(201, 168, 76, 0.06);
  border-left-color: var(--mw-accent-attention);
  border-radius: 0 10px 10px 0;
}
.service .bl.option h3 {
  color: var(--mw-primary-blue);
}
.service .bl.option p {
  color: var(--mw-text-secondary);
}
.service .bl.hojyokin {
  background: var(--mw-bg-secondary);
  border-left-color: var(--mw-primary-teal);
  border-radius: 0 10px 10px 0;
}
.service .bl.hojyokin p {
  color: var(--mw-text-secondary);
}
.service .comparison-table-wrapper {
  border-radius: var(--mw-radius-sm);
}
.service .comparison-table thead th {
  background: var(--mw-bg-secondary);
}
.service .comparison-table thead th.plan-light {
  background: var(--mw-bg-secondary);
}
.service .comparison-table thead th.plan-standard {
  background: rgba(12, 88, 106, 0.06);
}
.service .comparison-table thead th.plan-master {
  background: rgba(12, 88, 106, 0.1);
}
.service .comparison-table tbody tr:hover {
  background: var(--mw-bg-secondary);
}
.service .training-card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-left: 3px solid var(--mw-primary-teal);
  border-radius: 0 10px 10px 0;
  box-shadow: none;
}
.service .training-card:hover {
  box-shadow: var(--mw-shadow-float);
}
.service .training-number {
  background: var(--mw-primary-teal);
}
.service .training-card h3 {
  color: var(--mw-text-heading);
}
.service .training-card .price {
  color: var(--mw-primary-blue);
}
.service .training-card ul {
  color: var(--mw-text-secondary);
}
.service .strength-card {
  background: var(--mw-bg-primary);
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
}
.service .strength-card:hover {
  box-shadow: var(--mw-shadow-float);
}
.service .strength-card h3 {
  color: var(--mw-text-heading);
}
.service .strength-card p {
  color: var(--mw-text-secondary);
}
.service .flow-step {
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
}
.service .flow-step:hover {
  box-shadow: var(--mw-shadow-float);
}
.service .flow-number {
  background: var(--mw-primary-blue);
}
.service .faq-item {
  border: 1px solid var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
}
.service .faq-question {
  color: var(--mw-text-heading);
}
.service .faq-question:hover {
  color: var(--mw-primary-blue);
}
.service .faq-answer {
  color: var(--mw-text-secondary);
}
.service .plan-card {
  border-color: var(--mw-border-light);
  border-radius: var(--mw-radius-sm);
}
.service .plan-card:hover {
  border-color: var(--mw-primary-teal);
}
.service .plan-card.featured {
  border-color: var(--mw-primary-blue);
  background: rgba(12, 88, 106, 0.04);
}
.service .plan-name {
  color: var(--mw-text-heading);
}
.service .plan-price {
  color: var(--mw-primary-blue);
}
.service .plan-cta {
  background: var(--mw-primary-blue);
}
.service .plan-cta:hover {
  background: var(--mw-primary-teal);
}

/* ========== Welcome Section Override ========== */
.welcome h1 {
  color: var(--mw-text-heading);
}
.welcome p {
  color: var(--mw-text-secondary);
}

/* ==========================================================
   layout.css 上書き — .dashboard プレフィックス付き見出しカラー
   layout.css の .dashboard .xxx { color:#333 } は
   specificity 0-2-0 のため、単一クラスでは勝てない。
   同じ .dashboard プレフィックスで後から読み込むことで上書きする。
   ========================================================== */
.dashboard .section-title,
.dashboard .kpi-section-title,
.dashboard .dashboard-infographic-title,
.dashboard .info-monthly-title,
.dashboard .info-kpi-heading {
  color: var(--mw-text-heading);
}

/* KPI値は --mw-primary-blue を維持 */
.dashboard .kpi-value {
  color: var(--mw-primary-blue);
}

/* content-area 内の見出し（specificity 0-3-0 で layout.css を上書き） */
.dashboard .content-area .kpi-value {
  color: var(--mw-primary-blue);
}
.dashboard .content-area .monthly-section-title {
  color: var(--mw-text-heading);
}

/* その他 layout.css で #333 がハードコードされている要素 */
.dashboard .period-info strong,
.dashboard .info-item strong,
.dashboard .consideration-content strong {
  color: var(--mw-text-heading);
}

/* !important 付きルールの上書き（layout.css で !important が使われているため） */
.dashboard .point-head strong {
  color: var(--mw-text-heading) !important;
}
.dashboard .content-area .monthly-consideration strong {
  color: var(--mw-text-heading) !important;
}
.dashboard .monthly-action-item .action-content .action-desc-text strong {
  color: var(--mw-text-heading) !important;
}

/* ========== KPI Trend Hint ========== */
.kpi-trend-inline-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mw-client-accent, #333333);
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
  padding-left: 12px;
  transition: opacity 0.2s ease;
}
.kpi-trend-inline-hint:hover {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kpi-trend-inline-hint svg {
  flex-shrink: 0;
  opacity: 0.8;
}
.kpi-trend-inline-hint-text {
  opacity: 1;
}
@media (max-width: 480px) {
  .kpi-trend-inline-hint-text {
    display: none;
  }
}

/* ========== Drilldown Popover ========== */
.drilldown-popover {
  position: fixed;
  z-index: 10000;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: var(--mw-radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 200px;
  max-width: 280px;
}
.drilldown-popover-title {
  padding: 6px 14px 4px;
  font-size: 12px;
  color: #888;
  font-weight: 600;
}
.drilldown-popover-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  color: #333;
  transition: background 0.15s;
}
.drilldown-popover-item:hover {
  background: #f5f5f5;
}
.drilldown-popover-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.drilldown-popover-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drilldown-popover-help {
  display: none;
  font-size: 11px;
  line-height: 1.4;
  color: #999;
  font-weight: 400;
}

/* ========== Drilldown Modal ========== */
.drilldown-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.drilldown-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.drilldown-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.drilldown-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #333;
}
.drilldown-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
  line-height: 1;
}
.drilldown-modal-close:hover {
  color: #333;
}
.drilldown-modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}
.drilldown-modal-chart {
  height: 350px;
  position: relative;
}
.drilldown-modal-empty,
.drilldown-modal-error {
  text-align: center;
  padding: 40px 0;
  color: #999;
  font-size: 14px;
}

@media (max-width: 600px) {
  .drilldown-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .drilldown-modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 14px 14px 0 0;
    margin-top: auto;
  }
  .drilldown-modal-chart {
    height: 280px;
  }
  .drilldown-popover {
    min-width: 160px;
  }
}

/* ========== Score Breakdown Modal ========== */
.score-breakdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.score-breakdown-modal {
  background: var(--mw-bg-primary);
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.score-breakdown-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mw-border-light);
  flex-shrink: 0;
}
.score-breakdown-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--mw-text-heading);
}
.score-breakdown-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
  line-height: 1;
}
.score-breakdown-modal-close:hover {
  color: #333;
}
.score-breakdown-modal-body {
  padding: 20px;
  overflow-y: auto;
}

/* Total score in modal */
.score-breakdown-total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mw-border-light);
}
.score-breakdown-total-label {
  font-size: 14px;
  color: var(--mw-text-secondary);
}
.score-breakdown-total-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--mw-primary-blue);
  line-height: 1;
}
.score-breakdown-total-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--mw-text-secondary);
}
.score-breakdown-total-sep {
  font-size: 16px;
  color: var(--mw-text-tertiary, #999);
  margin: 0 2px;
}

/* Breakdown table inside modal */
.score-breakdown-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.score-breakdown-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--mw-text-tertiary);
  font-size: 14px;
}

/* ========== Score Components (v2) ========== */
.score-comp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.score-comp-card {
  background: var(--mw-bg-secondary, #f8f9fa);
  border-radius: var(--mw-radius-sm);
  padding: 14px 16px;
}
.score-comp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.score-comp-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.score-comp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--mw-text-heading);
  flex: 1;
}
.score-comp-pts {
  font-size: 14px;
  font-weight: 700;
  color: var(--mw-primary, #0C586A);
  white-space: nowrap;
}
.score-comp-bar {
  height: 6px;
  background: var(--mw-border-light, #e5e7eb);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.score-comp-bar-fill {
  height: 100%;
  background: var(--mw-primary, #0C586A);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Details (折りたたみ) */
.score-comp-details {
  margin-top: 4px;
}
.score-comp-details > summary {
  font-size: 12px;
  color: var(--mw-text-secondary, #6b7280);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  list-style: none;
}
.score-comp-details > summary::-webkit-details-marker {
  display: none;
}
.score-comp-details > summary::before {
  content: '▶ ';
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
}
.score-comp-details[open] > summary::before {
  transform: rotate(90deg);
}
.score-comp-details-body {
  padding: 6px 0 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.score-comp-dim-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mw-text-body, #374151);
  padding: 2px 0;
}
.score-comp-dim-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.score-comp-dim-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-comp-dim-pts {
  font-weight: 600;
  color: var(--mw-primary, #0C586A);
  white-space: nowrap;
  font-size: 12px;
}
.score-comp-dim-pct {
  font-size: 12px;
  white-space: nowrap;
  color: var(--mw-text-secondary, #6b7280);
}
.score-comp-dim-note {
  font-size: 11px;
  color: var(--mw-text-tertiary, #9ca3af);
  white-space: nowrap;
}

/* Inline note (Stability) */
.score-comp-inline-note {
  margin-top: 4px;
  font-size: 13px;
}
.score-comp-check-ok {
  color: var(--mw-success, #16a34a);
}
.score-comp-check-ng {
  color: var(--mw-warning, #d97706);
}

/* Checklist (Action Bonus) */
.score-comp-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.score-comp-check-item {
  font-size: 12px;
  padding: 2px 0;
  white-space: nowrap;
}
.score-comp-check-item.is-ok {
  color: var(--mw-success, #16a34a);
}
.score-comp-check-item.is-ng {
  color: var(--mw-text-tertiary, #9ca3af);
}

/* Mobile: bottom sheet */
@media (max-width: 600px) {
  .score-breakdown-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .score-breakdown-modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 14px 14px 0 0;
  }
  .score-comp-dim-label {
    font-size: 12px;
  }
}

/* ========== Plan Locked Sections ========== */
.plan-locked-section {
  position: relative;
}
.plan-locked-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);
  border: 1px dashed var(--mw-border-medium, #D1D5DB);
  border-radius: var(--mw-radius-sm, 8px);
  text-align: center;
  min-height: 120px;
}
.plan-locked-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.plan-locked-message {
  font-size: 14px;
  font-weight: 500;
  color: var(--mw-text-secondary, #6B7280);
  line-height: 1.7;
  margin: 0 0 16px;
}
.plan-locked-link {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--mw-accent, #3B82F6);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.plan-locked-link:hover {
  background: var(--mw-accent-hover, #0C586A);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

/* ========== 通知バナー（共通） ========== */
.gcrev-notice-prev2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 4px solid #EF4444;
  background: #FEF2F2;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mw-text-primary, #333);
}
.gcrev-notice-prev2 .notice-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
}
.gcrev-notice-prev2 .notice-text {
  flex: 1;
  min-width: 0;
}
.gcrev-notice-prev2 .notice-text strong {
  display: block;
  margin-bottom: 2px;
}

/* ========== Global Button Hover / Focus / Active Enhancement ========== */

/*
 * 全ボタン要素の統一的なインタラクション強化
 * - cursor: pointer の保証
 * - hover 時の視覚的変化（背景色・影・浮き上がり）
 * - focus-visible でキーボード操作時の視認性
 * - active 時の押下フィードバック
 * - disabled 時は hover/active を無効化
 */

/* --- 基本ボタンリセット: cursor と transition の保証 --- */
button:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="button"]:not(:disabled),
input[type="reset"]:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

/* --- Primary 系ボタン hover 強化 --- */
/* .btn (汎用) — primary背景のデフォルト */
.btn:not(.btn-secondary):not(.btn-outline):not(.btn-remove-route):not(.btn-reset-cv):not(:disabled):hover {
  background: var(--mw-btn-primary-hover, #084451);
  box-shadow: var(--mw-shadow-float);
  transform: translateY(-1px);
}
.btn:not(.btn-secondary):not(.btn-outline):not(.btn-remove-route):not(.btn-reset-cv):not(:disabled):active {
  transform: translateY(0);
  box-shadow: var(--mw-shadow-soft);
}

/* --- btn-generate hover 強化 --- */
.btn-generate:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn-generate:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--mw-shadow-soft);
}

/* --- btn-secondary hover 強化 --- */
.btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--mw-shadow-soft);
}
.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* --- btn-refresh hover 強化 --- */
.btn-refresh:hover {
  box-shadow: var(--mw-shadow-float);
  transform: translateY(-1px);
}
.btn-refresh:active {
  transform: translateY(0);
  box-shadow: var(--mw-shadow-soft);
}

/* --- btn-outline hover 強化 --- */
.btn-outline:hover {
  background: rgba(12, 88, 106, 0.06);
  box-shadow: var(--mw-shadow-soft);
  transform: translateY(-1px);
}
.btn-outline:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- btn-report hover 強化 --- */
.btn-report.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--mw-shadow-soft);
}
.btn-report.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-report:active {
  transform: translateY(0);
  box-shadow: var(--mw-shadow-soft) !important;
}

/* --- btn-reset-cv hover 強化 --- */
.btn-reset-cv:hover {
  transform: translateY(-1px);
  box-shadow: var(--mw-shadow-soft);
}
.btn-reset-cv:active {
  transform: translateY(0);
}

/* --- btn-remove-route hover 強化 --- */
.btn-remove-route:hover {
  transform: scale(1.15);
}
.btn-remove-route:active {
  transform: scale(0.95);
}

/* --- monthly-empty-btn hover 強化 --- */
.monthly-empty-btn:hover {
  transform: translateY(-1px);
}
.monthly-empty-btn:active {
  transform: translateY(0);
  box-shadow: var(--mw-shadow-soft);
}

/* --- period-btn hover 強化 --- */
.period-btn:hover {
  transform: translateY(-1px);
}
.period-btn:active:not(.active) {
  transform: translateY(0);
}

/* --- chart-btn hover 強化 --- */
.chart-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--mw-shadow-soft);
}
.chart-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- filter-btn hover 強化 --- */
.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--mw-shadow-soft);
}
.filter-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- table-btn hover 強化 --- */
.table-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--mw-shadow-soft);
}
.table-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- pagination-btn hover 強化 --- */
.pagination-btn:not(:disabled):not(.active):hover {
  transform: translateY(-1px);
  box-shadow: var(--mw-shadow-soft);
}
.pagination-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- month-nav-btn hover 強化 --- */
.month-nav-btn:hover {
  background: rgba(12, 88, 106, 0.06);
  box-shadow: var(--mw-shadow-soft);
  transform: translateY(-1px);
}
.month-nav-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- cv-tab-btn hover（未定義だったので追加） --- */
.cv-tab-btn:not(.active):hover {
  background: rgba(12, 88, 106, 0.08);
  color: var(--mw-text-secondary);
}
.cv-tab-btn:active:not(.active) {
  background: rgba(12, 88, 106, 0.12);
}

/* --- info-kpi-retry-btn hover 強化 --- */
.info-kpi-retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--mw-shadow-soft);
}
.info-kpi-retry-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- info-breakdown-toggle hover 強化 --- */
.info-breakdown-toggle:hover {
  transform: translateY(-1px);
}
.info-breakdown-toggle:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- highlight-detail-toggle hover（未定義だったので追加） --- */
.highlight-detail-toggle:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* --- kpi-trend-toggle-btn hover 強化 --- */
.kpi-trend-toggle-btn:not(.is-active):hover {
  box-shadow: var(--mw-shadow-soft);
}
.kpi-trend-toggle-btn:active {
  background: #e4e4e4;
}

/* --- plan-locked-link hover 強化 --- */
.plan-locked-link:active {
  transform: translateY(0);
  box-shadow: var(--mw-shadow-soft);
}

/* --- info-kpi-item (KPIカード) active 強化 --- */
.info-kpi-item:active:not(.is-active) {
  transform: translateY(0);
  box-shadow: var(--mw-shadow-card);
}

/* --- 全ボタン共通 focus-visible（キーボード操作対応） --- */
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible,
a.btn:focus-visible,
a.btn-report:focus-visible,
a.btn-outline:focus-visible,
.plan-locked-link:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--mw-primary-blue, #0C586A);
  outline-offset: 2px;
}

/* --- disabled ボタンの hover/active を無効化 --- */
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.btn:disabled {
  pointer-events: none;
}

/* ========== Print ========== */
@media print {
  /* === レイアウトリセット === */
  .sidebar { display: none !important; }
  .breadcrumb { display: none !important; }
  .main-content { margin-left: 0 !important; padding-top: 0 !important; }
  body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* === トップバー: レポートヘッダーとして再構成 === */
  .topbar {
    position: static !important;
    border-bottom: 2px solid #EAF3F5 !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 12px 20px !important;
    margin-bottom: 12px !important;
  }
  /* 不要なUI要素を非表示 */
  .topbar .menu-toggle,
  .topbar .settings-menu,
  .topbar .updates-bell,
  .topbar .account-menu { display: none !important; }
  /* クライアント名・ドメインを右寄せ */
  .topbar .topbar-right { margin-left: auto; }
  .topbar .topbar-user-info { display: block !important; }

  /* === UI要素の非表示 === */
  .page-header .action-btns { display: none; }
  .loading-overlay { display: none !important; }
  .beginner-report-action { background: #f8f8f8 !important; }
  .drilldown-popover,
  .drilldown-modal-overlay,
  .score-breakdown-overlay { display: none !important; }
  .plan-locked-overlay { display: none !important; }

  /* FAB・チャット・印刷ボタン・AIに聞くボタンを非表示 */
  .mw-chat-fab,
  .mw-chat-panel,
  [onclick="window.print()"],
  .ask-ai-btn,
  [data-ai-ask] { display: none !important; }

  /* === 期間表示バー: 1行に収める === */
  .period-info {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 14px !important;
    margin-bottom: 10px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }
  .period-info .period-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  .period-info .period-divider {
    width: 1px !important;
    height: 16px !important;
    margin: 0 4px !important;
  }
  .period-info .period-label-v2 { font-size: 11px !important; }
  .period-info .period-value { font-size: 12px !important; font-weight: 600 !important; }

  /* === KPIカード: 3列（4列だと右端が切れるため） === */
  .kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    overflow: visible !important;
  }
  .kpi-card {
    padding: 10px 12px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }
  .kpi-card-header { margin-bottom: 4px !important; }
  .kpi-value { font-size: 20px !important; }
  .kpi-title { font-size: 10px !important; }
  .kpi-term { font-size: 9px !important; }
  .kpi-change { font-size: 10px !important; padding: 1px 5px !important; margin-top: 2px !important; }
  .kpi-sparkline { height: 18px !important; margin-top: 4px !important; }
  .kpi-sparkline canvas,
  .kpi-sparkline svg { height: 18px !important; }
  .kpi-info-btn,
  .kpi-info-tip { display: none !important; }
  .kpi-icon { width: 24px !important; height: 24px !important; font-size: 12px !important; }

  /* === レポート本文: 文字サイズ縮小 & 余白圧縮 === */
  .report-content {
    padding: 16px 20px !important;
    border: none !important;
  }
  .report-section {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .section-title {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
  }
  .section-content {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
  .section-content p { margin-bottom: 4px !important; }
  .list-box { padding: 8px 12px !important; margin-bottom: 6px !important; }

  /* === 年月切り替え: 非表示 === */
  .rpt-ym-switcher { display: none !important; }

  /* === 余白の全体圧縮 === */
  .content-area { padding: 0 8px !important; }
  h2, h3 { margin-top: 10px !important; margin-bottom: 6px !important; font-size: 14px !important; }

  /* === 改ページ制御 === */
  .kpi-card,
  .report-section,
  .ar-analysis-card { break-inside: avoid; page-break-inside: avoid; }

  /* === 期間表示: 確実に1行化 === */
  .period-info .period-divider {
    display: block !important;
    background: #ccc !important;
  }

  /* === 総評・本文の文字サイズ縮小（考察・インサイトと統一） === */
  .highlight-box {
    padding: 12px 14px !important;
    margin: 8px 0 !important;
  }
  .highlight-box h4 {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
  .highlight-box p {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }
  .list-box li {
    font-size: 11px !important;
    line-height: 1.6 !important;
    margin-bottom: 6px !important;
  }
  .beginner-report-item {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }
  .beginner-report-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
  }
  .beginner-report-desc {
    font-size: 11px !important;
    line-height: 1.6 !important;
    margin-bottom: 6px !important;
  }
  .beginner-report-desc p {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }
  .beginner-report-action {
    padding: 8px 12px !important;
    margin-top: 6px !important;
  }
  .beginner-report-action__label {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  .beginner-report-action__body {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }
  /* 考察・インサイト本文 */
  .section-content p {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }
  /* ネクストアクション */
  .next-actions .action-item {
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
  }
  .next-actions .action-text {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }
  .next-actions .action-text strong {
    font-size: 12px !important;
  }
  .next-actions .action-priority {
    font-size: 10px !important;
    min-width: 24px !important;
    padding: 2px 6px !important;
  }

  /* === 集客分析結果: 印刷用2列レイアウト === */
  .digest-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }
  .digest-card {
    padding: 12px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    overflow: hidden !important;
    border: 1px solid #ddd !important;
  }
  .digest-card-header {
    margin-bottom: 8px !important;
  }
  .digest-card-title {
    font-size: 11px !important;
    gap: 4px !important;
  }
  .detail-link {
    display: none !important;
  }
  .digest-chart-placeholder {
    height: 70px !important;
    padding: 6px !important;
    margin-bottom: 8px !important;
  }
  .digest-list-item {
    padding: 4px 0 !important;
    gap: 6px !important;
  }
  .digest-list-item-name {
    font-size: 10px !important;
  }
  .digest-list-item-value {
    font-size: 11px !important;
  }
  .digest-list-item-change {
    font-size: 9px !important;
    padding: 2px 4px !important;
  }

  /* 集客分析結果のセクション見出し */
  .digest-grid + h2,
  .digest-grid ~ h2 {
    font-size: 14px !important;
  }
}
