/* TOPPAGE
------------------------------------------------------------*/
/* FV */
#top-fv {
  border-bottom: 1px solid var(--lightgray);
  background: #fff;
  > div {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    overflow: hidden;
    h1 {
      font-size: 2.375rem;
      @media screen and (max-width: 640px) {
        font-size: 5.6vw;
      }
      line-height: 1.4;
      em {
        color: #000;
        display: inline-block;
      }
      .en {
        font-size: 1.1em;
      }
    }
    p {
      margin-bottom: 2rem;
      font-size: 1.125rem;
    }
  }
  #fv-slogan {
    padding-bottom: 2rem;
    .btn-contact a,
    .btn-dl a {
      font-size: 1.5rem;
    }
  }
  #fv-gallery {
    .wp-block-group > .wp-block-group__inner-container {
      display: flex;
      gap: 10px;
      @media screen and (max-width: 1440px) {
        padding-right: 0.5rem;
      }
    }
    figure {
      margin: 0 !important;
      img {
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
      }
    }
    .wp-block-group__inner-container.is-animating:hover {
      animation-play-state: paused !important;
    }
    .wp-block-group__inner-container {
      will-change: transform;
    }
  }
}
@media screen and (min-width: 1024px) {
  #top-fv > div {
    padding-inline: 40px 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  #fv-gallery {
    overflow: hidden;
    position: relative;
    height: 700px;
    width: 620px;
    > .wp-block-group__inner-container {
      display: flex;
      flex-direction: column;
      height: max-content;
      padding-bottom: 10px;
    }
    .wp-block-group {
      margin-bottom: 10px;
    }
    > .wp-block-group__inner-container.is-animating {
      animation: fv-loop-vertical 50s linear infinite;
    }
  }
}
@keyframes fv-loop-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
@media screen and (max-width: 1023px) {
  #top-fv > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    @media screen and (max-width: 640px) {
      .btn-contact,
      .btn-dl {
        width: 100%;
      }
    }
  }
  #fv-gallery {
    width: 100% !important;
    max-width: 100vw !important;
    left: 50% !important;
    .wp-block-group__inner-container {
      display: flex;
      flex-wrap: nowrap;
      width: max-content;
      padding-block: 1rem;
    }
    .wp-block-group {
      display: flex;
    }
    .wp-block-group > .wp-block-group__inner-container {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      gap: 10px !important;
      padding: 0 5px !important;
    }
    figure {
      flex-shrink: 0 !important;
      img {
        width: auto !important;
        height: 180px !important;
        object-fit: contain;
      }
    }
    > .wp-block-group__inner-container.is-animating {
      animation: fv-loop-horizontal 100s linear infinite;
    }
  }
}
@keyframes fv-loop-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
#top-package h2 em:first-of-type {
  padding-right: 2px;
  font-size: 1.6em;
  font-family: var(--font-en);
}
#top-about > div {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
  header.wp-block-group > div {
    padding-bottom: 0;
    flex-direction: column;
    align-items: initial;
    gap: 2rem;
    width: 37rem;
  }
  div.wp-block-group {
    width: 37.5rem;
  }
}
#top-guide {
  .wp-block-columns {
    .wp-block-column {
      @media screen and (min-width: 1024px) {
        display: flex;
        gap: 1rem;
        .wp-block-group {
          display: contents;
          .wp-block-group__inner-container {
            display: flex;
            flex-direction: column;
          }
        }
      }
      h3 {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
        line-height: 1;
        border-bottom: 1px solid #000;
        @media screen and (max-width: 640px) {
          margin-top: 2rem;
        }
        em {
          font-family: var(--font-en);
          color: var(--orange);
          font-size: 1.2rem;
          line-height: 0.8em;
          i {
            padding-left: 0.1em;
            font-size: 3rem;
            font-style: normal;
            @media screen and (max-width: 640px) {
              font-size: 2.5rem;
            }
          }
        }
      }
      figure {
        margin: 0 auto;
        width: 200px;
        @media screen and (min-width: 1200px) {
          flex-shrink: 0;
        }
        img {
          border-radius: 10px;
        }
      }
      .wp-block-buttons {
        margin-top: 1rem;
        @media screen and (min-width: 1200px) {
          margin-top: auto;
        }
      }
      @media screen and (max-width: 781px) {
        &:first-of-type {
          margin-bottom: 2rem;
        }
      }
    }
  }
}
