/* 右にはみ出す惑星の装飾のせいでページが画面より横に広がり、メニューの
   ボタン（position: fixed）が右端でずれて見えていた。他のページと同じく
   html と body の両方で横のはみ出しを止める */
html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #FEEA92 !important;
  font-family: "Kiwi Maru", serif;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  position: relative;
}

/* ===== 背景惑星用の装飾設定 ===== */

.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1; /* 最背面に配置 */
}

/* 惑星共通 */
.planet {
  position: absolute;
  width: 250px;
  height: auto;
}

/* 左側の惑星 */
.planet-left {
  left: 0px;
}

/* 右側の惑星 */
.planet-right {
  right: 0px;
}

/* 縦の位置 */
.planet-1 { top: 300px; }
.planet-2 { top: 900px; }
.planet-3 { top: 1500px; }
.planet-4 { top: 2100px; }

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .planet {
    width: 250px;
  }
  
  .planet-left {
    left: -15px;
  }
  
  .planet-right {
    right: -15px;
  }

  /* 間隔をスマホの長さに合わせて調整 */
  .planet-1 { top: 250px; }
  .planet-2 { top: 750px; }
  .planet-3 { top: 1250px; }
  .planet-4 { top: 1750px; }
}

/* ===== FAQ 検索バー設定 ===== */
.faq-search-container {
  width: 100%;
  max-width: 520px;
  margin: 10px auto 35px;
  padding: 0 15px;
  box-sizing: border-box;
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #FFF2B9; /* 枠内背景色（真っ白だと目に痛いのでクリーム色に） */
  border: 3px solid #212121;  /* 枠線 */
  border-radius: 30px;        /* 丸み */
  padding: 6px 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 入力エリア */
.faq-search-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 20px;
  font-family: inherit;
  color: #333;
  padding-right: 40px;
}

/* プレースホルダー（入力前テキスト） */
.faq-search-box input::placeholder {
  color: #333;
  font-weight: bold;
}

/* 検索アイコンボタン */
.faq-search-box button {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-search-box button img {
  width: 30px;  /* 検索アイコンのサイズ */
  height: auto;
}

/* 該当しないQ&Aを非表示にするクラス */
.faq-item.is-hidden {
  display: none !important;
}

/* 検索結果が0件のときのメッセージ（入れ物） */
.faq-no-results-wrap {
  width: 100%;
}

/* 検索結果が0件のときのメッセージ */
.faq-no-results {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 35px;
  padding: 12px 16px;
  box-sizing: border-box;

  background-color: #FFF2B9; /* 真っ白だと目に痛いのでクリーム色に */
  border: 3px solid #212121;
  border-radius: 20px;

  color: #333;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 1.6;

  /* 表示されたとき（hidden が外れたとき）に、少し下からふわっと出てくる */
  animation: faq-no-results-in 0.35s ease both;
}

@keyframes faq-no-results-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-no-results { animation: none; }
}

/* レスポンシブ調整（スマホ） */
@media (max-width: 480px) {
  .faq-search-container {
    max-width: 380px;
  }
  .faq-search-box input {
    font-size: 16px;
  }
  .faq-search-box button img {
    width: 20px;
  }
}

/* FAQ */
.faq-container {
  padding: 0px 20px 40px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box; /* 左右の padding 分だけ画面より広がって、タイトルが右にずれていた */
  margin: 0 auto;
  position: relative;
  text-align: center;
}

/* Q リスト */
.faq-item {
  margin: 20px auto;
  font-weight: bold;
  color:#000000;
  text-align: center;
  max-width: 700px;
}

.square-container-Q {
  width: 47px;
  height: 47px;
  background-color: #212121;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
}

.square-container-A {
  width: 47px;
  height: 47px;
  background-color: #D1D1D1;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
}

.text-box {
  flex: 1;
  min-width: 0;
}

.qaq-text {
  font-size: 26px;
  line-height: 1.6;
  margin: 0;
  margin-top: -8px;
  color: #000000;
}

.qa-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
  width: 100%;
}

.faq-question {
  width: 450px;
  display: flex;
  text-align: left;
  align-items: flex-start;
  justify-content: space-between; /* 端同士を配置（Qと＋を両端に） */
  cursor: pointer;
  font-size: 26px;
  gap: 15px;
}

.faq-question .plus {
  font-size: 44px;
  line-height: 1;
  display: inline-block;
  width: 36px;
  text-align: center;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.faq-answer {
  width: 450px;
  margin-top: 15px;
  font-size: 24px;
  color: #000000;
  text-align: left;
  display: flex;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
  opacity: 1;
  margin-top: 15px;
}

/* ===== FAQ タイトル画像エリア ===== */
/* 上の余白を展示ページ（header { padding: 20px 0; }）と同じくらいに統一
   （以前は60pxで、他ページよりタイトルの位置がかなり低かった） */
.faq-title-wrap {
  position: relative;
  display: inline-block;
  margin: 20px auto 30px;
  text-align: center;
}

/* タイトルは他ページ（バザー・展示・イベントなど）と同じ構成：
   Fredoka・40px・文字の下に padding を作り、その余白の底に下線画像
   （line1.png）を position:absolute で固定する */
.faq-title-text {
  font-family: "Fredoka";
  font-size: 40px;
  font-weight: normal;
  color: #000000;
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.faq-title-text .line1 {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .faq-title-wrap {
    margin: 40px auto 20px;
  }
}

/* 開いたとき */
.faq-item.active .plus {
  transform: rotate(45deg);
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .faq-title {
    font-size: 48px;
    padding: 12px 24px;
  }

  .faq-question {
    font-size: 22px;
  }

  .faq-question .q-label {
    font-size: 32px;
  }

  .faq-question .plus {
    font-size: 32px;
  }

  .faq-answer {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .faq-title {
    margin: 50px auto 0px;
    font-size: 48px;
    width: 160px;
    height: 96px;
    border-radius: 15px;
  }

  .faq-question {
    width: 320px;
    font-size: 20px;
  }

  .faq-question .q-label {
    font-size: 26px;
  }

  .faq-question .plus {
    font-size: 24px;
  }

  .faq-answer {
    width: 320px;
    font-size: 16px;
  }
}