@charset "utf-8";

.p-top-fv {
  position: relative;
  width: 100%;
  min-height: 630px;
  height: 100vh;
  max-height: 769px;
  overflow: hidden;

  @media (width < 768px) {
    height: 520px;
    min-height: auto;
    max-height: none;
  }
}

.gjs-dashed *[data-highlightable] .p-top-fv {
  height: max-content;
  max-height: none;
  background: transparent linear-gradient(180deg, rgba(225, 238, 186, 0) 0%, rgba(188, 224, 177, 0) 39.42%, rgba(156, 212, 169, 0.82) 73.69%, #239edf 100%);
}

.p-top-fv__slides.swiper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;

  .swiper-wrapper {
    z-index: 0;
  }

  .swiper-slide {
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
  }

  .swiper-slide.is-zooming {
    animation: fv-kenburns 5s linear forwards;
  }
}

@keyframes fv-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.gjs-dashed *[data-highlightable] .p-top-fv__slides {
  .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
  }

  .swiper-slide {
    width: 33%;
    height: 200px;
  }
}

.p-top-fv__slides::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent linear-gradient(180deg, rgba(225, 238, 186, 0) 0%, rgba(188, 224, 177, 0) 39.42%, rgba(156, 212, 169, 0.82) 73.69%, #239edf 100%);
}

.gjs-dashed *[data-highlightable] .p-top-fv__slides::before {
  display: none;
}

.p-top-fv__inner {
  padding-right: 80px;
  padding-left: clamp(20px, calc(110vw / 13.66), 110px);
  position: absolute;
  z-index: 2;
  bottom: 72px;

  @media (width < 1120px) {
    padding-left: 15px;
  }

  @media (width < 768px) {
    padding-right: 60px;
    bottom: 40px;
  }
}

.p-top-fv__text {
  color: var(--color-white);
  font-size: clamp(14px, calc(24vw / 13.66), 24px);
  font-weight: 700;
  line-height: 1.58;
}

.p-top-fv__title {
  margin: 32px auto 0;
  font-family: var(--font-noto-sans);
  font-weight: 500;
  font-size: clamp(30px, calc(87vw / 13.66), 87px);
  line-height: 1;
  letter-spacing: -0.01em;

  @media (width < 768px) {
    margin: 20px auto 0;
  }

  span {
    display: block;
  }

  span + span {
    @media (width < 768px) {
      margin-top: 10px;
    }
  }
}

.p-top-works {
  margin-top: 110px;
  overflow: hidden;

  .l-inner {
    border-radius: 20px 0 0 20px;
    background: #f4f4f4;
    padding: 54px 96px 70px 52px;
    max-width: none;
    margin-left: 56px;

    @media (width < 1120px) {
      margin-left: 20px;
      padding: 54px 52px 70px;
    }

    @media (width < 768px) {
      padding: 40px 20px 50px;
    }
  }

  .c-heading {
    width: fit-content;
  }
}

.p-top-works__slides.swiper {
  margin-top: 40px;
  overflow: visible;

  .swiper-slide {
    width: 354px;

    @media (width < 1120px) {
      width: 280px;
    }

    @media (width < 768px) {
      margin-top: 70px;
      width: 260px;
    }
  }
}

.p-top-works__slide-btn {
  .swiper-button-prev,
  .swiper-button-next {
    bottom: auto;
    top: -64px;
    width: 62px;
    height: 30px;
    background: var(--color-white);
    border: 1px solid #3ba7d3;
    border-radius: 100px;
    transition: all 0.3s ease;

    @media (width < 768px) {
      top: 30px;
    }
  }

  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    background: #3ba7d3;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    aspect-ratio: 17/8;
    background: url("https://eco-connect-plus.co.jp/system_panel/uploads/images/btn-arrow-blue.svg") no-repeat center center / contain;
    transition: all 0.3s ease;
  }

  .swiper-button-prev:hover::after,
  .swiper-button-next:hover::after {
    background: url("https://eco-connect-plus.co.jp/system_panel/uploads/images/btn-arrow-white.svg") no-repeat center center / contain;
  }

  .swiper-button-prev {
    right: 92px;
    left: auto;

    @media (width < 768px) {
      right: 78px;
    }
  }

  .swiper-button-prev::after {
    transform: rotate(180deg) translate(-50%, -50%);
    transform-origin: top left;
  }

  .swiper-button-next {
    right: 14px;

    @media (width < 768px) {
      right: 0;
    }
  }
}

