/* faq.css */

.page__mv--faq .page__mv__deco {
  bottom: -11px;
  left: 300px;
  width: 110px;
}

/* -----------------------------------------------
   FAQ セクション全体
   装飾を absolute で配置するために relative を設定
----------------------------------------------- */

.faq {
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}


.page-title {
  color: #003570;
  text-align: center;
  font-weight: 700;
  font-size: 32px;
  font-family: 'Lora', serif;
}

.page-title::before,
.page-title::after {
  content: '';
  display: inline-block;
  margin: 0 15px;
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background-color: #003570;
  /* 丸める */
  vertical-align: middle;
}

/* -----------------------------------------------
   装飾（deco_wave2）
   PCのみ表示。left と right で左右を個別に配置
----------------------------------------------- */

.faq__deco {
  position: absolute;
  max-width: 300px;
  width: 21vw;
}

.faq__deco--left {
  top: 112px;
  left: -84px;
}

.faq__deco--right {
  top: 541px;
  right: -84px;
}


/* -----------------------------------------------
   FAQリスト全体
   max-width で幅を778pxに絞り、中央揃え
----------------------------------------------- */

.faq__list {
  margin: 0 auto;
  padding-top: 50px;
  max-width: 780px;
}


/* -----------------------------------------------
   FAQ 1項目（質問＋回答のセット）
   項目の下に余白をつけて間隔を開ける
----------------------------------------------- */

.faq__item {
  margin-bottom: 65px;
}

.faq__item:last-child {
  margin-bottom: 0;
  /* 最後の項目は余白なし */
}


/* -----------------------------------------------
   質問（dt）
   Q アイコンとテキストを横並びにする
----------------------------------------------- */

.faq__question {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  color: #003570;
  font-weight: 600;
  font-size: 24px;
  font-family: 'Lora', serif;
}


/* -----------------------------------------------
   回答（dd）
   A アイコンとテキストを横並びにする
----------------------------------------------- */

.faq__answer {
  display: flex;
  align-items: flex-start;
  /* テキストが複数行のとき上揃え */
  gap: 15px;
  line-height: 1.75;
}

.faq__answer a {
  color: inherit;
  text-decoration: underline;
}

/* -----------------------------------------------
   Q・A アイコン共通
   青い四角をCSSで作る
----------------------------------------------- */

.faq__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-weight: 500;
  font-size: 22px;
  font-family: 'Lora', serif;
}

/* Q アイコン：濃紺の背景・白文字 */
.faq__icon--q {
  background-color: #003570;
  color: #fff;
}

/* A アイコン：枠線のみ・濃紺文字 */
.faq__icon--a {
  background-color: #fff;
  color: #003570;
}

.faq__icon-text {
  position: relative;
  top: -2px;
}




/* -----------------------------------------------
   Contact セクション全体
----------------------------------------------- */

.contact {
  padding-bottom: 120px;

  scroll-margin-top: 130px;
}


/* -----------------------------------------------
   白いカード
   白背景・角丸・影でカードっぽく見せる
----------------------------------------------- */

.contact__card {
  padding: 63px 100px;
  border-radius: 30px;
  background-color: #fff;
}


/* -----------------------------------------------
   説明文
----------------------------------------------- */

.contact__lead {
  margin: 20px 0 40px;
  text-align: center;
}


/* -----------------------------------------------
   区切り線
   点線スタイル
----------------------------------------------- */

.contact__divider {
  margin: 0 auto;
  max-width: 900px;
  border: none;
  border-top: 2px dotted #003570;
}

/* -----------------------------------------------
   1行（ラベル＋入力欄）
   横並びにする
----------------------------------------------- */

.contact__row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 0;
}

/* -----------------------------------------------
   ラベル（Name* / Email* / Message*）
----------------------------------------------- */

.contact__label {
  /* この幅の中にテキスト＋gapが収まる */
  flex-shrink: 0;
  width: 145px;
  color: #003570;
  font-weight: 700;
  font-size: 20px;
  font-family: 'Lora', serif;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: #ccc;
}


/* -----------------------------------------------
   テキスト入力欄（Name・Email）
----------------------------------------------- */

.contact__input {
  padding: 0 16px;
  width: 600px;
  height: 50px;
  border: none;
  border-radius: 3px;
  background-color: #e6ebf3;
}

