/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
フロントページ
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

body.home {
  /* ヒーローイメージ */
  .hero_wrap {
    width: 100%;
    height: 100svh;
    position: relative;
    &::before,
    &::after {
      content: "";
      display: block;
      position: absolute;
      z-index: 5;
      background-size: contain;
      background-repeat: no-repeat;
      mix-blend-mode: multiply;
    }

    &::before {
      width: 30.2%;
      max-width: 41.3rem;
      aspect-ratio: 528/309;
      background-position: top left;
      top: 0;
      left: 0;
      background-image: url(../../img/common/bg_sankaku-01.svg);
    }

    &::after {
      aspect-ratio: 606/352;
      background-position: bottom right;
      max-width: 60.6rem;
      width: 44.4%;
      bottom: 0;
      left: 0;
      background-image: url(../../img/common/bg_sankaku-05.svg);
    }
    @media screen and (max-width: 480px) {
      &::before {
        width: 71.8%;
      }
      &::after {
        width: 69%;
      }
    }
    .main_img {
      background-image: url(../../img/top/main_img.webp);
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center center;
      width: 100%;
      height: 100%;
      position: relative;
      z-index: 1;
      overflow: hidden;
      @media screen and (max-width: 480px) {
        background-image: url(../../img/top/main_img_sp.webp);
        width: 100%;
        height: 50svh;
        position: absolute;
        bottom: 0;
        left: 0;
      }
      &::before {
        content: "";
        display: block;
        position: absolute;
        z-index: 5;
        background-size: contain;
        background-repeat: no-repeat;
        transform: scale(-1, 1);
        width: 29%;
        max-width: 39.6rem;
        aspect-ratio: 528/361;
        background-position: top left;
        top: 0;
        right: 0;
        background-image: url(../../img/common/bg_sankaku-01-white.svg);
      }
      @media screen and (max-width: 480px) {
        &::before {
          width: 80%;
          transform: rotate(-10deg) scale(-1, 1) translate(-10%, -40%);
        }
      }
    }
    .inner {
      width: 90%;
      margin: auto;
      position: absolute;
      top: min(19.34vh, 16rem);
      left: 5%;
      z-index: 20;
      @media screen and (max-width: 480px) {
        top: 0;
        left: 0;
        width: 100vw;
        height: 100svh;
      }

      /* コピー */
      .copy_wrap {
        @media screen and (max-width: 480px) {
          position: absolute;
          top: 14.2svh;
          left: 2.5rem;
        }
        .main_copy-01 {
          font-size: min(4.685vw, 7.2rem);
          line-height: 1.25;
          font-weight: 800;
          color: var(--color-navy);
          span {
            letter-spacing: -0.5em;
          }
          @media screen and (max-width: 480px) {
            font-size: 3rem;
            line-height: 1.5;
          }
        }
        .main_copy-02 {
          font-size: min(1.757vw, 2.7rem);
          margin: 0.8em 0 0.9em;
          @media screen and (max-width: 480px) {
            font-size: 1.4rem;
            margin: 0.8em 0 1.1em;
          }
        }
        .main_copy-03 {
          font-size: min(3.66vw, 5.6rem);
          color: var(--color-navy);
          font-weight: 900;
          line-height: 1.4;
          em {
            display: inline-block;
            font-size: 1.2em;
            font-style: normal;
            background-color: #fff;
            border: 2px solid var(--color-gold);
            color: var(--color-gold);
            padding: 0 0.3em 0.1em;
            line-height: 1.2;
            margin: 0 0.2em;
            transform: translateY(-0.05em);
          }
          @media screen and (max-width: 480px) {
            font-size: 2.2rem;
            em {
              font-size: 1.367em;
            }
          }
        }
      }
      ul.link_wrap {
        position: relative;
        margin-top: 4rem;
        display: flex;
        font-size: 1rem;
        gap: 0.5em;
        z-index: 20;

        @media screen and (max-width: 480px) {
          font-size: 0.478rem;
          position: absolute;
          bottom: 2.6rem;
          left: 2.5rem;
        }
        li {
          a {
            display: block;
            background-color: rgba(255, 255, 255, 0.8);
            width: 17.4em;
            aspect-ratio: 1/1;
            position: relative;
            padding-top: 9.8em;
            box-sizing: border-box;
            color: var(--color-navy);
            text-decoration: none;
            z-index: 20;
            &::after {
              content: "→";
              font-size: 1.6em;
              position: absolute;
              display: block;
              bottom: 1em;
              left: 50%;
              transform: translate(-50%, 0);
            }
            p {
              text-align: center;
              font-size: 2.2em;
              line-height: 1.4;
              letter-spacing: 0.01em;
              padding-left: 0.01em;
            }
            .icon {
              position: absolute;
              top: 0;
              left: 50%;
              transform: translate(-50%, 0);
            }
          }
          &.link-01 {
            .icon {
              top: 2.7em;
              width: 6.9em;
            }
          }
          &.link-02 {
            .icon {
              top: 2.8em;
              transform: translate(-25%, 0);
              width: 6.5em;
            }
          }
          &.link-03 {
            .icon {
              top: 1.5em;
              width: 6.4em;
            }
          }
          &.link-04 {
            .icon {
              top: 3.4em;
              width: 5.4em;
            }
          }
        }
      }
    }
  }

  /* イントロダクション */
  .intro_wrap {
    padding-top: 16rem;
    padding-bottom: 3.2rem;
    @media screen and (max-width: 480px) {
      padding-top: 5rem;
    }
    &::after {
      top: 41.2rem;
      bottom: auto;
      transform: translate(-36%, 0);
      max-width: 100%;
    }

    h2 {
      line-height: 1.6;
      margin-bottom: 9.8rem;
      @media screen and (max-width: 480px) {
        margin-bottom: 3rem;
      }
    }
    .img_text_wrap {
      @media screen and (max-width: 480px) {
        row-gap: 5rem;
      }
      .text_wrap {
        max-width: 53.6rem;
        width: 43.4%;
        @media screen and (max-width: 480px) {
          width: 100%;
        }
      }
      .img_wrap {
        max-width: 66.2rem;
        width: 56.6%;
        transform: translate(8%, -4%);
        @media screen and (max-width: 480px) {
          width: 32.2rem;
          margin: auto;
          transform: translate(1, 1rem, 0);
        }
      }
    }
  }
  /* ループスライダー */
  .loop_splide {
    position: relative;
    z-index: 10;
    .splide__list {
      align-items: center;
    }
    .item-01 {
      width: 39.9rem;
    }
    .item-02 {
      width: 29.4rem;
    }
    .item-03 {
      width: 36.1rem;
    }
    .item-04 {
      width: 29.3rem;
    }
    @media screen and (max-width: 480px) {
      .item-01 {
        width: 14.6rem;
      }
      .item-02 {
        width: 10.8rem;
      }
      .item-03 {
        width: 13.3rem;
      }
      .item-04 {
        width: 10.7rem;
      }
    }
  }
  /* サービス */
  .service_wrap {
    padding-top: 16.5rem;
    padding-bottom: 0;
    @media screen and (max-width: 480px) {
      padding-top: 7.8rem;
    }
    .item {
      margin-bottom: 15rem;
      position: relative;
      @media screen and (max-width: 480px) {
        margin-bottom: 10rem;
      }
      h3.bg_blue {
        text-align: left;
        small {
          margin: 0.3em 0;
        }
      }
      .term_list {
        margin: 3rem 0 6rem;
        @media screen and (max-width: 480px) {
          margin: 1.4rem 0 5.2rem;
        }
      }
      .img_text_wrap {
        @media screen and (max-width: 480px) {
          row-gap: 4rem;
          margin-bottom: 5rem;
        }
        .text_wrap {
          max-width: 56rem;
          width: 47.9%;
          margin-bottom: 7rem;
          @media screen and (max-width: 480px) {
            width: 100%;
            margin-bottom: 0;
          }
        }
      }
      /* 個別 */
      &.item-01 {
        .img_text_wrap {
          .img_wrap {
            max-width: 44.6rem;
            width: 47%;
            margin-top: -4.4rem;
            margin-right: 4.6rem;
            @media screen and (max-width: 1024px) {
              margin-right: 0;
            }
            @media screen and (max-width: 480px) {
              margin: 0 auto;
              width: 32.1rem;
            }
          }
        }
      }
      &.item-02 {
        &.after::after {
          top: 13rem;
          bottom: auto;
          transform: translate(-20%, 0);
          max-width: 100%;
        }
        h3 {
          @media screen and (max-width: 480px) {
            letter-spacing: 0.025em;
          }
        }
        .img_text_wrap {
          .img_wrap {
            max-width: 52.5rem;
            width: 47%;
            margin-top: -3.3rem;
            margin-right: 4.1rem;
            @media screen and (max-width: 1024px) {
              margin-right: 0;
            }
            @media screen and (max-width: 480px) {
              width: 100%;
              margin: 0 auto;
            }
          }
        }
      }
      &.item-03 {
        margin-bottom: 0rem;

        h3 {
          small {
            line-height: 1.2;
            margin-bottom: 1rem;
          }
          em.number {
            transform: translate(0, -120%);
          }
        }
        .img_text_wrap {
          .img_wrap {
            max-width: 60.7rem;
            width: 51.9%;
            margin-right: -3.6rem;
            @media screen and (max-width: 1024px) {
              margin-right: 0;
              width: 47%;
            }
            @media screen and (max-width: 480px) {
              width: 100%;
              margin: 0 auto;
            }
          }
        }
      }
    }
  }
  /* セカンドオピニオン */
  .second_opinion_wrap {
    padding-bottom: 12rem;
    @media screen and (max-width: 480px) {
      padding: 5rem 1rem 7rem;
    }

    &::before {
      top: -26rem;
    }
    .border_wrap {
      margin: auto;
      padding-bottom: 8.6rem;
      @media screen and (max-width: 480px) {
        padding-bottom: 7rem;
      }
      h3 {
        @media screen and (max-width: 480px) {
          letter-spacing: normal;
        }
      }

      p.ui {
        max-width: 70rem;
        margin: auto auto 10rem;
        @media screen and (max-width: 480px) {
          margin-bottom: 6rem;
        }
      }

      ul {
        display: flex;
        gap: 5.8rem;
        justify-content: center;
        margin-bottom: 6rem;
        @media screen and (max-width: 480px) {
          flex-direction: column;
          row-gap: 4rem;
          align-items: center;
          margin-bottom: 4rem;
        }

        li {
          width: 28.1rem;
          .img_wrap {
            width: 25.6rem;
            margin: auto;
          }
          h4 {
            font-size: 2.4rem;
            line-height: 1.92;
            text-align: center;
            color: var(--color-navy);
            padding: 0 0 0 0.05em;
            letter-spacing: 0.05em;
            margin: 1.6rem 0 0.7rem;
            @media screen and (max-width: 480px) {
              font-size: 2rem;
            }
          }
          p {
            font-size: 1.5rem;
            line-height: 2;
            color: var(--color-text);
            @media screen and (max-width: 480px) {
              font-size: 1.4rem;
            }
          }
        }
      }
      /* 文字と矢印が重ならないよう矢印を右に寄せる */
      .button_item.arrow::after {
        @media screen and (min-width: 481px) {
          right: 2.4rem;
        }
      }
    }
  }
  /* 成果の出る投資 */
  .investments_wrap {
    padding-top: 14rem;
    padding-bottom: 16rem;
    @media screen and (max-width: 480px) {
      padding-top: 7rem;
      padding-bottom: 7rem;
    }

    &::before {
      top: 38rem;
    }
    @media screen and (max-width: 480px) {
      &::before {
        display: none;
      }
    }
    h2 {
      line-height: 1.6;
      margin-bottom: 8.7rem;
      @media screen and (max-width: 480px) {
        margin-bottom: 5rem;
      }
    }
    hr {
      margin: 8.5rem 0 7rem;
      @media screen and (max-width: 480px) {
        margin: 4rem 0 5rem;
      }
    }
    .img_text_wrap {
      .text_wrap {
        h3 {
          margin-bottom: 3.2rem;
          @media screen and (max-width: 480px) {
            margin-bottom: 3rem;
          }
        }
      }
    }

    .item-01 {
      @media screen and (max-width: 480px) {
        row-gap: 6rem;
      }
      .text_wrap {
        max-width: 64.3rem;
        width: 55%;
        @media screen and (max-width: 480px) {
          width: 100%;
        }
        .button_wrap {
        }
      }
      .img_wrap {
        max-width: 47rem;
        width: 40.2%;
        @media screen and (max-width: 480px) {
          width: 29.1rem;
          margin: auto;
        }
      }
    }
    @media screen and (min-width: 481px) {
      .item-02.parent {
        margin-bottom: 16rem;
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-template-rows: auto 1fr;
        grid-column-gap: 5.3rem;
        grid-row-gap: 3.8rem;

        .div1 {
          grid-area: 1 / 1 / 2 / 2;
          width: 48rem;
        }
        .div2 {
          grid-area: 1 / 2 / 3 / 3;
          width: 64.3rem;
          padding-top: 5.2rem;
        }
        .div3 {
          grid-area: 2 / 1 / 3 / 2;
        }
      }

      .item-03.parent {
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-template-rows: auto 1fr;
        grid-column-gap: 2.8rem;
        grid-row-gap: 3.8rem;

        .div1 {
          grid-area: 1 / 2 / 2 / 3;
          width: 48rem;
          align-self: start;
        }
        .div2 {
          grid-area: 1 / 1 / 3 / 2;
          width: 66.2rem;
          margin-top: -2.4rem;
        }
        .div3 {
          grid-area: 2 / 2 / 3 / 3;
          align-self: stretch;
          height: 100%;
        }
      }
    }
    @media screen and (max-width: 480px) {
      .parent {
        &.item-02 {
          margin-bottom: 6rem;
          .text_wrap {
            margin-bottom: 4rem;
          }
          .img_wrap {
            margin-bottom: 5rem;
          }
        }
        &.item-03 {
          .text_wrap {
            margin-bottom: 4rem;
          }
          .img_wrap {
            margin-bottom: 3rem;
          }
        }
      }
    }
  }
  /* カンパニー */
  .company_wrap {
    padding-bottom: 9rem;
    @media screen and (max-width: 480px) {
      padding-top: 3rem;
      padding-bottom: 5rem;
    }
    .section_inner {
      display: flex;
      justify-content: space-between;
      max-width: 124.2rem;
      @media screen and (max-width: 480px) {
        flex-direction: column;
      }
      h2 {
        max-width: 50.6rem;
        width: 43.25%;
        flex-shrink: 0;
        padding-left: 3.2rem;
        @media screen and (max-width: 480px) {
          width: 100%;
          padding: 0;
          margin-bottom: 5rem;
        }
        span {
          display: block;
          &.text {
            font-size: 3.2rem;
            color: var(--color-gold);
            margin-top: 1em;
          }
          @media screen and (max-width: 480px) {
            display: inline-block;
            &.img {
              height: 3.8rem;
              img {
                height: 100%;
                width: auto;
              }
            }

            &.text {
              font-size: 1.6rem;
              margin-left: 2.4rem;
              transform: translateY(-60%);
            }
          }
        }
      }
      .text_wrap {
        padding-top: 1.2rem;
        max-width: 65rem;
        width: 55.6%;
        @media screen and (max-width: 480px) {
          width: 100%;
          padding-top: 0;
        }
        .button_wrap {
          margin-top: 5rem;
          justify-content: space-between;
          @media screen and (max-width: 480px) {
            margin-top: 2.6rem;
            flex-direction: column;
            row-gap: 2rem;
          }
        }
      }
    }
  }
  /* カンパニーイメージ */
  .company_img {
    @media screen and (max-width: 1366px) {
      aspect-ratio: 1366/496;
    }
    @media screen and (max-width: 480px) {
      aspect-ratio: 390/416;
    }
  }
  /* ムービー */
  .movie_entry_list_wrap {
    @media screen and (max-width: 480px) {
      padding-top: 4.8rem;
      padding-bottom: 5.8rem;
    }
  }
  /* お問い合わせ */
  .contact_wrap {
    overflow: hidden;
    padding-top: 7.2rem;
    padding-bottom: 8.6rem;

    &.after::after {
      top: 7rem;
      bottom: auto;
      transform: translate(-26%, 0);
      max-width: 100%;
    }
    @media screen and (max-width: 480px) {
      padding-top: 4.2rem;
      padding-bottom: 5rem;
      &.after::after {
        top: 12.8rem;
      }
    }
    .section_inner {
      max-width: 96rem;
      h2 {
        padding-bottom: 3.6rem;
        margin-bottom: 4.8rem;
        @media screen and (max-width: 480px) {
          padding-bottom: 2rem;
          margin-bottom: 5.2rem;
        }
      }

      .tel_button_wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;

        @media screen and (max-width: 480px) {
          flex-direction: column;
          row-gap: 3.2rem;
        }
        .tel_wrap {
          a.tel {
            text-decoration: none;
            font-size: 4.4rem;
            font-weight: 400;
            line-height: 1.05;
            letter-spacing: 0.05em;
            @media screen and (max-width: 480px) {
              font-size: 3.8rem;
            }
          }
          p {
            margin-top: 1.4rem;
            font-size: 1.8rem;
            letter-spacing: 0.01em;
            line-height: 1.67;
            color: var(--color-text);
            @media screen and (max-width: 480px) {
              margin-top: 1.6rem;
              line-height: 1.73;
              font-size: 1.5rem;
            }
          }
        }
        .button_wrap {
          @media screen and (max-width: 480px) {
            width: 100%;
          }
        }
      }
    }
  }
  /* お知らせ関連 */
  section.information_wrap {
    .section_inner {
      display: flex;
      justify-content: space-between;
      @media screen and (max-width: 480px) {
        flex-direction: column;
        row-gap: 4rem;
      }
      .item {
        .title_wrap {
          position: relative;
          line-height: 1;
          margin-bottom: 3rem;
          h2 {
            font-size: 5rem;
            color: var(--color-navy);
            min-height: 2.2em;
            letter-spacing: 0.05em;
            @media screen and (max-width: 480px) {
              font-size: 2rem;
              line-height: 1.5;
            }
            small {
              font-size: 0.6em;
              display: block;
              @media screen and (max-width: 480px) {
                font-size: 0.7em;
              }
            }
            .en {
              font-size: 0.4em;
              color: var(--color-gold);
              font-weight: 400;
              display: block;
              margin-bottom: 0.5em;
              @media screen and (max-width: 480px) {
                font-size: 0.7em;
              }
            }
          }

          a {
            display: block;
            color: var(--color-navy);
            text-decoration: none;
            position: absolute;
            right: 0;
            top: 50%;
            padding-right: 7.2rem;
            font-size: 2rem;
            font-weight: 600;
            @media screen and (max-width: 480px) {
              font-size: 1.4rem;
              padding-right: 4.5rem;
            }

            &::before {
              content: "";
              width: 5.2rem;
              height: 5.2rem;
              box-sizing: border-box;
              border: 1px solid var(--color-navy);
              border-radius: 9999px;
              position: absolute;
              right: 0;
              top: 50%;
              transform: translate(0, -50%);
            }
            &::after {
              content: "";
              display: block;
              position: absolute;
              width: 2.8rem;
              aspect-ratio: 28 / 3;
              right: 0;
              top: 50%;
              border-bottom: 1px solid #000;
              border-right: 1px solid #000;
              transform: translate(-45%, -50%) skew(45deg);
            }

            @media screen and (max-width: 480px) {
              &::before {
                width: 4rem;
                height: 4rem;
              }
              &::after {
                width: 1.8rem;
                aspect-ratio: 18 / 2;
                transform: translate(-55%, -50%) skew(45deg);
              }
            }
          }
        }
      }
      .news_wrap {
        width: 41.9%;
        max-width: 48.1rem;
        @media screen and (max-width: 768px) {
          width: 100%;
          max-width: 100%;
        }
        /* PCは一覧の線を「一覧へ」ボタンより短くしてブログとの間をあける */
        .post_list_one_line {
          @media screen and (min-width: 769px) {
            width: 89.6%;
          }
        }
        /* PCは「一覧へ」ボタンの右端を一覧の線の右端にそろえる */
        .title_wrap a {
          @media screen and (min-width: 769px) {
            right: 10.4%;
          }
        }
      }
      .blog_wrap {
        max-width: 62rem;
        width: 53%;
        @media screen and (max-width: 768px) {
          width: 100%;
          max-width: 100%;
        }
      }
    }
  }
}
