/** top */
.topArea {
  margin: -60px 0 100px;
  position: relative;
  font-family: "Noto Serif JP", serif;

  .mainVisual {
    height: 90vh;
    overflow: hidden;
  }

  .topImg {
    width: 100%;
    height: 100vh; /* 必要に応じて調整 */
    background: url(../img/メインビジュアル.jpg) no-repeat left center;
    background-size: cover;

    /* アニメーション */
    /* animation: animationZoom 5s ease-in-out forwards; */
  }

  .topText {
    position: absolute;
    top: 100px;
    left: 20px;
    right: 20px;
    text-shadow: 2px 2px rgba(255, 255, 255, 0.9);

    .mainText {
      font-size: 25px;
      font-weight: bold;
      color: var(--deepBlue);

      /* アニメーション */
      span {
        opacity: 0;
        transform: translateY(20px);
      }

      span:first-child {
        animation: catch_anime 1.4s forwards 0s;
      }

      span:nth-child(2) {
        animation: catch_anime 1.4s forwards 0.5s;
      }
    }

    p {
      font-size: 12px;
      color: var(--deepBlue);
      top: 250px;

      /* アニメーション */
      opacity: 0;
      transform: translateY(20px);
      animation: catch_anime 1.4s forwards 1s;
    }

    .box1 {
      border-radius: 5px;
      /* background: linear-gradient(90deg, #644600 0, #96783c 100%); */
      background: linear-gradient(90deg, #e1b348 0, #96783c 100%);
      padding: 6px 10px 10px 10px;
      text-shadow: none;
      color: var(--white);
      position: relative;
      top: 20px;
      text-align: center;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
      max-width: 200px;

      /* アニメーション */
      opacity: 0;
      transform: translateY(20px);
      animation: catch_anime 1.4s forwards 1s;

      h1 {
        padding: 10px 0;
        font-size: 1rem;
      }
      .imgBox {
        padding: 0 30px;
        width: 100px;
        height: 20px;
        margin: 0 auto;
      }
    }
  }

  .logo {
    position: absolute;
    bottom: 280px;
    right: 2%;
    width: 200px;
    height: 200px;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.9));
    }
  }
  .text {
    margin: 0px 20px 30px 20px;
    position: relative;
    opacity: 1;

    h2 {
      margin: 20px 0px 20px;
    }
  }

  .insertImg {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 600px;
    z-index: -1;
    opacity: 85%;
    overflow: hidden;
    transition: 1s ease;
    opacity: 0;

    img {
      height: 100%;
      width: auto;
      margin-left: auto;
      display: block;
      object-fit: cover;
      clip-path: polygon(20% 15%, 100% 15%, 100% 80%, 0% 80%);
    }
  }

  .insertImg.visible {
    opacity: 0.8;
  }

  .insertImg2 {
    position: absolute;
    top: 350px;
    left: -5%;
    width: 60%;
    height: 200px;
    background-color: rgba(218, 233, 243, 0.7);
    /* border: 2px solid var(--deepBlue); */
    clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 0% 100%);
    z-index: -2;
    transition: 1s ease;
    opacity: 0;
  }

  .insertImg2.visible {
    opacity: 1;
  }
}

/* レスポンシブ */
@media screen and (min-width: 768px) {
  .topArea {
    margin-bottom: 360px;

    .mainVisual {
      height: 100vh;
    }
    .topText {
      top: 100px;
      left: 80px;
      right: auto;

      .mainText {
        font-size: 3.6rem;
      }

      p {
        font-size: 1.2rem;
      }

      .box1 {
        max-width: 500px;
      }
    }

    .logo {
      bottom: 500px;
      width: 300px;
      height: 300px;
    }
    .text {
      margin-top: 100px;
      .inner {
        width: 80%;
        margin: 0 auto;

        h2 {
          font-size: 2.6rem;
        }
        p {
          font-size: 1.2rem;
          margin-top: 60px;
          line-height: 3rem;
        }
      }
    }
  }
}

/* アニメーション */
@keyframes catch_anime {
  0% {
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animationZoom {
  100% {
    transform: scale(1.1);
  }
}
