.main {
  overflow: hidden;
}

.fv {
  background-color: #ef2c2a;
  height: 100svh;
  max-height: 640px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.fv-slide {
  height: 100%;
  margin-left: 12px;
  position: relative;
}
.fv-slide::after {
  background-color: rgba(0, 0, 0, 0.2);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.fv-slide__swiper {
  height: 100%;
  overflow: hidden;
}
.fv-slide__swiper .swiper-slide {
  height: 100%;
  overflow: hidden;
}
.fv-slide__swiper .swiper-slide img {
  transform: scale(1);
  transition: transform 6.5s linear;
}
.fv-slide__swiper .swiper-slide-active img,
.fv-slide__swiper .swiper-slide-duplicate-active img {
  transform: scale(1.15);
}

.fv__contents {
  bottom: 78px;
  left: 0;
  padding-inline: 20px;
  position: absolute;
  right: 0;
  z-index: 3;
}

.fv__heading {
  color: #ffffff;
  font-size: clamp(1.375rem, 0.9492936428rem + 1.8163471241vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.65;
  margin-inline: auto;
  max-width: 1146px;
  width: 100%;
}

.fv-wave {
  bottom: 80px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: 100%;
  z-index: 2;
}
.fv-wave img {
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: bottom;
     object-position: bottom;
  width: 100%;
}

.about {
  overflow: hidden;
  padding: 48px 0 56px;
  position: relative;
  z-index: 2;
}
.about::before {
  background-color: #ef2c2a;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: calc(100% - 10px);
}

.about__inner {
  position: relative;
  z-index: 1;
}

.about__body {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__content {
  width: 100%;
}
.about__content .c-desc {
  color: #ffffff;
  margin-top: 20px;
}
.about__content .c-title-en {
  color: #ffffff;
}
.about__content .c-title-jp {
  color: #ffffff;
}
.about__content .c-catch {
  color: #ffffff;
  margin-top: 20px;
}

.about__img {
  aspect-ratio: 480/500;
  border-radius: 5px;
  max-width: 480px;
  overflow: hidden;
  width: 100%;
}
.service {
  position: relative;
  z-index: 1;
}

.service-deco {
  bottom: 22px;
  color: #f4f4f4;
  font-family: "Manrope", sans-serif;
  font-size: clamp(6.25rem, 2.8206987891rem + 14.6316851665vw, 15.3125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  position: absolute;
  right: -16px;
  white-space: nowrap;
  writing-mode: sideways-lr;
  z-index: 1;
}

.service__inner {
  position: relative;
  z-index: 2;
}

.service-head {
  padding-bottom: 32px;
  padding-top: 48px;
  position: relative;
  z-index: 1;
}

.service-head__row {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.service-head__row .c-desc {
  color: #505050;
}

.service-list {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.service-item {
  border-top: 5px solid #ef2c2a;
  display: block;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}
.service-item:last-of-type {
  border-bottom: 5px solid #ef2c2a;
}
.service-item:hover {
  opacity: 1;
}
.service-item:hover .service-item__img img {
  transform: scale(1.1);
}

.service-item__img {
  inset: 0;
  position: absolute;
}
.service-item__img img {
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

.service-item__overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.service-item__overlay.is-dark {
  background-color: rgba(0, 0, 0, 0.4);
}
.service-item__overlay.is-darker {
  background-color: rgba(0, 0, 0, 0.5);
}

.service-item__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 24px 20px 20px;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.service-item__num {
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 1.9087411705rem + 2.5227043391vw, 4.0625rem);
  font-weight: 700;
  left: 12px;
  line-height: 1;
  pointer-events: visible;
  position: absolute;
  top: 16px;
}

.service-item__head {
  align-items: center;
  display: flex;
  gap: 11px;
  margin-top: 52px;
  pointer-events: visible;
  width: -moz-fit-content;
  width: fit-content;
}
.service-item__head::after {
  background: url(../images/service_arrow.svg) no-repeat center center/contain;
  content: "";
  flex-shrink: 0;
  height: 40px;
  width: 40px;
}

.service-item__title {
  align-items: center;
  background-color: #ef2c2a;
  color: #ffffff;
  display: flex;
  font-size: clamp(1rem, 0.6215943491rem + 1.614530777vw, 2rem);
  font-weight: 700;
  line-height: calc(42 / 32);
  padding: 10px 16px;
  pointer-events: visible;
}

.service-item__box {
  background-color: #ffffff;
  margin-left: auto;
  margin-top: auto;
  max-width: 440px;
  padding: 16px 18px;
  pointer-events: visible;
  width: 100%;
}
.service-item__box p {
  color: #505050;
  font-size: 13px;
  font-weight: 600;
  line-height: calc(32 / 14);
}

.products {
  background-color: #ffffff;
  padding: 56px 0 64px;
}
.products .products-list {
  margin-top: 32px;
}
.products .products-list > .webgene-blog {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.products .products-item {
  display: block;
  width: 100%;
}

.products__btn {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.company {
  border-bottom: 5px solid #ef2c2a;
  border-top: 5px solid #ef2c2a;
  display: block;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}
.company:hover {
  opacity: 1;
}
.company:hover .company-slide .swiper-slide img {
  transform: scale(1.1);
}
.company:hover .company-btn {
  transform: translateX(3px);
}

.company-slide {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 1;
}

.company-slide,
.company-slide__swiper,
.company-slide .swiper-slide {
  height: 100%;
}

.company-slide .swiper-slide img {
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.company__overlay {
  background-color: rgba(0, 0, 0, 0.35);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.company__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  justify-content: center;
  padding-block: 40px;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.company__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 511px;
  pointer-events: visible;
}
.company__content .c-title-en,
.company__content .c-title-jp,
.company__content .c-catch,
.company__content .c-desc {
  color: #ffffff;
}
.company__content .c-catch {
  margin-top: 24px;
}
.company__content .c-desc {
  margin-top: 16px;
}

.company-btn {
  height: 80px;
  margin-left: auto;
  pointer-events: visible;
  transition: transform 0.3s ease-in-out;
  width: 80px;
}
.company-btn img {
  -o-object-fit: contain;
     object-fit: contain;
}

.works {
  background-color: #ffffff;
  padding: 56px 0 64px;
}

.works-list {
  margin-top: 32px;
}
.works-list .webgene-pagination {
  display: none;
}

.works__btn {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.news {
  background-color: #f7f7f7;
  border-top: 10px solid #ef2c2a;
  padding: 56px 0 40px;
}

.news-list {
  margin-top: 32px;
}
.news-list .webgene-pagination {
  display: none;
}

.news__btn {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .company__inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding-block: 125px 85px;
  }
}

@media (min-width: 1024px) {
  .fv {
    height: 768px;
    max-height: 768px;
  }
  .fv-slide {
    margin-left: 28px;
  }
  .fv__contents {
    bottom: 78px;
    padding-inline: 0;
  }
  .fv__heading {
    padding-inline: 40px;
  }
  .about {
    padding: 160px 0 100px;
  }
  .about::before {
    width: 80.4%;
  }
  .about__inner {
    padding-left: 60px;
  }
  .about__body {
    align-items: flex-start;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
  }
  .about__content {
    max-width: 511px;
    padding-top: 8px;
  }
  .about__content .c-desc {
    margin-top: 52px;
  }
  .about__content .c-catch {
    margin-top: 28px;
  }
  .service-deco {
    right: -30px;
    z-index: 2;
  }
  .service-head {
    padding-bottom: 71px;
    padding-top: 78px;
  }
  .service-head__row {
    align-items: flex-end;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    margin-top: 29px;
  }
  .service-head__row .c-desc {
    max-width: 615px;
    padding-bottom: 9px;
  }
  .service-item {
    min-height: 508px;
  }
  .service-item__body {
    margin-inline: auto;
    max-width: 1366px;
    padding: 56px 50px 54px 30px;
  }
  .service-item__num {
    left: 30px;
    top: 63px;
  }
  .service-item__head {
    margin-left: 91px;
    margin-top: 10px;
    max-width: calc(100% - 20px);
  }
  .service-item__head::after {
    height: 56px;
    width: 56px;
  }
  .service-item__title {
    padding: 8px 16px 8px 6px;
  }
  .service-item__box {
    padding: 10px 16px;
  }
  .service-item__box p {
    font-size: 14px;
  }
  .products {
    padding: 100px 0 120px;
  }
  .products .products-list {
    margin-top: 52px;
  }
  .products .products-list > .webgene-blog {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    gap: 30px 0;
  }
  .products .products-item {
    width: calc((100% - 80px) / 3);
  }
  .products .products-item:nth-child(1) {
    margin-right: 27px;
    width: calc((100% - 27px) * 422 / 1119);
  }
  .products .products-item:nth-child(1) .products-item__img {
    aspect-ratio: 422/373;
  }
  .products .products-item:nth-child(2) {
    width: calc((100% - 27px) * 697 / 1119);
  }
  .products .products-item:nth-child(2) .products-item__img {
    aspect-ratio: 697/373;
  }
  .products .products-item:nth-child(3), .products .products-item:nth-child(4) {
    margin-right: 40px;
  }
  .products__btn {
    margin-top: 55px;
  }
  .company {
    height: 680px;
  }
  .company__content .c-catch {
    margin-top: auto;
  }
  .company__content .c-desc {
    margin-top: 29px;
  }
  .company-btn {
    height: 130px;
    width: 130px;
  }
  .works {
    padding: 110px 0 120px;
  }
  .works-list {
    margin-top: 52px;
  }
  .works__btn {
    margin-top: 55px;
  }
  .news {
    padding: 130px 0 40px;
  }
  .news-list {
    margin-top: 47px;
  }
  .news__btn {
    margin-top: 61px;
  }
}

@media (min-width: 1366px) {
  .fv__heading {
    padding-inline: 0;
  }
  .about__body {
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv-slide__swiper .swiper-slide img,
  .fv-slide__swiper .swiper-slide-active img,
  .fv-slide__swiper .swiper-slide-duplicate-active img {
    transform: none;
    transition: none;
  }
}