@charset "utf-8";

/* 開く時の.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: 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;
  left: 50%;
  top: 0;
  width: 600px;
  margin-left: -300px;
  margin-top: 50px;
  margin-bottom: 10px;
  background: #FFF;
  color: #000;
  border-radius: 4px;
  cursor: default;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  animation: 200ms modalwindow_body_out;
}

.modalwindow .body .modal_content {
  padding: 20px;
}

.modalwindow .body > footer {
  padding: 10px;
  background: #FFFFFF;
  border-radius: 0 0 4px 4px;
  border-top: 1px solid #e5e5e5;
}

.modalwindow.is_visible .body {
  transform: translateY(0px);
  animation: 400ms modalwindow_body_in;
}

.modalwindow_header_close {
  /* 右上に表示する×ボタン 面倒なので動的に追加してます */
/*
  position: absolute;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 1);
    display: inline-block;
	top:-10px;
    right: -10px;
    bottom: 20px;
    z-index: 999;
    width: 20pt;
    height: 20pt;
    border-radius: 0;
    line-height: 38pt;
    text-align: center;
    box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.2);
*/
	position: absolute;
    border: none;
    cursor: pointer;
    /* background: rgba(0, 0, 0, 1); */
    display: inline-block;
    top: -56px;
    right: 0px;
    bottom: 0px;
    z-index: 999;
    width: 20pt;
    height: 20pt;
    border-radius: 0;
    line-height: 38pt;
    text-align: center;
}

.modalwindow_header_close:before {
  content: "\D7";
  font-size: 48px;
  font-family: serif;
  color: #ccc;
}

@media screen and (max-width: 900px) {
  .modalwindow .body {
    position: relative;
    width: calc(100% - 20px);
    margin: 10px;
    left: 0;
  }
}

.modal_content h3{ text-align: center;}





