@charset "utf-8";

.p-top-bg {
  background: var(--color-l-green);
}

.p-top-fv {
  display: flex;
  height: calc(768vw / 13.66);
  min-height: 450px;
  max-height: 100svh;
  background: linear-gradient(0deg, #111c17 0%, #25342c 100%) 0;
  overflow: hidden;

  @media (width < 768px) {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

.p-top-fv__content {
  position: relative;
  flex-shrink: 0;
  width: calc(640vw / 13.66);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 calc(72vw / 13.66) calc(100vw / 13.66);
  color: var(--color-l-green);

  @media (width < 1120px) {
    padding: 0 0 calc(74vw / 13.66) calc(24vw / 7.68);
  }

  @media (width < 768px) {
    width: 100%;
    padding: 90px 20px 56px;
  }
}

.p-top-fv__img {
  position: absolute;
  top: calc(180vw / 13.66);
  left: calc(178vw / 13.66);
  width: calc(286vw / 13.66);
  aspect-ratio: 286 / 360;

  @media (width < 768px) {
    position: static;
    width: 60%;
    max-width: 286px;
    margin: 0 auto;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.p-top-fv__text {
  position: relative;
  z-index: 1;

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

.p-top-fv__title,
.p-top-fv__sub-title {
  font-family: var(--font-noto-serif-jp);
  font-weight: 600;
  line-height: calc(65 / 43);
  white-space: nowrap;
}

.p-top-fv__title {
  font-size: clamp(28px, calc(43vw / 13.66), 43px);
}

.p-top-fv__sub-title {
  font-size: clamp(22px, calc(32vw / 13.66), 32px);
}

.p-top-fv__lead {
  margin-top: calc(44vw / 13.66);
  font-weight: 300;
  line-height: 2.26;
  word-break: keep-all;

  @media (width < 1120px) {
    font-size: clamp(11px, calc(14vw / 11.2), 14px);
  }

  @media (width < 768px) {
    margin-top: 24px;
    font-size: 13px;
  }
}

.p-top-fv__slider.swiper {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;

  @media (width < 768px) {
    flex: none;
    margin-left: auto;
    width: 90%;
    height: auto;
    aspect-ratio: 375 / 300;
  }

  .swiper-wrapper {
    transition-timing-function: linear;
  }

  .swiper-slide {
    width: calc(640vw / 13.66);
    height: 100%;
    object-fit: cover;

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

.gjs-dashed {
  .p-top-fv {
    height: auto;
    max-height: none;
  }

  .p-top-fv__content {
    max-height: 100vh;
  }

  .p-top-fv__slider.swiper {
    .swiper-wrapper {
      height: auto;
      display: flex;
      flex-wrap: wrap;
    }

    .swiper-slide {
      width: 50%;
      aspect-ratio: 64 / 76;
    }
  }
}

.p-top-service {
  position: relative;
  padding: 186px 0 120px;
  background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-d-green.png') no-repeat top center / clamp(1366px, 100vw, 100vw) auto;
  color: var(--color-l-green);

  @media (width < 768px) {
    padding: 140px 0 80px;
    background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-d-green.png') no-repeat top center / 767px auto;
  }
}

.p-top-service::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  background: linear-gradient(#111c17 0%, #25342c calc(338vw / 13.66), #1e2d27 60%);

  @media (width < 768px) {
    background: linear-gradient(#111c17 0%, #25342c 180px, #1e2d27 30%);
  }
}

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

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

.p-top-service__head {
  padding-top: 24px;
  width: 40%;
  padding-left: clamp(0px, calc(60vw / 13.66), 60px);

  @media (width < 1120px) {
    padding-top: 0;
    padding-left: 0;
    width: 42%;
  }

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

.p-top-service__heading-en {
  color: var(--color-l-green);
}

.p-top-service__heading-ja {
  line-height: 1.6;
  font-weight: 500;
}

.p-top-service__text {
  margin-top: 35px;

  @media (width < 1120px) {
    font-size: 13px;
  }

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

  p + p {
    margin-top: 16px;
  }
}

.p-top-service__btn {
  margin-top: 32px;
}

.p-top-service__list {
  width: 56%;
  border-top: 1px solid #c4d0bd;

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

.p-top-service__item {
  display: flex;
  align-items: start;
  gap: clamp(10px, calc(40vw / 13.66), 40px);
  padding: 40px 0 36px;
  border-bottom: 1px solid #c4d0bd;
  transition: opacity 0.3s ease;

  @media (width < 600px) {
    flex-direction: column;
    gap: 20px;
    padding: 32px 0;
  }
}

.p-top-service__item:hover {
  opacity: 0.7;
}

.p-top-service__img {
  width: 37%;
  aspect-ratio: 250 / 205;

  @media (width < 600px) {
    width: 100%;
    max-width: 250px;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.p-top-service__body {
  margin-top: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;

  @media (width < 1120px) {
    margin-top: 0;
  }

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

.p-top-service__item-title {
  font-family: var(--font-noto-serif-jp);
  font-size: 24px;
  font-weight: 500;
  line-height: calc(30 / 24);
}

.p-top-service__item-text {
  margin-top: 25px;
  line-height: calc(25 / 14);

  @media (width < 1120px) {
    font-size: 13px;
  }

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

.p-top-service__link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 31px;
  margin-left: auto;
  font-weight: 500;

  .p-top-service__link-arrow {
    display: grid;
    place-items: center;
    width: 22px;
    aspect-ratio: 1;
    background: var(--color-l-green);
  }

  img {
    width: 13px;
  }
}

.p-top-products {
  margin-top: clamp(-1000px, calc(-260vw / 13.66), -260px);
  padding: clamp(195px, calc(195vw / 13.66), 1000px) 0 0;
  background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-l-green.png') no-repeat top center / clamp(1366px, 100vw, 100vw) auto;
  position: relative;
  z-index: 2;
  overflow: hidden;

  @media (width < 768px) {
    padding: 140px 0 0;
    background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-l-green.png') no-repeat top center / 767px auto;
  }
}

.p-top-products::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 100%;
  height: calc(100% - clamp(264px, 20vw, 20vw));
  bottom: 0;
  left: 0;
  background: var(--color-l-green);

  @media (width < 768px) {
    height: calc(100% - 160px);
  }
}

.p-top-products__bg-img {
  width: 100%;
  height: calc(620vw / 13.66);
  min-height: 400px;
  position: relative;

  @media (width < 768px) {
    min-height: 240px;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.p-top-products__bg-img::after {
  content: '';
  position: absolute;
  width: 100%;
  height: calc(237vw / 13.66);
  min-height: 100px;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #1e2d27 0%, #80808000 100%);
  pointer-events: none;
}

.p-top-products__content {
}

.p-top-products__heading-sub {
  margin-top: 10px;
  font-family: var(--font-noto-serif-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;

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

  p {
    display: inline-block;
  }
}

.p-top-products__lead {
  margin-top: 20px;
}

.p-top-products__list {
  margin-top: 62px;

  section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;

    @media (width < 1120px) {
      grid-template-columns: repeat(2, 1fr);
    }

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

.p-top-products__btn {
  margin: 70px auto 0;
  text-align: center;
}

// .p-top-ordermade {
//   margin-top: clamp(-1000px, calc(-260vw / 13.66), -260px);
//   padding: clamp(195px, calc(195vw / 13.66), 1000px) 0 clamp(260px, calc(260vw / 13.66), 1000px);
//   background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-white.png') no-repeat top center / clamp(1366px, 100vw, 100vw) auto;
//   position: relative;
//   z-index: 2;

//   @media (width < 768px) {
//     padding: 140px 0 280px;
//     background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-white.png') no-repeat top center / 767px auto;
//   }
// }

// .p-top-ordermade::before {
//   content: '';
//   position: absolute;
//   z-index: -1;
//   width: 100%;
//   height: 60%;
//   height: calc(100% - clamp(264px, 20vw, 20vw));
//   bottom: 0;
//   left: 0;
//   background: #fcfcfa;

//   @media (width < 768px) {
//     height: calc(100% - 160px);
//   }
// }

// .p-top-ordermade__inner {
//   display: flex;
//   justify-content: space-between;
//   gap: 40px;

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

// .p-top-ordermade__head {
//   width: 44%;

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

// .p-top-ordermade__heading-en {
//   gap: 8px;
//   color: var(--color-green);
// }

// .p-top-ordermade__text {
//   margin-top: 40px;

//   @media (width < 768px) {
//     margin-top: 32px;
//     font-size: 13px;
//   }

//   p + p {
//     margin-top: 16px;
//   }
// }

// .p-top-ordermade__btn {
//   margin-top: 40px;

//   @media (width < 768px) {
//     margin-top: 32px;
//   }
// }

// .p-top-ordermade__list {
//   width: 50%;
//   margin-top: 168px;
//   border-top: 1px solid #c4d0bd;

//   @media (width < 1120px) {
//     margin-top: 120px;
//   }

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

// .p-top-ordermade__item {
//   display: flex;
//   align-items: start;
//   gap: 34px;
//   padding: 32px 0 22px;
//   border-bottom: 1px solid #c4d0bd;

//   @media (width < 1120px) {
//     padding-right: 0;
//   }

//   @media (width < 768px) {
//     gap: 12px;
//     padding: 24px 0 20px;
//   }
// }

// .p-top-ordermade__num {
//   flex-shrink: 0;
//   font-family: var(--font-noto-serif-jp);
//   font-size: 38px;
//   line-height: 1.1;
//   font-weight: 500;
//   color: var(--color-green);

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

// .p-top-ordermade__body {
//   margin-top: 8px;
//   flex: 1;

//   @media (width < 768px) {
//     margin-top: 5px;
//   }
// }

// .p-top-ordermade__item-title {
//   font-family: var(--font-noto-serif-jp);
//   font-size: 20px;
//   font-weight: 500;
//   line-height: 1.5;

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

// .p-top-ordermade__item-text {
//   margin-top: 10px;
//   max-width: 460px;
//   font-size: 14px;
//   line-height: calc(25 / 14);

//   @media (width < 768px) {
//     font-size: 13px;
//     max-width: 100%;
//   }
// }

.p-top-welding {
  margin-top: clamp(-1000px, calc(-380vw / 13.66), -380px);
  padding: clamp(195px, calc(195vw / 13.66), 1000px) 0 clamp(260px, calc(260vw / 13.66), 1000px);
  background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-l-green.png') no-repeat top center / clamp(1366px, 100vw, 100vw) auto;
  position: relative;
  z-index: 2;

  @media (width < 768px) {
    margin-top: -230px;
    padding: 140px 0 280px;
    background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-l-green.png') no-repeat top center / 767px auto;
  }
}

.p-top-welding::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 60%;
  height: calc(100% - clamp(264px, 20vw, 20vw));
  bottom: 0;
  left: 0;
  background: var(--color-l-green);

  @media (width < 768px) {
    height: calc(100% - 160px);
  }
}

.p-top-welding__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;

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

.p-top-welding__head {
  width: 44%;

  @media (width < 1120px) {
    flex: 1 1 auto;
  }

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

.p-top-welding__heading-en {
  gap: 8px;
  color: var(--color-green);
}

.p-top-welding__text {
  margin-top: 40px;

  @media (width < 1120px) {
    font-size: 13px;
  }

  @media (width < 768px) {
    margin-top: 32px;
    word-break: keep-all;
  }

  p + p {
    margin-top: 16px;
  }
}

.p-top-welding__img {
  margin-top: 168px;
  width: 50%;
  aspect-ratio: 326/217;

  @media (width < 1120px) {
    margin-top: 120px;
    width: 46%;
  }

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

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.p-top-works {
  margin-top: clamp(-1000px, calc(-260vw / 13.66), -260px);
  padding: clamp(195px, calc(195vw / 13.66), 1000px) 0 clamp(260px, calc(260vw / 13.66), 1000px);
  background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-white.png') no-repeat top center / clamp(1366px, 100vw, 100vw) auto;
  position: relative;
  z-index: 2;
  overflow: hidden;

  @media (width < 768px) {
    padding: 140px 0 280px;
    background: url('https://e-mot-weld.com/system_panel/uploads/images/bg-white.png') no-repeat top center / 767px auto;
  }

  .c-heading__ja {
    @media (width < 768px) {
      font-size: 24px;
    }
  }
}

.p-top-works::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 100%;
  height: calc(100% - clamp(264px, 20vw, 20vw));
  bottom: 0;
  left: 0;
  background: #fcfcfa;

  @media (width < 768px) {
    height: calc(100% - 160px);
  }
}

.p-top-works__head-flex {
  margin-top: -6px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;

  @media (width < 1120px) {
    margin-top: 28px;
  }

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

.p-top-works__lead {
  margin-bottom: -0.5em;
  word-break: auto-phrase;

  @media (width < 768px) {
    align-self: start;
  }
}

.p-top-works__btn {
  flex-shrink: 0;
}

.p-top-works__list {
  margin-top: 70px;
  padding-bottom: 40px;

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

  section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;

    @media (width < 1120px) {
      grid-template-columns: repeat(2, 1fr);
    }

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

.p-top-news {
  background: var(--color-l-green);
  padding: 94px 0 60px;

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

.p-top-news__content {
  border-top: 1px solid #c4d0bd;
  padding-top: 95px;
  max-width: 1095px;
  margin: 0 auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;

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

.p-top-news__head {
  width: 20%;
  min-width: fit-content;

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

.p-top-news__btn {
  margin-top: 34px;

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

.p-top-news__list {
  margin-top: 55px;
  width: 73.2%;

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

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

  section {
    border-top: 1px solid #c4d0bd;
    display: flex;
    flex-direction: column;

    .c-news-item {
      @media (width < 1120px) {
        flex-direction: column;
        align-items: start;
        height: auto;
        padding: 14px 0;
      }
    }
  }
}

.p-insta {
  background: var(--color-l-green);
  padding: 60px 0 60px;

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

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

  .c-heading__en {
    gap: 10px;
    letter-spacing: 0.08em;
  }

  .c-heading__ja {
    margin-top: 12px;
    font-size: 30px;
    line-height: calc(50 / 30);
  }
}

.p-insta__content {
  background: var(--color-white);
  padding: 100px 0 100px 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  @media (width < 1120px) {
    align-self: start;
    flex-direction: column;
    gap: 40px;
  }

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

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

.p-insta__head {
  margin-top: -12px;
  width: fit-content;
  min-width: 250px;

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

.p-insta__lead {
  margin-top: 20px;
}

.p-insta__btn {
  margin-top: 30px;

  .c-arrow-btn {
    height: 58px;
  }

  .c-arrow-btn::after {
    width: 30px;
    height: auto;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: url('https://e-mot-weld.com/system_panel/uploads/images/insta-green.svg') no-repeat center center / contain;
  }

  .c-arrow-btn:hover::after {
    background: url('https://e-mot-weld.com/system_panel/uploads/images/insta-white.svg') no-repeat center center / contain;
  }
}

.p-insta__body {
  width: 70%;

  @media (width < 1120px) {
    width: auto;
    align-self: end;
  }

  @media (width < 600px) {
    align-self: center;
  }

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

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

  article {
    width: 100%;
  }

  .imgBx01 {
    display: block;
  }

  .imgBx01:hover {
    opacity: 0.7;
  }

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

  .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-base);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.09em;
  }

  .webgene-item .snsTit {
    margin-top: 15px;
    line-height: calc(26 / 14);
  }
}
