
/* =============================================================================
   トップモーダル
   ========================================================================== */

/* 開く時の.bodyのアニメーション */
@keyframes modalwindow_body_in {
  0% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes modalwindow_body_out {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-20px);
  }
}
.modalwindow {
  /* オーバーレイ＆スクロール領域になるレイヤー */
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  overflow: auto;
  z-index: 101;
  width: 100%;
  /* スマホでスワイプして指を離すまでの間下部の背景が無くなるため余分に指定 */
  height: 100%;
  background-color: rgba(255,241,0,1.00);
  cursor: pointer;
  opacity: 1;
}
.modalwindow.no_overlay_close {
  cursor: default;
}
.modalwindow.lock .close_modal {
  background: #ccc;
}
.modalwindow .body {
  /* ウィンドウ自体 アニメーションなどで装飾 */
  position: relative;
  top: 0;
  width: 100%;
  margin: auto;
  margin-bottom: 40px;
  border-radius: 4px;
  cursor: default;
  transform: translateY(-20px);
  animation: 200ms modalwindow_body_out;
}
.modalwindow .body .modal_content {
  padding: 10px;
}
.modalwindow .body > footer {
  padding: 10px;
  border-radius: 0 0 4px 4px;
}
.modalwindow.is_visible .body {
  transform: translateY(0px);
  animation: 400ms modalwindow_body_in;
}
.modalwindow_header_close {
  /* 右上に表示する×ボタン 面倒なので動的に追加してます */
  position: fixed;
  right: 0;
  top: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.modalwindow_header_close:before {
  content: "\D7";
  font-size: 24px;
  font-family: serif;
  color: #ccc;
}

.close_modal{
  position: fixed;
  right: 0;
  top: 10px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}


@media screen and (max-width: 900px) {
  .modalwindow .body {
    position: relative;
    width: calc(100% - 20px);
    margin: 10px;

    left: 0;
  }
  
  .close_modal{
  position: absolute;
  right: 0;
  top: 15px;
  background: none;
  border: none;
  cursor: pointer;
}



}
