/* --- faq.css --- */

/* style.cssで設定されているパンくずリスト下の余白をリセットし、デザインの隙間をなくす */
.breadcrumb {
  margin-bottom: 0;
}

/* メインコンテンツエリアの背景色と上下の余白を設定 */
.main-bg {
  background-color: #f0f9fc; /* 薄い青系の背景色 */
  padding: 30px 0 80px; /* 上下に余白を設定 */
}

/* ページ全体のコンテンツを中央に配置するためのコンテナ */
.contact-container {
  max-width: 900px; /* 最大幅を指定 */
  margin: 0 auto; /* 左右中央揃え */
  padding: 0 20px; /* 左右に内側の余白を設定 */
  text-align: center; /* 中のテキストを中央揃え */
}

/* 「お問い合わせ」のメインタイトル */
.page-title {
  font-size: 42px; /* 文字サイズ */
  font-weight: 600; /* 文字の太さ */
  color: #222; /* 文字色 */
  margin-bottom: 40px; /* 下の要素との余白 */
  text-align: center; /* テキストを中央揃え */
  letter-spacing: 1px; /* 文字間隔 */
}

/* --- FAQセクション --- */
.faq-section {
  margin-bottom: 80px;
  text-align: left;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 40px;
}

.faq-category-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-dark, #005f7f);
  margin-top: 60px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary, #38a6cc);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  background-color: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: #38a6cc;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #f9f9f9;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

/* JavaScriptによって active クラスが付与されたときのスタイル */
.faq-answer.active {
  max-height: 500px; /* 十分な高さを確保 */
}

.faq-answer p {
  padding: 20px 0;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.faq-answer p a {
  color: var(--color-primary, #38a6cc);
  text-decoration: underline;
  font-weight: 600;
}

.contact-link-prompt {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  margin-top: 40px;
}

.contact-link-prompt a {
  color: var(--color-primary, #38a6cc);
  text-decoration: underline;
  font-weight: 600;
}

/* --- レスポンシブ対応：画面幅が768px以下（スマートフォンなど）の場合に適用 --- */
@media (max-width: 768px) {
  /* メインコンテンツエリアの下の余白を調整 */
  .main-bg {
    padding-bottom: 60px;
  }

  .faq-section {
    margin-bottom: 60px;
  }

  .section-title {
    font-size: 26px;
  }

  .faq-category-title {
    font-size: 20px;
  }

  /* コンテナの左右の余白を調整 */
  .contact-container {
    padding: 0 15px;
  }

  /* ページタイトルのサイズと余白を調整 */
  .page-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .faq-answer p {
    font-size: 15px;
  }

  .contact-link-prompt {
    font-size: 16px;
  }
}
