/* ============================================================
 *  page-pricing.css
 *  価格プランページ専用スタイル（page-pricing.php）
 * ============================================================ */

/* ─── Page background ─────────────────────────────────────── */
.pricing-bg { background: #f5f5f5; }


/* ─── ページタイトル ───────────────────────────────────────── */
.pricing-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #222;
  margin-bottom: .5rem;
}
.pricing-subtitle {
  text-align: center;
  color: #888;
  font-size: .9rem;
  margin-bottom: 3rem;
}


/* ─── プランカード（横並び） ──────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  overflow: hidden;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* 人気プランの強調 */
.pricing-card.featured {
  border: 2px solid #c0392b;
}
.pricing-card.featured:hover {
  transform: translateY(-4px);
}

/* グレー枚枚 */
.pricing-card.muted {
  border: 2px solid #e0e0e0;
}

.plan-badge {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem 1rem;
  letter-spacing: .05em;
}
.plan-badge:not(.muted) {
  background: #c0392b;
  color: #fff;
}
.plan-badge.muted {
  background: #f0f0f0;
  color: #aaa;
}


/* ─── プレースホルダー（空の枠） */
.pricing-card.placeholder {
  border: 2px dashed #e8e8e8;
  background: #e8e8e8;
  box-shadow: none;
  min-height: 400px;
}
.pricing-card.placeholder:hover {
  transform: none;
  box-shadow: none;
}


/* ─── カードヘッダー ──────────────────────────────────────── */
.pricing-card-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.plan-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: .75rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-bottom: .75rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #222;
  line-height: 1;
}

.price-unit {
  font-size: .85rem;
  color: #888;
}
.price-unit small {
  font-size: .8em;
}

.plan-desc {
  font-size: .82rem;
  color: #888;
  line-height: 1.6;
  margin: 0;
}


/* ─── カードボディ ────────────────────────────────────────── */
.pricing-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* ─── ボタン ─────────────────────────────────────────────── */
.btn-plan {
  display: block;
  text-align: center;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 700;
  padding: .7rem 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
  margin-bottom: 1.5rem;
}
.btn-plan.outline {
  border: 2px solid #c0392b;
  color: #c0392b;
  background: transparent;
}
.btn-plan.outline:hover {
  background: #c0392b;
  color: #fff;
}
.btn-plan.filled {
  background: #c0392b;
  color: #fff;
  border: 2px solid #c0392b;
}
.btn-plan.filled:hover {
  background: #922b21;
  border-color: #922b21;
  color: #fff;
}


/* ─── 機能リスト ──────────────────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  font-size: .85rem;
  color: #555;
  padding: .5rem 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.feature-list li:last-child {
  border-bottom: none;
}
.feature-list li.ok::before {
  content: "✓";
  color: #c0392b;
  font-weight: 700;
  flex-shrink: 0;
}
.feature-list li.ng {
  color: #bbb;
}
.feature-list li.ng::before {
  content: "—";
  color: #ddd;
  flex-shrink: 0;
}


/* ─── 比較テーブル ────────────────────────────────────────── */
.pricing-table-wrap {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 2rem;
}
.pricing-table-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.pricing-table th,
.pricing-table td {
  padding: .85rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
.pricing-table .feature-col {
  text-align: left;
  color: #555;
  font-weight: 400;
}
.pricing-table thead th {
  background: #fafafa;
  font-weight: 700;
  color: #333;
  font-size: .9rem;
}
.pricing-table thead th.feature-col {
  background: #fafafa;
}
.pricing-table thead th small {
  display: block;
  font-weight: 400;
  color: #888;
  font-size: .75rem;
  margin-top: .2rem;
}

/* 人気プランの列ハイライト */
.pricing-table .featured-col {
  background: #fff8f8;
  border-left: 2px solid #c0392b;
  border-right: 2px solid #c0392b;
}
.pricing-table thead th.featured-col {
  background: #c0392b;
  color: #fff;
}
.pricing-table thead th.featured-col small {
  color: rgba(255,255,255,.8);
}

.check { color: #c0392b; font-weight: 700; font-size: 1rem; }
.cross { color: #ccc; }

.table-cta-row td {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.btn-plan-sm {
  display: inline-block;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  padding: .45rem .9rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-plan-sm.outline {
  border: 2px solid #c0392b;
  color: #c0392b;
  background: transparent;
}
.btn-plan-sm.outline:hover {
  background: #c0392b;
  color: #fff;
}
.btn-plan-sm.filled {
  background: #c0392b;
  color: #fff;
  border: 2px solid #c0392b;
}
.btn-plan-sm.filled:hover {
  background: #922b21;
  border-color: #922b21;
  color: #fff;
}


/* ─── 注記 ───────────────────────────────────────────────── */
.pricing-note {
  text-align: center;
  font-size: .8rem;
  color: #aaa;
  margin-top: 2rem;
  line-height: 1.8;
}
.pricing-note a {
  color: #c0392b;
}


/* ─── レスポンシブ ────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 575.98px) {
  .pricing-title { font-size: 1.4rem; }
  .price-amount  { font-size: 2rem; }
  .pricing-table-wrap { padding: 1rem; }
  .pricing-table th,
  .pricing-table td  { padding: .6rem .5rem; font-size: .78rem; }
}
