@media screen and (max-width: 1024px) {
    h2 img {
        width: 100%;
    }
}
img{
  max-width: 100%;
}

.hero{
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
}
.hero img{
    width: 100%;
    max-width: 980px;
}

hr{
  background-color: #999;
  margin-bottom: 40px;
}

.ttl h2{
  position: relative;
  font-size: 28px;
  font-family: serif;
  text-align: center;
  width: 860px;
}
.ttl h2::after{
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  background-image: url(../img/left_i.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 100px;
  height: 60px;
}
.ttl h2::before{
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  background-image: url(../img/right_i.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 100px;
  height: 60px;
}

.flex_box{
  width: 840px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin:10px auto 40px;
}

.flex_box .pic{
  width: 400px;
}
.flex_box .txt{
  width: 400px;
}

.flex_box p{
  font-size: 16px;
  line-height: 1.8;
  font-family: serif;
}

.flex_box p span{
  font-size: 13px;
}

@media screen and (max-width: 1024px) {
hr{
  background-color: #999;
  margin-bottom: 40px;
}
section#contact{
  padding: 0;
  width: 100%;
}

.wrapper{
  padding: 0;
  width: 94vw;
  margin:0px auto 0px;
}

.ttl h2{
  font-size: 4.5vw;
  width: 100%;
}
.ttl h2::after{
  top: 30%;
  width: 10vw;
  height: 10vw;
}
.ttl h2::before{
  top: 30%;
  width: 10vw;
  height: 10vw;
}

.flex_box{
  width: 86vw;
  flex-wrap: wrap;
  flex-direction: column;
  margin:10px auto 40px;
  gap: 20px;
}

.flex_box .pic{
  width: 100%;
}
.flex_box .txt{
  width: 100%;
}

.flex_box p{
  font-size: 3.6vw;
  line-height: 1.8;
  font-family: serif;
}

.flex_box p span{
  font-size: 2.6vw;
}
  
}