@charset "utf-8";
/* FAQ全体 */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

/* 各質問ブロック */
.faq-item {
  border-bottom: 1px dotted #ccc; /* 点線区切り */
  padding: 20px 0;
}

/* summaryのデフォルト三角を消す */
.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
}

.faq-question::-webkit-details-marker {
  display: none;
}

/* Qの丸アイコン */
.q-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4dd64;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* 回答 */
.faq-answer {
  margin-top: 12px;
  padding-left: 40px; /* Qアイコン分インデント */
  line-height: 1.8;
}

/* 開いたときのアニメーション（軽め） */
.faq-item[open] .faq-answer {
  animation: fadeIn 0.3s ease;
}

/* summaryを横並び */
.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: bold;
}

.faq-question::-webkit-details-marker {
  display: none;
}

/* Qアイコン */
.q-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4dd64;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* プラス／マイナス */
.toggle-icon {
  margin-left: auto;
  width: 16px;
  height: 16px;
  position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  background: #5a331c;
}

/* 横線（＋と−共通） */
.toggle-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

/* 縦線（＋の縦棒） */
.toggle-icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

/* 開いたらマイナスにする（縦線を消す） */
.faq-item[open] .toggle-icon::after {
  display: none;
}

/* 回答 */
.faq-answer {
  margin-top: 12px;
  padding-left: 40px;
  line-height: 1.8;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  .faq {
    padding: 0 20px;
  }

  .faq-question {
    font-size: 14px;
  }

  .faq-answer {
    padding-left: 0;
    font-size: 14px;
  }

  .q-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}
