/* =========================
   FAQ 全体
========================= */
.faq-section {
  padding: 100px 0;
}
/* =========================
   item
========================= */
.faq-item {
  border-bottom: 1px solid #e5e5e5;
}
/* =========================
   question
========================= */
.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 35px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}
/* 左側まとめ */
.faq-left {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
}
/* Q */
.faq-q {
  color: #06379f;
  font-weight: 700;
  min-width: 52px;
  line-height: 1.7;
}
/* 本文 */
.faq-qtext {
  font-weight: 600;
  line-height: 1.8;
  color: #000;
}
/* =========================
   ＋ / − アイコン
========================= */
.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: #06379f;
  transition: 0.3s ease;
}
/* 横線 */
.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
/* 縦線 */
.faq-icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
/* open → − */
.faq-item.active .faq-icon::after {
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
}
/* =========================
   answer（ここ重要修正）
========================= */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}
.faq-answer > p {
  overflow: hidden;
}
.faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  padding-left: 10px;
}
/* open */
.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  padding: 0 20px 22px;
}
/* hover */
.faq-question:hover {
  opacity: .85;
}
/* =========================
   SP
========================= */
@media (max-width: 768px) {
  .faq-section {
    padding: 50px 0;
  }
  .faq-icon {
    width: 12px;
    height: 12px;
  }
  .faq-title {
    font-size: 22px;
    margin-bottom: 40px;
  }
  .faq-question {
    padding: 20px 0;
    font-size: 15px;
    text-align: left;
  }
  .faq-qtext {
    padding-right: 15px;
    font-size: 15px;
  }
  .faq-answer p {
    font-size: 15px;
    padding-left: 0;
  }
  .faq-answer {
    padding: 0 14px;
  }
  .faq-item.active .faq-answer {
    padding: 0 0 20px 0;
  }
  .faq-q {
    min-width: 20px;
    font-size: 15px;
  }
}