@charset "UTF-8";
/* 開く時の.bodyのアニメーション */
@keyframes modalwindow_body_in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes modalwindow_body_out {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.modalwindow {
  /* オーバーレイ＆スクロール領域になるレイヤー */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  overflow: auto;
  z-index: 10000;
  width: 100%;
  /* スマホでスワイプして指を離すまでの間下部の背景が無くなるため余分に指定 */
  height: calc(100% + 100px);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 100px solid transparent;
  cursor: pointer;
  opacity: 1;
}

.modalwindow.no_overlay_close {
  cursor: default;
}

.modalwindow.lock .close_modal {
  background: #ccc;
}

.modalwindow .body {
  /* ウィンドウ自体 アニメーションなどで装飾 */
  position: relative;
  width: 100rem;
  cursor: default;
  animation: .3s modalwindow_body_out;
}
.modalwindow .contents {
  position: relative;
  background: #FFF;
  padding: 7rem;
}

.modalwindow .window-close {
  display: block;
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 5rem;
  height: 5rem;
  cursor: pointer;
}

.modalwindow.is_visible .body {
  animation: .3s modalwindow_body_in;
}

@media screen and (max-width: 767px) {
  .modalwindow .body {
    width: calc(100% - 4rem);
    height: 44.4rem;
  }
  .modalwindow .modal-scroll {
    height: 100%;
    border-radius: 1rem;
    overflow: auto;
  }
  .modalwindow .contents {
    padding: 3rem 2rem;
  }
  .modalwindow .window-close {
    top: -2.4rem;
    right: -2.4rem;
    width: 4.8rem;
    height: 4.8rem;
  }
}


