@charset "UTF-8";

.body-index {
  &::before {
    display: none;
  }

  main {
    padding-top: unset;
  }
}

/* ===== KV ===== */
.kv {
  position: relative;
  width: 100%;
  isolation: isolate;
  inset: 0;
  border-radius: 0 0 0 140px;
  height: 810px;
  overflow: hidden;
  z-index: 0;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 46%;
    width: 1500px;
    height: 100%;
    transform: translateX(-50%);
    background-image: url(/assets/img/top/kv/bg_on-mark.svg);
    background-repeat: no-repeat;
    background-position: center -300px;
    background-size: 1500px auto;
    z-index: -1;
    pointer-events: none;
  }

  .kv__inner {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-top: 210px;
    padding-bottom: 100px;

    .kv__copy {
      display: grid;
      white-space: nowrap;

      .kv__catch {
        margin-bottom: 44px;

        img {
          width: 39.4vw;
          max-width: 560px;
          height: auto;
        }
      }

      .kv__sub {
        margin: 0;
        line-height: 140%;
        letter-spacing: 2.5px;
        color: var(--color-secondary);
        font-size: clamp(16px, 1.95vw, 28px);
        font-weight: 500;
      }
    }

    .kv__art {
      position: absolute;
      right: 10px;

      .kv__people {
        display: block;
        width: 46.2vw;
        max-width: 658px;
      }
    }
  }

  .kv__bg_on-mark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(calc(-35%));
    width: 1043px;
    height: auto;
    opacity: 0.8;
    z-index: -1;
  }
}

@media (max-width: 790px) {
  .kv {
    height: 100vh;

    &::before {
      content: "";
      top: -2%;
      left: 36%;
      background-position: center 0px;
      background-size: 700px auto;
    }

    .kv__inner {
      display: block;
      padding-top: 100px;
      padding-bottom: 0;

      .kv__copy {
        display: block;
        white-space: wrap;

        .kv__catch {
          margin-bottom: 30px;

          img {
            width: 100%;
          }
        }

        .kv__sub {
          font-size: clamp(14px, 4.2vw, 16px);
          letter-spacing: 1px;
        }
      }

      .kv__art {
        position: relative;
        bottom: 0;
        top: 30px;

        .kv__people {
          width: 100%;
          max-width: 90%;
          margin: 0 auto;
        }
      }
    }
  }
}

/* ===== SERVICE ===== */
.service {
  position: relative;
  width: 100%;
  isolation: isolate;
  inset: 0;
  /* padding: 66px 0; */
  /* background: url(/assets/img/top/service/bg_01.webp) no-repeat center / cover; */
  /* border-radius: 140px 0 140px 0; */
  z-index: 0;

  .service_bg {
    .service_bg_img {
      position: absolute;
      height: 100%;
      width: 100%;
      border-radius: 140px 0 140px 0;
    }

    .service__layout {
      padding-top: 66px;
      padding-bottom: 66px;
    }
  }

  &::before {
    content: "";
    position: absolute;
    top: -140px;
    right: 0;
    width: 140px;
    height: 140px;
    background: url(/assets/img/top/service/bg_02.webp) no-repeat center center /
      contain;
    z-index: -1;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: 0;
    width: 140px;
    height: 140px;
    background: url(/assets/img/top/service/bg_03.webp) no-repeat center center /
      contain;
    z-index: -1;
  }

  .bg_gritty {
    &::before {
      top: 0px;
      left: 90%;
      height: 100%;
      background-image: url(/assets/img/bg_gritty_02.webp);
    }
  }

  .service__layout {
    .service__intro {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 20px;
      padding-bottom: 28px;
    }

    .service-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 32px;
      margin-top: 18px;
    }
  }

  .service-item {
    position: relative;
    height: 355px;
    flex: 1 1 calc(31%);
    max-width: calc(31%);
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-card);

    .service-item__link {
      height: 100%;
      display: block;
      padding: 15px;
      border-radius: 24px;
    }

    .service-item__hero {
      display: grid;
      place-items: center;
      width: 166px;
      height: 166px;
      margin: 0 auto;

      img {
        width: 100%;
      }
    }

    .service-item__eyebrow {
      position: relative;
      display: block;
      width: max-content;
      margin: 12px auto 15px;
      text-align: center;
      font-size: clamp(14px, 1.05vw, 16px);
      font-weight: 600;
      font-family: var(--font-noto-sans-jp);
      color: var(--color-primary);
      white-space: nowrap;
      border-bottom: 2px solid var(--color-primary);
      max-width: 100%;

      &::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -10px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 10px solid var(--color-primary);
      }
    }

    .service-item__title {
      margin: 0;
      text-align: center;
      font-weight: 600;
      font-size: clamp(16px, 1.44vw, 22px);
      line-height: 1.35;
      letter-spacing: -1px;
      color: var(--color-secondary);
    }

    .service-item__tags {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      list-style: none;
      padding: 0;
      margin: 10px 0;

      li {
        padding: 5px 0;
        line-height: 1.2;
        font-family: var(--font-noto-sans-jp);
        font-size: 12px;
        color: var(--color-base-black);

        &.service-item__tags-bg {
          padding: 5px 10px;
          background: var(--color-gray-60);
          border-radius: 30px;
        }
      }
    }

    .service-item__arrow {
      position: absolute;
      right: 12px;
      bottom: 12px;
      width: 40px;
      height: 40px;
    }
  }
}

