/* Card Hub — 比較表・カードページ用スタイル (スマホ前提 / SPEC §5.3) */

.ch-pr-notice {
  font-size: 0.78rem;
  color: #666;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 0 0 1em;
}

.ch-breadcrumb {
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 1em;
}
.ch-breadcrumb a { color: #1976d2; text-decoration: none; }

.ch-verified-note {
  font-size: 0.8rem;
  color: #666;
}

/* ファーストビュー */
.ch-firstview { margin-bottom: 2em; }
.ch-card-badge {
  display: inline-block;
  padding: 18px 28px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  background: linear-gradient(135deg, #37474f, #546e7a);
  margin-bottom: 1em;
}

/* 申込ボタン (全ページ同一の色・文言 / SPEC §5.3) */
.ch-apply { text-align: center; margin: 1.5em 0; }

/* 基本スペック表・詳細スペック表 */
.ch-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1em 0;
}
.ch-spec-table,
.ch-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.ch-spec-table th,
.ch-spec-table td,
.ch-table th,
.ch-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.ch-spec-table th {
  background: #f0f4f8;
  width: 9.5em;
  font-weight: 600;
}

/* 比較表: 先頭列(カード名)固定 + 横スクロール */
.ch-table { min-width: 640px; }
.ch-table thead th {
  background: #1976d2;
  color: #fff;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.ch-table thead th[data-sort] { cursor: pointer; }
.ch-table thead th[data-sort]::after { content: " ⇅"; opacity: 0.6; font-size: 0.8em; }
.ch-table thead th.ch-sort-asc::after { content: " ▲"; opacity: 1; }
.ch-table thead th.ch-sort-desc::after { content: " ▼"; opacity: 1; }
.ch-table .ch-col-sticky {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  min-width: 11em;
  box-shadow: 2px 0 3px rgba(0, 0, 0, 0.06);
}
.ch-table thead .ch-col-sticky {
  background: #1976d2;
  z-index: 2;
}
.ch-table tbody tr:nth-child(even) td { background: #fafbfc; }
.ch-table tbody tr:nth-child(even) .ch-col-sticky { background: #fafbfc; }
.ch-table-note { font-size: 0.78rem; color: #666; }
.ch-table-empty { color: #666; }

/* 上位3枚サマリーブロック */
.ch-top3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1em 0;
}
@media (max-width: 600px) {
  .ch-top3 { grid-template-columns: 1fr; }
}
.ch-top3-card {
  border: 2px solid #1976d2;
  border-radius: 8px;
  padding: 12px;
  background: #f5f9ff;
}
.ch-top3-rank {
  display: inline-block;
  background: #1976d2;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.ch-top3-name { font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.ch-top3-name a { text-decoration: none; }
.ch-top3-fee { font-size: 0.85rem; color: #444; margin-bottom: 4px; }
.ch-top3-pros {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.82rem;
  color: #333;
}

/* 目的別の推し1枚 ([card_pick] — 順位なし) */
.ch-pick { grid-template-columns: 1fr; max-width: 560px; }
.ch-pick-label {
  display: inline-block;
  background: #1976d2;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.ch-pick-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* キャンペーン */
.ch-campaign {
  border: 1px solid #ffb74d;
  background: #fff8ee;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0.8em 0;
}
.ch-campaign-title { font-weight: 700; margin: 0 0 4px; }
.ch-campaign-note { margin: 0 0 4px; font-size: 0.9rem; }
.ch-campaign-deadline { margin: 0; font-size: 0.8rem; color: #b26a00; }

/* FAQ */
.ch-faq-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0.6em 0;
}
.ch-faq-item summary { font-weight: 600; cursor: pointer; }
.ch-faq-item p { margin: 0.6em 0 0; }

/* 関連記事 */
.ch-related { margin: 1em 0; padding-left: 1.2em; }
.ch-related li { margin-bottom: 0.4em; }

/* クロージング */
.ch-closing { margin: 2em 0; text-align: center; }
.ch-closing-compare {
  display: inline-block;
  margin-top: 0.6em;
  font-weight: 600;
}
