/* css/faq.css - よくある質問ページ専用 */

/* =========================================
   Page Hero (他ページと共通のデザインルール)
   ========================================= */
.page-hero {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* 中央寄せ */
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 80px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.1em;
  line-height: 1;
}

.page-hero p {
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  margin-top: 10px;
  letter-spacing: 0.2em;
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.faq-heading {
  text-align: center;
  font-size: 28px;
  font-family: "Zen Old Mincho", serif;
  margin-bottom: 40px;
  border-bottom: 2px solid #BFA455;
  display: inline-block;
  padding-bottom: 10px;
}

/* FAQ Item Container */
.faq-item {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 質問ボタン部分 */
.faq-question {
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 20px;
  font-size: 16px;
  font-family: "Zen Old Mincho", serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
}

.faq-question:hover {
  background: #f9f9f9;
}

/* Qマーク */
.q-circle {
  color: #BFA455;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: bold;
  margin-right: 15px;
}

/* ＋アイコン */
.toggle-icon {
  font-size: 20px;
  color: #ccc;
  transition: transform 0.3s ease;
}

/* 回答部分 (デフォルトは非表示) */
.faq-answer {
  display: none; /* ここで隠しています */
  padding: 20px;
  background: #fcfcfc;
  border-top: 1px solid #eee;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.a-circle {
  color: #333;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: bold;
  margin-right: 15px;
  float: left; /* Aマークを左に */
}

/* =========================================
   開閉時のスタイル (.open クラスがついた時)
   ========================================= */
.faq-item.open .faq-answer {
  display: block; /* 表示する */
  animation: fadeIn 0.3s ease;
}

.faq-item.open .toggle-icon {
  transform: rotate(45deg); /* ＋を×に回転 */
  color: #BFA455;
}

/* ふわっと表示させるアニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 50px; }
  .faq-question { font-size: 15px; }
}