@import url("./root.css");

/* FAQ ページスタイル */
.faq {
  padding: 80px 0;
}

.faq__title {
  margin-bottom: 60px;
}

.faq__content {
  width: 100%;
}

.faq__content-item {
  margin-bottom: 20px;
  border: 2px solid var(--color-yellow);
  background-color: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 質問ボタン */
.faq__content-question {
  width: 100%;
  padding: 0 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.faq__content-question-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 1rem;
  font-family: var(--font-sans_serif);
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 20px 0;
}

.faq__content-question-text span {
  font-size: 2.1rem;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 10px;
  margin-top: -8px;
}

/* 矢印アイコン */
.faq__content-question::after {
  content: '';
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--color-yellow);
  border-top: 3px solid var(--color-yellow);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq__content-item.is-active .faq__content-question::after {
  transform: translateY(-50%) rotate(-45deg);
}

.faq__content-item.is-active .faq__content-question-text {
  border-bottom: 1px solid var(--color-border-light-gray);
}

/* 回答エリア */
.faq__content-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__content-answer-inner {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 20px 30px 20px 90px;
  line-height: 2rem;
}

.faq__content-answer-inner p {
  margin-bottom: 10px;
}

.faq__content-answer-inner p:last-child {
  margin-bottom: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .faq {
    padding: 40px 0;
  }
  
  .faq__title {
    margin-bottom: 40px;
  }
  
  .faq__content-question {
    padding: 10px 15px;
  }
  
  .faq__content-question-text {
    padding: 20px 20px 20px 0;
    color: var(--color-dark-gray) !important;
  }

  .faq__content-question-text span {
    font-size: 1.5rem;
  }
  
  .faq__content-question-label {
    font-size: 1.1rem;
  }

  .faq__content-question::after {
    right: 15px;
  }
  
  .faq__content-answer-inner {
    padding: 0 20px 15px 20px;
  }
  
  .faq__content-question-icon {
    margin-left: 15px;
  }
}