@charset "utf-8";
/**
 * 店舗ページの LINE 導線（inc/store-line-cta.php とセット）
 * パーソナルレッスンの店舗ページでのみ読み込まれる
 */

/* ---------- ① お客様の声の直後に足すボタン ---------- */
.rz-cta-after-voice {
  margin: min(8vw, 50px) auto 0;
  text-align: center;
}

.rz-cta-btn {
  width: min(87vw, 435px);
  margin: 0 auto;
}

.rz-cta-btn a {
  width: 100%;
}

/* 文言を1行に収める */
.rz-cta-btn .swell-block-button__link {
  font-size: min(4.6vw, 19px);
  white-space: nowrap;
}

/* ---------- ② ポップアップ ---------- */
.rz-cta-popup[hidden] {
  display: none !important;
}

.rz-cta-popup {
  position: fixed;
  inset: 0;
  z-index: 1000; /* 固定バー #fix_bottom_menu より上、各種モーダルより下 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rz-cta-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.rz-cta-popup__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 2.2em 1.6em 1.6em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.rz-cta-popup.is-open .rz-cta-popup__overlay { opacity: 1; }
.rz-cta-popup.is-open .rz-cta-popup__panel { opacity: 1; transform: none; }

/* 指で押しやすいよう44px角を確保する */
.rz-cta-popup__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #555;
  font-size: 30px;
  line-height: 44px;
  cursor: pointer;
}

.rz-cta-popup__title {
  margin: 0 0 0.3em;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}

.rz-cta-popup__arrow {
  margin: 0 0.2em;
}

.rz-cta-popup__price {
  color: var(--color_red, #e54141);
  white-space: nowrap;
}

.rz-cta-popup__note {
  margin: 0 0 1.1em;
  font-size: 0.85em;
  color: var(--color_red, #e54141);
}

.rz-cta-popup .rz-cta-btn {
  width: 100%;
}

/* スマホ：画面の下から高さ160pxのシートで出す（画面全体は覆わない） */
@media screen and (max-width: 959px) {
  .rz-cta-popup {
    align-items: flex-end;
    padding: 0;
  }

  .rz-cta-popup__panel {
    max-width: none;
    height: 160px;
    padding: 0.9em 1.2em calc(0.6em + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3em;
  }

  .rz-cta-popup__title {
    margin: 0;
    font-size: 1.02em;
  }

  .rz-cta-popup__note {
    margin: 0;
    font-size: 0.78em;
  }
}
