@charset "utf-8";

/* ========================================================== */
/* トップ */
/* ========================================================== */
#top {
  position: relative;
  width: 100%;
  height: calc(100vh - 9rem);
  margin-bottom: 0.25rem;

  & .fsv {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url(../images/fsv/fsv.webp);
    background-repeat: no-repeat;
    background-size: 130%;
    background-position: center bottom 20%;

    & .fsv-logo{
      padding:20px 50px;
      & img{
        filter: drop-shadow(0px 0px 5px #fff);
      }
    }

    & .fsv-title {
      position: absolute !important;
      bottom: 3vh;
      transform: translateX(5vw);

      & .logo {
        z-index: 10;
        position: absolute;
        max-width: 130px;
        width: 8.571vw;
        height: auto;
        transform: translate(0, -50%);
        top: 35%;
        left: 10px;
      }

      & .fsv-subtitle1,
      .fsv-subtitle2,
      .fsv-subtitle3 {
        display: flex;
        justify-content: center;
        font-weight: bolder;
        background-color: rgb(245, 245, 245, 0.65);
        opacity: 0;
      }

      & .fsv-subtitle1 {
        float: left;
        font-size: calc((2.6667vw + 24px) * 0.5);
        padding: 0 30px 0 150px;
      }

      & .fsv-subtitle2 {
        margin: 0 auto;
        font-size: calc(2.6667vw + 24px);
        padding: 0 30px 0 150px;
      }

      & .fsv-subtitle3 {
        float: right;
        font-size: calc((2.6667vw + 24px) * 0.6);
        padding: 0 30px;
        transform: translateX(60px);
      }

      & .fsv-subtitle4 {
        margin: 0 auto;
        color: #206612;
        text-shadow: #f5f5f5 0 1px 6px;
        background-color: rgb(198, 182, 83, 0.05);
        text-align: start;
        font-weight: bold;
        font-size: calc((2.6667vw + 24px)* 0.375);
        transform: translateX(1rem);
        opacity: 0;
      }

      & .fsv-subtitle1.appear,
      .fsv-subtitle2.appear,
      .fsv-subtitle3.appear,
      .fsv-subtitle4.appear {
        animation-name: topfadeInAnime;
        animation-delay: 0.5s;
        animation-duration: 1.5s;
        animation-fill-mode: forwards;
      }
    }
  }

  & .contact_info {
    position: absolute;
    background-color: rgb(255, 255, 255, 0.7);
    bottom: 10px;
    right: 10px;
    width: 365px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;

    & h5 {
      font-weight: bold;
      margin-bottom: 0.75rem;
      text-align: center;
    }

    & .content {
      display: flex;
      flex-wrap: wrap;
      font-size: 14px;

      & div {
        width: 100%;

        & p:nth-child(1) {
          font-weight: bold;
          margin-bottom: 0.25rem;
        }

        & p:nth-child(2) {
          margin-bottom: 0;
        }

        & dl {
          display: flex;
          margin: 0;
          padding-left: 1rem;

          & dd {
            margin-bottom: 0;
          }
        }
      }

      & div:nth-child(1) {
        margin-bottom: 1rem;
      }
    }
  }
}