.gjs-dashed *[data-highlightable] .p-top-works__slide-btn {
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

.p-top-works__btn-inner {
  margin-top: 48px;
  margin-right: 18px;
  text-align: right;

  @media (width < 768px) {
    margin-right: 0;
  }
}

.p-about {
  padding-top: 88px;
}

.p-about__head-text {
  font-family: var(--font-noto-sans);
  font-size: 80px;
  font-size: clamp(36px, calc(80vw / 10.24), 80px);
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  margin: auto;
  max-width: 1140px;

  div:first-of-type {
    color: var(--color-cyan);
  }
}

.p-about__img {
  margin-top: -126px;
  margin-top: clamp(-126px, calc(-126vw / 10.24), 0px);
  width: 100%;
  position: relative;
}

.p-about__slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1266/550;
  height: auto;
  min-height: 350px;
  border-radius: 20px;
  overflow: hidden;
}

.gjs-dashed *[data-highlightable] .p-about__slides {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  height: auto;
  aspect-ratio: auto;
}

.p-about__slide {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 2s ease-out,
    transform 8s linear;
  object-fit: cover;
  border-radius: 5px;
}

.gjs-dashed *[data-highlightable] .p-about__slide {
  height: auto;
  overflow: auto;
  position: static;
  opacity: 1;
  width: 33.3%;
  height: auto;
}

.p-about__slide.is-active {
  opacity: 1;
  transform: scale(1.1);
}

.p-about__main-text {
  position: absolute;
  right: 9%;
  top: clamp(50px, calc(236vw / 13.66), 236px);
  writing-mode: vertical-rl;

  @media (width < 768px) {
    top: 150px;
  }

  div:not(:first-of-type) {
    margin-right: clamp(10px, calc(23vw / 13.66), 23px);
    margin-top: clamp(50px, calc(106vw / 13.66), 160px);
  }

  p {
    white-space: nowrap;
    background: var(--color-white);
    border-radius: 5px;
    font-size: clamp(24px, calc(28vw / 13.66), 28px);
    font-weight: 700;
    line-height: 1.7;
    padding: 12px 0px 0;
    letter-spacing: 0.35em;
    color: var(--color-cyan);
    height: fit-content;

    @media (width < 768px) {
      font-size: 22px;
    }
  }
}

.p-about__body {
  margin-top: -300px;
  width: 100%;
  padding: 418px 0 114px;
  background: var(--color-g-green);

  .l-inner {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin: auto;
    max-width: 1190px;

    @media (width < 768px) {
      flex-direction: column;
    }
  }
}

.p-about__heading {
  width: 34%;
  min-width: fit-content;
  flex-shrink: 0;
  gap: 16px;

  @media (width < 768px) {
    width: 100%;
  }

  .c-heading__en {
    font-size: 80px;
    line-height: 1.1;

    @media (width < 768px) {
      font-size: 47px;
    }
  }

  .c-heading__ja {
    flex-direction: column;
    align-items: start;
    gap: 18px;
  }

  .c-heading__ja::before {
    width: 90px;
  }
}

.p-about__text {
  margin-top: 105px;
  font-size: 16px;
  max-width: 470px;
  letter-spacing: 0.03em;
  line-height: 2.3;

  @media (width < 768px) {
    margin-top: 24px;
    max-width: none;
  }

  div + div {
    margin-top: 42px;
  }
}

.p-top-service {
  padding: 134px 0;

  @media (width < 768px) {
    padding: 80px 0;
  }

  .l-inner {
    max-width: 1180px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;

    @media (width < 768px) {
      flex-direction: column;
      gap: 60px;
    }
  }
}

