@charset "UTF-8";

/*
プライバシーポリシー
------------------------------ */
.h1-policy {
  margin: 40px 0 40px 0;
}

.polocy-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  padding: 0 24px 0 64px;
}



/*
FAQ
------------------------------ */
/* FAQページ全体背景 */
.faq-page-wrapper {
  position: relative;
  overflow-x: hidden; /* 魚が画面外に出た時にスクロールバーを出さない */
  background-color: var(--gray) !important;
}

.faq-page-inner {
  max-width: 1100px; /* 見やすい幅に設定 */
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.faq-sub-lead {
    font-size: 14px;
}


/* FAQアイテムのボックス */
.faq-item {
  background-color: rgba(255, 255, 255, 0.4 );
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  /* 右のパディングを 50px に広げて、アイコンと重ならないようにします */
  padding: 20px 50px 20px 25px; 
  border: none;
  background: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.q-label {
  font-size: 20px;
  font-weight: bold;
  margin-right: 15px;
  color: var(--blue);
}

.q-text {
  font-size: 16px;
  font-weight: bold;
  color: #000928;
  line-height: 1.4;
  /* 文字が長くてもアイコンの手前で自動改行されるようにします */
  display: block;
  width: 100%;
}

/* 右側のプラスマイナスアイコン */
.faq-question::after, 
.faq-question::before {
  content: "";
  position: absolute;
  right: 25px;
  width: 15px;
  height: 2px;
  background-color: var(--gold);
  transition: transform 0.3s;
}

/* 縦棒（プラスの時だけ表示） */
.faq-question::before {
  transform: rotate(90deg);
}

/* アクティブ（開いている）時のアイコン変化 */
.faq-item.is-open .faq-question::before {
  transform: rotate(0deg);
  opacity: 0;
}

/* 回答エリアの隠し設定 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

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

.a-inner {
  padding: 0 25px 25px 25px;
  display: flex;
  align-items: flex-start;
}

.a-label {
  font-size: 18px;
  font-weight: bold;
  margin-right: 18px;
  color: var(--red);
}

.a-text {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding-top: 2px;
}

.faq-icon {
  position: absolute;
  right: 25px; /* 右端からの距離 */
  top: 50%;
  transform: translateY(-50%); /* ボタンの高さに対して常に中央に配置 */
  width: 14px;
  height: 14px;
}

/* --- FAQページ専用 魚の泳ぐ設定 --- */
.faq-fish-box {
    position: absolute;
    right: -150px;
    z-index: 5; /* FAQのコンテンツよりは下、背景よりは上 */
    pointer-events: auto; /* クリックを有効にする */
    cursor: pointer;
    display: inline-flex;
    width: fit-content;
    height: fit-content;
    will-change: right, transform;
    /* FAQ専用のアニメーションを指定 */
    animation: faq-swim-and-turn 25s linear infinite;
}

.faq-fish-box img {
  width: 120px;
  height: auto;
  display: block;
}

@keyframes faq-swim-and-turn {
    0% {
        right: -150px;
        transform: scaleX(1);
    }
    45% {
        right: 110%;
        transform: scaleX(1);
    }
    50% {
        right: 110%;
        transform: scaleX(-1);
    }
    95% {
        right: -150px;
        transform: scaleX(-1);
    }
    100% {
        right: -150px;
        transform: scaleX(1);
    }
}

/* 各魚の個別設定（高さと速度） */
.faq-fish-box.ozisan { top: 15%; animation-duration: 28s; }
.faq-fish-box.same   { top: 35%; animation-duration: 40s; animation-delay: 2s; }
.faq-fish-box.hugu   { top: 60%; animation-duration: 30s; animation-delay: 3s; }
.faq-fish-box.katakutiiwasi { top: 75%; animation-duration: 22s; }
.faq-fish-box.hirame { top: 90%; animation-duration: 60s; animation-delay: 4s; }
/* コンテンツが魚の上にくるように */
.faq-page-inner, .breadcrumbs-outer {
  position: relative;
  z-index: 10;
}










/* 767px以下 */
@media screen and (max-width: 767px) {
  /* FAQスマホの魚の登場の調整 */
  .faq-fish-box {
    animation-name: faq-swim-and-turn-sp;
    animation-duration: 20s;
  }

  @keyframes faq-swim-and-turn-sp {
    0% { right: -120px; transform: scaleX(1); }
    48% { right: 110%; transform: scaleX(1); }
    52% { right: 110%; transform: scaleX(-1); }
    98% { right: -120px; transform: scaleX(-1); }
    100% { right: -120px; transform: scaleX(1); }
  }

  /* 3. 画像サイズもスマホ用に少し小さくする (任意) */
  .faq-fish-box img {
    width: 80px; 
  }

  .faq-question {
  /* スマホでも右側の余白(45px)をしっかり確保 */
  padding: 18px 45px 18px 15px;
  }

}