/* ==========================================
   Remodal（v1.1.1 コア + 最小テーマ）
   ========================================== */
html.remodal-is-locked {
  overflow: hidden;
  touch-action: none;
}

.remodal,
[data-remodal-id] {
  display: none;
}

.remodal-overlay {
  position: fixed;
  z-index: 9999;
  top: -5000px;
  right: -5000px;
  bottom: -5000px;
  left: -5000px;
  display: none;
  background: rgba(0, 0, 0, 0.8);
}

.remodal-wrapper {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  overflow: auto;
  text-align: center;
  padding: 40px 16px;
  -webkit-overflow-scrolling: touch;
}

.remodal-wrapper:after {
  display: inline-block;
  height: 100%;
  margin-left: -0.05em;
  content: "";
}

.remodal-overlay,
.remodal-wrapper {
  backface-visibility: hidden;
}

.remodal {
  position: relative;
  outline: none;
  text-size-adjust: 100%;
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  vertical-align: middle;
  text-align: left;
}

.remodal-is-initialized {
  display: inline-block;
}

/* アニメーション */
.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}
.remodal-overlay.remodal-is-opening { animation-name: remodal-overlay-opening-keyframes; }
.remodal-overlay.remodal-is-closing { animation-name: remodal-overlay-closing-keyframes; }

.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}
.remodal.remodal-is-opening { animation-name: remodal-opening-keyframes; }
.remodal.remodal-is-closing { animation-name: remodal-closing-keyframes; }

@keyframes remodal-opening-keyframes {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes remodal-closing-keyframes {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.95); opacity: 0; }
}
@keyframes remodal-overlay-opening-keyframes {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes remodal-overlay-closing-keyframes {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 閉じるボタン */
.remodal-close {
  position: absolute;
  top: -36px;
  right: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.remodal-close::before,
.remodal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2px;
  background: #fff;
}
.remodal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.remodal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* バス停MAP */
.busstopMap__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.busstopMap__btn img {
  display: block;
  width: 100%;
  height: auto;
}
/* モーダルを画面の上下左右中央に配置 */
.busstopMap__modal.remodal-is-initialized {
  display: block;
  position: absolute;
  inset: 0;
  width: calc(100% - 32px);
  height: fit-content;
  margin: auto;
}
.busstopMap__modal img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 100px);
  object-fit: contain;
}
