/* ==========================================================================
   Phone Inquiry Modal CSS
   ========================================================================== */

/* 1rem = 10px の前提（html { font-size: 62.5%; } に対応） */

/* モーダル全体のコンテナ */
.phone-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* モーダルがアクティブのとき */
.phone-modal.is-active {
  opacity: 1;
  visibility: visible;
}

/* オーバーレイ背景 */
.phone-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* モーダルコンテンツ */
.phone-modal-content {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  border: 4px solid #fd922a;
  padding: 40px 30px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10000;
}

.phone-modal.is-active .phone-modal-content {
  transform: scale(1);
}

/* 閉じるボタン */
.phone-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 3.5rem;
  line-height: 1;
  color: #fd922a;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.phone-modal-close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* タイトル */
.phone-modal-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #fd922a;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px dashed #ffeede;
}

/* 電話番号の表示 */
.phone-modal-number {
  font-size: 3.2rem;
  font-weight: bold;
  color: #404040;
  margin: 0 0 15px 0;
  letter-spacing: 0.05em;
  display: block;
}

/* 受付時間 */
.phone-modal-time {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 25px 0;
}

/* 電話をかけるボタン（モバイル用） */
.phone-modal-btn {
  display: none; /* デフォルトは非表示 */
  cursor: pointer;
  width: 100%;
  height: 60px;
  border-radius: 30px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fd922a;
  color: #ffffff;
  position: relative;
  text-decoration: none;
  margin: 0;
  font-weight: bold;
  font-size: 2.0rem;
  box-shadow: 0 4px 10px rgba(253, 146, 42, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* メールを送るボタン（PC・スマホ両方で常時表示） */
.phone-modal-btn.mail-modal-btn {
  display: flex;
}

.phone-modal-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #ffffff;
}

.phone-modal-btn:active {
  transform: scale(0.98);
}

.phone-modal-btn-icon {
  width: 24px;
  height: 24px;
}

/* モバイル表示 (スマホ) */
@media screen and (max-width: 768px) {
  .phone-modal-content {
    padding: 35px 20px;
  }
  .phone-modal-title {
    font-size: 2.0rem;
  }
  .phone-modal-number {
    font-size: 2.8rem;
  }
  .phone-modal-number.mail-modal-address {
    font-size: 1.8rem; /* スマホで1行に収まるように縮小 */
  }
  .phone-modal-time {
    font-size: 1.4rem;
  }
  .phone-modal-btn {
    display: flex; /* スマホでは表示 */
  }
}

/* メールアドレス専用のPC用表示サイズ */
.phone-modal-number.mail-modal-address {
  font-size: 2.2rem;
}
