@charset "utf-8";

/* 基本font-sizeを10pxに固定 */
html {
  font-size: 62.5%
}

html {
  scroll-behavior: smooth;
}

/* ↓↓↓ reset css ↓↓↓ {*/
*,*::before,*::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
img,iframe {
  display: block;
  width: 100%;
}
ul {
  list-style: none;
}
address {
  font-style: normal;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,h2,h3,h4,h5 {
  font: inherit;
}
input,button,textarea,select {
  background: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
}
th,td {
  font-weight: normal;
}
/* ↑↑↑ reset css ↑↑↑ */

/* --- 変数定義 --- */
:root {
  --def-txt-bk: #333;
  --key-col: #a07232;
  --red-col: #d22814;
}


body {
  font-size: 1.8rem;
  font-family: 'Zen Old Mincho', serif;
  color: var(--def-txt-bk);
  letter-spacing: 0.08rem;
  line-height: 2;
}

@media screen and (max-width:768px) {
  body {
    font-size: 1.6rem;
    letter-spacing: 0.08rem;
    line-height: 1.6;
  }
}


.cont-wrap {
  width: 95%;
  max-width: 960px;
  margin: 0 auto;
}


nav ul{
  width: 100%;
  padding: 0 2%;
  margin-bottom: 80px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul li{
  width: 32%;
}
nav ul li a{
  display: block;
  line-height: 70px;
  text-align: center;
  font-size: 2rem;
  color: #333;
  background-color: #eee;
  border-radius: 6px;
  transition: 0.4s;
}
nav ul li a:hover,
nav ul li a.active{
  color:#fff;
  background-color: #7c2324;
}

header h1 {
  font-size: 3.6rem;
  font-weight: bold;
  text-align: center;
}

header h1>span {
  display: inline-block;
}

header h2 {
  margin-top: 40px;
  font-size: 2.4rem;
  line-height: 1.8;
  text-align: center;
}

header h1::before {
  content: url(./img/iwai.svg);
  display: block;
  width: 80px;
  margin: 0 auto 40px;
}

.head-wrap {
  position: relative;
  margin-top: 60px;
}

.img-paper figcaption {
  text-align: right;
}

.img-daishi figcaption {
  text-align: center;
}

.img-paper figcaption,
.img-daishi figcaption {
  font-size: 0.75em;
}

.img-daishi {
  position: absolute;
  left: 50%;
  bottom: -40%;
  transform: translateX(-50%);
  width: 50%;
}

.miidera-logo{
  width: 30%;
  margin: 20% auto 0;
}

@media screen and (max-width:768px) {
 
  nav ul{
    margin-top: 20px;
    margin-bottom: 40px;
  }
  nav ul li a{
    font-size: 1.8rem;
  }
  .cont-wrap {
    width: 90%;
  }

  header h1 {
    margin-top: 80px;
    font-size: 3.2rem;
  }

  header h2 {
    margin-top: 20px;
    font-size: 2rem;
  }

  header h1::before {
    width: 60px;
    margin: 0 auto 20px;
  }

  .head-wrap {
    margin-top: 40px;
  }

  .img-paper figcaption,
  .img-daishi figcaption {
    font-size: 0.4em;
    margin-top: 1em;
  }

  .img-daishi {
    position: absolute;
    left: 30%;
    bottom: -50%;
    width: 60%;
  }
  .miidera-logo{
    width: 50%;
    margin: 30% auto 0;
  }
}

/* –––––– */

#about {
  margin-top: 100px;
}
.desc{
  text-align: justify;
}

#about .title {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1em;
  color: var(--red-col);
}

#about .title span {
  display: inline-block;
}
.desc strong{
  font-weight: bold;
}

.desc+.desc {
  margin-top: 1em;
}

#about .mov {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 60px;
}

#about .mov iframe {
  width: 100%;
  height: 100%;
}

@media screen and (max-width:768px) {
  #about .title {
    font-size: 2.6rem;
  }
  #about .mov {
    margin-top: 40px;
  }
}


#enchin .title,
#nittou-guhou .title {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1em;
  color: var(--key-col);
  display: flex;
  align-items: center;
}

#enchin .title span {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  margin-left: 1em;
}

#nittou-guhou .title span {
  display: inline-block;
  margin-left: 0.5em;
}

#enchin .title::before,
#nittou-guhou .title::before {
  content: url(./img/icon.svg);
  display: block;
  width: 36px;
  margin-right: 0.3em;
}

#enchin .flex {
  display: flex;
  justify-content: space-between;
  flex-flow: row nowrap;
  gap: 40px 20px;
  margin-top: 40px;
}

#enchin .flex figcaption {
  font-size: 1.6rem;
  text-align: center;
}

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

  #enchin .title,
  #nittou-guhou .title {
    font-size: 3rem;
    line-height: 1.5;
    margin-bottom: 1em;
    flex-flow: column wrap;
    text-align: center;
  }

  #enchin .title span {
    display: block;
    font-size: 0.6em;
    margin-left: 0;
  }

  #enchin .title::before,
  #nittou-guhou .title::before {
    width: 40px;
    margin-right: 0;
  }
  #nittou-guhou .title span {
    margin-left: 0;
  }

  #enchin .flex {
    flex-flow: column nowrap;
    margin-top: 30px;
  }

  #enchin .flex figcaption {
    font-size: 1.4rem;
    margin-top: 1em;
  }
}



#contact .title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1em;
}

#contact ul li {
  font-size: 1.6rem;
  line-height: 2;
}

section+section {
  margin-top: 100px;
}

main+footer {
  margin-top: 100px;
}

.copyright {
  padding: 24px 0;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  color: #fff;
  background-color: #000;
  margin-top: 120px;
}

@media screen and (max-width:768px) {
  #contact .title {
    font-size: 2rem;
  }

  #contact ul li {
    font-size: 1.5rem;
    line-height: 1.8;
  }

  section+section {
    margin-top: 80px;
  }

  main+footer {
    margin-top: 80px;
  }
}

.fade-in {
  opacity: 0;
  transform: translate(0, 20px);
  transition: all 1000ms;
}

.fade-in.scroll-in {
  opacity: 1;
  transform: translate(0, 0);
}