@charset "UTF-8";
/* ===========================
 基本設定
=========================== */
.modal_contents {
  margin: 0 auto;
/*
  padding: 10px 0 50px 0;
*/
  padding: 0;
  width: 100%;
}

#modal > div {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  z-index: 999;
}

#modal > div .modal_window {
  position: relative;
  top: 10px;
  box-sizing: border-box;
  margin-top: 40px;
}

.close_overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  text-indent: -9999px;
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

/* ===========================
 デザインの設定
=========================== */
/* ウィンドウの中身の設定 */
#modal > div .modal_window {
  width: 90%;
  max-width: 800px;
  max-height: 80%;
  display: block;
  background: #fff;
  z-index: 999;
  padding: 30px 10px;
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
}

/* ウィンドウ中身のテキストの設定 */
.modal_window {
  text-align: center;
}

/* ボタンの設定 */
.modal_window .btn a {
  width: 100%;
  padding: 10px 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  display: block;
  background: #f8a120;
  border: 2px solid #fff;
  border-radius: 10px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

.cont-modal {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#modal .h3-modal {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}
#modal .h3-modal span {
  display: block;
  font-size: 20px;
  line-height: 1.6em;
}

#modal .h4-modal {
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 5px;
  border-bottom: 1px solid #355161;
  margin-bottom: 5px;
}
@media screen and (min-width: 600px) {
  #modal .h4-modal {
    font-size: 20px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}

#modal .cont-modal p {
  font-size: 14px;
  text-align: left;
}
#modal .cont-modal p:not(:last-of-type) {
  margin-bottom: 30px;
}
@media screen and (min-width: 600px) {
  #modal .cont-modal p {
    font-size: 16px;
  }
  #modal .cont-modal p:not(:last-of-type) {
    margin-bottom: 40px;
  }
}

/* ===========================
 アニメの設定
=========================== */
@-webkit-keyframes modalFadeIn {
  0% {
    opacity: 0;
    display: block;
  }
  100% {
    opacity: 1;
  }
}
div#modal div:target {
  -webkit-animation-name: modalFadeIn;
  -webkit-animation-duration: 1s;
  -webkit-animation-iteration-count: 1;
  opacity: 1;
  display: block;
}


/* ===========================
 モーダル表示時に背景のスクロールを止める
=========================== */
body.modal-open {
	overflow: hidden;
}
