/* バナーの基本スタイル（必要に応じて調整） */
.external-banner {
  display: inline-block;
  cursor: pointer;
}
.external-banner img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* モーダル表示中の背景スクロール固定 */
body.is-modal-open {
  overflow: hidden;
}

/* モーダル全体 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* 背景の暗いオーバーレイ */
.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

/* モーダル本体 */
.modal__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px 28px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.modal.is-open .modal__content {
  transform: translateY(0);
}

/* タイトル */
.modal__title {
  margin: 0 0 16px;
  font-size: 1.7rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.4;
  text-align: center;
}

/* 本文 */
.modal__text {
  margin: 0 0 28px;
  font-size: 1.5rem;
  color: #444444;
  line-height: 1.7;
  text-align: left;
}

/* ボタンエリア */
.modal__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ボタン共通 */
.modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 20px;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* キャンセルボタン */
.modal__btn--cancel {
  background-color: #f0f0f0;
  color: #333333;
  border: 1px solid #d0d0d0;
}
.modal__btn--cancel:hover {
  background-color: #e4e4e4;
}

/* 移動するボタン */
.modal__btn--confirm {
  background-color: #e8380d;
  color: #ffffff;
  border: 1px solid #e8380d;
}
.modal__btn--confirm:hover {
  background-color: #ed603d;
}

/* スマートフォン向け調整（画面幅600px以下） */
@media (max-width: 600px) {
  .modal__content {
    padding: 24px 20px 20px;
  }

  .modal__title {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .modal__text {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .modal__actions {
    flex-direction: column-reverse; /* 移動するボタンを上、キャンセルを下にする */
    gap: 10px;
  }

  .modal__btn {
    width: 100%;
    padding: 14px 20px;
  }
}