.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-wrapper h2 {
  margin-top: 2rem;
}

@media screen and (max-width: 1024px), (orientation: portrait) {
  .faq-wrapper {
    width: 90%;
    margin: 0 auto;
  }
}

.faq-item {
  width: 100%;
  margin-bottom: 4px;
}

.faq-prefix-icon {
  width: 32px;
  height: 40px;
}

.faq-text {
  flex-grow: 1;
  font-size: 16px;
  color: #565656;
  line-height: 1.8;
}

@media screen and (max-width: 1024px), (orientation: portrait) {
  .faq-text {
    font-size: 14px;
  }
}

@media screen and (max-width: 520px) {
  .faq-text {
    font-size: 13px;
  }
}

.toggle-icon.plus {
  display: inline;
}

.toggle-icon.minus {
  display: none;
}

.faq-item.active .toggle-icon.plus {
  display: none;
}

.faq-item.active .toggle-icon.minus {
  display: inline;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ececec;
  padding: 20px;
  gap: 1rem;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.3s ease;
  font-family: inherit;
}

.faq-question:hover {
  background: #ececec;
}

.faq-answer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  display: flex;
  max-height: 0; /* 初期状態では非表示 */
  overflow: hidden; /* 内容がはみ出ないように */
  padding: 0 20px; /* 初期状態ではパディングをゼロに */
  gap: 1rem;
  background: #f8f8f8;
  transition: max-height 0.1s ease, padding 0.1s ease;
  color: #565656;
}

.faq-item.active .faq-answer {
  max-height: 400px; /* 表示時の最大高さ */
  padding: 20px; /* 表示時のパディング */
}
