/* =========================
   Spring Plan - Compare Module
   ========================= */

.sp-compare{
  padding: 72px 0;
  background: rgba(236, 253, 245, .35); /* うっすらグリーン */
  font-family: inherit;
  color: #0f172a;
}

.sp-compare .sp-container{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.sp-compare__heading{
  text-align: center;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.25;
  font-size: clamp(20px, 2.2vw, 30px);
  color: #0f172a;
}

.sp-compare__lead{
  text-align: center;
  margin: 0 auto 26px;
  max-width: 46rem;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.8;
}

/* grid */
.sp-compare__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 900px){
  .sp-compare__grid{
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

/* card base */
.sp-compare__card{
  position: relative;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(203, 213, 225, .60);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  padding: 22px 22px 20px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

@media (hover:hover){
  .sp-compare__card:hover{
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10);
  }
}

/* accent topline */
.sp-compare__topline{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: #34d399;
}

.sp-compare__card--b .sp-compare__topline{
  background: #fb923c;
}

/* allow custom field colors */
{% if module.plan_a_accent_color %}
.sp-compare__card--a .sp-compare__topline{ background: ; }
{% endif %}
{% if module.plan_b_accent_color %}
.sp-compare__card--b .sp-compare__topline{ background: ; }
{% endif %}

/* title / subtitle */
.sp-compare__title{
  margin: 8px 0 4px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
  color: #0f172a;
}

.sp-compare__subtitle{
  margin: 0 0 14px;
  font-weight: 700;
  color: #64748b;
  font-size: 13px;
}

/* metric */
.sp-compare__metric{
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 14px;
}

.sp-compare__num{
  font-weight: 900;
  letter-spacing: .01em;
  font-size: 44px;
  line-height: 1;
  color: #059669; /* green-600 */
}

.sp-compare__card--b .sp-compare__num{
  color: #f97316; /* orange-500 */
}

{% if module.plan_a_accent_color %}
.sp-compare__card--a .sp-compare__num{ color: ; }
{% endif %}
{% if module.plan_b_accent_color %}
.sp-compare__card--b .sp-compare__num{ color: ; }
{% endif %}

.sp-compare__unit{
  font-weight: 800;
  color: #334155;
  font-size: 14px;
}

/* list */
.sp-compare__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.sp-compare__li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sp-compare__check{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  margin-top: 2px;
  flex: 0 0 auto;
  position: relative;
  background: rgba(16, 185, 129, .14);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, .10);
}

.sp-compare__card--b .sp-compare__check{
  background: rgba(249, 115, 22, .14);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, .10);
}

/* draw check mark */
.sp-compare__check::after{
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid rgba(5, 150, 105, .95);
  border-bottom: 2px solid rgba(5, 150, 105, .95);
  transform: rotate(45deg);
}

.sp-compare__card--b .sp-compare__check::after{
  border-right-color: rgba(234, 88, 12, .95);
  border-bottom-color: rgba(234, 88, 12, .95);
}

.sp-compare__liText{
  font-weight: 800;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.7;
}

/* notice */
.sp-compare__notice{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 14px 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(203, 213, 225, .55);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.sp-compare__noticeIcon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  margin-top: 2px;
  background: rgba(100,116,139,.14);
  position: relative;
  flex: 0 0 auto;
}

.sp-compare__noticeIcon::after{
  content: "i";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #475569;
  font-size: 13px;
}

.sp-compare__noticeTitle{
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px;
  font-size: 13px;
}

.sp-compare__noticeText{
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.75;
}

/* responsive */
@media (max-width: 640px){
  .sp-compare{ padding: 54px 0; }
  .sp-compare__card{ padding: 18px 16px; border-radius: 16px; }
  .sp-compare__num{ font-size: 40px; }
}
