.text h3 {
    font-size: 25px;
    line-height: 32px;
}
.m-bg{
  z-index: -1;
  margin-top: 0;
}
.sec1 h2 {
  padding-bottom: 20px;
  font-size: 25px;
  line-height: 43px;
}
.sec1 .text h3 {
  text-align: center;
  margin-bottom: 20px;
}
.sec2{
  margin-bottom: 0;
}
.sec2 .s {
    padding-top: 0;
}
.s .left {
    margin-top: 0;
}
.sec2 .content .left,
.sec4 .content .left {
    max-width: none;
}
.sec3{
  margin-top: 0;
  margin-bottom: 0;
}
.sec3 .text h3 {
  margin-bottom: 20px;
}
.sec3 .text p{
  text-align: left;
}
.sec3 .content{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  column-gap: 60px;
  row-gap: 60px;
}
.sec3 .content .i{
  max-width: 570px;
}
.sec3 .content .i:nth-of-type(odd){
  margin-left: auto;
}
.sec3 .content .text{
  margin-top: 20px;
}
.sec4 .s:nth-child(odd) .right,
.sec5 .s:nth-child(odd) .right{
  grid-column: 1/2;
  grid-row: 1/2;
}
.sec4 .s:nth-child(odd) .left,
.sec5 .s:nth-child(odd) .left{
  grid-column: 2/3;
}
.sec4 .content > h3,
.sec5 .content > h3{
  font-size: 25px;
  line-height: 32px;
  text-align: center;
  
}
.sec4 .content .s,
.sec5 .content .s{
  display: grid!important;
  grid-template-columns: 1fr auto;
  width: 100%;
  column-gap: 95px;
  padding-bottom: 20px;
  padding-top: 20px;
}
.sec4 .content .s:nth-of-type(odd),
.sec5 .content .s:nth-of-type(odd){
  grid-template-columns: auto 1fr;
}
.sec4 .text,
.sec5 .text{
    max-width: 600px;
    margin-right: 25px;
}
.sec4 .text h3,
.sec5 .text h3{
  letter-spacing: 0.14em;
  line-height: 44px;
  margin-bottom: 20px;
}
.sec4 .text p,
.sec5 .text p{
  text-align: left;
}
.sec4 .content .s:nth-of-type(even) .right .text,
.sec5 .content .s:nth-of-type(even) .right .text{
  margin-right: 0;
  padding-left: 25px;
  margin-left: auto;
}
.sec5{
  margin-top: 40px;
  margin-bottom: 40px;
}
.sec5 .content .s:nth-last-child(1) .text{
  max-width: 800px;
}
.sec5 .content .s:nth-last-child(1) .text p{
  max-width: 610px;
  margin-right: auto;
  margin-left: 0;
}

