
/* =============================================================================
   トップモーダル
   ========================================================================== */

/* 開く時の.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: 99999;
  width: 100%;
  /* スマホでスワイプして指を離すまでの間下部の背景が無くなるため余分に指定 */
  height: 100%;
  background-color: rgba(253,217,229,1.00);
  background-repeat: repeat-x;
  cursor: pointer;
  opacity: 1;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}
.modalwindow.no_overlay_close {
  cursor: default;
}
.modalwindow.lock .close_modal {
  background: #F9BAE7;
}
.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_head {
  position: relative;
  padding: 20px 40px;
  width: 800px;
  margin: auto;
  margin-top: 20px;
  background-color: #FE7096;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-size: 180%;
  font-weight: 900;
  font-family: source-han-serif-japanese, serif;
  color: rgba(255,252,252,1.00);
}

.modalwindow .body .modal_content {
  position: relative;
  padding: 20px 40px;
  width: 800px;
  margin: auto;
  background-color: #FFFFFF;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  font-family: "Noto Sans Japanese";
}

.modal_content .fwrap{
  display: flex;
  justify-content: space-between;
}
.modal_content .pic{
  width: 20%;
}
  .modal_content .pic img{
    width: 100%;
    height: auto;
  }
.modal_content .name{
  width: 80%;
  background-color: rgba(254,233,240,1.00);
}


.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: absolute;
  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: absolute;
  right: 0;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}


@media screen and (max-width: 480px) {

.modalwindow .body .modal_head {
  position: relative;
  padding: 20px 20px;
  width: 100%;
  margin: auto;
  margin-top: 20px;
  background-color: #FE7096;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.modal_content .fwrap{
  display: flex;
  justify-content: space-between;
}
.modal_content .pic{
  width: 40%;
}
  .modal_content .pic img{
    width: 100%;
    height: auto;
  }
.modal_content .name{
  width: 58%;
  align-self: auto;
}


.modalwindow .body .modal_content {
  position: relative;
  padding: 20px 20px;
  width: 100%;
  margin: auto;
  font-family: "Noto Sans Japanese";

}

  .modalwindow .body {
    position: relative;
    width: calc(100% - 60px);
    margin: 10px;

    left: 0;
  }
  
  .close_modal{
  position: absolute;
  right: 0;
  top: 15px;
  background: none;
  border: none;
  cursor: pointer;
}



}
