.faq__inner {
  margin-bottom: 40px;
}

.faq_page__title {
  color: #333;
  font-size: 25px;
  margin-bottom: 20px;
}

.faq-item {
  border: 2px solid #333;
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  color: #333;
  background-color: #f9f9f9;
}

.btn-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 16px;
  transition: max-height 0.2s ease-out, padding 0.2s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 700px;
  padding: 20px;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.faq-answer__img {
  width: 60%;
  margin: 20px auto 0;
}


@media (max-width: 450px) {
  .faq__inner {
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .faq_page__title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .faq-question {
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
  }

  .btn-icon {
    right: 5px;
    font-size: 20px;
  }

  .faq-answer {
    font-size: 13px;
    line-height: 1.6;
  }

  .faq-item.active .faq-answer {
    padding: 15px;
  }
  .faq-answer__img {
  width: 100%;
}
}

.faq-answer__img--inner {
  display: flex;
  margin-top: 20px;
}



@media (min-width: 451px) {
  .faq-answer__img--inner {
    align-items: stretch; /* flexアイテムの高さを揃える */
  }

  .faq-answer__img img {
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったまま要素を埋める */
  }
}
