@charset "utf-8";

.fv {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.fv::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 121, 137, 0.95),
    rgba(0, 137, 132, 0)
  );
}

.fv__slide-container {
  width: 100%;
  height: 100%;
}

.fv__swiper {
  width: 100%;
  height: 100%;
}

.fv__swiper-wrapper {
  display: flex;
}

.fv__swiper-slide {
  width: 100%;
  height: 100%;
  aspect-ratio: 1366/773;
}

.fv__swiper-slide img {
  aspect-ratio: 1366/773;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.fv__text-wrapper {
  position: absolute;
  z-index: 2;
  bottom: 11%;
  left: 4%;
  color: var(--color-white);
}

.fv__title {
  opacity: 0;
}

.fv__text-en {
  text-transform: uppercase;
  font-family: var(--ff-en);
  font-size: clamp(18px, 1.46vw, 20px);
  letter-spacing: calc(50 / 1000 * 1em);
}

@media screen and (min-width: 1366px) {
  .fv__text-en {
    font-size: max(20px, 1.46vw);
  }
}

.fv__text-ja {
  margin-top: 1px;
  font-weight: 700;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(70 / 50);
  font-size: clamp(30px, 3.66vw, 50px);
}

@media screen and (min-width: 1366px) {
  .fv__text-ja {
    font-size: max(50px, 3.66vw);
  }
}

/* =====================
about
======================= */
.about {
  width: 100%;
  padding-block: 101px 0;
  background: linear-gradient(to bottom, #f4f4f4, #fff);
  position: relative;
  overflow: hidden;
}

.about__container {
  margin-top: 63px;
  width: 100%;
  position: relative;
  max-width: 1366px;
  margin-inline: auto;
}

.about__left-image {
  border-radius: 20px 0 0 20px;
  position: absolute;
  z-index: 1;
  top: -9%;
  right: 0;
  width: 36%;
  height: auto;
  aspect-ratio: 630/820;
  overflow: hidden;
}

@media screen and (min-width: 600px) {
  .about__left-image {
    top: -14%;
  }
}

@media screen and (min-width: 768px) {
  .about__left-image {
    left: 0;
    border-radius: 0 20px 20px 0;
    top: 67px;
  }
}

@media screen and (min-width: 1000px) {
  .about__left-image {
    width: 46%;
    top: 67px;
  }
}

@media screen and (min-width: 1367px) {
  .about__left-image {
    border-radius: 20px;
  }
}

.about__left-image img {
  aspect-ratio: 630/820;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about__box-contents {
  width: 100%;
}

@media screen and (min-width: 1367px) {
  .about__box-contents {
    margin-inline: 0 auto;
  }
}

.about__box {
  border-radius: 40px 0 0 40px;
  padding: 17% 4%;
  margin-inline: auto 0;
  width: 100%;
  background: url(../images/about-box-bg.png) no-repeat center center / cover;
}

@media screen and (min-width: 768px) {
  .about__box {
    width: 69%;
    padding: 11% 4% 14% 13%;
  }
}

@media screen and (min-width: 1000px) {
  .about__box {
    width: 59%;
  }
}

@media screen and (min-width: 1366px) {
  .about__box {
    padding: 138px 99px 117px 188px;
  }
}

@media screen and (min-width: 1367px) {
  .about__box {
    border-radius: 40px;
  }
}

.about__text-wrapper {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media screen and (min-width: 500px) {
  .about__text-wrapper {
    margin-top: 45px;
    gap: 20px;
  }
}

.about__text {
  font-size: 14px;
  font-weight: 400;
  line-height: calc(30 / 14);
}
/* 
.about__bottom-image {
  position: absolute;
  z-index: 4;
  bottom: -18%;
  left: 0;
  aspect-ratio: 250/336;
  max-width: 250px;
  min-width: 120px;
  width: 18.3vw;
  height: auto;
  overflow: hidden;
  border-radius: 0 20px 20px 0;
}

@media screen and (min-width: 768px) {
  .about__bottom-image {
    right: 0;
    left: auto;
    border-radius: 20px 0 0 20px;
  }

  .about__bottom-image img {
    border-radius: 20px 0 0 20px;
  }
}

@media screen and (min-width: 1000px) {
  .about__bottom-image {
    bottom: -30%;
  }
}

@media screen and (min-width: 1367px) {
  .about__bottom-image {
    margin-right: 2%;
  }
  .about__bottom-image,
  .about__bottom-image img {
    border-radius: 20px;
  }
}

.about__bottom-image img {
  aspect-ratio: 250/336;
  object-fit: cover;
  object-position: center;
  border-radius: 0 20px 20px 0;
  width: 100%;
  height: 100%;
} */

.about__slide-container {
  overflow: hidden;
  width: 100%;
}

.about__slide-wrapper {
  width: 100%;
  margin-inline: auto;
}

.about__slide {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 14.6%;
  align-items: stretch;
  aspect-ratio: 1445/108;
  max-width: 1445px;
  /* width: 105.7vw; */
  height: auto;
  animation: slideLoop 15s linear infinite;
}

.about__slide img {
  display: block;
  aspect-ratio: 1445/108;
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: auto;
}

/* =====================
Service
======================= */
.service {
  padding-block: 142px 82px;
  background: var(--color-white);
  position: relative;
}

.service__inner {
  position: relative;
}

.about__bottom-image2 {
  position: absolute;
  z-index: 4;
  top: -10%;
  left: 0;
  aspect-ratio: 250/336;
  max-width: 250px;
  min-width: 120px;
  width: 18.3vw;
  height: auto;
  overflow: hidden;
  border-radius: 0 20px 20px 0;
}

@media screen and (min-width: 768px) {
  .about__bottom-image2 {
    right: 0;
    left: auto;
    border-radius: 20px 0 0 20px;
  }

  .about__bottom-image2 img {
    border-radius: 20px 0 0 20px;
  }
}

@media screen and (min-width: 1000px) {
  .about__bottom-image2 {
    top: -14%;
  }
}

@media screen and (min-width: 1366px) {
  .about__bottom-image2 {
    right: -8%;
  }
}

@media screen and (min-width: 1367px) {
  .about__bottom-image2,
  .about__bottom-image2 img {
    border-radius: 20px;
  }
}

.about__bottom-image2 img {
  aspect-ratio: 250/336;
  object-fit: cover;
  object-position: center;
  border-radius: 0 20px 20px 0;
  width: 100%;
  height: 100%;
}

.service__container {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

@media screen and (min-width: 1000px) {
  .service__container {
    flex-direction: row;
    align-items: flex-end;
    gap: 40px;
  }
}

.service__text {
  margin-bottom: 20px;
}

.service__bottom {
  width: 100%;
  margin-top: 61px;
}

.service__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media screen and (min-width: 600px) {
  .service__cards {
    grid-template-rows: repeat(3, 500px);
    gap: 231px;
    padding-bottom: calc(3 * 10px);
  }
}

@media screen and (min-width: 1000px) {
  .service__cards {
    grid-template-rows: repeat(3, 500px);
    gap: 231px;
    padding-bottom: calc(2 * 82px);
  }
}

.service__card {
  position: relative;
}

@media screen and (min-width: 600px) {
  .service__card {
    position: sticky;
    top: 12%;
  }

  .service__card2 {
    padding-top: 82px;
  }

  .service__card3 {
    padding-top: 164px;
  }
}

.service__card:hover {
  opacity: 1;
}

.service__card1 .service__card-wrap {
  background: #007989;
}

.service__card2 .service__card-wrap {
  background: #4aa0ac;
}

.service__card3 .service__card-wrap {
  background: #7ebbc2;
}

.service__card-wrap {
  border-radius: 20px;
  padding: 41px 31px 31px 30px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: column;
}

@media screen and (min-width: 600px) {
  .service__card-wrap {
    align-items: stretch;
    flex-direction: row;
    gap: 5.54%;
  }
}

@media screen and (min-width: 1000px) {
  .service__card-wrap {
    flex-direction: row;
    align-items: center;
    gap: 5.54%;
    padding: 52px 41px 51px 108px;
  }
}

.service__card-head {
  width: 100%;
}

@media screen and (min-width: 1000px) {
  .service__card-head {
    width: 72%;
  }
}

.service__card-title {
  font-size: clamp(20px, 5.47vw, 40px);
  font-weight: 700;
  position: relative;
}

.service__card-title::before {
  position: absolute;
  font-size: clamp(80px, 10.99vw, 150px);
  font-family: var(--ff-en);
  font-weight: 500;
  letter-spacing: calc(-30 / 1000 * 1em);
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.17);
}

@media screen and (min-width: 600px) {
  .service__card-title::before {
    left: -7%;
  }
}

@media screen and (min-width: 1000px) {
  .service__card-title::before {
    left: -18%;
  }
}

.service__card1 .service__card-title::before {
  content: "01";
}
.service__card2 .service__card-title::before {
  content: "02";
}
.service__card3 .service__card-title::before {
  content: "03";
}

.service__card-description {
  margin-top: 28px;
  font-size: clamp(16px, 1.62vw, 22px);
  font-weight: 700;
  line-height: calc(34 / 22);
}

.service__card-text {
  margin-top: 16px;
  font-size: clamp(12px, 1.92vw, 14px);
  font-weight: 400;
  line-height: calc(30 / 14);
}

@media screen and (min-width: 600px) {
  .service__card-text {
    margin-top: 25px;
  }
}

.service__card-image {
  aspect-ratio: 540/360;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

@media screen and (min-width: 1000px) {
  .service__card-image {
    max-width: 540px;
  }
}

.service__card-image::before,
.service__card-image::after {
  content: "";
  position: absolute;
  transition: all 0.3s ease;
  z-index: 2;
}

.service__card-image::before {
  width: 50px;
  aspect-ratio: 70/70;
  height: auto;
  background: var(--color-white);
  border-radius: 50%;
  right: 18px;
  bottom: 16px;
  overflow: hidden;
}

@media screen and (min-width: 600px) {
  .service__card-image::before {
    width: 70px;
  }
}

.service__card-image::after {
  width: 15px;
  aspect-ratio: 15/14;
  height: auto;
  background-color: #333;
  -webkit-mask: url(../images/service-arrow-icon.svg) no-repeat center / contain;
  mask: url(../images/service-arrow-icon.svg) no-repeat center / contain;
  right: 35px;
  bottom: 34px;
}

@media screen and (min-width: 600px) {
  .service__card-image::after {
    right: 45px;
    bottom: 46px;
  }
}

.service__card:hover .service__card-image::before {
  background: var(--color-text);
}

.service__card:hover .service__card-image::after {
  background-color: #fff;
}

.service__card-image img {
  aspect-ratio: 540/360;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.service__card:hover .service__card-image img {
  transform: scale(1.1);
}

/* ==================
slider
=================== */
.service {
  position: relative;
}

.service__slider {
  width: 100%;
}

.service__swiper-wrapper {
  display: flex;
  transition-timing-function: linear;
}

.service__swiper-slide {
  width: 100%;
  height: auto;
}

.service__swiper-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.service__swiper-image img {
  aspect-ratio: 656/444;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

/* =====================
case
======================= */
.case {
  padding-block: 89px 122px;
}

.case__description {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
}

@media screen and (min-width: 768px) {
  .case__description {
    font-size: 14px;
  }

  .case__description br {
    display: none;
  }
}

.case__container {
  margin-top: 50px;
}

.case__container .webgene-blog {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  row-gap: 40px;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 850px) {
  .case__container .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    justify-content: space-between;
  }
}

@media screen and (min-width: 1000px) {
  .case__container .webgene-blog {
    column-gap: 40px;
  }
}
