/* faq.css - よくある質問ページ（スラッグ: faq） */

.faq-list {
  margin-bottom: 2rem;
}

.faq-item {
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item[open] {
  border-color: var(--color-text);
  box-shadow: 0 2px 8px rgba(var(--color-brand-rgb), 0.08);
}

/* 高さは js/faq.js で制御。イージングでスムーズに開閉 */
.faq-item__answer {
  overflow: hidden;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid #e8ebe6;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__question {
  display: block;
  padding: 1rem 3rem 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.faq-item__question::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -6px;
  border-right: 2px solid var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  transform: rotate(45deg);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-item__question::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.faq-item__question:hover {
  background: #f5f7f4;
  color: var(--color-text);
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  margin: 1rem 0 0;
}

.faq-item__answer p:first-child {
  margin-top: 1rem;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}
