/* ============================================
   ひすい歯科 採用サイト — よくある質問ページ専用スタイル
   faq.css
   ※ .page-main / .breadcrumb / .page-title / アニメーションは common.css で定義
   モバイルファースト（ブレイクポイント: 751px）
   ============================================ */

/* ----------------------------------------
   FAQリード文エリア
   ---------------------------------------- */

.faq-intro {
  padding: 12vw 0 10vw;
  background-color: var(--color-white);
}

.faq-intro__lead {
  font-size: var(--fs-body-sp);
  color: var(--color-dark-gray);
  line-height: 1.9;
}

/* ----------------------------------------
   FAQセクション（カテゴリーごと）
   ---------------------------------------- */

.faq-section {
  padding: 10vw 0;
  background-color: var(--color-bg);
}

.faq-section + .faq-section {
  padding-top: 0;
}

/* ----------------------------------------
   アコーディオンリスト
   ---------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ----------------------------------------
   質問アイテム（dt）
   ---------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--color-gray);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--color-gray);
}

.faq-item__trigger {
  display: flex;
  align-items: flex-start;
  gap: 3vw;
  width: 100%;
  padding: 5vw 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition-btn);
}

.faq-item__trigger:hover .faq-item__question {
  color: var(--main-color);
}

/* アイコン（Material Icons） */
.faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9vw;
  height: 9vw;
  min-width: 9vw;
  border-radius: 50%;
  background-color: var(--main-color-light);
  flex-shrink: 0;
  margin-top: 0.15em;
}

.faq-item__icon .material-icons-round {
  font-size: 4.5vw;
  color: var(--main-color);
  line-height: 1;
}

/* 質問テキスト */
.faq-item__question {
  flex: 1;
  font-size: var(--fs-body-sp);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
  transition: color var(--transition-btn);
}

/* 開閉アイコン（chevron） */
.faq-item__chevron {
  font-size: 6vw;
  color: var(--color-light-brown);
  flex-shrink: 0;
  transition: transform var(--transition-base);
  margin-top: 0.1em;
}

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

/* ----------------------------------------
   回答エリア（dd）
   ---------------------------------------- */

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.faq-item__answer.is-open {
  /* max-height は JS で動的に設定 */
  opacity: 1;
}

.faq-item__answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 3vw;
  padding: 0 0 5vw 12vw; /* アイコン幅(9vw) + gap(3vw) 分のインデント */
}

/* 回答本文 */
.faq-item__body {
  flex: 1;
  font-size: var(--fs-body-sp);
  color: var(--color-dark-gray);
  line-height: 1.9;
}

.faq-item__body p {
  margin-bottom: 1.2em;
}

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

/* strong マーカー（common.css の定義を継承・強調用） */
.faq-item__body strong {
  font-weight: var(--fw-bold);
  background: linear-gradient(transparent 60%, var(--main-color-pale) 60%);
  padding: 0 0.1em;
}

/* ----------------------------------------
   スタッフ写真エリア
   ---------------------------------------- */

.faq-staff {
  padding: 12vw 0 10vw;
  background-color: var(--color-white);
}

.faq-staff__photo-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 5vw;
}

.faq-staff__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
}

.faq-staff__caption {
  font-size: var(--fs-xs-sp);
  color: var(--color-light-brown);
  line-height: 1.7;
  text-align: center;
}

/* ----------------------------------------
   CTA
   ---------------------------------------- */

.faq-cta {
  padding: 14vw 0;
  background: linear-gradient(160deg, var(--color-white) 0%, var(--main-color-pale) 100%);
  position: relative;
  overflow: hidden;
}

.faq-cta::before {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background-color: rgba(16, 208, 171, 0.06);
  pointer-events: none;
}

.faq-cta__inner {
  position: relative;
  z-index: 1;
}

.faq-cta__copy {
  font-family: 'Klee One', serif;
  font-size: var(--fs-h2-small-sp);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 4vw;
}

.faq-cta__copy-sub {
  font-size: var(--fs-body-sp);
  color: var(--color-dark-gray);
  line-height: 1.8;
  margin-bottom: 8vw;
}

/* ----------------------------------------
   PC（751px 以上）
   ---------------------------------------- */

@media (min-width: 751px) {

  .faq-intro {
    padding: 80px 0 60px;
  }

  .faq-intro__lead {
    font-size: var(--fs-body);
    max-width: 700px;
  }

  .faq-section {
    padding: 80px 0;
  }

  .faq-section + .faq-section {
    padding-top: 0;
  }

  .faq-item__trigger {
    gap: 20px;
    padding: 28px 0;
  }

  .faq-item__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .faq-item__icon .material-icons-round {
    font-size: 1.35rem;
  }

  .faq-item__question {
    font-size: var(--fs-body);
  }

  .faq-item__chevron {
    font-size: 1.5rem;
  }

  .faq-item__answer-inner {
    gap: 20px;
    padding: 0 0 28px 68px; /* icon(48) + gap(20) */
  }

  .faq-item__body {
    font-size: var(--fs-body);
  }

  .faq-staff {
    padding: 80px 0 60px;
  }

  .faq-staff__photo-wrap {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .faq-staff__photo {
    aspect-ratio: 21 / 9;
  }

  .faq-cta {
    padding: 100px 0;
  }

  .faq-cta::before {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -80px;
  }

  .faq-cta__copy {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .faq-cta__copy-sub {
    font-size: var(--fs-body);
    margin-bottom: 40px;
  }
}

/* .font-klee 上書き（h2.type-a .ja-title より詳細度を高めて適用） */
h2.type-a .ja-title.font-klee {
  font-family: 'Klee One', serif;
  font-weight: 600;
}