@media only screen and (max-width: 1600px) {
  .sec2 .content .s,
  .sec4 .content .s,
  .sec5 .content .s{
    column-gap: 50px;
    grid-template-columns: 1fr 1fr;
  }
  .sec2 .content .s:nth-of-type(odd),
  .sec4 .content .s:nth-of-type(odd),
  .sec5 .content .s:nth-of-type(odd){
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (max-width: 1300px) {
  .s .left img{
      margin: 0 auto;
  }
  .sec2 .content .right{
    display: block;
  }
  .sec2 .text{
    margin: 20px auto 40px;
    max-width: 930px;
  }
  .sec2 .text p{
    max-width: none;
  }
  .sec2 .content .s{
    display: block!important;
  }
  .sec4 .content .s,
  .sec5 .content .s{
    grid-template-columns: 1fr;
    display: block!important;
  }
  .sec4 .content .s:nth-of-type(odd),
  .sec5 .content .s:nth-of-type(odd){
    grid-template-columns: 1fr;
  }
  .sec4 .text,
  .sec5 .text,
  .sec4 .content .s:nth-of-type(even) .right .text,
  .sec5 .content .s:nth-of-type(even) .right .text,
  .sec5 .content .s:nth-last-child(1) .text{
    margin: 20px auto 40px;
    max-width: 930px;
    padding-left: 0;
  }
  .sec5 .content .s:nth-last-child(1) .text p{
    max-width: 100%;
  }
}

@media only screen and (max-width: 670px) {
  .sec3{
    margin-bottom: 40px;
  }
  .sec3 .content{
    grid-template-columns: 1fr;
  }
  .sec3 .content .i{
    margin: 0 auto;
  }
  .sec3 .content .i:nth-of-type(odd){
    margin: 0 auto;
  }
  .sec3 .content .text{
    margin-bottom: 40px;
  }
}

/*.footer1 { padding: 40px 4.8vw; background: #FAFAFA;}
.footer1 h2 { margin-bottom: 20px; text-align: center; font-size: 2.4rem; letter-spacing: 3px;}
.footer1 h2 i { display: block; padding-top: 8px; font-size: 1.4rem; color: #B09833;}
.footer1 ul { display: flex; justify-content: space-between;}
.footer1 li { width: 48%;}
.footer1 li a { position: relative; display: block; height: 156px; overflow: hidden;}
.footer1 li a span { position: absolute; top: 50%; left: 32px; transform: translateY(-50%); font-size: 1.6rem; letter-spacing: 3px; color: #FFF;}
.footer1 li a span strong { display: block; margin-top: 4px; font-size: 3rem; letter-spacing: 4px; font-size: 22px;}
.footer1 li a figure { padding-top: 156px;}
.footer1 li a figure img { position: absolute; top: 0; left: 0; transform: scale(1); transition: all 1.6s ease 0s;}
.footer1 li a:hover { opacity: 1;}
.footer1 li a:hover figure img { transform: scale(1.1); filter: grayscale(100%);}

@media screen and (max-width: 1024px) {
  .footer1 { padding: 20px 4.8vw;}
  .footer1 h2 { margin-bottom: 20px;}
  .footer1 ul { display: block;}
  .footer1 li { width: auto; margin-top: 16px;}
}*/

/* @media screen and (min-width:769px){
  #miideraWrapBox h3{
    padding-top: 100px;
  }
} */

@media screen and (min-width:769px){
  #rekishi{
    padding-top: 100px;
  }
  #rekishi.text{
    padding-top: 100px;
    margin-top:-100px;
  }
}

.miidera .sec3,
.miidera .text,
#miideraWrapBox{
  padding-left: 30px !important;
  padding-right: 30px !important;
}


/* ▽contents bg 
-------------------------------------*/
#miideraWrapBox.sec1{
  background: url(../images/miidera_bg03.svg) no-repeat 5% 100%;
  background-size: 20%;
}

@media screen and (max-width:768px){
  #miideraWrapBox.sec1{
    background-size: 45%;
  }
}


#bgSpot{
  background: url(../images/miidera_bg06.svg) rgba(255,255,255,.6) no-repeat 110% 140% !important;
  background-size: 50% !important;
}

@media screen and (max-width:768px){
  #bgSpot{
    background-position:140% 112% !important;
    background-size: 65% !important;
  }
}

#bgTendai{
  background: url(../images/miidera_bg04.svg) rgba(255,255,255,.8) no-repeat 200% 100% !important;
  background-size: 68% !important;
}

#bgDensetsu{
  background: url(../images/miidera_bg05.svg) rgba(255,255,255,.8) no-repeat -40% 120% !important;
  background-size: 56% !important;
}

@media screen and (max-width:768px){
  #bgDensetsu{
    background-position:-40% 100%!important;
    background-size: 65% !important;
  }
}

#bgKyakuden{
  background: url(../images/miidera_bg02.svg) rgba(255,255,255,.6) no-repeat 130% 0% !important;
  background-size: 50% !important;
}

#bgLast{
  background: url(../images/miidera_bg01.svg) rgba(255,255,255,.6) no-repeat 120% 160% !important;
  background-size: 50% !important;
}

@media screen and (max-width:768px){
  #bgLast{
    background-size: 70% !important;
  }
}
