/**
 * TOPページスタイル
 */

/* ========================================
 * SWELLリセット（body.top-page 限定）
 * ======================================== */
body.top-page #body_wrap,
body.top-page #content,
body.top-page .l-content,
body.top-page .l-container,
body.top-page .l-mainContent,
body.top-page .l-article,
body.top-page .post_content,
body.top-page .l-scrollObserver,
body.top-page .l-fixHeader,
body.top-page .c-mvBtn,
body.top-page #wrapper,
body.top-page .l-header + * {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.top-page .l-mainContent__inner,
body.top-page .l-mainContent > *,
body.top-page #main_content,
body.top-page .l-header__inner,
body.top-page .c-mvBtn__btn {
  margin: 0 !important;
  padding: 0 !important;
}


body.top-page .l-header {
  margin-bottom: 0 !important;
}

body.top-page .p-breadcrumb {
  display: none !important;
}

/* ========================================
 * FV（ファーストビュー）
 * ======================================== */
.fv {
  min-height: min(90vh, 44rem);
  background-image: url('../images/top/PCFV-back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fv__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.fv__content {
  width: 52%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* バッジ */
.fv__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #93c5fd;
  border-radius: 9999rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
  width: fit-content;
  margin: 0;
}

.fv__badge-icon {
  flex-shrink: 0;
  display: block;
}

/* 見出し */
.fv__heading {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0;
}

.fv__heading-em {
  color: #2563eb;
}

/* 説明文 */
.fv__desc {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: #374151;
  line-height: 1.75;
  margin: 0;
}

/* スタッツカード */
.fv__stats {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.375rem 1.75rem;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.fv__stats-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.fv__stats-icon {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.fv__stats-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.fv__stats-label {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
}

.fv__stats-divider {
  width: 1px;
  height: 3.5rem;
  background: #e5e7eb;
  flex-shrink: 0;
  margin: 0 0.5rem;
}

/* CTAボタン */
.fv__cta {
  display: flex;
  gap: 0.875rem;
}

.fv__cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.875rem 2.75rem 0.875rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  text-align: center;
  transition: opacity 0.15s ease;
  position: relative;
}

.fv__cta-btn:hover,
.fv__cta-btn:focus {
  opacity: 0.82;
  text-decoration: none !important;
}

.fv__cta-btn--primary {
  background: #1e40af;
  color: #ffffff !important;
}

.fv__cta-btn--secondary {
  background: #ffffff;
  border: 2px solid #2563eb;
  color: #2563eb !important;
}

.fv__cta-sub {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.88;
  line-height: 1;
}

.fv__cta-main {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.fv__cta-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

/* ========================================
 * ロゴマーキー
 * ======================================== */
.logo-marquee {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  overflow: hidden;
  padding: 1.5rem 0;
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: top-marquee 40s linear infinite;
  will-change: transform;
}

.logo-marquee__track:hover {
  animation-play-state: paused;
}

/* 各アイテムの末尾 margin で 1 アイテム当たりの占有幅を一定にし、
 * トラック全体の -50% 戻しが「1コピー分 + 末尾余白」とぴったり一致 → 輪っか状に循環。 */
@keyframes top-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-marquee__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  margin-right: 3rem;
}

.logo-marquee__item img {
  height: 2.5rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

.logo-marquee__name {
  font-size: 0.6875rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* ========================================
 * 監修者（アドバイザー）
 * ======================================== */
.tax-accountant {
  position: relative;
  max-width: 1360px;
  margin: 20px auto 0;
  padding: 24px 60px 22px;
  background: transparent;
}

/* matsuda-back.png を枠全体に敷く（オーバーレイの土台） */
.tax-accountant::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/top/matsuda-back.png');
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.tax-accountant__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 90px;
  padding-left: 150px;
}

/* 写真を背景画像の下から少しはみ出させる */
.tax-accountant__photo {
  position: absolute;
  left: 0;
  bottom: -22px;
  width: 140px;
  pointer-events: none;
}

.tax-accountant__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.tax-accountant__name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 32px;
  border-right: 1px solid #c9d6ea;
  flex-shrink: 0;
}

.tax-accountant__label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.06em;
}

.tax-accountant__nameline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.tax-accountant__office {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.tax-accountant__person {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.04em;
}

.tax-accountant__desc {
  font-size: 14px;
  color: #333;
  line-height: 1.9;
  flex: 1;
  margin: 0;
}

/* ========================================
 * 診断ツールラッパー（監修者とランキングの間）
 * ======================================== */
.top-shindan {
  background: #ffffff;
  padding: 4rem 2rem;
}

/* ========================================
 * ランキングセクション
 * ======================================== */
:root {
  --ranking-primary: #006dff;
  --ranking-orange: #ff8a00;
  --ranking-border: #e6e6e6;
  --ranking-text: #1a1a1a;
  --ranking-text-gray: #6b7280;
  --ranking-bg: #f1f5f9;
  --ranking-tag-active-bg: #f1f5f9;
  --ranking-tag-inactive-bg: #f3f4f6;
}

.ranking {
  background: var(--ranking-bg);
  padding: 4rem 2rem;
}

.ranking__inner {
  max-width: 75rem; /* Figma: 1200px（外枠と同幅） */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ranking__heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ranking__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ranking-text);
  margin: 0;
}

.ranking__note {
  font-size: 1rem;
  color: #999;
  margin: 0;
}

/* カードラッパー（白枠でタブとカードを囲う / Figma: border #ddd, radius 8px, w 1200px） */
.ranking__card-wrap {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
}

/* タブバー（Figma: bg #eee, border-bottom #ddd） */
.ranking__tabs {
  display: flex;
  background: #eeeeee;
  border-bottom: 1px solid #dddddd;
}

.ranking-tab {
  flex: 1;
  padding: 1.25rem 1rem; /* py 20px */
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  background: var(--ranking-border); /* #e6e6e6 */
  color: #555;
}

.ranking-tab--active {
  background: var(--ranking-primary); /* #006dff */
  color: #ffffff;
  font-weight: 700;
}

/* パネル（外枠内側の白エリア / Figma: px 24 py 30, gap 30, カード中央寄せ） */
.ranking-panel__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.875rem; /* 30px */
  padding: 1.875rem 1.5rem; /* 30px 24px */
}

.ranking-panel__empty {
  padding: 2rem;
  color: var(--ranking-text-gray);
  text-align: center;
  margin: 0;
}

/* もっと見るボタン（Figma: 右寄せ, bg white, border #ddd, radius 4px, px 48 py 14） */
.ranking__more-wrap {
  display: flex;
  justify-content: flex-end;
}

.ranking__more-btn {
  display: inline-block;
  padding: 0.875rem 3rem; /* 14px 48px */
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 0.25rem; /* 4px */
  font-size: 1rem; /* 16px */
  font-weight: 700;
  color: var(--ranking-text);
  text-decoration: none;
  transition: opacity 0.15s;
}

.ranking__more-btn:hover {
  opacity: 0.75;
  text-decoration: none;
}

/* ========================================
 * ランキングカード
 * ======================================== */
.ranking-card {
  width: 100%;
  max-width: 59.5rem; /* Figma: 952px（外枠1200px内で中央寄せ） */
  background: #ffffff;
  border: 1px solid var(--ranking-border);
  border-radius: 0.625rem; /* 10px */
  box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.25); /* Figma */
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.ranking-card:hover {
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.12);
}