.clip-text {
  position: relative;
  display: inline-block;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
  -ms-background-clip: text;
  -ms-text-fill-color: transparent;
  background-clip: text;

  &::before {
    position: absolute;
    content: '';
    z-index: -2;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background-image: inherit; */
  }

  &::after {
    position: absolute;
    content: '';
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  & .appear::after {
    animation-name: topfadeInAnime;
    animation-delay: 1s;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
  }
}

.clip-text_one {
  background-image: url(../images/fsv/clip_bg.webp);
  background-size: cover;
}

@keyframes topfadeInAnime {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media screen and (max-width: 1399px) {
  #top {
    & .fsv {
      background-size: 150%;
      background-position: center bottom;

      & .fsv-title {
        bottom: 5vh;

        & .fsv-subtitle1 {
          padding: 0 30px 0 130px;
        }

        & .fsv-subtitle2 {
          padding: 0 30px 0 130px;
        }
      }
    }
  }
}

@media screen and (max-width: 1199px) {
  #top {
    min-height: 816px;

    & .fsv {
      background-size: 300%;
      background-position: center bottom 20%;

      & .fsv-logo{
        margin:0 auto;
        width:fit-content;
      }

      & .fsv-title {
        transform: translateX(-50%);
        top: 150px;
        left: 50%;

        & .logo {
          max-width: 150px;
          width: 15.12vw;
          top: 80px;
        }

        & .fsv-subtitle1 {
          font-size: calc((2.6667vw + 24px) * 0.75);
          padding: 0 30px 0 calc(15.12vw + 30px);
        }

        & .fsv-subtitle2 {
          font-size: calc((2.6667vw + 24px) * 1.5);
          padding: 0 30px 0 calc(15.12vw + 20px);
        }

        & .fsv-subtitle3 {
          font-size: calc((2.6667vw + 24px) * 0.9);
        }

        & .fsv-subtitle4 {
          font-size: calc((2.6667vw + 24px)* 0.55);
        }
      }
    }
  }
}

@media screen and (max-width: 991px) {
  #top {
    min-height: calc(100vh - 9rem);

    & .fsv {
      & .fsv-title {
        & .logo {
          max-width: 90px;
          width: 11.72vw;
          top: 55px;
        }

        & .fsv-subtitle1 {
          font-size: calc((2.6667vw + 29px) * 0.5);
          padding: 0 30px 0 calc(11.72vw + 30px);
        }

        & .fsv-subtitle2 {
          font-size: calc(2.6667vw + 29px);
          padding: 0 30px 0 calc(11.72vw + 20px);
        }

        & .fsv-subtitle3 {
          font-size: calc((2.6667vw + 29px) * 0.6);
        }

        & .fsv-subtitle4 {
          font-size: calc((2.6667vw + 29px)* 0.375);
        }
      }
    }
  }
}

@media screen and (max-width: 767px) {
  #top {
    height: calc(100vh - 5rem);

    & .fsv {
      background-position: center bottom 5%;

      & .fsv-logo{
        & img{
          width:150px;
        }
      }

      & .fsv-title {
        top: 130px;

        & .logo {
          top: 43px;
          width: 70px;
        }

        & .fsv-subtitle1 {
          font-size: 20px;
          padding: 0 20px 0 90px;
        }

        & .fsv-subtitle2 {
          font-size: 40px;
          padding: 0 35px 0 85px;
        }

        & .fsv-subtitle3 {
          font-size: 24px;
          padding: 0 20px;
          transform: translateX(0);
        }

        & .fsv-subtitle4 {
          font-size: 15px;
          transform: translateX(0);
        }
      }
    }

    & .contact_info {
      transform: translateX(-50%);
      bottom: 5px;
      left: 50%;
      width: 350px;
      padding: 0.5rem 0.875rem;

      & h5 {
        font-size: 16px;
        margin-bottom: 0.25rem;
      }

      & .content {
        display: flex;
        flex-wrap: wrap;
        font-size: 14px;

        & div {
          width: 100%;

          & p:nth-child(1) {
            font-weight: bold;
            margin-bottom: 0;
          }

          & p:nth-child(2) {
            margin-bottom: 0;
          }

          & dl {
            display: flex;
            margin: 0;
            padding-left: 1rem;

            & dd {
              margin-bottom: 0;
            }
          }
        }

        & div:nth-child(1) {
          margin-bottom: 0.25rem;
        }
      }
    }
  }
}

@media screen and (max-width: 575px) {
  #top {
    height: calc(100vh - 5rem);

    & .fsv {
      min-width: 100%;
      background-image: url(../images/fsv/fsv_SP.webp);
      background-size: 140%;
      background-position: left bottom 10%;

      & .fsv-title {
        & .fsv-subtitle1 {
          font-size: 20px;
          padding: 0 10px 0 90px;
        }

        & .fsv-subtitle2 {
          font-size: 32px;
        }

        & .fsv-subtitle3 {
          font-size: 20px;
          padding: 0 15px;
        }

        & .fsv-subtitle4 {
          font-size: 13px;
          transform: translateX(0.5rem);
        }
      }
    }

  }
}