/* FAQページ共通 */
.faq-container {
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Helvetica Neue', sans-serif;
  color: #333;
}

.faq-main {
  display: flex;
  gap: 40px;
}

/* サイドバー */
.faq-sidebar {
  flex: 0 0 220px;
}

.faq-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-sidebar li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.faq-sidebar a {
  text-decoration: none;
  color: #333;
  font-weight: normal;
}

.faq-sidebar .active a {
  font-weight: bold;
  pointer-events: none;
}

.faq-sidebar .bullet-dot {
  color: #ec6d25;
  font-size: 0.9rem;
  margin-left: 4px;
}

/* メインコンテンツ */
.faq-content {
  flex: 1;
}

.faq-content h1 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 30px;
}

/* FAQ項目 */
.faq-item {
  border-top: 1px solid #eee;
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid #eee;
}

.faq-question {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: normal; /* 太字を解除 */
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  color: #333; /* 明示的に黒に固定 */
  padding: 12px 0;
  align-items: flex-start;
}

.faq-question:hover,
.faq-question:focus {
  background: none;
  color: #333;
  transform: none;
  box-shadow: none;
  outline: none;
}

.faq-answer {
  display: none;
  padding-top: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333; /* ← 念のため文字色を明示 */
  padding: 12px 0;
}

.faq-answer p {
  margin: 0;
}

/* 開閉アイコン */
.toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
  align-self: flex-start;
}

.faq-question[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}


@media (max-width: 768px) {
  .faq-main {
    flex-direction: column;
    gap: 24px;
  }

  .faq-sidebar {
    flex: 1 1 auto;
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .faq-sidebar li {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .faq-sidebar .bullet-dot {
    font-size: 1rem;
  }

  .faq-content {
    width: 100%;
  }

  .faq-question {
    font-size: 1rem;
    padding: 10px 0;
  }

  .faq-answer {
    font-size: 0.95rem;
    padding: 10px 0;
  }

  .toggle-icon {
    font-size: 1.2rem;
  }

  .main-content.wide {
    padding: 20px 15px;
  }
}
