/* 体験ページ（/trial/）とサンクスページ（/trial/thanks/）だけで読み込む。inc/trial-form/bootstrap.php から登録。
   見出し帯（#h_fv.-h500）の背景を、トップの見出し（#kv）と同じ子どもの切り抜き 5 人にする。子どもはタイトルの下に
   大きく横いっぱいに並べ、足元は波の下に隠す。タイトルは子どもより前に重ねる。wingate-ref.css は触らずここで上書きする */

/* 見出し帯: ブランドのピンクの単色＋水玉（白いロゴ・白い見出しが読め、水色の T シャツの子どもが映える）。
   元の帯は高さ 500px（スマホ 333px）の波の画像で切り抜く作りで、それより高くすると上が消える。
   波の画像に「下 480px（スマホ 313px）より上を全部見せる」層を重ねて、どの高さでも上が欠けないようにする */
.wingate-ref #h_fv.-h500.-trial {
  height: 640px;
  padding-top: 150px;
  overflow: hidden;
  background-color: var(--theme-color);
  background-image:
    radial-gradient(circle at 6% 30%, rgba(255, 255, 255, 0.16) 0 90px, transparent 91px),
    radial-gradient(circle at 90% 26%, rgba(255, 229, 19, 0.5) 0 46px, transparent 47px),
    radial-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2.5px);
  background-size: auto, auto, 22px 22px;
  -webkit-mask-image: url(../img/wingate/common/h-fv_bg-500.webp), linear-gradient(#000 calc(100% - 480px), transparent calc(100% - 480px));
          mask-image: url(../img/wingate/common/h-fv_bg-500.webp), linear-gradient(#000 calc(100% - 480px), transparent calc(100% - 480px));
  -webkit-mask-size: 2064px 500px, 100% 100%;
          mask-size: 2064px 500px, 100% 100%;
  -webkit-mask-repeat: repeat-x, repeat;
          mask-repeat: repeat-x, repeat; }
  .wingate-ref #h_fv.-h500.-trial::before {
    content: none; }
  .wingate-ref #h_fv.-h500.-trial h1 span {
    font-size: 54px;
    text-shadow: 0 2px 14px rgba(150, 20, 60, 0.35); }
  .wingate-ref #h_fv.-trial .wg-tp-line {
    display: inline-block; }
  .wingate-ref #h_fv.-trial .fv-pan {
    white-space: nowrap; }
  /* 子ども 5 人。帯の下寄せで横いっぱいに置き、足元（下 2 割）は帯の外＝波の下に出す。
     中の位置と幅の割合はトップの #kv .kv_imgs に合わせる（高さは一番背の高い子に合わせて幅の 6 割） */
  .wingate-ref #h_fv.-trial .wg-tp-kids {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 0;
    width: min(1120px, 92%);
    aspect-ratio: 10 / 6;
    margin: 0;
    transform: translate(-42%, 20%);
    pointer-events: none; }
    .wingate-ref #h_fv.-trial .wg-tp-kid {
      position: absolute;
      bottom: 0;
      display: block;
      animation: wg-tp-float 3.2s ease-in-out infinite; }
      .wingate-ref #h_fv.-trial .wg-tp-kid img {
        display: block;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.28)); }
    .wingate-ref #h_fv.-trial .wg-tp-kid.-k5 { left: -2%; width: 21%; z-index: 4; animation-duration: 3.1s; animation-delay: -0.4s; }
    .wingate-ref #h_fv.-trial .wg-tp-kid.-k3 { left: 14%; width: 22%; z-index: 5; animation-duration: 3.6s; animation-delay: -1.2s; }
    .wingate-ref #h_fv.-trial .wg-tp-kid.-k1 { left: 31%; width: 21%; z-index: 6; animation-duration: 3.4s; animation-delay: -2s; }
    .wingate-ref #h_fv.-trial .wg-tp-kid.-k2 { left: 47%; width: 27%; z-index: 4; animation-duration: 2.8s; animation-delay: -0.8s; }
    .wingate-ref #h_fv.-trial .wg-tp-kid.-k4 { left: 59%; width: 29%; z-index: 4; animation-duration: 3s; animation-delay: -1.6s; }

/* トップの kv-float と同じ動き（名前を分けて、wingate-ref.css の変更に引きずられないようにする） */
@keyframes wg-tp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  .wingate-ref #h_fv.-trial .wg-tp-kid {
    animation: none; } }

@media screen and (max-width: 800px) {
  .wingate-ref #h_fv.-h500.-trial {
    height: 392px;
    padding-top: 84px;
    background-size: auto, auto, 16px 16px;
    -webkit-mask-image: url(../img/wingate/common/h-fv_bg-500_sp.png), linear-gradient(#000 calc(100% - 313px), transparent calc(100% - 313px));
            mask-image: url(../img/wingate/common/h-fv_bg-500_sp.png), linear-gradient(#000 calc(100% - 313px), transparent calc(100% - 313px));
    -webkit-mask-size: 1375px 333px, 100% 100%;
            mask-size: 1375px 333px, 100% 100%; }
    .wingate-ref #h_fv.-trial .inr {
      align-items: flex-start; }
    .wingate-ref #h_fv.-h500.-trial h1 {
      margin-bottom: 10px; }
      .wingate-ref #h_fv.-h500.-trial h1 span {
        font-size: 30px;
        margin-bottom: 0; }
    .wingate-ref #h_fv.-trial .wg-tp-kids {
      width: 100%;
      transform: translate(-50%, 16%); }
    @keyframes wg-tp-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-7px); } } }

/* 案内文を消したので、フォーム最初の見出しの上の余白（節の区切り用）を詰める */
.wingate-ref .trial-wrap .form_area .wpcf7-form > .ja-sub_tit-v2:first-of-type {
  margin-top: 0; }
@media screen and (min-width: 1051px) {
  .wingate-ref .contact-wrap.trial-wrap {
    padding-top: 64px; } }
