@charset "utf-8";
.top__fv {
  width: 100%;
  max-height: 888px;
  position: relative;
  overflow: hidden;
}

.top__fv::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: url(../images/fv-filter.png) no-repeat center bottom / cover;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.top__fv-image {
  aspect-ratio: 375/667;
  width: 100%;
  height: auto;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .top__fv-image {
    aspect-ratio: 768/1024;
  }
}

@media screen and (min-width: 900px) {
  .top__fv-image {
    aspect-ratio: 1366/888;
  }
}

.top__fv-image img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.top__fv-container {
  color: var(--color-white);
  position: absolute;
  z-index: 3;
  top: 20.9%;
  left: 0%;
  right: 5%;
}

@media screen and (min-width: 768px) {
  .top__fv-container {
    right: 5%;
  }
}

.top__fv-box {
  margin-left: 9.5%;
}

.top__fv-text-wrap {
  margin-left: 5%;
}

.top__fv-text {
  font-size: clamp(24px, 2.79vw, 38px);
  font-weight: 700;
  line-height: calc(42 / 38);
  letter-spacing: calc(98 / 1000 * 1em);
}

.top__fv-text02 {
  margin-top: 34px;
  margin-right: 28px;
}

.top__fv-bottom {
  max-width: 474px;
  margin-top: 47px;
}

.top__fv-bottom-en {
  font-family: var(--font-en);
  font-size: clamp(18px, 1.47vw, 20px);
  font-weight: 400;
  letter-spacing: calc(20 / 1000 * 1em);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--color-white);
}

.top__fv-bottom-ja {
  margin-top: 16px;
  font-weight: 500;
  font-size: clamp(12px, 1.03vw, 14px);
  letter-spacing: calc(58 / 1000 * 1em);
  line-height: calc(28 / 14);
}

@media screen and (min-width: 500px) {
  .top__fv-bottom-ja br:nth-child(1) {
    display: none;
  }
}

.top__fv-news {
  padding-inline: 15px;
  margin-top: 42px;
  max-width: 588px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-base);
  display: flex;
  gap: 10px;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .top__fv-news {
    padding-inline: 24px;
    gap: 24px;
  }
}

.top__fv-news .webgene-blog {
  overflow: hidden;
}

.top__fv-news-item {
  overflow: hidden;
}

.top__fv-news-title {
  padding-block: 8px;
  font-size: 16px;
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: calc(20 / 1000 * 1em);
  line-height: 1.2;
}

.top__fv-news-link {
  display: flex;
}

.top__fv-news-time {
  padding: 8px 10px 8px 10px;
  font-size: 12px;
  font-family: var(--font-en);
  font-weight: 300;
  letter-spacing: calc(20 / 1000 * 1em);
  line-height: 1.2;
  position: relative;
}

@media screen and (min-width: 768px) {
  .top__fv-news-time {
    padding: 8px 12px 8px 16px;
  }
}

.top__fv-news-time::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 1px;
  height: 82%;
  background: rgba(112, 112, 112, 0.2);
}

.top__fv-news-time::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 1px;
  height: 82%;
  background: rgba(112, 112, 112, 0.2);
}

.top__fv-news-item-title {
  padding-block: 8px;
  margin-left: 16px;
  font-size: 12px;
  letter-spacing: calc(80 / 1000 * 1em);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================
top__section-head
==================== */

.top__section-title-wrap {
  position: relative;
}

.top__section-title-en {
  font-family: var(--font-en);
  font-size: clamp(86px, 14.65vw, 200px);
  font-weight: 500;
  letter-spacing: calc(20 / 1000 * 1em);
  color: rgba(68, 145, 218, 0.2);
  position: relative;
}

.top__section-title-ja {
  position: absolute;
  top: 72%;
  left: 0;
  font-size: clamp(20px, 1.76vw, 24px);
  font-weight: 600;
  letter-spacing: calc(60 / 1000 * 1em);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top__section-title-ja::before {
  content: "";
  width: 12px;
  height: auto;
  aspect-ratio: 12/35;
  background: url(../images/quotation-left.svg) no-repeat center top/contain;
}

.top__section-title-ja::after {
  content: "";
  width: 12px;
  height: auto;
  aspect-ratio: 12/35;
  background: url(../images/quotation-right.svg) no-repeat center top/contain;
}

.top__section-description {
  font-size: clamp(12px, 1.03vw, 14px);
  font-weight: 500;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: calc(28 / 14);
  margin-top: 16px;
}

@media screen and (min-width: 768px) {
  .top__section-description {
    margin-top: 0;
  }
}

/* ==================
company
================== */
.top__company {
  border-radius: 0 0 40px 40px;
  padding-block: 44px 106px;
  width: 100%;
  overflow: hidden;
  position: relative;
  color: var(--color-white);
}

@media screen and (min-width: 768px) {
  .top__company {
    padding-block: 44px 206px;
  }
}

@media screen and (min-width: 900px) {
  .top__company {
    padding-block: 44px 406px;
  }
}

.top__company::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
  background: url(../images/top-company-filter.png) no-repeat center center /
    cover;
}

.top__company img {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  top: 0;
  left: 0;
}

.top__company-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 3;
}

