@charset "UTF-8";

img {
  max-width: 100%;
  height: auto;
}

#main {
  margin-top: 0px;
}

.qa {
  margin-top: 46px;
}

.qa__inner {
  position: relative;
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  pointer-events: none; /* 背景画像がクリックを邪魔しないように */
}

@media screen and (max-width: 768px) {
  .qa__inner {
    /* padding-left: 14px; */
  }
}

.qa__bg-wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* position: relative; */
  position: absolute;
  top: 0px;
  min-height: 299px; /* 画像の高さに合わせて調整 */
  z-index: -1;
}

@media screen and (max-width: 768px) {
  .qa__bg-wrap {
    overflow: hidden;
    /* overflow: visible; */
    /* display: block; */
    top: -70px;
  }
}


.qa__bg1 {
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .qa__bg1 {
    width: 90px;
    /* width: 125px; */
    height: auto;
    position: absolute;
    top: 60px;
    left: 0px;
  }
}

@media screen and (max-width: 768px) {
  .qa__bg1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media screen and (max-width: 768px) {
  .qa__bg2 {
    width: 120px;
    height: auto;
  position: absolute;
  top: 40px;
  right: -43px;
  }
}

@media screen and (max-width: 768px) {
  .qa__bg2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.section-title-wrapper {
  text-align: center;
  padding-top: 74px;
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  .section-title-wrapper {
    padding-top: 4px;
  }
}

.title-image {
  display: block;
  margin: 0 auto 18px; /* 下に余白をつける */
  max-width: 378px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .title-image {
    max-width: 259px;
  }
}

.section-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 20px;
    letter-spacing: 1px;
  }
}


.qa__wrapper {
  padding-top: 130px;
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 160px;
  padding-left: 20px;
}

@media screen and (max-width: 768px) {
  .qa__wrapper {
    padding-top: 50px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 100px;
  }
}

.qa__container + .qa__container {
  margin-top: 70px;
}

@media screen and (max-width: 768px) {
  .qa__container + .qa__container {
    margin-top: 60px;
  }
}

.qa__subtitle {
  font-size: 22px;
  font-weight: 900;
  line-height: 44px; /* 200% */
}

@media screen and (max-width: 768px) {
  .qa__subtitle {
    font-size: 17px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
  }
}

.qa__items {
  margin-top: 4px;
}

@media screen and (max-width: 768px) {
  .qa__items {
    margin-top: 10px;
  }
}

.qa__item {
  padding: 10px 0;
}

@media screen and (max-width: 768px) {
  .qa__item {
    padding: 8px 0;
  }
}

.qa__question-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  padding: 11.5px 24px;
  background: #fff;
  border: 3px solid #6DB675;
  border-radius: 14px 14px 14px 14px;
  transition: border-radius 0.3s ease;
  /* border: 3px solid #DAE9C8; */
  /* background: repeating-linear-gradient(
    -45deg,
    #DAE9C8,
    #DAE9C8 3px,
    #FFFBCE 3px,
    #FFFBCE 6px
    ); */
  }

  .qa__item.active .qa__question-wrap {
    border-radius: 14px 14px 0 0;
  }

  /* .qa__item.is-open .qa__question-wrap {
    border-radius: 14px 14px 0 0;
  } */

  .qa__question {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  @media screen and (max-width: 768px) {
    .qa__question-wrap {
      padding: 6px 20px;
    }
  }
  
  .qa__q {
    color: #23B659;
    font-weight: 700;
    line-height: 37px; /* 185% */
    font-size: 20px;
    margin-right: 20px; /* Q: とテキストの間に10pxの余白を追加 */
    flex-shrink: 0;
  min-width: 25px;
  }

  @media screen and (max-width: 768px) {
    .qa__q {
      font-size: 14px;
      line-height: 180%; /* 25.2px */
      letter-spacing: 0.14px;
      margin-right: 10px;
    }
  }

  .qa__text {
    color: #23B659;
    font-weight: 700;
    line-height: 37px; /* 185% */
    font-size: 20px;
    font-weight: 700;
    /* text-shadow:
    -2px -2px 0 #FFFBCE,
    2px -2px 0 #FFFBCE,
    -2px  2px 0 #FFFBCE,
    2px  2px 0 #FFFBCE; */
}

@media screen and (max-width: 768px) {
  .qa__text {
    font-size: 14px;
    line-height: 180%; /* 25.2px */
    letter-spacing: 0.14px;
  }
}

.qa__icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  background-color: #23B659; /* 線の色 */
  transition: transform 0.3s ease;
}

.qa__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px; /* 横線 */
  transform: translateY(-50%);
}

.qa__icon::after {
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #23B659;
  transform: translateX(-50%) rotate(0deg);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 開いた時（ー） */
.qa__item.active .qa__icon::after {
  transform: translateX(-50%) rotate(90deg); /* 回転して横線に重なる */
  opacity: 0; /* 消す */
}

/* .qa__icon {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  color: #23B659;
  font-size: 26px;
  font-weight: 700;
  line-height: 37px;
  line-height: 36px; 
  transition: transform 0.3s;
}

@media screen and (max-width: 768px) {
  .qa__icon {
    font-size: 17px;
    line-height: normal;
    padding-left: 10px;
  }
}

.qa__question-wrap {
  cursor: pointer;
}

.qa__icon {
  transition: transform 0.3s ease;
}

.qa__item.active .qa__icon {
  content: "ー";
} */

.qa__answer-wrap {
  display: none;  /* ← これが必須！slideToggleはdisplayで開閉するので */
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  color: #fff;
  border-radius: 0 0 14px 14px;
  background: #71BE78;
  /* padding: 0 24px; */
  padding: 11.5px 24px;
  margin-top: -1px;
}

.qa__item.active .qa__answer-wrap {
  display: block; /* JSでslideDown後にblockになるが、念のため */
  padding: 11.5px 24px;
}
/* 
.qa__icon {
  transition: transform 0.3s ease;
} */


/* .qa__answer-wrap {
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  align-items: flex-start;
  width: 100%;
  color: #fff;
  border-radius: 0 0 14px 14px;
  background: #71BE78;
  padding: 0 24px;
  margin-top: -1px;
}

.qa__answer-wrap.is-active {
  max-height: 500px; 
  opacity: 1;
  padding: 11.5px 24px; 
}

@media screen and (max-width: 768px) {
  .qa__answer-wrap {
    padding: 0px 24px;
  }
} */

.qa__a {
  font-size: 20px;
  font-weight: 700;
  line-height: 37px; /* 185% */
  margin-right: 20px;
}

@media screen and (max-width: 768px) {
  .qa__a {
    font-size: 14px;
    line-height: 180%; /* 25.2px */
    letter-spacing: 0.14px;
    margin-right: 10px;
  }
}

.qa__answer {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 37px; /* 185% */
}

@media screen and (max-width: 768px) {
  .qa__answer {
    font-size: 14px;
    line-height: 180%; /* 25.2px */
    letter-spacing: 0.14px;
  }
}