@media (max-width: 1110px) {
  .service {
    padding: 30px 0 90px;

    .service__layout {
      .service__intro {
        align-items: normal;
        flex-direction: column;
      }

      .service-grid {
        margin-top: 10px;
      }
    }
    .service-item {
      flex: 1 1 calc(47%);
      max-width: calc(47%);

      .service-item__title {
        font-size: clamp(16px, 5.3vw, 19px);
      }

      .service-item__tags {
        li {
          font-size: 10px;
        }
      }
    }
  }
}

@media (max-width: 790px) {
  .service {
    /* background: url(/assets/img/top/service/bg_01_sp.webp) no-repeat center /
      cover;
    border-radius: 70px 0 70px 0; */
    padding: 0;

    .service_bg {
      .service_bg_img {
        border-radius: 70px 0 70px 0;
      }

      .service__layout {
        padding-top: 40px;
        padding-bottom: 40px;
      }
    }

    &::before {
      background: url(/assets/img/top/service/bg_02_sp.webp) no-repeat center
        center / cover;
      top: -69.5px;
      width: 70px;
      height: 70px;
    }

    &::after {
      background: url(/assets/img/top/service/bg_03_sp.webp) no-repeat center
        center / cover;
      bottom: -69.5px;
      width: 70px;
      height: 70px;
    }

    .service-item {
      flex: 1 1 100%;
      max-width: 100%;
    }
  }
}

/* ===== ABOUT ===== */
.about {
  position: relative;
  padding: 72px 0 88px;

  .bg_gritty {
    &::before {
      top: 20%;
      left: 30%;
      height: 60%;
      background-image: url(/assets/img/bg_gritty_03.webp);
    }
  }

  .about__flex {
    list-style: none;
    margin: 80px 0 0;
    padding: 0;
    gap: 85px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    .about__item {
      border-radius: 16px;
      text-align: center;

      .about__figure {
        position: relative;
        text-align: center;
        margin: 0;

        img {
          display: block;
          margin: 0 auto;
          height: 300px;
          width: auto;
        }

        figcaption {
          .about__title {
            margin: 35px 0 21px;
            line-height: 115.5%;
            letter-spacing: 1.8px;
            font-size: clamp(11px, 3vw, 28px);
            font-weight: 700;
            color: var(--color-secondary);
          }

          .about__text {
            margin: 0;
            letter-spacing: 1.6px;
            font-size: 18px;
            color: var(--color-base-black);
          }
        }
      }
    }
  }
}

@media (max-width: 900px) {
  .about {
    padding: 50px 0 88px;

    .bg_gritty {
      &::before {
        top: 50%;
        left: 10%;
      }
    }

    .about__flex {
      gap: 30px 0;
      margin: 40px 0 0;

      .about__item {
        width: 50%;

        .about__figure {
          img {
            max-width: 100%;
            height: auto;
          }

          figcaption {
            .about__title {
              margin: 20px 0 10px;
              letter-spacing: 0.8px;
              font-size: clamp(11px, 3.7vw, 15px);
            }

            .about__text {
              letter-spacing: 1px;
              font-size: clamp(9px, 2.6vw, 11px);
              white-space: nowrap;
              letter-spacing: 0.4px;
            }
          }
        }
      }
    }
  }
}

