/* =========================================================
   Design Tokens
   beginner / business / sale など
   サイト共通のトークンに合わせる
========================================================= */
:root {
  --primary: #023F98;
  --primary-grad: linear-gradient(135deg, #1DA1D1, #023F98);
  --brand-red: #DE2726;
  --bg-tint: #F5F8FC;
  --border-light: #E5EAF2;
  --text: #333;
  --muted: #555;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-btn: 0 6px 16px rgba(2,63,152,0.3);
}

/* =========================================================
   このページ専用スコープ（.compare-page で限定）
========================================================= */
.compare-page {
  line-height: 1.6;
  color: var(--text);
}

.compare-page .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------
   ヒーロー
-------------------------------- */
.compare-page .compare-hero {
  padding: 60px 0 30px;
  text-align: center;
}

.compare-page .compare-hero h2 {
  color: var(--text);
  font-weight: 700;
}

.compare-page .compare-hero h1 span {
  display: inline-block;
  color: var(--primary);
  font-size: 30px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
}

.compare-page .compare-hero-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

/* --------------------------------
   導入
-------------------------------- */
.compare-page .compare-intro {
  padding: 18px 16px;
  margin: 6px 0 32px;
}

.compare-page .compare-intro .container {
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.compare-page .compare-guide-link {
  font-weight: 600;
  color: var(--primary);
}

/* 用途ジャンプ */
.compare-page .usecase-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 4px;
}

.compare-page .usecase-jump a {
  display: inline-block;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s ease;
}

.compare-page .usecase-jump a:hover,
.compare-page .usecase-jump a:focus {
  background: #005BB5;
  outline: none;
}

/* --------------------------------
   比較表セクション
-------------------------------- */
.compare-page .compare-table-section {
  margin: 40px 0;
}

.compare-page .compare-table-section h3 {
  color: var(--text);
}

.compare-page .section-lead {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.compare-page .table-wrap {
  overflow-x: auto;
}

.compare-page .table-wrap table.table-blue {
  min-width: 720px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.compare-page .table-wrap table.table-blue th,
.compare-page .table-wrap table.table-blue td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  vertical-align: middle;
}

/* 個人向け表：メモリ目安列を狭め、価格帯目安列を広げて1行に収める */
#cmp-personal table.table-blue th:nth-child(3),
#cmp-personal table.table-blue td:nth-child(3) {
  width: 64px;
}

#cmp-personal table.table-blue th:nth-child(5),
#cmp-personal table.table-blue td:nth-child(5) {
  width: 150px;
  white-space: nowrap;
}

.compare-page .table-wrap table.table-blue thead {
  background: var(--primary-grad);
}

.compare-page .table-wrap table.table-blue thead th {
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}

.compare-page .table-wrap table.table-blue tbody td {
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.compare-page .table-wrap table.table-blue tbody tr:last-child td {
  border-bottom: none;
}

.compare-page .table-wrap table.table-blue tbody tr:hover td {
  background: var(--bg-tint);
}

.compare-page .table-wrap table.table-blue tbody td:last-child a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.compare-page .table-wrap table.table-blue tbody td:last-child a:hover {
  text-decoration: underline;
}

/* --------------------------------
   見方の注意
-------------------------------- */
.compare-page .compare-notice {
  margin: 40px 0;
  padding: 18px 16px;
}

.compare-page .compare-notice .container {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.compare-page .compare-notice-list {
  margin: 8px 0 0 20px;
}

.compare-page .compare-notice-list li {
  margin: 8px 0;
  color: var(--text);
}

.compare-page .compare-notice-list a {
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------
   次のアクション（サイト共通ボタン）
-------------------------------- */
.compare-page .next-action {
  margin: 48px 0;
}

.compare-page .next-action ul {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.compare-page .next-action li {
  flex: 1;
  min-width: 220px;
  margin: 12px 0;
  display: flex;
}

.compare-page .next-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: var(--primary-grad);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  box-shadow: var(--shadow-btn);
  transition: 0.2s;
}

.compare-page .next-action a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =========================================================
   スマホ（〜768px）
========================================================= */
@media (max-width: 768px) {
  .compare-page {
    margin-top: 150px;
  }

  .compare-page .compare-hero {
    padding: 15px 0 20px;
  }

  .compare-page .compare-hero h1 span {
    font-size: 22px;
  }

  .compare-page .compare-hero-lead {
    font-size: 15px;
  }

  .compare-page .next-action ul {
    flex-direction: column;
  }

  .compare-page .next-action li {
    min-width: auto;
  }

  .compare-page .table-wrap table.table-blue th,
  .compare-page .table-wrap table.table-blue td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* =========================================================
   アンカーのオフセット（ヘッダー回避）
========================================================= */
.compare-page .anchor-offset {
  scroll-margin-top: 180px;
}

html:focus-within {
  scroll-behavior: smooth;
}
