@charset "UTF-8";

/**
 * オリジナルcss
 */

.mainvisual {
  width: 100%;
  height: calc(100vh - 86px);
  position: relative;
  overflow: hidden;
}

.mainvisual_text_area {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  pointer-events: none;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 34px;
  .mainvisual_text {
    color: var(--color-theme);
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    flex-direction: column;
    h2 {
      display: flex;
      gap: 20px;
      flex-flow: column;
      font-size: 6.4rem;
      font-weight: 700;
      font-family: var(--font-zen);
      span.parag {
        background: #fff;
        border-radius: 10px;
        width: fit-content;
      }
      span.small {
        font-size: 5rem;
      }
    }
    p {
      display: flex;
      gap: 8px;
      flex-flow: column;
      span {
        background: #fff;
        width: fit-content;
      }
    }
  }
}

.mainvisual_images {
  width: calc(100000% / 1440);
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  .mainvisual_image {
    position: relative;
    img {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .swiper-button-prev,
  .swiper-button-next {
    position: absolute;
    top: auto;
    left: auto;
    bottom: 20px;
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 100%;
  }
  .swiper-button-prev {
    right: 194px;
  }
  .swiper-button-next {
    right: 120px;
  }
  .swiper-button-prev::after {
    width: 12px;
    height: 12px;
    content: "";
    border-left: 2px solid var(--color-theme);
    border-bottom: 2px solid var(--color-theme);
    transform: rotate(45deg);
    margin-left: 4px;
  }
  .swiper-button-next::after {
    width: 12px;
    height: 12px;
    content: "";
    border-right: 2px solid var(--color-theme);
    border-bottom: 2px solid var(--color-theme);
    transform: rotate(-45deg);
    margin-right: 4px;
  }
}

.mainvisual_images::before {
  content: "";
  display: block;
  width: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 5;
  height: calc(28000% / 700);
  background: linear-gradient(180deg, rgba(0, 43, 76, 0) 0%, #002b4c 100%);
}

@media screen and (max-width: 740px) {
  .mainvisual {
    height: auto;
    aspect-ratio: 375 / 603;
  }
  .mainvisual_text_area {
    max-width: 100%;
    padding: 16px;
    align-items: flex-end;
    .mainvisual_text {
      h2 {
        font-size: 4rem;
        span.parag {
          padding: 0 20px;
        }
        span.small {
          font-size: 3.2rem;
        }
      }
      p {
        gap: 0;
        span {
          color: #fff;
          background: none;
        }
      }
    }
  }
  .mainvisual_images {
    width: 100%;
    .swiper-button-prev,
    .swiper-button-next {
      width: 40px;
      height: 40px;
    }
    .swiper-button-prev {
      right: 74px;
    }
    .swiper-button-next {
      right: 24px;
    }
    .swiper-button-prev::after,
    .swiper-button-next::after {
      width: 8px;
      height: 8px;
    }
  }
}
@media screen and (max-width: 639px) {
}
@media screen and (max-width: 500px) {
  .mainvisual_text_area {
    .mainvisual_text {
      width: 100%;
      container-type: inline-size;
      h2 {
        font-size: 11cqw;
        span.small {
          font-size: 8.5cqw;
        }
      }
      p {
        font-size: 4.5cqw;
      }
    }
  }
}
