@import url("/wp/wp-content/themes/ryukyugobyo_2025/styles/components/selector.css");

.faq-container {
  max-width: 984px;
  margin: 0 auto 8rem;
  overflow: hidden;
  padding: 0 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  background: #e5e3d7;
  padding: 1.6rem 1.6rem 1.7rem 1.6rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  transition: background-color 0.3s ease;
  border-radius: 2rem 2rem 0 0;
  gap: 1rem;
}

.question-text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.toggle-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background-image: url(/wp/wp-content/themes/ryukyugobyo_2025/images/common/arrow-dropdown.svg);
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.5s ease;
}

.faq-question.active .toggle-icon {
  transform: scaleY(-1);
}

.faq-answer {
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq-answer.active {
  max-height: 500px;
  transition: max-height 0.8s linear;
}

.answer-content {
  padding: 1rem;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.16);
  border-radius: 0 0 2rem 2rem;
}

.faq-title {
  margin: 2rem auto;
}