@charset "UTF-8";
/* モーダル全体(背景＋本体) */
.modal{
    display: none;
    position: fixed;
    top: 0;
	left: 0;
    height: 100vh;
    width: 100%;
    z-index: 999;
}
/* モーダル背景 */
.modal-bg{
position: absolute;
height: 100vh;
width: 100%;
background-image: url(../img/modal_bg.png);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-color:rgba(22,27,61,0.95);
}
/* モーダル本体 */
.modal-content{
  position: absolute;
  top: 50%;
  right: 0%;
  transform: scale(0) translateY(-50%);
  height: auto;
  padding: 0 4%;
  max-width: 500px;/* これが無いと「overflow:scroll」が利かない */
width: 100%;
transition: 0.15s;
transition-timing-function: ease-in-out;
}
.modal-popup{
transform: scale(1) translateY(-50%);
}
.modal_center .modal-content{
right: inherit;
left: 50%;
transform: translate(-50%,-50%);
}
/* モーダルウィンドウ表示中に記事本体を固定 */
body.fixed {
position: fixed;
width: 100%;
height: 100%;
left: 0;
}
.modal-content__allwrap{
position: relative;
max-width: 500px;
width: 100%;
height: 100%;
margin: 0 auto;
}
.modal-content__mainimage{
max-width: 100%;
width: 100%;
font-family: "Zen Kaku Gothic New", sans-serif;
font-weight: 400;
position: relative;
}
.modal-content__mainimage::before,
.modal-content__mainimage::after{
  content: "";
  display: block;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
}
.modal-content__mainimage::before{
  width: 320px;
  height: 52px;
  background-image: url(../img/modal_deco_top.svg);
  margin-bottom: 10px;
}
.modal-content__mainimage::after{
  width: 383px;
  height: 64px;
  background-image: url(../img/modal_deco_bottom.svg);
  margin-top: 10px;
}
@media only screen and (max-width: 767px){
  .modal-content__mainimage::before{
    width: 73%;
    height: 52px;
    background-image: url(../img/modal_deco_top_sp.svg);
    margin-bottom: 10px;
  }
  .modal-content__mainimage::after{
    width: 100%;
    height: 64px;
    background-image: url(../img/modal_deco_bottom_sp.svg);
    margin-top: 10px;
  }
}
.modal-content__mainimage h2{
  color: #301B0B;
  font-size: 23px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  line-height: 1.4;
}
.modal-content__mainimage h2::before,
.modal-content__mainimage h2::after{
  position: absolute;
  top: -48px;
}
.modal-content__mainimage h2::before{
  left: 0px;
}
.modal-content__mainimage h2::after{
  right: 0px;
}
.modal-content__mainimage h2 span{
  font-size: 16px;
}
.modal-content__mainimage p{
text-align: left;
  font-size: 16px;
  font-weight: 400;
  position: relative;

  background-color: #FFE1E9; /* 背景色 */
  background-image: linear-gradient(90deg, transparent 0%, transparent 50%, #FFE1E9 50%, #FFE1E9 100%), /* 点線1の色 */
                    linear-gradient(180deg, #fff 2px, transparent 2px); /* 点線2の色と太さ */
  background-size: 7px 100%, /* 点線1のサイズ */
                   100% 2.2em; /* 点線2のサイズ */
  line-height: 2.2em; /* 文字の高さ */
  padding-bottom: 2px; /* 最終行の下にも罫線を引く */
}
.modal-content__mainimage .bold{
  font-weight: 600;
  padding-bottom: 15px;
}
.modal-content__mainimage p span{
  font-size: 14px;
}
.modal-content__mainimage div{
  color: #301B0B;
  font-size: 15px;
  font-weight: 500;
}
.modal-content__mainimage div.modal_text_mt{
  margin-top: 12px;
}
.modal-content__mainimage a{
text-decoration: underline;
color: #000;
}
.modal-content .flex__layout{
width: 100%;
height: 100%;
padding: 25px 6% 20px;
border-radius: 30px;
background-color: rgba(255,255,255,0.9);
}
.modal-close {
position: absolute;
  bottom: inherit;
  top: 20px;
  right: 38px;
  text-align: right;
  pointer-events: none;
  max-width: 70px;
  z-index: 1;
}
a.js-modal-close {
display: block;
width: 100%;
height: 100%;
  pointer-events: all;
  position: relative;
  text-decoration: none;
  color: #000;
  font-size: 21px;
  line-height: 1;
}
a.js-modal-close span{
  width: 37px;
  height: 59px;
  display: inline-block;
  vertical-align: text-top;
}

@media only screen and (max-width: 767px){
  #retro_02 .modal-content__mainimage div:nth-child(2){
    text-indent: -25px;
  }
}
