/* ============================================
   料金テーブルページ固有スタイル
   デザイン: Figma 1:843（デスクトップ）/ 67:2259（SP）
   共通パーツ（ヘッダー・フッター・campaign-card・start__card 等）は style.css を参照
   ============================================ */

/* ---- ページヘッダー ---- */

.pricing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  background: linear-gradient(to bottom, var(--decor-gray-1), var(--base-white));
}

.pricing-hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--header-height) + 70px) 24px 38px;
}

.pricing-hero__title {
  padding-bottom: 20px;
  font-size: 48px;
  line-height: 1;
  text-align: center;
}

.pricing-hero__bar {
  width: 100px;
  height: 5px;
  margin-bottom: 20px;
  background: var(--brand);
}

.pricing-hero__lead {
  font-size: 18px;
  text-align: center;
}

/* ---- 料金テーブル ---- */

.plan-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  background: var(--bg-subtle);
}

.plan-section__card {
  width: min(1180px, 100% - 48px);
  padding: 48px;
  background: var(--base-white);
  border-radius: 16px;
}

.plan-table-scroller {
  overflow-x: auto;
}

.plan-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 12px 0;
  table-layout: fixed;
}

.plan-table th,
.plan-table td {
  padding: 12px;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
}

/* プラン名行 */
.plan-table__plans th {
  height: 60px;
  color: var(--brand-accent);
  font-size: 20px;
  font-weight: 700;
}

/* 価格行 */
.plan-table__prices td {
  height: 110px;
}

.plan-table__free {
  font-size: 28px;
  font-weight: 700;
}

.plan-table__price-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.plan-table__price {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.plan-table__price strong {
  color: var(--brand-accent);
  font-size: 32px;
  font-weight: 900;
}

.plan-table__price-note {
  display: block;
  padding-top: 4px;
  color: #9e9e9e;
  font-size: 14px;
}

/* カテゴリ帯 */
.plan-table__category th {
  padding: 24px 12px;
  background: #f2f2f2;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}

/* 機能行のラベルセル */
.plan-table tbody tr:not(.plan-table__category) th {
  padding: 24px 12px;
  background: #fafafa;
  color: #718096;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}

.plan-table tbody th small {
  font-size: 10px;
  font-weight: 400;
}

.plan-table__row-note {
  display: block;
  padding-top: 8px;
  font-size: 10px;
  font-weight: 400;
}

/* 値セル */
.cell-num {
  font-size: 24px;
  font-weight: 900;
}

.cell-num--accent {
  color: var(--brand-accent);
}

.cell-unit {
  font-size: 16px;
  font-weight: 900;
}

.cell-nolimit {
  font-size: 20px;
  font-weight: 900;
}

.cell-note {
  color: #9e9e9e;
  font-size: 14px;
}

.cell-value-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* チェック / 非対応アイコン */
.cell-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.cell-icon--check {
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%237cb00b"%3E%3Cpath d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/%3E%3C/svg%3E')
    center / contain no-repeat;
}

.cell-icon--none {
  position: relative;
}

.cell-icon--none::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 11px;
  height: 2px;
  background: #718096;
}

/* ---- 注記 ---- */

.plan-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(1180px, 100% - 48px);
  padding: 24px 0 48px;
  font-size: 16px;
}

/* ---- ご利用開始 CTA ---- */

.pricing-cta {
  display: flex;
  justify-content: center;
  padding: 34px 0 60px;
  background: var(--bg-section);
}

/* ---- SP ---- */

@media (max-width: 1024px) {
  .pricing-hero__header {
    padding-top: calc(var(--header-height) + 40px);
  }

  .pricing-hero__title {
    font-size: 32px;
  }

  .pricing-hero__lead {
    font-size: 16px;
  }

  .plan-section {
    padding-top: 32px;
  }

  .plan-section__card {
    width: 100%;
    padding: 16px 8px;
    border-radius: 0;
  }

  .plan-table {
    min-width: 600px;
    border-spacing: 6px 0;
  }

  .plan-table th,
  .plan-table td {
    padding: 8px 6px;
  }

  .plan-table__plans th {
    height: auto;
    font-size: 14px;
  }

  .plan-table__prices td {
    height: auto;
  }

  .plan-table__free {
    font-size: 20px;
  }

  .plan-table__price strong {
    font-size: 24px;
  }

  .plan-table__price-note {
    font-size: 12px;
  }

  .plan-table__category th,
  .plan-table tbody tr:not(.plan-table__category) th {
    padding: 16px 8px;
  }

  .plan-table tbody tr:not(.plan-table__category) th {
    font-size: 14px;
  }

  .cell-num {
    font-size: 18px;
  }

  .cell-unit {
    font-size: 13px;
  }

  .cell-nolimit {
    font-size: 15px;
  }

  .cell-note {
    font-size: 11px;
  }

  .plan-notes {
    width: 100%;
    padding: 24px 24px 40px;
    font-size: 13px;
  }

  .pricing-cta {
    padding: 24px 0 40px;
  }
}