.top__company-inner.l-inner {
  max-width: calc(1010px + 40px * 2);
}

@media screen and (min-width: 768px) {
  .top__company-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
  }
}

.top__company-head-en {
  font-size: clamp(14px, 1.47vw, 20px);
  font-weight: 400;
  font-family: var(--font-en);
  letter-spacing: calc(20 / 1000 * 1em);
  line-height: 1.2;
}

.top__company-head-ja {
  margin-top: 37px;
  font-size: clamp(24px, 2.93vw, 40px);
  font-weight: 500;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: calc(70 / 40);
}

.top__company-bottom {
  margin-top: 40px;
}

@media screen and (min-width: 768px) {
  .top__company-bottom {
    margin-top: 100px;
    max-width: 448px;
    flex: 1;
  }
}

@media screen and (min-width: 900px) {
  .top__company-bottom {
    margin-top: 156px;
  }
}

@media screen and (min-width: 1300px) {
  .top__company-bottom {
    margin-right: 41px;
  }
}

.top__company-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .top__company-wrap {
    gap: 25px;
  }
}

.top__company-text {
  font-size: clamp(12px, 1.18vw, 16px);
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: calc(40 / 16);
}

.top__company-button {
  margin-top: 39px;
}

/* ==================
service
================== */
.top__bg {
  background: var(--color-white);
}

.top__service {
  padding-block: 165px 48px;
  margin-top: -111px;
}

.top__service-slider {
  margin-top: 51px;
  padding-left: 20px;
  margin-inline: auto 0;
  position: relative;
}

@media screen and (min-width: 768px) {
  .top__service-slider {
    padding-left: 40px;
    max-width: calc(1243px + 40px);
  }
}

@media screen and (min-width: 1367px) {
  .top__service-slider {
    margin-inline: auto;
    max-width: calc(1160px + 40px);
  }
}

