body {
  min-height: 100%;
  position: relative;
}

.kana {
  font-size: 0.8rem;
  letter-spacing: 0.2em;

}


.eMain {
  margin: 0;
  overflow-x: hidden;

}

.eMain h2 {
  width: 100%;
  text-align: center;
  letter-spacing: 0.5em;
}

/* イントロ */
.intro {
  padding: 100px 15%;
  margin: 0 auto;
  max-width: 100%;
  align-items: center;
}

.introTitle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  writing-mode: vertical-rl;
  margin: 0 auto;
}


.introTitle h2 {
  text-align: center;
  /* color: #B48A78; */
  color: var(--main-color);

}



.introTitle img {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
}

.intro h3 {
  margin: 70px auto;
  line-height: 1.5;
  text-align: center;
  /* color: #B48A78; */
  color: var(--main-color);


}

.intro p {
  text-align: center;
  margin: 40px auto;
}




/* 説明 */
.description {
  margin: 0 auto;
  padding: 0 10%;
}

.description h2 {
  /* color: #B48A78; */
  color: var(--main-color);

}

.description p {
  text-align: center;
  margin: 10px 0;
  line-height: 2;
  padding: 0 10%;

}

.description img {
  display: block;
  width: auto;
  max-width: 500px;
  height: auto;
  margin: 80px auto;
  box-shadow: 15px 15px 10px rgba(0, 0, 0, 0.25);

}

/* 時間 */
.detail {
  position: relative;
  margin: 80px 13%;
  padding: 30px;
  text-align: center;
  border: 3px double var(--main-color);

}

.detail h2 {
  color: var(--main-color);
}

.detailWrapper {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.detail p {
  line-height: 2;

}


.detail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: url("../images/image/crest2.png") no-repeat center center;
  background-size: contain;
  opacity: 0.1;
}


/* 補足 */
.note {
  margin: 80px 15%;
  background-color: #fcf4fe;
  border: 1px solid #c8bfb3;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  line-height: 2;
  padding: 40px;
  position: relative;
}

.note::before,
.note::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  top: 30px;
  background-color: #fcf4fe;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.note::before {
  left: 10px;
  background-image: url(../images/event/note1.png);
}

.note::after {
  right: 10px;
  background-image: url(../images/event/note2.png);
}

.note h3 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px dashed #c8bfb3;
  z-index: 5;
  padding-bottom: 10px;
}

.note p {
  font-size: 18px;
  margin-bottom: 20px;
  text-indent: 1em;
}

/* 形代 */
.usage {
  padding: 100px 15%;
  margin: 0 auto;
  text-align: center;
}

.usage h4 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  color: var(--main-color);

}

.usage h5{
  display: inline-block;
  margin: 0 auto;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #874897;
}

.usage p {
  text-align: center;
  margin-bottom: 15px;

}

.usageGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px auto;
  place-items: center;
}

.usageItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.usageItem img {
  width: 100%;
  height: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 15px;
}

.usageItem img:hover {
  transform: scale(1.05);
}

.usageItem p {
  font-size: 18px;
  line-height: 1.5;
}

/* 例祭 */
.reisai{
  padding: 100px 10%;;
}

.reisai h2{
  color: #874897;
  margin-bottom: 30px;
}

.reisai p{
  /* text-align: center; */
  line-height: 2;
}

.reisai .homotuden{
  padding: 80px 20% 0;
  width: 100%;

}


/* タブレット */
@media (max-width: 1024px) {

  body::before,
  body::after {
    width: 5%;
  }

  /* イントロ */
  .intro {
    margin: 80px auto;
    padding: 0 7%;

  }

  .introTitle img {
    width: 100px;
    padding-bottom: 50px;
  }


  .intro h3 {
    margin: 0 10px;
  }

  .intro p {
    margin: 0 10px;
  }

  .introImg {
    width: 40vw;
    height: auto;
  }

  /* 説明 */
  .description img {
    width: 50vw;

  }

  /* 時刻 */

  .detail {
    margin: 100px 7%;
  }

  /* 補足 */

  .note {
    padding: 20px;
    margin: 100px 7%;
  }

  .note h3 {
    font-size: 24px;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
  }

  .note p{
    font-size: 16px;
  }


  .note::before,
  .note::after {
    top: 10px;
  }

  /* 形代 */

  .usage {
    padding: 100px 7%;
    margin: 0 auto;
  }

  .usage h5 {
    font-size: 1.4rem;
  }

  .usageGrid {
    margin: 40px auto;
    max-width: 600px;
  }

  .usageItem {
    max-width: 250px;
  }

  .usageItem img {
    max-width: 300px;
  }

}

/* スマホ */
@media (max-width: 600px) {

  body::before,
  body::after {
    width: 3%;
  }

  /* イントロ */

  .introTitle h2 {
    margin: 0 15px;
  }

  .introTitle img {
    width: 70px;
  }

  .intro p {
    line-height: 1.8;

  }

  .introImg {
    width: 35vw;
  }

  /* 説明 */
  .description {
    padding: 0 3%;
  }

  
  .description p {
    line-height: 1.8;
  }

  .description img{
    margin: 40px auto;
  }

  /* 時間 */

  .detail {
    margin: 80px 5%;
  }

  .detail::before{
    width: 200px;
    height: 200px;
  }

  .detail h2 {
    font-size: 28px;
  }

  .detail h3 {
    font-size: 18px;
  }

  .detail p {
    font-size: 14px;
  }

  /* 補足 */

  .note {
    margin: 100px 5%;
  }

  .note h3 {
    font-size: 14px;
    letter-spacing: 0.3rem;
  }

  .note::before,
  .note::after {
    top: 5px;
    width: 25px;
  }


  .note p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .kana {
    font-size: 0.6rem;
  }

  /* 形代 */
  .usage {
    padding: 20px 5% 100px;
  }


  .usage h4 {
    font-size: 1.7rem;
  }

  .usage h5 {
    font-size: 1.3rem;
  }

  .usageGrid {
    margin: 40px auto;
    max-width: 600px;
  }

  .usageItem {
    max-width: 150px;
  }

  .usageItem p {
    font-size: 12px;
  }

  .usageItem img {
    max-width: 300px;
  }


}

.textImageWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 100px auto;
    flex-wrap: wrap;
    gap: 10px;
}

.textBlock {
    width: 55%;
    padding: 15px;
}

.sectionText {
    line-height: 1.8;
    margin-bottom: 1.2em;
}

.sectionTop{
    margin-bottom: 10px;
}

.imageBlock {
    width: 40%;
    display: flex;
    justify-content: center;
    padding: 15px;

}

.imageBlock img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;

}







@media (max-width: 1024px) {

    .gokitouSection {
        padding: 0 8%;
    }

    .gokitouSection p {
        font-size: 1.5rem;
    }

    .gokitouSection dd {
        font-size: 1.6rem;
    }

    .textBlock,
    .imageBlock {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .textImageWrapper {
        max-width: 90vw;
    }

    .imageBlock img {
        margin: 80px auto ;
        width: 70vw;
    }

    .textImageWrapper.reverse .imageBlock {
        order: 2;
    }
    
    .textImageWrapper.reverse .textBlock {
        order: 1;
    }
   


    .centerText {
        font-size: 1.2rem;
        margin-top: 0;
    }

    .gokitouImg {
        width: 70vw;
    }

    .sectionTop{
        margin-bottom: 40px;
    }


}

