/* FAQ Page */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-question {
  position: relative;
  font-weight: 700;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

/* Custom animated plus/minus icon */
.faq-question::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out-cubic);
}

.faq-item[open] > .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

/* ▼▼▼ JavaScript制御を前提とした、max-heightによる滑らかなアニメーションスタイル ▼▼▼ */

/* Answer container for smooth height transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-cubic);
}

/* Inner content for smooth opacity transition */
.faq-answer-content {
  padding-bottom: 24px;
  color: var(--muted);
  line-height: 1.8;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* When the accordion is open, fade in the content */
.faq-answer.is-open .faq-answer-content {
  opacity: 1;
  transition-delay: 0.1s; /* Start fading in slightly after height transition begins */
}
/* ▲▲▲ 変更ここまで ▲▲▲ */