.ranking-card__inner {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 3.125rem;
  gap: 0.625rem;
}

/* 上部: メイン情報 + 右画像 */
.ranking-card__top {
  display: flex;
  align-items: center;
  gap: 3.125rem;
  min-height: 13.5rem;
}

.ranking-card__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.375rem;
}

/* ランク + サービス名 */
.ranking-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ranking-card__rank {
  width: 3rem;
  height: 3rem;
  border-radius: 9999rem;
  background: var(--ranking-text);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ranking-card__name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ranking-text);
  margin: 0;
  line-height: 1.2;
}

.ranking-card__name a {
  color: inherit;
  text-decoration: none;
}

.ranking-card__name a:hover {
  text-decoration: underline;
}

/* 評価 */
.ranking-card__rating {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.3125rem 0;
}

.ranking-card__stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.ranking-card__star {
  font-size: 1.25rem;
}

.ranking-card__star--filled {
  color: #f59e0b;
}

.ranking-card__star--empty {
  color: #d1d5db;
}

.ranking-card__rating-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ef4444;
  margin-left: 0.25rem;
}

.ranking-card__review-count {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ranking-card__review-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: underline;
}

/* 4指標 */
.ranking-card__metrics {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.625rem 0;
}

.ranking-card__metric {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.ranking-card__metric-label {
  font-size: 0.875rem;
  color: #050505;
}

.ranking-card__metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

.ranking-card__metric-divider {
  width: 1px;
  height: 3.125rem;
  background: var(--ranking-border);
  flex-shrink: 0;
}

/* 右画像 */
.ranking-card__image {
  width: 12.5rem;
  height: 12.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

/* 概要文 */
.ranking-card__overview {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
  margin: 0;
}

/* 特徴タグ */
.ranking-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
  padding: 0.3125rem 1.25rem;
}

.ranking-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.875rem;
  padding: 0 1.25rem;
  border-radius: 0.625rem;
  font-size: 1rem;
  border: 1px solid;
  white-space: nowrap;
}

