/* ==========================================================================
   TOPページ FAQ（プレハブ（軽量鉄骨）のよくある質問）
   出典: サイトデザイン参照画像（FAQ）
   各項目は<details>/<summary>のネイティブ開閉。name属性を付けないため、
   複数同時に開ける＝1項目ずつ完結（他の項目と連動しない）。
   ========================================================================== */

.faq {
  scroll-margin-top: 150px;
  background: #f6f6f4;
  padding: var(--section-space-top) 0 109px;
}
.faq__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.faq__title {
  margin: var(--section-title-gap) 0 0;
  font-size: var(--section-title-size);
  font-weight: 800;
  line-height: var(--section-title-line-height);
  color: var(--color-text-on-light);
}

.faq__list {
  margin-top: var(--section-content-gap);
  border-top: 1px solid #e2e2de;
}

.faq-item { border-bottom: 1px solid #e2e2de; }

.faq-item__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 4px;
  transition: color 0.15s ease;
}
.faq-item__summary::-webkit-details-marker { display: none; }

.faq-item__badge {
  width: 12px;
  flex: none;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}
.faq-item__badge--q { color: var(--color-green-dark); line-height: 1.6; }
.faq-item__badge--a { color: var(--color-text-on-light); line-height: 1.85; }

.faq-item__question {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-green-dark);
}

/* ---- +/− アイコン（疑似要素2本、[open]で片方を回転させて切り替え） ---- */
.faq-item__toggle {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-green-dark);
  transition: transform 0.3s ease;
}
.faq-item__toggle::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-item__toggle::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-item__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ---- 開閉アニメーション（grid-template-rows: 0fr→1fr トリック、JS不要） ---- */
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
}
.faq-item[open] .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow: hidden;
  padding: 0 4px 28px;
}
.faq-item__answer-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #55605a;
}
.faq-item__answer-text > :first-child { margin-top: 0; }
.faq-item__answer-text > :last-child { margin-bottom: 0; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 640px) {
  .faq { scroll-margin-top: 70px; }
  /* PROCESSとの間に空要素はないため、通常のセクション余白に揃える。 */
  .faq { padding: var(--section-space-top) 0 var(--section-space-bottom); }
  .faq__list { margin-top: 32px; }
  .faq-item__summary {
    align-items: flex-start;
    gap: 14px;
    padding: 28px 2px;
  }
  .faq-item__summary .faq-item__toggle {
    margin-top: 1px;
  }
  .faq-item__answer-inner { gap: 14px; padding: 0 2px 22px; }
  .faq-item__question { font-size: 16px; }
}