.p-top-service__left {
  width: 28%;

  @media (width < 768px) {
    width: 100%;
  }
}

.p-top-service__text {
  padding: 42px 0;

  @media (width < 768px) {
    padding: 30px 0;
  }
}

.p-top-service__right {
  width: 63.3%;

  @media (width < 768px) {
    margin: 0 auto;
    width: 100%;
    max-width: 720px;
  }

  img {
    width: 100%;
    max-height: 450px;
    border-radius: 10px;
    object-fit: contain;
  }
}

.p-top-news {
  background: var(--color-g-green);
  padding-bottom: 100px;

  @media (width < 768px) {
    padding-bottom: 80px;
  }

  .l-inner {
    max-width: 1180px;
  }
}

.p-top-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  @media (width < 768px) {
    flex-direction: column;
  }
}

.p-top-link {
  width: 48%;
  aspect-ratio: 542 / 280;
  border-radius: 10px;
  overflow: hidden;
  padding: 38px 45px;
  position: relative;
  background: linear-gradient(180deg, #f4faf2 0%, #dbeff5 100%);

  @media (width < 1120px) {
    padding: 20px;
  }

  @media (width < 768px) {
    width: 100%;
    max-width: 542px;
    margin: 0 auto;
  }

  .c-heading__en,
  .c-heading__ja {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
  }

  .c-heading__ja::before {
    transition: all 0.3s ease;
  }
}

.p-top-link:hover {
  .c-heading__en,
  .c-heading__ja {
    color: var(--color-white);
  }

  .c-heading__ja::before {
    background: var(--color-white);
  }

  .p-top-link__bg {
    opacity: 1;
  }
}

.p-top-link__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: all 0.3s ease;
}

.p-top-link__arrow {
  border-radius: 100px;
  width: 62px;
  height: 30px;
  border: 1px solid var(--color-l-cyan);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 30px;
  right: 34px;
  z-index: 1;

  @media (width < 1120px) {
    bottom: 20px;
    right: 20px;
  }

  img {
    width: 30%;
    aspect-ratio: 16/7;
    object-fit: contain;
  }
}

.p-top-news__flex {
  padding: 114px 0 0;
  display: flex;
  align-items: start;
  gap: 20px;
  justify-content: space-between;

  @media (width < 768px) {
    padding: 80px 0 0;
    flex-direction: column;
    gap: 60px;
  }
}

.p-top-news__left {
  width: 32%;

  @media (width < 768px) {
    width: 100%;
  }
}

.p-top-news__text {
  padding: 42px 0;

  @media (width < 768px) {
    padding: 30px 0;
  }
}

.p-top-news__lists {
  width: 65%;
  margin-top: 30px;

  @media (width < 768px) {
    width: 100%;
    margin-top: 0;
  }

  section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

.p-instagram {
  padding: 130px 0;

  @media (width < 768px) {
    padding: 80px 0;
  }
}

.p-instagram__body {
  margin: 40px auto 0;

  section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;

    @media (width < 768px) {
      grid-template-columns: repeat(2, 1fr);
      width: fit-content;
      margin: 0 auto;
    }

    @media (width < 600px) {
      display: flex;
      flex-direction: column;
    }
  }

  article {
    width: 100%;

    @media (width < 768px) {
      width: 254px;
    }
  }

  .imgBx01 {
    display: block;
  }

  .imgBx01:hover {
    opacity: 0.7;
  }

  .imgBx01 img,
  .imgBx01 video {
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-gray);
    border-radius: 10px;
    overflow: hidden;
  }

  .imgBx01 > span {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
  }

  .imgBx01 > img + span,
  .imgBx01 > video + span {
    display: none;
  }

  .webgene-item-main-video {
    display: block;
    width: auto;
    max-width: 100%;
  }

  .webgene-item .dayTxt {
    margin-top: 15px;
    color: var(--color-gray);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.09em;
  }
}