.top__service-slide-head {
  aspect-ratio: 544/400;
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.top__service-slide-head img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.top__service-slide-title-wrap {
  position: absolute;
  top: 0;
  right: 0;
}

.top__service-slide-title-en {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  font-family: var(--font-en);
  font-size: clamp(12px, 1.03vw, 14px);
  font-weight: 500;
  letter-spacing: calc(20 / 1000 * 1em);
  padding: 20px 9px 27px 9px;
  color: var(--color-white);
  background: var(--color-accent);
  width: fit-content;
  height: fit-content;
}

.top__service-slide-title-ja {
  margin-right: 8px;
  padding: 15px 9px 10px 9px;
  background: var(--color-white);
  font-size: clamp(20px, 1.76vw, 24px);
  letter-spacing: calc(193 / 1000 * 1em);
  font-weight: 500;
}

.top__service-slide-bottom {
  padding: 18px 15px 10px;
}

.top__service-slide-text {
  font-size: clamp(12px, 1.03vw, 14px);
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: calc(28 / 14);
}

.top__service-slide-button {
  margin-top: 21px;
}

.top__service-slide-button-link p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: calc(20 / 1000 * 1em);
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(42, 42, 42, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top__service-slide-button-link p::after {
  content: "";
  width: 9px;
  height: 8px;
  background: url(../images/metro-arrow-right-black.svg) no-repeat center center;
}

.swiper-pagination {
  width: clamp(200px, 23.43vw, 320px) !important;
  bottom: -43px !important;
  top: auto !important;
  left: 50% !important;
  transform: translateX(-50%);
}

@media screen and (min-width: 1340px) {
  .swiper-pagination {
    left: calc(50% - 40px) !important;
  }
}

@media screen and (min-width: 1367px) {
  .swiper-pagination {
    left: 50% !important;
  }
}

/* プログレスバーのカスタマイズ */
.swiper-pagination-progressbar {
  background: rgba(42, 42, 42, 0.1);
  height: 2px !important;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: var(--color-base);
}

.top__service-swiper-button {
  position: absolute;
  bottom: -63px !important;
  top: auto;
  left: 50% !important;
  transform: translateX(-50%);
  width: clamp(320px, 32.8vw, 448px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (min-width: 1340px) {
  .top__service-swiper-button {
    left: calc(50% - 40px) !important;
  }
}

@media screen and (min-width: 1367px) {
  .top__service-swiper-button {
    left: 50% !important;
  }
}

/* 共通のボタンスタイル */
.swiper-button-prev,
.swiper-button-next {
  width: 40px;
  height: 40px;
  background-color: rgba(42, 42, 42, 0.1);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;

  /* デフォルトの矢印を非表示 */
  &::after {
    display: none;
  }

  /* 背景画像として矢印を設定 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 8px; /* 矢印画像のサイズを調整 */
}

/* 前へボタンの矢印画像 */
.swiper-button-prev {
  left: 0;
  background-image: url(../images/metro-arrow-left.svg); /* 左矢印の画像パス */
}

/* 次へボタンの矢印画像 */
.swiper-button-next {
  right: 0;
  background-image: url(../images/metro-arrow-right.svg); /* 右矢印の画像パス */
}

/* ホバー時のスタイル */
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--color-base);
  transform: scale(1.05);
}

/* アクティブ（押下時）のスタイル */
.swiper-button-prev:active,
.swiper-button-next:active {
  background-color: var(--color-base);
  transform: scale(0.95);
}

/* 選択されている時のスタイル（必要に応じて） */
.swiper-button-prev.selected,
.swiper-button-next.selected {
  background-color: var(--color-base);
}

/* 無効化されている時のスタイル */
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(42, 42, 42, 0.1);
}

.swiper-button-prev.swiper-button-disabled:hover,
.swiper-button-next.swiper-button-disabled:hover {
  transform: none;
  background-color: rgba(42, 42, 42, 0.1);
}

.top__service-button {
  margin-top: 95px;
  text-align: center;
}

/* ==================
works
================== */
.top__works {
  padding-block: 28px 48px;
  background: rgba(68, 145, 218, 0.2);
  border-radius: 40px;
}

.top__works-head .top__section-title-en {
  color: var(--color-white);
}

.top__works-container {
  margin-top: 51px;
}

.top__works-container .webgene-blog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: repeat(3, 1fr); */
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .top__works-container .webgene-blog {
    grid-template-columns: 2.12fr 1fr 1fr; /* 左側を大きく、右側を2等分 */
    /* grid-template-rows: repeat(2, 1fr); */
    gap: 27px 32px;
  }
}

@media screen and (min-width: 768px) {
  .top__works-item:first-child {
    grid-row: span 2; /* 2行分のスペースを使用 */
  }
}

.works__image {
  aspect-ratio: 256/134;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.works__image img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.works__bottom {
  margin-top: 12px;
}

@media screen and (min-width: 768px) {
  .top__works-item:first-child .works__bottom {
    margin-top: 24px;
  }
}

.works__row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

@media screen and (min-width: 900px) {
  .works__row {
    flex-direction: row;
    gap: 16px;
    align-items: center;
  }
}

.works__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: calc(20 / 1000 * 1em);
  line-height: 1.2;
  padding: 3px 5px;
  background: rgba(42, 42, 42, 0.8);
  color: var(--color-white);
}

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

.works__time {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: calc(20 / 1000 * 1em);
  color: rgba(42, 42, 42, 0.8);
}