/* ===== CASES ===== */
.cases {
  position: relative;
  width: 100%;
  isolation: isolate;
  inset: 0;
  padding: 26px 0 77px;
  background: url(/assets/img/top/cases/bg_01.webp) no-repeat center center;
  background-size: cover;
  border-radius: 0 140px 0 140px;
  /* z-index: -2; */

  &::before {
    content: "";
    position: absolute;
    top: -140px;
    left: 0;
    width: 140px;
    height: 140px;
    background: url(/assets/img/top/cases/bg_02.webp) no-repeat center center;
    background-size: contain;
    z-index: -1;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: -140px;
    right: 0;
    width: 140px;
    height: 140px;
    background: url(/assets/img/top/cases/bg_03.webp) no-repeat center center;
    background-size: contain;
    z-index: -1;
  }

  .bg_gritty {
    height: 180%;

    &::before {
      top: 41%;
      left: 126%;
      height: 27%;
      background-image: url(/assets/img/bg_gritty_04.webp);
    }
  }

  .cases__layout {
    display: flex;
    flex-direction: column;
    gap: 49px;

    .cases__intro {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 72%;
    }

    .cases-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 32px;
      max-width: 838px;
    }
  }
}

@media (max-width: 790px) {
  .cases {
    background: url(/assets/img/top/cases/bg_01_sp.webp) no-repeat center center /
      cover;
    padding: 16px 0 73px;
    border-radius: 0 70px 0 70px;

    &::before {
      background: url(/assets/img/top/cases/bg_02_sp.webp) no-repeat center
        center / cover;
      top: 69.5px;
      width: 70px;
      height: 70px;
    }

    &::after {
      background: url(/assets/img/top/cases/bg_03_sp.webp) no-repeat center
        center / cover;
      bottom: -69.5px;
      width: 70px;
      height: 70px;
    }

    .bg_gritty {
      &::before {
        top: 0%;
        left: 86%;
      }
    }

    .cases__layout {
      gap: 85px;

      .cases__intro {
        width: 100%;
      }
    }
  }
}

