body.modal-open {
  overflow: hidden;
}

.sp-br {
  display: none;
}

.notice-modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 2000;
}

.notice-modal.is-active {
  display: flex;
}

.notice-modal__backdrop {
  background: rgba(0, 0, 0, 0.6);
  inset: 0;
  position: absolute;
}

.notice-modal__dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  height: auto;
  max-height: 85vh;
  width: min(86vw, 680px);
  max-width: 680px;
  overflow-y: auto;
  padding: 30px 36px 34px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.notice-modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  height: 40px;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
}

.notice-modal__content {
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
}

.notice-modal__close {
  color: #2d50b4;
}

.notice-modal .sp-view {
  display: none;
}

.notice-modal__content h2 {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #2d50b4;
}

.notice-modal__content p {
  color: #333;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.85;
  margin: 0 auto 24px;
  max-width: 520px;
}

.notice-modal__button {
  background: #ff8714;
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-weight: 700;
  white-space: nowrap;
  padding: 15px 80px;
  text-decoration: none;
  margin-top: 4px;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.notice-modal__button:hover {
  background: #fff;
  color: #ff8714;
  border-color: #ff8714;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .sp-br {
    display: block;
  }

  .notice-modal .sp-view {
    display: inline;
  }

  .notice-modal {
    padding: 16px;
  }

  .notice-modal__dialog {
    border-radius: 12px;
    height: auto;
    max-height: 85vh;
    width: min(92vw, 560px);
    padding: 24px 18px 26px;
  }

  .notice-modal__content h2 {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .notice-modal__content p {
    font-size: 12px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .notice-modal__button {
    text-align: center;
    width: 70%;
    padding: 15px 0; /* 横padding削除 */
    white-space: nowrap;
  }
}
