/* ポップアップオーバーレイ */
.review_popup_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review_popup_overlay.active {
  display: block;
  opacity: 1;
}

.review_popup {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: min(768px, 100%);
  height: 100vh;
  height: 100dvh;
  background: white;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* または、より確実にするためのフォールバック */
@supports not (height: 100dvh) {
  .review_popup {
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

.review_popup_overlay.active .review_popup {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ヘッダー - 固定位置 */
.review_post_header {
  height: var(--size-64);
  position: relative;
  padding: var(--size-16);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: var(--fwSemiBold);
  background: var(--shopColor01);
}

.close_btn {
  position: absolute;
  left: var(--size-16);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: var(--size-24);
  cursor: pointer;
}

.review_title {
  font-size: var(--size-16);
  color: white;
}

.review_content {
  flex: 1;
  overflow-y: auto;
  background: white;
}

/* 口コミ投稿フォーム */
.review_form_block {
  padding: var(--size-32);
}

.review_form_notice {
  width: 100%;
  margin-bottom: var(--size-32);
  padding: var(--size-16);
  font-size: var(--size-12);
  text-align: center;
  background: #f8f8f8;
  border-radius: var(--size-4);
}

.review_form_notice p {
  display: inline-block;
  text-align: left;
}

.review_form_notice a {
  color: var(--colorBlue);
}

.review_form_notice a:hover {
  text-decoration: underline var(--colorBlue);
}

/* セラピスト一覧リンク */
.therapist_link {
  margin-top: var(--size-8);
  font-size: var(--size-12);
  text-align: right;
}

.therapist_link a {
  color: var(--colorBlue);
}

.therapist_link a:hover {
  text-decoration: underline var(--colorBlue);
}

/* 星評価 */
.star_rating_display {
  margin-top: var(--size-8);
  font-size: var(--size-16);
  color: var(--colorLightGray);
}

.star {
  cursor: pointer;
}

.star.active {
  color: var(--colorYellow);
}


.review_footer {
  background: white;
  padding: var(--size-8) var(--size-16) 0;
  display: flex;
  align-items: center;
  gap: var(--size-32);
}

.reset_btn {
  background: var(--colorDateColor);
  color: white;
  border: none;
  padding: 0;
  border-radius: var(--size-4);
  font-size: var(--size-10-5);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 1.2;
  font-weight: var(--fwSemiBold);
}

.submit_btn {
  width: min(440px, 100%);
  height: var(--size-64);
  margin: 0 auto;
  background: var(--shopColor01);
  color: white;
  border: none;
  padding: 0 var(--size-16);
  border-radius: var(--size-4);
  font-size: var(--size-18);
  cursor: pointer;
  text-align: center;
  font-weight: var(--fwSemiBold);
}

.submit_btn.review_submit {
  background: var(--shopColor01);
}

.review_footer .spacer {
  width: var(--size-48);
  height: var(--size-48);
  display: block;
}

/* 既存のフォーム送信ボタンを非表示に */
.form_submit_container {
  display: none; /* モーダルのフッターでボタンを表示するため非表示に */
}


/* ４つのコンタクトボタンモーダル */
.modal_contact {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal_contact.active {
  display: block;
  opacity: 1;
}

/* モーダルコンテンツ */
.modal_contact_content {
  width: min(400px, 100%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-20px);
  padding: var(--size-16);
  overflow-y: visible;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal_contact.active .modal_contact_content {
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
}

/* 閉じるボタン */
.modal_contact_close {
  width: var(--size-32);
  height: var(--size-32);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--size-24);
  color: white;
  cursor: pointer;
  line-height: 1;
}

/* ヘッダー部分 */
.modal_contact_header {
  width: min(343px, 100%);
  text-align: center;
  margin: 0 auto var(--size-16);
  padding: var(--size-24) var(--size-16);
  background-color: white;
  border-radius: var(--size-8);
  font-weight: var(--fwSemiBold);
}

.modal_contact_shop_name {
  font-size: var(--size-16);
  color: var(--colorBlack);
  margin-bottom: var(--size-8);
}

.modal_contact_description {
  font-size: var(--size-12);
}

/* ボタンコンテナ */
.modal_contact_buttons {
  display: flex;
  flex-direction: column;
  gap: var(--size-16);
  align-items: center;
}

/* ボタン共通スタイル */
.modal_contact_btn {
  width: min(343px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--size-56);
  border-radius: var(--size-8);
  text-decoration: none;
  font-size: var(--size-16);
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-align: center;
}

.modal_contact_btn:hover {
  opacity: 0.9;
}

/* 各ボタンの背景色 */
.modal_contact_btn_phone,
.modal_contact_btn_web,
.modal_contact_btn_line,
.modal_contact_btn_inquiry {
  background: var(--shopColor01);
}

/* アイコンとテキストのコンテナ */
.modal_contact_btn {
  gap: var(--size-8);
}

.modal_contact_btn img {
  width: auto;
  height: var(--size-24);
  flex-shrink: 0;
}

.modal_contact_btn_inquiry img {
  height: 17px;
}

.modal_contact_text {
  display: inline-flex;
  width: 100px;
  justify-content: space-between;
}

.modal_contact_text span {
  display: inline-block;
}