.faq-wrapper {
  padding-top: 60px;
}

.faq-content-section {
  max-width: 1040px;
  margin: 0 auto;
}
/* FAQ Title Section */
.faq-title-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  margin-bottom: 16px;
  background-color: #000000;
  border-radius: 8px;
}

.faq-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5em;
  color: #FFFFFF;
  margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 1040px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* FAQ Question */
.faq-question {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px 16px 20px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F5F5F5;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f8f8f8;
}

.faq-question-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.faq-question-label {
  width: 40px;
  height: 40px;
  background-color: #FBE800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-label-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25em;
  color: #000000;
}

.faq-label-text-white {
  color: #FFFFFF;
}

.faq-question-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.8em;
  color: #000000;
  flex: 1;
}

.faq-toggle-btn {
  width: 32px;
  height: 32px;
  background-color: #E9E9E9;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-toggle-btn:hover {
  background-color: #d9d9d9;
}

.faq-toggle-btn svg {
  width: 16px;
  height: 16px;
}

/* FAQ Answer */
/* Accordion animation base (keep element in flow for transition) */
.faq-answer {
  display: block; /* keep mounted to allow transition */
  background-color: #FFFFFF;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  max-height: 0; /* collapsed */
  opacity: 0;
  transform: translateY(-4px);
  padding: 0 32px 0 20px; /* collapse vertical padding when closed */
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
}

.faq-answer.active {
  background-color: #e9e9e9;
}

.faq-answer-content {
  display: flex;
  gap: 16px;
}

.faq-answer-label {
  width: 40px;
  height: 40px;
  background-color: #00A854;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-answer-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
  flex: 1;
}

.faq-answer-text p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.9em;
  color: #000000;
  margin: 0;
}

/* FAQ Item Active State */
.faq-item.active .faq-question {
  border-radius: 8px;
}

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

.faq-item.active .faq-toggle-btn {
  transform: rotate(0deg);
}

.faq-item.active .faq-answer {
  position: relative;
  max-height: 600px; /* sufficiently large to reveal content */
  opacity: 1;
  transform: translateY(0);
  padding: 16px 32px 16px 20px; /* restore vertical padding when opened */
}
.faq-item.active .faq-answer::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: #e9e9e9;
}

@media (max-width: 1200px) {
  .faq-accordion {
    width: 100%;
  }
  .faq-wrapper {
    padding-top: 28px;
  }
  .faq-title {
    font-size: 18px;
    font-weight: bold;
  }
  .faq-question-text {
    font-size: 14px;
  }
  .faq-toggle-btn {
    width: 24px;
    height: 24px;
  }
  .faq-question {
    padding: 12px;
  }
  .faq-answer {
    padding: 0 12px; /* closed state horizontal padding only */
  }
  .faq-item.active .faq-answer {
    padding: 12px; /* open state */
  }
  .faq-answer-text p {
    font-size: 14px;
    line-height: 1.8em;
  }
  .faq-answer-label {
    /* width: 24px;
    height: 24px; */
  }
  .faq-answer-content {
    /* gap: 8px; */
  }
  .faq-answer-text {
    gap: 4px;
  }
  .faq-accordion {
    margin-bottom: 56px !important;
  }
}

