.txt-area {
  width: 95%;
  margin: auto;
  padding-top: 80px;
}

.faq-item {
  background-color: #fff;
  margin-bottom: 12px;
  cursor: pointer;
}

.faq-question,
.faq-answer {
  display: flex;
  justify-content: space-between;
  padding: 16px 3%;
  position: relative;
}

.faq-question {
  border-bottom: 1px solid #e60012;
  align-items: center;
}

.label-wrap {
  display: flex;
}

.faq-question .label,
.faq-answer .label {
  color: #e60012;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
}

.faq-question .text,
.faq-answer .text {
  flex: 1;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.q-body {
  flex: 0 0 88%;
}

.faq-answer {
  background: #f6f6f4;
  overflow: hidden;
  max-height: 0;
  padding: 0 3%;
  transition:
    max-height 0.5s ease,
    padding 0.3s ease;
}

.faq-answer p {
  flex: 0 0 100%;
}

.faq-item.open .faq-answer {
  max-height: 1000px; /* 十分な高さを指定（動的にJSで調整も可） */
  padding: 16px 3%;
}

.toggle-icon {
  flex: 0 0 7%;
  max-width: 24px;
  transition: transform 0.3s;
}

.faq-item.open .toggle-icon {
  transform: rotate(180deg);
}

.toggle-icon img {
  width: 100%;
}

@media screen and (min-width: 768px) {
  .main-img .area {
    height: 478px;
  }

  .heading-txt {
    text-align: center;
  }

  .faq-question > span {
    font-size: inherit;
  }
  .label-wrap {
    align-items: center;
  }

  .label {
    font-size: 24px;
  }
  .q-body {
    flex: 0 0 100%;
  }
}
