@charset "UTF-8";

.modalWrapper {
  position: fixed;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  inset: 0;
  min-height: 100vh;
  overscroll-behavior: contain;
}

.modalWrapper.display {
  display: flex;
}

.modalOverlay {
  position: absolute;
  background-color: rgb(0 0 0 / 40%);
  cursor: pointer;
  inset: 0;
}

.modalInner {
  position: relative;
  z-index: 1;
}

dl.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 20px;
  border-radius: 5px;
  background-color: #fff;
  overflow-y: auto;
}

dl.modal dt {
  flex-basis: 100%;
  text-align: center;
  font-weight: bold;
}

dl.modal dt img {
  width: 100%;
  height: auto;
}

dl.modal dd {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  gap: 1.5rem;
  line-height: 1.5;
}

dl.modal dd p {
  align-self: center;
  font-size: 1.125rem;
  font-weight: 600;
}

dl.modal dd.-flex-end {
  display: flex;
  justify-content: flex-end;
}

dl.modal dd a.modal__btn {
  align-self: center;
  padding: 0.5rem 4rem;
  font-size: 1rem;
  color: #fff;
  border-radius: 50px;
  box-shadow: 4px 4px 4px #ccc;
  background-color: #07f;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

dl.modal dd a.modal__btn:hover {
  color: #07f;
  background-color: #efefef;
}

dl.modal dd a.-link {
  color: blue;
}

.-red {
  color: red;
}

.modalWrapper::before,
.modalWrapper::after {
  content: '';
  display: flex;
  width: 1px;
  height: calc(100vh + 1px);
}

.__asterisk_box {
  width: 100%;
  margin: auto;
  max-width: 650px;
}

/* 閉じるボタン本体（透明） */
.modalClose {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ×の線 */
.modalClose::before,
.modalClose::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #555;
  transform-origin: center;
}

.modalClose::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modalClose::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (width <=820px) {
  .modalInner {
    width: 80%;
  }
}

@media screen and (width <=480px) {
  .modalInner {
    width: 90%;
  }

  dl.modal dt,
  dl.modal dd a.modal__btn {
    flex-basis: auto;
    font-size: 0.875rem;
  }

  dl.modal dd p {
    font-size: 0.75rem;
  }

  .__asterisk_box {
    margin: 0;
  }

  dl.modal dd a.modal__btn {
    padding: 0.5rem 3rem;
  }
}
