/* ===================================
   TEL・各施設案内 モーダルウィンドウ
   =================================== */

/* オーバーレイ */
.facility-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.facility-modal-overlay.is-active {
  display: flex;
}

/* ラッパー（×ボタンをモーダル外に出すための親） */
.facility-modal-wrapper {
  position: relative;
  width: 90%;
  max-width: 660px;
}

/* 閉じるボタン（PC: モーダル外右上 / SP: モーダル内右上） */
.facility-modal__close {
  position: absolute;
  top: -44px;
  right: -44px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  padding: 0;
  z-index: 1;
  transition: opacity 0.3s;
}

.facility-modal__close:hover {
  opacity: 0.6;
}

/* モーダル本体 */
.facility-modal {
  background: #fff;
  border-radius: 16px;
  max-height: 90vh;
  overflow-y: auto;
}

/* 内部コンテンツ */
.facility-modal__inner {
  padding: 40px 50px 44px;
  text-align: center;
}

/* サブタイトル */
.facility-modal__subtitle {
  font-size: 15px;
  font-weight: bold;
  color: #278F3F;
  margin: 0 0 4px;
}

/* タイトル */
.facility-modal__title {
  font-size: 26px;
  font-weight: bold;
  color: #278F3F;
  margin: 0 0 12px;
}

/* 説明テキスト */
.facility-modal__text {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  margin: 0 0 20px;
}

/* 電話ボタン */
.facility-modal__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 24px;
  border: 2px solid #FDAE2B;
  border-radius: 50px;
  padding: 12px 36px;
  font-size: 22px;
  font-weight: bold;
  color: #FDAE2B;
  text-decoration: none;
  transition: opacity 0.3s;
}

.facility-modal__tel:hover {
  opacity: 0.7;
}

/* 電話アイコン（SVG） */
.facility-modal__tel-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  
}
.facility-modal__tel-icon path {
	color: #FDAE2B;
}

.facility-modal__tel-arrow {
  font-size: 20px;
  margin-left: 4px;
  color: #FDAE2B;
}

/* PC: tel:リンクを無効化（番号表示のみ） */
@media screen and (min-width: 769px) {
  .facility-modal__tel {
    pointer-events: none;
    cursor: default;
  }
  a.facility-modal__tel {
  	color: #FDAE2B;
	text-decoration: none;
	border-radius: 5px;
  }
}

/* セクションラベル */
.facility-modal__section-label {
  font-size: 14px;
  color: #666;
  font-weight: bold;
  margin: 0 0 16px;
}

/* 施設リンクグリッド */
.facility-modal__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.facility-modal__links a {
	color: #fff;
	text-decoration: none;
}

/* 施設リンクボタン共通 */
.facility-modal__link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
  transition: opacity 0.3s;
}

.facility-modal__link:hover {
  opacity: 0.7;
}

.facility-modal__link-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #fff;
}

/* カラーバリエーション */
.facility-modal__link--green {
  background: #71ba27;
}

.facility-modal__link--navy {
  background: #00519c;
}

.facility-modal__link--pink {
  background: #fd7ba6;
}

.facility-modal__link--orange {
  background: #fdae2b;
}

.facility-modal__link--emerald {
  background: #2bb999;
}

/* ===================================
   SP対応 (768px以下)
   =================================== */
@media screen and (max-width: 768px) {
  .facility-modal-wrapper {
    width: 92%;
  }

  .facility-modal {
    border-radius: 12px;
  }

  .facility-modal__inner {
    padding: 32px 20px 36px;
  }

  /* SP: ×ボタンをモーダル内右上に移動 */
  .facility-modal__close {
    top: 12px;
    right: 12px;
    color: #999;
    font-size: 32px;
  }

  .facility-modal__subtitle {
    font-size: 13px;
    color: #278F3F;
  }

  .facility-modal__title {
    font-size: 22px;
    color: #278F3F;
  }

  .facility-modal__text {
    font-size: 13px;
  }

  .facility-modal__tel {
    font-size: 18px;
    padding: 10px 28px;
  }
  a.facility-modal__tel {
  	color: #FDAE2B;
	text-decoration: none;
	border-radius: 5px;
  }

  .facility-modal__links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .facility-modal__link {
    font-size: 14px;
    padding: 14px 16px;
  }
}
