/* ============================================================
   Modal Launcher — Full-screen iframe overlay
   For BOOK NOW / See All Tours buttons on main site
   ============================================================ */

.booking-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: #ffffff;
}

.booking-modal-overlay--open {
  display: block;
}

.booking-modal-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100000;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.booking-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.booking-modal-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.booking-modal-close--hidden {
  display: none !important;
  pointer-events: none !important;
}

.booking-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Prevent body scroll when modal is open */
body.booking-modal-active {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed !important;
  width: 100vw !important;
  top: 0 !important;
  left: 0 !important;
}

/* Ensure overlay covers full viewport including scrollbar area */
html.booking-modal-active {
  overflow: hidden !important;
}

/* ============================================================
   2026-04-23 メンテナンスモード モーダル
   Book Now クリック時にメンテナンス中なら iframe を開かず、
   TOP の上にオーバーレイで表示する（PC: 中央カード / SP: 全面）
   ============================================================ */
.maint-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  animation: maint-fade-in 0.18s ease-out;
}
@keyframes maint-fade-in { from { opacity: 0; } to { opacity: 1; } }

.maint-modal {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 36px 28px 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  box-sizing: border-box;
}
.maint-modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: none; background: transparent;
  font-size: 24px; color: #6b7280; cursor: pointer;
  line-height: 1; border-radius: 50%;
  transition: background 0.15s;
}
.maint-modal__close:hover { background: #f3f4f6; color: #111827; }

.maint-modal__icon {
  font-size: 44px; margin-bottom: 8px;
}
.maint-modal__title {
  font-size: 22px; font-weight: 700; color: #111827;
  margin: 4px 0 2px; line-height: 1.3;
}
.maint-modal__title-ja {
  font-size: 14px; color: #6b7280; margin: 0 0 18px;
}
.maint-modal__message {
  font-size: 15px; color: #374151; line-height: 1.7;
  margin: 0 0 16px;
  white-space: pre-wrap;
  word-break: break-word;
}
.maint-modal__contact {
  font-size: 13px; color: #6b7280; line-height: 1.6;
  margin: 12px 0 0; padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.maint-modal__contact a { color: #2563eb; text-decoration: none; }
.maint-modal__contact a:hover { text-decoration: underline; }

html.maint-modal-active,
body.maint-modal-active {
  overflow: hidden !important;
}

/* SP: 全面モーダル */
@media (max-width: 640px) {
  .maint-overlay { padding: 0; }
  .maint-modal {
    max-width: 100%; width: 100%;
    min-height: 100vh; min-height: 100dvh;
    border-radius: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 24px;
  }
  .maint-modal__title { font-size: 20px; }
  .maint-modal__message { font-size: 14px; }
}