/* ===== FAQ ===== */
.faq {
  position: relative;
  width: 100%;
  isolation: isolate;
  inset: 0;
  padding: 130px 0 77px;
  border-radius: 0 140px 0 140px;

  .bg_gritty {
    top: 57%;

    &::before {
      top: 0;
      left: 49%;
      height: 12%;
      background-image: url(/assets/img/bg_gritty_05.webp);
    }
  }

  .faq__layout {
    display: flex;
    flex-direction: column;
    gap: 49px;

    .faq__intro {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .section-title {
        .section-title__lead {
          width: 75%;
        }
      }
    }

    .faq__images {
      display: flex;
      flex-wrap: wrap;

      .faq__image {
        margin: 0 auto;

        img {
          width: 100%;
        }

        &.faq_img {
          width: 30%;
        }

        &.faq_text {
          width: 70%;
        }

        .cta {
          margin: 0;
          bottom: 20px;
        }
      }

      .clm {
        position: relative;
        display: grid;
        gap: 16px;
        margin: 0;
        padding: 10px 50px 47px 80px;
        width: 63%;
        counter-reset: step;
        list-style: none;

        li {
          position: relative;
          display: flex;
          align-items: flex-start;
          background: #fff;
          border-radius: 16px;
          padding: 10px 17px;

          &:last-child .flowBox_step::before {
            display: none;
          }

          .flowBox {
            position: relative;
            display: grid;
            grid-template-columns: max-content auto;
            gap: 30px;
            align-items: center;

            .flowBox_step {
              position: relative;

              &::before {
                content: "";
                position: absolute;
                top: 68px;
                bottom: -32px;
                left: 50%;
                transform: translateX(-50%);
                background-image: radial-gradient(
                  circle,
                  #2e6b3f 1.8px,
                  transparent 1.8px
                );
                background-repeat: repeat-y;
                z-index: 1;
                background-size: 5px 7px;
                inline-size: 5px;
              }

              .listNum {
                counter-increment: step;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 64px;
                height: 64px;
                border-radius: 50%;
                background: var(--color-secondary);
                color: #fff;
                font-family: "DIN 2014";
                font-weight: bold;
                letter-spacing: 1.3px;
                position: relative;
                z-index: 1;

                &::before {
                  content: "STEP";
                  margin-top: 4px;
                  line-height: 1;
                  font-size: 10px;
                }

                &::after {
                  content: counter(step, decimal-leading-zero);
                  line-height: 1;
                  font-size: 30px;
                }
              }
            }

            .flowBox_body {
              h3 {
                margin: 0;
                font-size: 24px;
                color: var(--color-base-black);
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 790px) {
  .faq {
    padding: 50px 0 73px;
    border-radius: 0 70px 0 70px;

    .bg_gritty {
      top: 1%;

      &::before {
        top: 0;
        left: 200%;
        width: 300%;
      }
    }

    .faq__layout {
      gap: 50px;

      .faq__intro {
        width: 100%;
      }

      .faq__images {
        .faq__image {
          &.faq_img {
            width: 80% !important;
          }

          &.faq_text {
            position: relative;
            top: -45px;
            width: 100% !important;
            margin-bottom: -30px;
          }

          .cta {
            margin: 0;
            bottom: 20px;
          }
        }
      }

      .flow__images {
        gap: 20px;

        .clm {
          gap: 12px;
          padding: 0 0 30px 0;
          width: 100%;

          li {
            padding: 5px 13px;

            .flowBox {
              gap: 20px;

              .flowBox_step {
                &::before {
                  top: 48px;
                  bottom: -21px;
                  left: 50%;
                  background-size: 5px 5px;
                  inline-size: 5px;
                  background-image: radial-gradient(
                    circle,
                    #2e6b3f 1.5px,
                    transparent 1.5px
                  );
                }

                .listNum {
                  width: 47px;
                  height: 47px;
                  letter-spacing: 0.7px;

                  &::before {
                    font-size: clamp(7px, 1.8vw, 10px);
                  }

                  &::after {
                    font-size: clamp(20px, 5vw, 23px);
                  }
                }
              }

              .flowBox_body {
                h3 {
                  font-size: clamp(14px, 4.5vw, 18px);
                }
              }
            }
          }
        }

        .order_01 {
          order: 2;
        }
        .order_02 {
          order: 1;
        }
        .order_03 {
          order: 3;
        }
      }
    }
  }
}

/* ===== CRED ===== */
.cred {
  position: relative;
  width: 100%;
  isolation: isolate;
  inset: 0;
  padding: 70px 0 130px;

  .bg_gritty {
    &::before {
      top: 0;
      left: 72%;
      height: 367%;
      background-image: url(/assets/img/bg_gritty_06.webp);
    }
  }

  .cred__layout {
    display: flex;
    flex-direction: column;
    gap: 50px;

    .cred__intro {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 75%;
    }

    .cred__images {
      display: flex;
      flex-wrap: wrap;

      .cred__image_flex {
        display: flex;
        align-items: center;
      }

      .cred__image {
        margin: 0 auto;

        img {
          width: 100%;
        }

        &.cred_img {
          width: 10%;
          min-width: 110px;
          margin: 0;
        }
      }

      .cred__panel {
        padding: 0 40px 35px;

        .cred__text {
          margin: 0 0 40px;
          line-height: 1.5;
          text-align: center;
          font-size: 24px;
          font-weight: 700;
          color: var(--color-base-black);
        }

        .cred__logos {
          align-items: center;
          gap: 60px;
          margin: 0;
          padding: 0;
          list-style: none;
          background-color: #fff;
          padding: 40px;
          border-radius: 24px;
          display: flex;
          justify-content: center;

          .cred__logo {
            figure {
              margin: 0;
              text-align: center;
            }

            img {
              max-width: 200px;
              width: 100%;
              height: auto;
              display: inline-block;
              vertical-align: middle;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 790px) {
  .cred {
    padding: 16px 0 120px;
    border-radius: 0 70px 0 70px;

    .bg_gritty {
      &::before {
        height: 100%;
      }
    }

    .cred__layout {
      gap: 30px;

      .cred__intro {
        width: 100%;
      }

      .cred__images {
        gap: 40px;

        .cred__image_flex {
          display: block;
          align-items: unset;
          position: relative;
        }

        .cred__image {
          &.cred_img {
            position: absolute;
            width: 80px;
            bottom: -30px;
            min-width: unset;
          }

          &.cred_text {
            position: relative;
            top: -45px;
            width: 100% !important;
            margin-bottom: -30px;
          }
        }

        .cred__panel {
          padding: 0;

          .cred__text {
            margin: 0 0 20px;
            letter-spacing: 1.8px;
            font-size: clamp(12px, 3.3vw, 16px);
          }

          .cred__logos {
            flex-wrap: wrap;
            padding: 10px 20px 30px;
            gap: 30px 60px;

            .cred__logo {
              figure {
                margin: 0;
                text-align: center;
              }

              img {
                max-width: 180px;
              }
            }
          }
        }
      }
    }
  }
}