.contact__input:focus {
  outline: 2px solid #003570;
  /* フォーカス時に枠線を表示 */
}


/* -----------------------------------------------
   テキストエリア（Message）
----------------------------------------------- */

.contact__textarea {
  padding: 14px 16px;
  width: 600px;
  height: 150px;
  border: none;
  border-radius: 3px;
  background-color: #e6ebf3;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  resize: vertical;
  /* 縦方向だけリサイズ可能にする */
}

.contact__textarea:focus {
  outline: 2px solid #003570;
}


/* -----------------------------------------------
   注記テキスト
----------------------------------------------- */

.contact__note {
  padding: 45px 0;
  text-align: center;
}

.contact__note a {
  color: inherit;
  text-decoration: underline;
}

/* -----------------------------------------------
   プライバシーポリシー同意チェックボックス
----------------------------------------------- */

.contact__checkbox-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 45px;
}

.contact__checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.contact__checkbox input[type='checkbox'] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;

          appearance: auto;
  -webkit-appearance: auto;
  accent-color: #003570;
}


.contact__checkbox a {
  color: #003570;
  text-decoration: underline;
}

/* -----------------------------------------------
   送信ボタンのラップ
   ボタンを中央揃えにする
----------------------------------------------- */

.contact__submit-wrap {
  display: flex;
  justify-content: center;
}


/* ================================================
タブレット（〜1200px）
================================================ */

@media (max-width: 1200px) {
  .btn-float-book {
    display: none;
  }


  .page__mv--faq .page__mv__deco {
    left: 305px;
  }


  .faq__deco {
    display: none;
  }

  .faq__list {
    padding-right: 20px;
    padding-left: 20px;
    /* パツパツ感が嫌なので余白20px追加 */
  }

  /* コンタクト */

  .contact {
    padding-bottom: 80px;

    scroll-margin-top: 90px;
  }

  .contact__card {
    padding: 63px 70px;
  }

  .contact__label {
    width: 125px;
  }

  .contact__input,
  .contact__textarea {
    max-width: 600px;
    width: 100%;
  }
}





/* ================================================
スマホ（〜730px）
================================================ */

@media (max-width: 730px) {
  .page__mv--faq .page__mv__deco {
    bottom: -7px;
    left: 215px;
    width: 75px;
  }


  .faq {
    padding-bottom: 50px;
  }

  .faq .section-title {
    padding-bottom: 20px;
    font-size: 24px;
  }


  .page-title {
    color: #003570;
    text-align: center;
    font-weight: 700;
    font-size: 24px;
    font-family: 'Lora', serif;
  }

  .page-title::before,
  .page-title::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 2px;
  }

  .faq__list {
    padding-top: 20px;
    padding-right: 10px;
    padding-left: 10px;
    /* パツパツ感が嫌なので余白10px追加 */
  }

  .faq__item {
    margin-bottom: 30px;
  }

  .faq__question {
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 6px;
    font-size: 18px;
  }

  .faq__answer {
    gap: 13px;
    font-size: 16px;
  }

  .faq__icon {
    width: 25px;
    height: 25px;
    font-size: 18px;
  }

  .faq__icon-text {
    top: -1px;
  }

  .faq__question .faq__icon {
    margin-top: 5px;
  }

  .faq__answer .faq__icon {
    margin-top: 2px;
  }



  /* コンタクト */

  .br-pc {
    display: none;
  }

  .contact {
    padding-bottom: 40px;
  }

  /* innerの余白を打ち消してカードを画面幅いっぱいに */
  .contact .inner--small {
    padding: 0;
  }

  /* カードの中身に7.3%の余白を設定 */
  .contact__card {
    padding: 50px 7.3%;
  }

  .contact__row {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0 30px;
  }

  .contact__label {
    width: 130px;
    font-size: 18px;
  }

  .contact__input {
    width: 100%;
    /* カード幅いっぱい */
    height: clamp(35px, 9vw, 50px);
    border-radius: 2px;
  }

  .contact__textarea {
    border-radius: 2px;
  }

  .contact__lead {
    margin: 10px 0 30px;
  }

  .contact__note {
    padding: 30px 0 40px;
  }

  .contact__checkbox-wrap {
    padding-bottom: 20px;
  }
}
