.modal_open .thumnail{
    display:flex;
    justify-content:space-between;
} 
.modal_open .thumnail div{
    width:48%;
}
.modal_open .thumnail img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius: 5px 5px 0 0;
}

.modal_open .thumnail .before p{font-size: 1.4rem;font-weight: bold; text-align: center; color: #333; background: #B0B922; border-radius: 0 0 5px 5px;}
.modal_open .thumnail .after p{font-size: 1.4rem; font-weight: bold; text-align: center; color: #FFF; background: #036738; border-radius: 0 0 5px 5px;}



.modal_box {
    position: fixed;
    z-index: 7777;
    display: none;
    width: 96%;
    max-width: 840px;
    margin: 0 auto;
    padding: 20px 2vw 20px;
    border: 2px solid #aaa;
    text-align: center;
    background: #fff;
    box-sizing: border-box;
    left: 0;
    right: 0;
    top: 25px;
    height:fit-content;
    max-height:100vh;
    overflow: auto;
}
.modal_content_wrap{
    position:relative;
    padding-top:20px;
    padding-bottom:80px;

}

.modal_box h2{
    margin-top:20px;
    margin-bottom:20px;
}
 
.modal_close {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 62px;
    font-size: 46px;
    color: #000;
    line-height: 62px;
    text-align: center;
    background: #e6e6e6;
}
 
.modal_close i {
    line-height: 62px;
    vertical-align: bottom;
}
 
.modal_bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 6666;
    display: none;
    width: 100%;
    height: 120%;
    background-color: rgba(0,0,0,0.7);
}
 
.link_area {
    overflow: hidden;
    max-width: 410px;
/*
    margin: 60px auto 0;
*/
    margin: 0 auto;
    text-align: center;
}
 
.link_area .modal_link {
    display: inline;
}
 
.link_area .prev{
    position:absolute;
/*    top:50%;
    left:0;
*/
    bottom:10px;
    left:0px;
}

.link_area  .next{
    position:absolute;
/*
    top:50%;
    right:0;
*/
    bottom:10px;
    right:0px;
}
 


.link_area .modal_link a {
    display: inline-block;
    width: 50px;
    color: #FFF;
    line-height: 2.5;
    text-decoration: none;
    background-color: rgb(0,0,0,0.75);
}
 
.link-area ul li.modal_link:first-child a {
    float: left;
}
 
.link-area ul li.modal_link:last-child a {
    float: right;
}
 
 /*ギャラリー*/
.gallery1 .content{max-width:1080px; margin:0 auto; padding:0 15px; display:flex; flex-wrap:wrap; justify-content:space-between;}
.gallery1 .content::after{  content:""; display: block; width:30%;}
.gallery1 .box{width:30%; margin-bottom:30px;}
.gallery1 .photo{display:flex; justify-content:space-between; margin-bottom:30px;}
.gallery1 .photo div{width:48%;}
.gallery1 .photo img{width:100%; object-fit:cover;}
.gallery1 .photo .before p{font-size: 2.4rem;font-weight: bold; text-align: center; color: #333; background: #B0B922; border-radius: 0 0 5px 5px;}
.gallery1 .photo .after p{font-size: 2.4rem; font-weight: bold; text-align: center; color: #FFF; background: #036738; border-radius: 0 0 5px 5px;}
.gallery1 span{font-weight:bold;}
.gallery1 .text{font-size:1.4rem; text-align:left;}
@media screen and (max-width: 769px) {
 
/*  ウィンドウサイズ769px以下の時のスタイル  */
 
  .modal_content_wrap{
    min-height:85vh;
  }
 
  .modal_close {
      width: 40px;
      line-height: 40px;
      font-size: 30px;
  }
 
  .modal_close i {
      line-height: 44px;
  }
 
  .link_area {
      margin: 25px auto 0;
  }
 
  .link_area .modal_link a {
      margin: 0 auto;
  }
 
  .link_area ul li.modal_link:first-child a {
      float: none;
      margin-top: 0;
  }
 
  .link_area ul li.modal_link:last-child a {
      float: none;
  }
 
  .gallery1 .box{width:100%;}

  .gallery1 .photo .before p{font-size: 1.2rem;}
  .gallery1 .photo .after p{font-size: 1.2rem;}


}

