/* ============================================================
   compare.css — 比較ランキングページ専用スタイル
   (compare-age-40s.html 他、比較ページで共通利用予定)
   tg-cmp40-* プレフィックスは 40代向けランキング専用
   tg-cmp-* プレフィックスは将来の共通化用
   依存: tokens.css, top.css (.tg-section / .tg-section-head 等)
   ============================================================ */

/* ------------------------------------------------------------
   Hero — navy gradient + 4 metric badges
   ------------------------------------------------------------ */
.tg-cmp40-hero {
  background: linear-gradient(135deg, #0c2548 0%, #1a3a6e 100%);
  border-bottom: 4px solid #FFC700;
  padding: 32px 0 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tg-cmp40-hero .grid-bg {
  position: absolute; inset: 0; opacity: 0.06;
  pointer-events: none;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 40px 40px;
}
.tg-cmp40-hero .inner {
  max-width: 1040px; margin: 0 auto; padding: 0 40px;
  position: relative;
}
.tg-cmp40-hero .eyebrow-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tg-cmp40-hero .cat-tag {
  background: #FF6C00; color: #fff;
  padding: 3px 10px; border-radius: 3px;
  font-size: var(--fs-label-sm); font-weight: 900;
  letter-spacing: 0.05em;
}
.tg-cmp40-hero .crumb {
  color: #9ED4FF; font-size: var(--fs-label-sm);
  letter-spacing: 0.05em;
}
.tg-cmp40-hero h1 {
  font-size: 34px; font-weight: 900; line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: #fff;
}
.tg-cmp40-hero h1 .pill {
  background: #FFC700; color: #0c2548;
  padding: 2px 10px; border-radius: 6px;
  letter-spacing: 0.02em;
}
.tg-cmp40-hero h1 .ver {
  display: inline-block; margin-left: 10px;
  background: rgba(255,255,255,0.12);
  color: #FFC700;
  padding: 4px 12px; border-radius: 6px;
  font-size: var(--fs-body-sm); font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.tg-cmp40-hero .subtitle {
  font-size: var(--fs-body-sm);
  color: #b8c8e0; line-height: 1.85;
  max-width: 740px; margin-bottom: 22px;
}
.tg-cmp40-hero .subtitle b { color: #FFC700; }
.tg-cmp40-hero .subtitle u {
  text-decoration-color: #FFC700; text-underline-offset: 3px;
}

.tg-cmp40-hero .metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.tg-cmp40-hero .metric {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; padding: 12px 16px;
  backdrop-filter: blur(2px);
}
.tg-cmp40-hero .metric .lbl {
  font-size: var(--fs-label-sm);
  color: #9ED4FF; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 6px;
}
.tg-cmp40-hero .metric .val {
  display: flex; align-items: baseline; gap: 3px;
  margin-bottom: 2px;
}
.tg-cmp40-hero .metric .val .v {
  font-size: 26px; font-weight: 900; line-height: 1;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
}
.tg-cmp40-hero .metric .val .u {
  font-size: var(--fs-body-sm); font-weight: 700; color: #FFC700;
}
.tg-cmp40-hero .metric .note {
  font-size: var(--fs-label-sm); color: #7a8ea8;
}
.tg-cmp40-hero .footer-tags {
  margin-top: 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-label-sm);
  color: #b8c8e0; flex-wrap: wrap;
}
.tg-cmp40-hero .footer-tags .updated {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px; border-radius: 3px; font-weight: 700;
}
.tg-cmp40-hero .footer-tags .dot { opacity: 0.6; }

/* ------------------------------------------------------------
   3-types section
   ------------------------------------------------------------ */
.tg-cmp40-3types-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tg-cmp40-type-card {
  background: #fff;
  border: 1px solid var(--tone, #0744CC);
  border-radius: 14px;
  padding: 20px 22px 22px;
  position: relative;
  box-shadow: 0 8px 24px rgba(11, 40, 90, 0.05);
}
.tg-cmp40-type-card .tab {
  display: inline-block;
  background: var(--tone-bg, #EAF1FF);
  color: var(--tone, #0744CC);
  padding: 3px 12px; border-radius: 3px;
  font-size: var(--fs-label-sm); font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.tg-cmp40-type-card h3 {
  margin: 0; font-size: var(--fs-h2);
  font-weight: 900; color: #0c2548;
  letter-spacing: -0.005em;
}
.tg-cmp40-type-card .who {
  font-size: var(--fs-body-xs);
  color: #7a849c; margin: 4px 0 12px;
  font-weight: 700;
}
.tg-cmp40-type-card .desc {
  font-size: var(--fs-body-sm); color: #1a1f2e;
  line-height: 1.85; margin: 0 0 14px;
  min-height: 130px;
}
.tg-cmp40-type-card .stat-row {
  background: var(--tone-bg, #EAF1FF);
  border-radius: 10px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.tg-cmp40-type-card .stat-l {
  font-size: var(--fs-label-sm);
  color: var(--tone, #0744CC);
  font-weight: 700; letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.tg-cmp40-type-card .stat-v {
  display: flex; align-items: baseline; gap: 2px;
}
.tg-cmp40-type-card .stat-v .v {
  font-size: var(--fs-stat-md);
  font-weight: 900; color: var(--tone, #0744CC);
  line-height: 1;
  font-family: Helvetica, Arial, sans-serif;
}
.tg-cmp40-type-card .stat-v .u {
  font-size: var(--fs-body-sm); font-weight: 900;
  color: var(--tone, #0744CC);
}
.tg-cmp40-type-card .head-l {
  font-size: var(--fs-label-sm); color: #7a849c;
  font-weight: 700; margin-bottom: 2px;
  text-align: right;
}
.tg-cmp40-type-card .head-v {
  font-size: var(--fs-body-sm);
  font-weight: 900; color: #0c2548;
  text-align: right;
}

/* ------------------------------------------------------------
   Editor TOP3
   ------------------------------------------------------------ */
.tg-cmp40-top3-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tg-cmp40-top3-card {
  background: #fff;
  border: 2px solid var(--medal, #FFC700);
  border-radius: 14px;
  padding: 24px 22px 22px;
  position: relative;
  box-shadow: 0 12px 32px var(--medal-shadow, rgba(255,199,0,0.2));
}
.tg-cmp40-top3-card .medal {
  position: absolute; top: -16px; left: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--medal, #FFC700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-title-lg); font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px var(--medal-shadow, rgba(255,199,0,0.4));
  border: 3px solid #fff;
  font-family: Helvetica, Arial, sans-serif;
}
.tg-cmp40-top3-card .logo-box {
  background: #F9FAFC;
  border: 1px solid #E5E9F0;
  border-radius: 8px;
  padding: 14px 18px;
  height: 60px;
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 14px;
  font-weight: 900; color: #0c2548;
  font-size: var(--fs-title-md);
}
.tg-cmp40-top3-card .logo-box.has-img { padding: 8px 14px; background: #fff; }
.tg-cmp40-top3-card .logo-box.has-img img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}
.tg-cmp40-top3-card .name {
  font-size: var(--fs-title-md);
  font-weight: 900; color: #0c2548;
  margin-bottom: 6px;
}
.tg-cmp40-top3-card .score-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
}
.tg-cmp40-top3-card .stars {
  color: #FFB100; font-size: var(--fs-body-sm);
  letter-spacing: 0.05em;
}
.tg-cmp40-top3-card .score-num {
  font-size: var(--fs-body-sm); font-weight: 900;
  color: #FF6C00;
  font-family: Helvetica, Arial, sans-serif;
}
.tg-cmp40-top3-card .score-out {
  font-size: var(--fs-label-sm); color: #7a849c;
}
.tg-cmp40-top3-card .catch {
  font-size: var(--fs-body-sm);
  color: #1a1f2e; line-height: 1.75;
  font-weight: 700; margin-bottom: 12px;
  min-height: 80px;
}
.tg-cmp40-top3-card .tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 14px;
}
.tg-cmp40-top3-card .cta-row { text-align: center; }
.tg-cmp40-top3-card .cta {
  display: inline-block; width: 100%;
  background: linear-gradient(180deg, #FF8B3D 0%, #FF6600 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: var(--fs-btn-sm); font-weight: 900;
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(255, 112, 67, 0.3);
  text-decoration: none;
}
.tg-cmp40-top3-card .cta:hover { opacity: 0.92; }

/* ------------------------------------------------------------
   3-min diagnostic banner
   ------------------------------------------------------------ */
.tg-cmp40-diag-banner {
  background: linear-gradient(135deg, #fff7c2 0%, #FFE45A 100%);
  border: 2px solid #FFC700;
  border-radius: 14px;
  padding: 18px 24px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: center;
  text-decoration: none;
  color: inherit;
}
.tg-cmp40-diag-banner:hover { opacity: 0.95; }
.tg-cmp40-diag-banner .icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 3px solid #FF6C00;
  display: flex; align-items: center; justify-content: center;
}
.tg-cmp40-diag-banner .icon-circle svg { display: block; }
.tg-cmp40-diag-banner .copy .badge {
  display: inline-block; background: #FF6C00; color: #fff;
  padding: 2px 8px; border-radius: 3px;
  font-size: var(--fs-label-sm); font-weight: 900;
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.tg-cmp40-diag-banner .copy .title {
  font-size: var(--fs-title-lg); font-weight: 900;
  color: #0c2548; line-height: 1.4;
}
.tg-cmp40-diag-banner .copy .sub {
  font-size: var(--fs-body-sm); color: #5a6378; margin-top: 4px;
}
.tg-cmp40-diag-banner .btn {
  display: inline-block;
  background: linear-gradient(180deg, #FF8B3D 0%, #FF6600 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: var(--fs-btn-sm); font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 112, 67, 0.3);
}

/* ------------------------------------------------------------
   Table of contents (2-column)
   ------------------------------------------------------------ */
.tg-cmp40-toc {
  background: #F9FAFC;
  border: 1px solid #E5E9F0;
  border-radius: 12px;
  padding: 20px 24px;
}
.tg-cmp40-toc-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E9F0;
  flex-wrap: wrap;
}
.tg-cmp40-toc-head .bar {
  display: inline-block; width: 3px; height: 18px;
  background: #0744CC; border-radius: 2px;
}
.tg-cmp40-toc-head h2 {
  margin: 0; font-size: var(--fs-title-lg);
  font-weight: 900; color: #0c2548;
}
.tg-cmp40-toc-head .note {
  font-size: var(--fs-label-md);
  color: #7a849c; font-weight: 700;
}
.tg-cmp40-toc-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  list-style: none; margin: 0; padding: 0;
  counter-reset: toc;
}
.tg-cmp40-toc-list li {
  counter-increment: toc;
  font-size: var(--fs-body-sm); line-height: 1.7;
}
.tg-cmp40-toc-list a {
  display: flex; align-items: baseline; gap: 8px;
  color: #0744CC; font-weight: 700;
  text-decoration: none;
}
.tg-cmp40-toc-list a:hover { text-decoration: underline; }
.tg-cmp40-toc-list a::before {
  content: counter(toc, decimal-leading-zero) ".";
  color: #0744CC; font-weight: 900;
  font-family: Helvetica, Arial, sans-serif;
  min-width: 22px; font-size: var(--fs-body-xs);
}

/* ------------------------------------------------------------
   Selection criteria (6 axes with weights)
   ------------------------------------------------------------ */
.tg-cmp40-criteria-box {
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 14px;
  padding: 24px 28px 28px;
}
.tg-cmp40-criteria-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.tg-cmp40-criteria-head .bar {
  display: inline-block; width: 4px; height: 22px;
  background: #0744CC; border-radius: 2px;
}
.tg-cmp40-criteria-head h2 {
  margin: 0; font-size: var(--fs-h2);
  font-weight: 900; color: #0c2548;
}
.tg-cmp40-criteria-lead {
  font-size: var(--fs-body-sm); color: #5a6378;
  margin-bottom: 20px; line-height: 1.85;
}
.tg-cmp40-criteria-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.tg-cmp40-axis {
  background: #F9FAFC;
  border: 1px solid #E5E9F0;
  border-radius: 10px;
  padding: 16px 18px;
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 14px; align-items: start;
}
.tg-cmp40-axis .num {
  width: 44px; height: 44px; border-radius: 10px;
  background: #fff;
  border: 1.5px solid #0744CC;
  display: flex; align-items: center; justify-content: center;
  color: #0744CC;
  font-size: var(--fs-title-lg); font-weight: 900;
  font-family: Helvetica, Arial, sans-serif;
}
.tg-cmp40-axis .t {
  font-size: var(--fs-body-sm); font-weight: 900;
  color: #0c2548; margin-bottom: 4px;
}
.tg-cmp40-axis .d {
  font-size: var(--fs-body-xs);
  color: #1a1f2e; line-height: 1.75;
}
.tg-cmp40-axis .w {
  background: #0744CC; color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: var(--fs-label-md); font-weight: 900;
  font-family: Helvetica, Arial, sans-serif;
  align-self: center;
}
.tg-cmp40-criteria-total {
  margin-top: 16px; padding: 12px 16px;
  background: #0c2548; color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-body-sm);
}
.tg-cmp40-criteria-total .v {
  font-weight: 900; color: #FFC700;
  font-family: Helvetica, Arial, sans-serif;
  font-size: var(--fs-title-sm);
}

/* ------------------------------------------------------------
   Market analysis
   ------------------------------------------------------------ */
.tg-cmp40-market-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #0c2548;
}
.tg-cmp40-market-head .bar {
  display: inline-block; width: 4px; height: 22px;
  background: #0c2548; border-radius: 2px;
}
.tg-cmp40-market-head h2 {
  margin: 0; font-size: var(--fs-h2);
  font-weight: 900; color: #0c2548;
}
.tg-cmp40-market-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 22px;
}
.tg-cmp40-market-tile {
  background: #fff;
  border: 1px solid var(--tone, #0744CC);
  border-radius: 10px;
  padding: 14px 18px;
}
.tg-cmp40-market-tile .lbl {
  font-size: var(--fs-label-md);
  color: #5a6378; font-weight: 700;
  margin-bottom: 6px;
}
.tg-cmp40-market-tile .val {
  display: flex; align-items: baseline; gap: 3px;
  margin-bottom: 3px;
}
.tg-cmp40-market-tile .val .v {
  font-size: var(--fs-stat-lg);
  font-weight: 900; color: var(--tone, #0744CC);
  line-height: 1;
  font-family: Helvetica, Arial, sans-serif;
}
.tg-cmp40-market-tile .val .u {
  font-size: var(--fs-body-sm); font-weight: 900;
  color: var(--tone, #0744CC);
}
.tg-cmp40-market-tile .note {
  font-size: var(--fs-label-md);
  color: #7a849c;
}
.tg-cmp40-market-body {
  font-size: var(--fs-body-sm);
  color: #1a1f2e; line-height: 1.95;
}
.tg-cmp40-market-body h3 {
  font-size: var(--fs-title-md);
  font-weight: 900; color: #0c2548;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.tg-cmp40-market-body p {
  margin: 0 0 18px;
}

/* ------------------------------------------------------------
   TOP11 detail cards
   ------------------------------------------------------------ */
.tg-cmp40-top-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #0c2548;
}
.tg-cmp40-top-head .bar {
  display: inline-block; width: 4px; height: 22px;
  background: #0c2548; border-radius: 2px;
}
.tg-cmp40-top-head h2 {
  margin: 0; font-size: var(--fs-h2);
  font-weight: 900; color: #0c2548;
}
.tg-cmp40-top-list {
  display: flex; flex-direction: column; gap: 16px;
}

.tg-cmp40-card {
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(11, 40, 90, 0.04);
  position: relative;
  scroll-margin-top: 80px;
}
.tg-cmp40-card.is-top3 {
  border: 2px solid #FFC700;
  box-shadow: 0 12px 32px rgba(255, 199, 0, 0.18);
}

.tg-cmp40-card-head {
  display: grid;
  grid-template-columns: auto auto 1fr 200px;
  gap: 16px; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0F2F8;
}
.tg-cmp40-rank-medal {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-h2);
  font-weight: 900;
  font-family: Helvetica, Arial, sans-serif;
  flex-shrink: 0;
}
.tg-cmp40-rank-medal.gold {
  background: radial-gradient(circle at 30% 30%, #FFC700 0%, #e6b400 60%, #c79b00 100%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(255, 199, 0, 0.5);
}
.tg-cmp40-rank-medal.silver {
  background: radial-gradient(circle at 30% 30%, #C8CDD7 0%, #b5bbc7 60%, #a0a7b3 100%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(160, 167, 179, 0.5);
}
.tg-cmp40-rank-medal.bronze {
  background: radial-gradient(circle at 30% 30%, #D69E63 0%, #c08850 60%, #a06f3e 100%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(214, 158, 99, 0.5);
}
.tg-cmp40-rank-medal.navy {
  background: #0c2548;
  color: #FFC700;
  box-shadow: 0 4px 12px rgba(11, 40, 90, 0.2);
}
.tg-cmp40-card-logo {
  background: #F9FAFC;
  border: 1px solid #E5E9F0;
  border-radius: 8px;
  padding: 10px 14px;
  /* 横幅を完全固定して全社で揃える */
  width: 180px; min-width: 180px; max-width: 180px;
  height: 88px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #0c2548;
  font-size: var(--fs-title-sm);
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}
.tg-cmp40-card-logo.has-img {
  padding: 8px 12px;
  background: #fff;
}
.tg-cmp40-card-logo.has-img img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.tg-cmp40-card-id .name a {
  color: #0c2548;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tg-cmp40-card-id .name a:hover {
  color: #0744CC;
  border-bottom-color: #0744CC;
}
.tg-cmp40-card-id {
  min-width: 0;
}
.tg-cmp40-card-id .name {
  font-size: var(--fs-title-lg);
  font-weight: 900; color: #0c2548;
  margin-bottom: 4px;
}
.tg-cmp40-card-id .note {
  font-size: var(--fs-body-xs);
  color: #5a6378; margin-bottom: 6px;
}
.tg-cmp40-card-id .score-row {
  display: flex; align-items: center; gap: 6px;
}
.tg-cmp40-card-id .stars {
  color: #FFB100; font-size: var(--fs-body-sm);
  letter-spacing: 0.05em;
}
.tg-cmp40-card-id .score-num {
  font-size: var(--fs-body-sm); font-weight: 900;
  color: #FF6C00;
  font-family: Helvetica, Arial, sans-serif;
}
.tg-cmp40-card-id .score-out {
  font-size: var(--fs-label-sm); color: #7a849c;
}

.tg-cmp40-card-cta {
  display: inline-block;
  background: linear-gradient(180deg, #FF8B3D 0%, #FF6600 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: var(--fs-btn-sm); font-weight: 900;
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(255, 112, 67, 0.3);
  text-decoration: none;
  white-space: nowrap;
}
.tg-cmp40-card-cta:hover { opacity: 0.92; }

/* Metrics row (5-column grid layout) */
.tg-cmp40-metrics {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #E5E9F0;
  border: 1px solid #E5E9F0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.tg-cmp40-metric {
  background: #fff;
  padding: 10px 12px;
  text-align: center;
}
.tg-cmp40-metric.strong { background: #FFF7C2; }
.tg-cmp40-metric .lbl {
  font-size: var(--fs-label-md);
  color: #5a6378; font-weight: 700;
  margin-bottom: 4px;
}
.tg-cmp40-metric .val {
  font-size: var(--fs-body-sm);
  font-weight: 900;
  color: #0c2548;
  line-height: 1.2;
  font-family: Helvetica, Arial, sans-serif;
}
.tg-cmp40-metric.strong .val {
  font-size: var(--fs-stat-sm);
  color: #FF6C00;
}
.tg-cmp40-metric .val .u {
  font-size: var(--fs-label-md);
  margin-left: 2px; font-weight: 700;
}

/* Good / Recommended grid */
.tg-cmp40-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.tg-cmp40-good,
.tg-cmp40-target {
  border-radius: 10px; padding: 14px 16px;
}
.tg-cmp40-good {
  background: #DFF1ED;
  border: 1px solid #BFE4DC;
}
.tg-cmp40-target {
  background: #FFF7C2;
  border: 1px solid #FFC700;
}
.tg-cmp40-good .head,
.tg-cmp40-target .head {
  font-size: var(--fs-body-xs);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 4px;
}
.tg-cmp40-good .head { color: #045E3E; }
.tg-cmp40-target .head { color: #6B4B00; }
.tg-cmp40-good ul,
.tg-cmp40-target ul {
  margin: 0; padding: 0 0 0 18px;
  font-size: var(--fs-body-sm);
  color: #1a1f2e; line-height: 1.85;
}
.tg-cmp40-good ul li,
.tg-cmp40-target ul li {
  margin-bottom: 2px;
}

/* Editor comment */
.tg-cmp40-editor {
  background: #F9FAFC;
  border: 1px solid #E5E9F0;
  border-radius: 10px;
  padding: 14px 18px;
}
.tg-cmp40-editor .head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  font-size: var(--fs-body-xs);
  font-weight: 900; color: #0744CC;
  letter-spacing: 0.05em;
}
.tg-cmp40-editor .head .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #0744CC; color: #fff;
  font-size: var(--fs-label-md);
  font-weight: 900;
}
.tg-cmp40-editor .body {
  font-size: var(--fs-body-sm);
  color: #1a1f2e; line-height: 1.95;
}
.tg-cmp40-editor .quote-row {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid #E5E9F0;
  display: flex; gap: 12px; align-items: flex-start;
}
.tg-cmp40-editor .quote-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  flex-shrink: 0;
  background: #E5E9F0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tg-cmp40-editor .quote-avatar svg { width: 100%; height: 100%; }
.tg-cmp40-editor .quote-body .text {
  font-size: var(--fs-body-sm);
  color: #0c2548; line-height: 1.7;
  font-style: italic; margin-bottom: 4px;
}
.tg-cmp40-editor .quote-body .author {
  font-size: var(--fs-label-md);
  color: #7a849c; font-weight: 700;
}

.tg-cmp40-card-foot {
  margin-top: 12px; text-align: right;
}
.tg-cmp40-card-foot a {
  font-size: var(--fs-label-md);
  color: #0744CC; font-weight: 700;
  text-decoration: none;
}
.tg-cmp40-card-foot a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Editor closing comment
   ------------------------------------------------------------ */
.tg-cmp40-close {
  background: linear-gradient(180deg, #F4F7FB 0%, #fff 100%);
  border: 1px solid #E5E9F0;
  border-radius: 16px;
  padding: 28px 32px;
}
.tg-cmp40-close-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.tg-cmp40-close-head .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #0c2548; color: #FFC700;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-title-lg); font-weight: 900;
  flex-shrink: 0;
}
.tg-cmp40-close-head .lbl {
  font-size: var(--fs-label-md);
  color: #7a849c; font-weight: 700;
  letter-spacing: 0.05em;
}
.tg-cmp40-close-head .title {
  font-size: var(--fs-title-lg); font-weight: 900;
  color: #0c2548; line-height: 1.4;
}
.tg-cmp40-close-tips {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 14px; margin-bottom: 18px;
}
.tg-cmp40-close-tip {
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 10px;
  padding: 16px 18px;
}
.tg-cmp40-close-tip .n {
  width: 28px; height: 28px; border-radius: 50%;
  background: #FFC700; color: #0c2548;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-body-sm); font-weight: 900;
  font-family: Helvetica, Arial, sans-serif;
  margin-bottom: 10px;
}
.tg-cmp40-close-tip .t {
  font-size: var(--fs-body-sm); font-weight: 900;
  color: #0c2548; margin-bottom: 6px;
}
.tg-cmp40-close-tip .d {
  font-size: var(--fs-body-xs);
  color: #1a1f2e; line-height: 1.85;
}
.tg-cmp40-close-sig {
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 10px;
  font-size: var(--fs-body-xs);
  color: #1a1f2e; line-height: 1.85;
}
.tg-cmp40-close-sig .note {
  color: #7a849c; font-size: var(--fs-label-md);
  display: block; margin-top: 6px;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.tg-cmp40-faq {
  display: flex; flex-direction: column; gap: 12px;
}
.tg-cmp40-faq-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0c2548;
}
.tg-cmp40-faq-head .bar {
  display: inline-block; width: 4px; height: 22px;
  background: #0c2548; border-radius: 2px;
}
.tg-cmp40-faq-head h2 {
  margin: 0; font-size: var(--fs-h2);
  font-weight: 900; color: #0c2548;
}
.tg-cmp40-faq-item {
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 10px;
  padding: 16px 20px;
}
.tg-cmp40-faq-item .q {
  font-weight: 900; color: #0c2548;
  margin: 0 0 8px;
  font-size: var(--fs-title-sm);
}
.tg-cmp40-faq-item .q::before {
  content: "Q. "; color: #FF6C00; font-weight: 900;
}
.tg-cmp40-faq-item .a {
  margin: 0; font-size: var(--fs-body-sm);
  line-height: 1.8; color: #1a1f2e;
}
.tg-cmp40-faq-item .a::before {
  content: "A. "; color: #0c2548; font-weight: 900;
}

/* ------------------------------------------------------------
   Inline highlight marker (fallback if not already defined)
   ------------------------------------------------------------ */
.tg-cmp40-section .mark-y,
.tg-cmp40-card .mark-y,
.tg-cmp40-market-body .mark-y {
  background: linear-gradient(transparent 55%, #FFE45A 55%);
  padding: 0 2px;
  font-weight: 700;
}

/* ============================================================
   Responsive — tablet (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {
  .tg-cmp40-hero { padding: 24px 0 28px; }
  .tg-cmp40-hero .inner { padding: 0 20px; }
  .tg-cmp40-hero h1 { font-size: 24px; line-height: 1.4; }
  .tg-cmp40-hero h1 .ver {
    display: inline-block; margin: 6px 0 0;
    font-size: var(--fs-label-md);
  }
  .tg-cmp40-hero .subtitle { font-size: var(--fs-body-sm); }
  .tg-cmp40-hero .metrics { grid-template-columns: repeat(2, 1fr); }

  .tg-cmp40-3types-grid { grid-template-columns: 1fr; }
  .tg-cmp40-type-card .desc { min-height: 0; }

  .tg-cmp40-top3-grid { grid-template-columns: 1fr; }
  .tg-cmp40-top3-card .catch { min-height: 0; }

  .tg-cmp40-diag-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .tg-cmp40-diag-banner .icon-circle { margin: 0 auto; }
  .tg-cmp40-diag-banner .btn { width: 100%; }

  .tg-cmp40-toc-list { grid-template-columns: 1fr; }

  .tg-cmp40-criteria-grid { grid-template-columns: 1fr; }

  .tg-cmp40-market-tiles { grid-template-columns: 1fr; }

  .tg-cmp40-card { padding: 18px 16px; }
  .tg-cmp40-card-head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "medal id"
      "logo logo"
      "cta cta";
    gap: 12px;
  }
  .tg-cmp40-rank-medal { grid-area: medal; }
  .tg-cmp40-card-id { grid-area: id; }
  .tg-cmp40-card-logo { grid-area: logo; min-width: 0; width: 100%; }
  .tg-cmp40-card-cta { grid-area: cta; width: 100%; }

  .tg-cmp40-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .tg-cmp40-pair { grid-template-columns: 1fr; }

  .tg-cmp40-close { padding: 20px 18px; }
  .tg-cmp40-close-tips { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive — SP (max-width: 560px)
   ============================================================ */
@media (max-width: 560px) {
  .tg-cmp40-hero .metrics { grid-template-columns: 1fr 1fr; }
  .tg-cmp40-hero h1 { font-size: 22px; }
  .tg-cmp40-criteria-box { padding: 18px 16px; }
  .tg-cmp40-axis {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "num t"
      "num d"
      ". w";
  }
  .tg-cmp40-axis .num { width: 36px; height: 36px; font-size: var(--fs-title-sm); }
  .tg-cmp40-axis .w { justify-self: start; }
}
