/* ==========================================================================
   FAQ (よくある質問) 専用スタイルシート (faq.css)
   ========================================================================== */

#faq-section {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto 80px auto;
}

#faq-section h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: none;
}

#faq-section h2::before {
  content: "FAQ";
  display: block;
  font-size: 14px;
  color: var(--fedl-blue); /* FEDL Blue */
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.faq-lead-text {
  font-size: 15px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ==========================================================================
   アコーディオン（Q&A）レイアウト
   ========================================================================== */
#faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 60px;
}

.faq-item {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e0;
  box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.05);
}

/* 質問エリア (ボタン) */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  position: relative;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f7fafc;
}

/* Qバッジ */
.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background-color: var(--fedl-blue); /* FEDL Blue */
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-right: 15px;
}

.faq-question-text {
  flex-grow: 1;
  padding-right: 20px;
  line-height: 1.5;
}

/* 矢印アローアイコン */
.faq-icon-arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #a0aec0;
  border-bottom: 2px solid #a0aec0;
  transform: rotate(45deg);
  margin-right: 5px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

/* 開いたときの矢印回転 */
.faq-icon-arrow.open {
  transform: rotate(-135deg);
  border-color: var(--fedl-blue);
}

/* 回答エリア (パネル) */
.faq-answer-panel {
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #fcfcfd;
  border-top: 1px solid transparent;
}

.faq-answer-panel.open {
  border-top: 1px solid #edf2f7;
}

.faq-answer-content {
  padding: 24px;
  display: flex;
  align-items: flex-start;
}

/* Aバッジ */
.faq-a-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background-color: #e53e3e; /* 赤系のアセント */
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-right: 15px;
  margin-top: 2px;
}

.faq-answer-text {
  flex-grow: 1;
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
}

.faq-answer-text ul {
  padding-left: 20px;
  margin: 10px 0 0 0;
}

.faq-answer-text li {
  margin-bottom: 5px;
}

.faq-answer-text a {
  color: var(--fedl-blue);
  text-decoration: none;
  font-weight: 600;
}

.faq-answer-text a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   お問い合わせボックス
   ========================================================================== */
.faq-contact-box {
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.faq-contact-box h3 {
  font-size: 18px;
  color: #2d3748;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.faq-contact-box p {
  font-size: 14px;
  color: #718096;
  margin: 0 0 20px 0;
}

.contact-email-wrapper {
  display: inline-block;
  background-color: #fff;
  border: 1px solid #cbd5e0;
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.contact-email-wrapper:hover {
  border-color: var(--fedl-blue);
  box-shadow: 0 4px 6px -1px rgba(14, 66, 109, 0.08);
}

.contact-email-link {
  font-size: 16px;
  color: var(--fedl-blue);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-email-link:hover {
  color: var(--fedl-dark-blue);
}

.loading-text {
  font-size: 14px;
  color: #a0aec0;
}

/* モバイル向け調整 */
@media (max-width: 600px) {
  #faq-section {
    width: 92%;
    margin: 20px auto 40px auto;
  }
  .faq-question {
    padding: 16px 18px;
  }
  .faq-answer-content {
    padding: 18px;
  }
  .faq-contact-box {
    padding: 20px 15px;
  }
}
