/* =========================================================
   料金プランカード（.plans … カードの並び / .plan … 1枚）
   .plan--free / .plan--premium … 薄い青
   .plan--standard … 濃い青・360×700 固定・オススメバッジ付き
   ========================================================= */
.plans {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.plan {
  position: relative;
  border-radius: 30px;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.plan--free { flex: 0 1 362px; background: var(--bg-2); }
.plan--premium { flex: 0 1 353px; background: var(--bg-2); }
/* 360×700 固定。両隣のプランとは上下中央でそろえる（.plans の align-items: center） */
.plan--standard {
  flex: 0 0 360px;
  width: 360px;
  height: 700px;
  background: var(--main);
  color: var(--bg);
  padding-block: 60px;
  justify-content: center;
}

.plan__ribbon {
  position: absolute;
  top: -40px;
  right: -31px;
  width: 91px;
  height: 91px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  color: var(--bg);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan__head {
  width: 100%;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid currentColor;
  color: var(--main);
}
.plan--standard .plan__head { color: var(--bg); border-bottom-width: 2px; }
.plan__name { font-size: clamp(24px, 2.22vw, 32px); font-weight: 700; line-height: 1.5; }
.plan__catch { font-size: 16px; font-weight: 300; line-height: 1.5; }
.plan--standard .plan__catch { font-weight: 500; }

.plan__price { text-align: center; color: var(--text); font-weight: 700; line-height: 1.5; }
.plan--standard .plan__price { color: var(--bg); font-weight: 900; }
.plan__price-num { font-size: clamp(38px, 3.33vw, 48px); }
.plan__price-unit { font-size: 20px; }

.plan__specs {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 4.7vw, 68px);
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--main);
}
.plan--standard .plan__specs { color: var(--bg); font-weight: 700; }
.plan__spec-value { margin-top: 7px; }

.plan__block { width: 100%; }
.plan__block-title {
  display: inline-block;
  font-size: 16px;
  text-align: center;
  color: var(--main);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  min-width: 64px;
}
.plan__block-title--wide { min-width: 96px; }
.plan--standard .plan__block-title { color: var(--bg); font-weight: 700; }
.plan__block-body {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--main);
}
.plan--standard .plan__block-body { color: var(--bg); font-weight: 700; }

/* ---- Responsive ---- */
/* 3カラムを維持できなくなったら折り返す */
@media (max-width: 1180px) {
  .plans {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 20px;
    margin-top: 56px;
  }
  .plan { flex: 0 1 min(360px, 100%); width: min(360px, 100%); }
  .plan--standard { align-self: auto; }
  .plan__ribbon { right: -10px; top: -32px; }
}

@media (max-width: 980px) {
  /* 見出しに重ならないよう、少し小さくしてカードの右上角の外側へ出す */
  .plan__ribbon { width: 72px; height: 72px; font-size: 14px; right: -8px; top: -36px; }
}

@media (max-width: 560px) {
  .plan { padding: 44px 20px; border-radius: 20px; }
  .plan--standard { height: auto; }
}