.works__title {
  font-size: clamp(11px, 0.96vw, 13px);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: calc(25.6 / 16);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media screen and (min-width: 768px) {
  .top__works-item:first-child .works__title {
    margin-top: 16px;
    font-size: clamp(14px, 1.18vw, 16px);
  }
}

.top__works-button {
  margin-top: 46px;
  text-align: center;
}

/* ==================
recruit
================== */
.top__recruit {
  padding-top: 27px;
  padding-bottom: 320px;
  position: relative;
}

@media screen and (min-width: 500px) {
  .top__recruit {
    padding-bottom: 200px;
  }
}

@media screen and (min-width: 768px) {
  .top__recruit {
    padding-bottom: 0;
  }
}

.top__recruit-container {
  padding-right: 20px;
  margin-top: -20px;
  background: var(--color-white);
}

@media screen and (min-width: 768px) {
  .top__recruit-container {
    margin-top: -30px;
    padding-right: 40px;
    max-width: calc(1366px + 40px);
  }
}

@media screen and (min-width: 1200px) {
  .top__recruit-container {
    margin-top: -51px;
  }
}

@media screen and (min-width: 1367px) {
  .top__recruit-container {
    margin-inline: auto;
  }
}

.top__recruit-slider-wrapper {
  display: flex;
  gap: 60px;
}

.top__recruit-slider {
  max-width: 1051px;
}

@media screen and (min-width: 768px) {
  .top__recruit-slider {
  }
}

@media screen and (min-width: 1200px) {
  .top__recruit-slider {
  }
}

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

.top__recruit-slide {
  height: 312px;
  width: auto;
}

@media screen and (min-width: 500px) {
  .top__recruit-slide {
    height: 400px;
  }
}

@media screen and (min-width: 768px) {
  .top__recruit-slide {
    height: 677px;
  }
}

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

.top__recruit-slide-image img {
  aspect-ratio: 440/677;
  object-fit: cover;
  object-position: center;
  width: auto;
  height: 100%;
}

.top__recruit-text-box {
  height: fit-content;
  margin-top: 15px;
}

@media screen and (min-width: 768px) {
  .top__recruit-text-box {
    margin-top: 7px;
  }
}

.top__recruit-text {
  font-size: clamp(20px, 2.05vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: calc(133 / 1000 * 1em);
  color: var(--color-accent);
  margin-right: 12px;
  height: fit-content;
  position: relative;
}

.top__recruit-text:nth-child(1)::before {
  content: "";
  position: absolute;
  top: -7px;
  right: -12px;
  width: 12px;
  height: 35px;
  background: url(../images/quotation-right.svg) no-repeat center top/contain;
}

.top__recruit-text:nth-child(2)::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -12px;
  width: 12px;
  height: 35px;
  background: url(../images/quotation-left.svg) no-repeat center top/contain;
}

.top__recruit-contents-inner {
  position: relative;
  width: 100%;
}

.top__recruit-contents {
  z-index: 4;
  position: absolute;
  width: 100%;
  max-width: 370px;
  bottom: -240px;
  left: 50%;
  transform: translateX(-50%);
  padding: 25px;
  background: var(--color-white);
}

@media screen and (min-width: 500px) {
  .top__recruit-contents {
    bottom: -185px;
  }
}

@media screen and (min-width: 600px) {
  .top__recruit-contents {
    max-width: 544px;
  }
}

@media screen and (min-width: 768px) {
  .top__recruit-contents {
    transform: translateX(0);
    left: auto;
    bottom: 0;
    right: 80px;
    padding: 49px clamp(64px, 8.06vw, 110px) 48px 64px;
  }
}

@media screen and (min-width: 1000px) {
  .top__recruit-contents {
    right: 40px;
  }
}

.top__recruit-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top__recruit-title-en {
  font-family: var(--font-en);
  font-size: clamp(16px, 1.76vw, 24px);
  font-weight: 500;
  letter-spacing: calc(20 / 1000 * 1em);
  color: var(--color-accent);
}

.top__recruit-title-ja {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: calc(20 / 1000 * 1em);
}

.top__recruit-description {
  max-width: 370px;
  margin-top: 16px;
  font-size: clamp(12px, 1.03vw, 14px);
  font-weight: 500;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: calc(28 / 14);
}

.top__recruit-button {
  margin-top: 26px;
}
