@charset "UTF-8";

/* ============================================================
   フォトン算数オンライン｜入塾申し込みフォーム
   動きを控える設定（prefers-reduced-motion）の環境向け

   OS側で「視差効果を減らす」等を有効にしている利用者に対して、
   アニメーションとトランジションを止める。

   【必ず最後に読み込むこと】
   `*{animation:none !important}` のような一括指定は使わず、
   各ファイルで動きを付けているセレクタを同じ詳細度で書き直して
   打ち消している。詳細度が同点のときは後に読んだ側が勝つため、
   このファイルを最後に置くことが前提になる。

   【動きを足したときは、ここにも追記すること】
   特に ID セレクタ（#course-options など）で動きを付けた場合は、
   クラスだけの指定では詳細度で負けて打ち消せない。
   元と同じ ID セレクタで書くこと。
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  /* ---- c-shell.css ---- */
  .c-stepper li::before {
    transition: none;
  }

  /* ---- c-form.css ---- */
  .l-form input[type='text'],
  .l-form input[type='tel'],
  .l-form input[type='email'],
  .l-form input[type='date'],
  .c-question input[type='text'],
  .c-question textarea {
    transition: none;
  }

  .l-form__col-2 label,
  .l-form__col-2 label::before {
    transition: none;
  }

  /* コース選択の丸は ID セレクタで描いているため、
     クラスだけの指定では打ち消せない */
  #course-options label::before {
    transition: none;
  }

  /* ---- c-blocks.css ---- */
  .l-submit__btn,
  .l-back__btn {
    transition: none;
  }

  .l-thanks--done .l-thanks__title::before {
    animation: none;
  }

  .l-spinner {
    animation: none;
  }

  /* ---- c-motion.css ---- */
  .c-question input[type='checkbox'] + label {
    transition: none;
  }

  /* 押し込みの縮小も止める */
  .l-form__col-2 label:active,
  .c-question input[type='checkbox'] + label:active {
    transform: none;
  }

  .c-stepper li.c-stepper__wip::after,
  .c-stepper li.c-stepper__wip::before {
    animation: none;
  }

  .l-form__container,
  .c-question,
  .l-thanks__container,
  .l-info,
  .l-submit {
    animation: none;
  }

  .l-thanks--pending .l-thanks__title::before {
    animation: none;
  }

  /* ツールチップは動かさず、最初から定位置に置く */
  .tooltip .tooltiptext {
    transform: translateX(-50%);
    transition: none;
  }

  /* ---- c-survey.css ---- */
  .c-question input[type='checkbox'] + label::before {
    transition: none;
  }

  /* ---- c-common-block.css ---- */
  .l-common--card {
    animation: none;
  }
  .l-common--card .l-common__link a {
    transition: none;
  }

  /* ---- c-terms.css ---- */
  .l-terms__agree label::before {
    transition: none;
  }
}