.ranking-card__tag--active {
  background: var(--ranking-tag-active-bg);
  border-color: var(--ranking-primary);
  color: var(--ranking-primary);
}

.ranking-card__tag--inactive {
  background: var(--ranking-tag-inactive-bg);
  border-color: var(--ranking-border);
  color: var(--ranking-text-gray);
}

/* CTAボタン（archive-card と同形式：中央寄せ / サービス名+公式サイトを見る） */
.ranking-card__actions {
  display: flex;
  justify-content: center;
  padding: 0.625rem 0 1.25rem;
}

.ranking-card__btn-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 1rem 2rem; /* py 16px / px 32px */
  background: var(--ranking-orange);
  color: #ffffff !important;
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  line-height: 1.3;
  border-radius: 0.5rem; /* 8px */
  text-decoration: none !important;
  transition: opacity 0.15s;
}

.ranking-card__btn-cta:hover {
  opacity: 0.85;
}

.ranking-card__cta-name {
  display: block;
}

.ranking-card__cta-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========================================
 * コラム（ファクタリングを学ぶ）
 * ======================================== */
.columns {
  background: #ffffff;
  padding: 4rem 2rem;
}

.columns__inner {
  max-width: 75rem; /* Figma: 1200px */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* 32px */
}

.columns__title {
  font-size: 2rem; /* 32px */
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* 3カラム × 2行 */
.columns__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; /* 24px */
}

.columns__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 0.5rem; /* 8px */
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.columns__card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.columns__thumb {
  width: 100%;
  aspect-ratio: 384 / 180;
  background: #f5f5f5;
  overflow: hidden;
}

.columns__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.columns__content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* 10px */
  padding: 1.125rem 1.25rem; /* py 18px / px 20px */
}

.columns__cat {
  display: inline-block;
  width: fit-content;
  padding: 0.1875rem 0.5rem; /* py 3 / px 8 */
  border: 1px solid #1a1a1a;
  border-radius: 0.125rem; /* 2px */
  font-size: 0.625rem; /* 10px */
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.columns__card-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0;
}

.columns__date {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: #999999;
  margin: 0;
}

/* もっと見るボタン（ランキングと同デザイン: 右寄せ, bg white, border #ddd, radius 4px, px 48 py 14） */
.columns__more-wrap {
  display: flex;
  justify-content: flex-end;
}

.columns__more-btn {
  display: inline-block;
  padding: 0.875rem 3rem; /* 14px 48px */
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 0.25rem; /* 4px */
  font-size: 1rem; /* 16px */
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  transition: opacity 0.15s;
}

.columns__more-btn:hover {
  opacity: 0.75;
  text-decoration: none;
}

/* SP専用要素（PCでは非表示） */
.fv__heading-br-sp { display: none; }

/* ========================================
 * SP（〜959px）
 * ======================================== */
