/* ============================================
   page-faq.css
   よくある質問ページ（page-faq.php）専用スタイル
   ============================================ */


/* ============================================
   FAQセクション背景
   ============================================ */
.faq-section {
  background: #fafaed;
  padding: 10px 20px 50px;
  position: relative;
  z-index: 0;
}


/* ============================================
   FAQタイトル
   ============================================ */
.faq-title {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.faq-title img {
  display: block;
  margin: 0 auto;
  width: 180px;
}

.faq-title h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}


/* ============================================
   FAQボックス・アコーディオン
   ============================================ */
.faq-box {
  background: #fff;
  border-radius: 20px;
  padding: 60px 40px;
  max-width: 900px;
  margin: 40px auto 0;
}

/* 各Q&Aアイテム */
.faq-item:first-child {
  border-top: 1px solid #ccc;
}

/* アイテム下部の区切り線 */
.faq-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0;
}

/* 質問ボタン */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}

/* ＋／－アイコン */
.icon {
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* 回答エリア（アコーディオン） */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer.is-open {
  max-height: 600px;
}

.faq-answer__inner {
  padding: 4px 0 24px;
  line-height: 1.9;
  color: #444;
}

.faq-answer__inner ul {
  padding-left: 1.5em;
  margin: 8px 0;
}

.faq-answer__inner li {
  margin-bottom: 4px;
}

.faq-answer__inner p {
  margin: 0 0 8px;
}

@media (max-width: 768px) {
  .page-head {
    height: 160px;       /* ←高さを直接制御 */
    padding: 0;          /* ←余白を消す */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .page-head h1 {
    font-size: 20px;
    margin: 0;
    position: relative;
    z-index: 2;
  }


  .facility-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .faq-section {
    position: relative;
    padding: 10px 15px 40px;
    overflow: visible;
    z-index: 1;
  }

  .faq-box {
    padding: 30px 20px;
    border-radius: 16px;
    margin-top: 20px;
  }

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

  .icon {
    font-size: 18px;
  }

}
