/* ========== checkout ページ（プラン購入・完了・キャンセル） ========== */

/* プラングループ */
.plan-section {
  margin-bottom: 36px;
}

.plan-group-title {
  font-size: 20px;
  font-weight: 700;
  color: #FF6B9D;
  margin-bottom: 14px;
  text-align: center;
}

.plan-group-title-plus {
  color: #C77DFF;
}

.plan-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* プランカード */
.plan-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.1);
  border: 1.5px solid rgba(255, 107, 157, 0.12);
}

.plan-card.is-best {
  border: 1.5px solid rgba(255, 107, 157, 0.45);
  background: linear-gradient(180deg, #fff, #FFF5F8);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF6D8E, #FF82D7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.plan-period {
  font-size: 15px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 6px;
}

.plan-price-old {
  font-size: 12px;
  color: #AAAAAA;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.plan-price-new {
  font-size: 28px;
  font-weight: 700;
  color: #FF6B9D;
  line-height: 1.3;
  margin-bottom: 14px;
}

.plan-per {
  font-size: 14px;
  font-weight: 700;
  color: #6B6B6B;
}

/* 購入ボタン */
.buy-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #FF6D8E, #FF82D7);
  color: #fff;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.buy-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.buy-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* エラー表示 */
.checkout-error {
  background: #FFF0F3;
  border: 1.5px solid rgba(255, 107, 157, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #C24069;
  margin-bottom: 24px;
}

/* ========== 完了 / キャンセル ページ ========== */
.result-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.1);
  margin-bottom: 28px;
}

.result-img {
  width: 120px;
  height: auto;
  margin: 0 auto 16px;
}

.result-title {
  font-size: 20px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 12px;
  line-height: 1.5;
}

.result-desc {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: left;
}

.result-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.result-btns .cta-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  font-size: 15px;
}

.cta-btn-sub {
  background: #fff;
  color: #FF6B9D;
  border: 1.5px solid rgba(255, 107, 157, 0.4);
  box-shadow: none;
}

/* ========== タブレット以上 ========== */
@media (min-width: 600px) {
  .plan-cards {
    flex-direction: row;
    align-items: stretch;
  }

  .plan-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .plan-card .buy-btn {
    margin-top: auto;
  }

  .plan-group-title {
    font-size: 22px;
  }
}