@media (max-width: 959px) {

  /* ===== FV ===== */
  .fv {
    min-height: 0;
    background-image: url('../images/top/SPFV-back.png');
    background-size: cover;
    background-position: top center;
    align-items: flex-start;
  }

  .fv__inner {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .fv__content {
    width: 100%;
    gap: 1rem;
  }

  .fv__badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }

  .fv__heading {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  /* SP のみ「かんたん比較・」の後で改行 */
  .fv__heading-br-sp { display: inline; }

  .fv__desc {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .fv__stats {
    padding: 1.25rem 1rem;
  }

  /* アイコン+数値を同じ行、その下にラベル */
  .fv__stats-item {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 0.375rem;
    row-gap: 0.125rem;
  }

  .fv__stats-icon {
    grid-row: 1;
    grid-column: 1;
    height: 1.375rem;
  }

  .fv__stats-num {
    grid-row: 1;
    grid-column: 2;
    font-size: 1.125rem;
  }

  .fv__stats-label {
    grid-row: 2;
    grid-column: 1 / 3;
    font-size: 0.6875rem;
    text-align: center;
  }

  .fv__stats-divider {
    height: 2.75rem;
    margin: 0 0.25rem;
  }

  /* CTA：縦積み、幅いっぱい */
  .fv__cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .fv__cta-btn {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1rem;
  }

  .fv__cta-main {
    font-size: 1.125rem;
  }

  /* ===== ロゴマーキー（SP も PC と同じく横へ流す / サイズのみ調整） ===== */
  .logo-marquee {
    padding: 1rem 0 0.5rem;
  }

  .logo-marquee__item {
    margin-right: 2rem;
  }

  .logo-marquee__item img {
    height: 2rem;
    max-width: 7rem;
  }

  /* ===== 監修者 ===== */
  .tax-accountant {
    max-width: 100%;
    margin: 1.25rem 1.25rem 0;
    padding: 1.25rem 1rem;
  }

  /* SP は画像ではなく CSS で角丸四角を描画 */
  .tax-accountant::before {
    background-image: none;
    background-color: #e9f0fb;
    border-radius: 1rem;
  }

  /* 写真（左）と名前+説明（右）のグリッド
   * 左カラムは 35% 固定で写真が確実に大きく表示されるようにする */
  .tax-accountant__inner {
    display: grid;
    grid-template-columns: 35% 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0;
    max-width: 100%;
    min-height: 0;
    padding-left: 0;
    align-items: stretch;
  }

  .tax-accountant__photo {
    position: static;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: end;
  }

  /* picture / img 共にブロック化してカラムいっぱいに */
  .tax-accountant__photo picture {
    display: block;
    width: 100%;
  }

  .tax-accountant__photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 名前枠：縦積み、下線に切り替え */
  .tax-accountant__name {
    grid-column: 2;
    grid-row: 1;
    padding: 0.25rem 0 0.75rem;
    border-right: 0;
    border-bottom: 1px solid #c9d6ea;
  }

  .tax-accountant__label {
    font-size: 0.8125rem;
    color: #1d4ed8;
  }

  .tax-accountant__nameline {
    flex-direction: column;
    gap: 0.25rem;
  }

  .tax-accountant__office {
    font-size: 0.9375rem;
  }

  .tax-accountant__person {
    font-size: 1.25rem;
  }

  .tax-accountant__desc {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.7;
  }

  /* ===== 診断ツールラッパー ===== */
  .top-shindan {
    padding: 2rem 1.25rem;
  }

  /* ===== ランキングセクション ===== */
  .ranking {
    padding: 2rem 1.25rem;
  }

  .ranking__inner {
    max-width: 100%;
    gap: 1rem;
  }

  .ranking__title {
    font-size: 1.375rem;
  }

  .ranking__note {
    font-size: 0.75rem;
  }

  .ranking-tab {
    font-size: 0.9375rem;
    padding: 0.875rem 0.5rem;
  }

  .ranking-panel__cards {
    padding: 1.25rem 0.75rem;
    gap: 1.25rem;
  }

  /* カード本体 */
  .ranking-card__inner {
    padding: 1.25rem;
    gap: 0.625rem;
  }

  .ranking-card__top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    min-height: 0;
  }

  /* .ranking-card__main を透明化し、子要素を __top 直下として順序制御 */
  .ranking-card__main {
    display: contents;
  }

  .ranking-card__header  { order: 1; gap: 0.5rem; }
  .ranking-card__rating  { order: 2; }
  .ranking-card__image   { order: 3; }
  .ranking-card__metrics { order: 4; }

  .ranking-card__rank {
    width: 2rem;
    height: 2rem;
    font-size: 0.9375rem;
  }

  .ranking-card__name {
    font-size: 1.25rem;
  }

  .ranking-card__rating {
    gap: 0.75rem;
  }

  /* アピール画像を全幅（中央寄せ） */
  .ranking-card__image {
    width: 100%;
    height: auto;
    max-height: 6rem;
  }

  .ranking-card__image img {
    max-height: 6rem;
  }

  /* 4指標：2×2 グリッド（背景グレー） */
  .ranking-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9375rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-radius: 0.625rem;
  }

  .ranking-card__metric {
    align-items: flex-start;
  }

  .ranking-card__metric-label {
    font-size: 0.8125rem;
  }

  .ranking-card__metric-value {
    font-size: 1rem;
    white-space: normal;
  }

  .ranking-card__metric-divider {
    display: none;
  }

  .ranking-card__overview {
    font-size: 0.875rem;
    padding: 0.5rem 0;
  }

  /* タグ：2カラムグリッド */
  .ranking-card__tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 0.375rem;
    padding: 0.25rem 0;
  }

  .ranking-card__tag {
    width: 100%;
    height: 1.75rem;
    font-size: 0.875rem;
    padding: 0 0.5rem;
  }

  /* CTA（1つだけなので幅いっぱい） */
  .ranking-card__actions {
    padding: 0.625rem 0 0;
  }

  .ranking-card__btn-cta {
    width: 100%;
    font-size: 1.0625rem;
    padding: 0.875rem 1rem;
  }

  .ranking__more-btn {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
  }

  /* ===== コラム ===== */
  .columns {
    padding: 2rem 1.25rem;
  }

  .columns__inner {
    gap: 1.25rem;
  }

  .columns__title {
    font-size: 1.375rem;
  }

  /* 1カラム */
  .columns__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .columns__card-title {
    font-size: 1rem;
  }

  .columns__more-btn {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
  }

}
