@charset "UTF-8";

/* ===== FV（c-main-visual） ===== */
.c-main-visual {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  border: 10px solid #fff;
  border-radius: 24px;
  overflow: hidden;
}

.c-main-visual__swiper {
  width: 100%;
  height: 100%;
}

.c-main-visual__image {
  position: relative;
  width: 100%;
  height: calc(100vh - 0.625rem);
  max-height: 67.5rem;
}

.c-main-visual__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: initial;
  object-fit: cover;
}

.c-main-visual__inner {
  position: absolute;
  z-index: 5;
  top: 56%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}

.c-main-visual__title {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding-left: 5.7142857143vw;
  color: #fff;
  font-family: var(--font-mincho);
  font-feature-settings: "palt" 1, "liga" 1;
  font-size: 4rem;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.c-main-visual__title .is-inner {
  display: flex;
  writing-mode: vertical-rl;
}

.c-main-visual__title .is-inner span {
  display: inline-block;
  letter-spacing: -0.05em;
}

/* ===== FVの見出しの登場（第2部 A） ===== */
.c-main-visual__title .is-inner span {
  opacity: var(--opacity, 0);
  transition: opacity 1s cubic-bezier(0.77, 0, 0.175, 1);
  transition-delay: calc(0.12s * var(--car-index));
}

.c-main-visual__title.is-active {
  --opacity: 1;
}

.c-main-visual__title.is-no-anim .is-inner span {
  transition: none;
}

.c-main-visual__title .is-inner:nth-child(2) {
  padding-top: 3.375rem;
  margin-right: 1.4375rem;
}

/* ===== 画面が暗くなる膜（第2部 B） ===== */
body::after {
  content: "";
  position: fixed;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 2;
  width: calc(100% - 1.25rem);
  height: calc(100vh - 1.25rem);
  border-radius: 15px;
  background: rgba(61, 133, 198, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s;
}

body.is-black::after {
  opacity: 1;
}

/* 額縁の下辺 */
.p-top-decoration {
  position: fixed;
  z-index: 11;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.625rem;
  background-color: #fff;
}

/* ===== ごあいさつ（p-top-message） ===== */
.p-top-message {
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  padding: 8.75rem 0 13.75rem;
  color: #fff;
}

/* 下端の左右の反転角丸 */
.p-top-message::before,
.p-top-message::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.p-top-message::before {
  left: 0;
  background: radial-gradient(
    circle 1.25rem at 100% 0%,
    transparent 98%,
    #fff 100%
  );
}

.p-top-message::after {
  right: 0;
  background: radial-gradient(
    circle 1.25rem at 0% 0%,
    transparent 98%,
    #fff 100%
  );
}

.p-top-message__button {
  margin-top: 5rem;
}

/* ===== ABOUT US（p-top-about） ===== */
.p-top-about {
  background-color: #fff;
  padding: 10rem 0 9.1875rem;
}

.p-top-about__head {
  display: grid;
  grid-template-columns: 562fr 607fr;
  gap: 4.4375rem;
  align-items: flex-end;
  margin-bottom: 5.5rem;
  border-top: 1px solid var(--color-rule);
  padding-top: 2rem;
}

.p-top-about__blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.p-top-about__block {
  display: flex;
  gap: 0.625rem;
}

.p-top-about__block:nth-child(2n-1) {
  flex-direction: row-reverse;
}

.p-top-about__image {
  width: 64.7101449275%;
  height: 34.375rem;
  border-radius: 20px;
  overflow: hidden;
}

.p-top-about__image img {
  width: 100%;
  height: 100%;
  max-width: initial;
  object-fit: cover;
}

.p-top-about__content {
  width: 34.5652173913%;
  min-height: 34.375rem;
  background-color: var(--color-gray);
  border-radius: 20px;
  padding: 3rem 4.5714285714vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-top-about .c-heading.is-lg.is-mg-level-5 {
  margin-bottom: 2.5rem;
  font-size: 2.75rem;
}

.p-top-about .c-heading.is-lg.is-mg-level-5 .is-eng {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.p-top-about__body {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.p-top-about__button {
  margin-top: 2rem;
}

.p-top-about__button .c-button {
  width: 11.375rem;
  font-size: 0.9375rem;
  border-width: 2px;
  padding: 0.9375rem 2.625rem 1rem 1.5rem;
}

.p-top-about__button .c-button .is-icon {
  right: 1.125rem;
}

/* ===== RECRUIT（p-top-environment ＋ p-top-banner） ===== */
.p-top-environment {
  padding-bottom: 4.5rem;
}

.p-top-environment__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--color-rule);
  padding-top: 2rem;
}

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

.p-top-environment__content {
  max-width: 49.0322580645%;
}

.p-top-environment__button {
  margin-top: 1.875rem;
}

.p-top-banner {
  padding-bottom: 5rem;
}

.p-top-banner__banner {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  height: 37.5rem;
}

.p-top-banner__banner img {
  width: 100%;
  height: 100%;
  max-width: initial;
  object-fit: cover;
  object-position: top;
  transition: 0.5s ease;
}

@media (hover: hover) {
  .p-top-banner__banner:hover img {
    transform: scale(1.1);
  }
}

/* ===== 動きを減らす設定のとき ===== */
@media (prefers-reduced-motion: reduce) {
  .c-main-visual__title .is-inner span {
    opacity: 1;
  }
}

/* ===== レスポンシブ（width < 46.875em） ===== */
@media screen and (width < 46.875em) {
  .c-main-visual__inner {
    top: 50%;
  }

  .c-main-visual__title {
    font-size: 2.75rem;
    padding-top: 1.5625rem;
    padding-left: 2rem;
  }

  .c-main-visual__title .is-inner:nth-child(2) {
    padding-top: 2.375rem;
    margin-right: 0.4375rem;
  }

  .p-top-message {
    padding: 5.1875rem 0.5rem 6rem;
  }

  .p-top-message::before,
  .p-top-message::after {
    width: 0.625rem;
    height: 0.625rem;
  }

  .p-top-message::before {
    background: radial-gradient(
      circle 0.625rem at 100% 0%,
      transparent 98%,
      #fff 100%
    );
  }

  .p-top-message::after {
    background: radial-gradient(
      circle 0.625rem at 0% 0%,
      transparent 98%,
      #fff 100%
    );
  }

  .p-top-message .c-heading {
    margin-bottom: 1.875rem;
  }

  .p-top-message .c-heading .is-ja {
    letter-spacing: -0.05em;
  }

  .p-top-message__button {
    margin-top: 1.875rem;
  }

  .p-top-about {
    padding: 3.75rem 0 5.4375rem;
  }

  .p-top-about__head {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.125rem;
    padding-top: 1rem;
  }

  .p-top-about__block,
  .p-top-about__block:nth-child(2n-1) {
    flex-direction: column;
  }

  .p-top-about__image {
    width: 100%;
    height: auto;
    aspect-ratio: 355 / 172;
    border-radius: 10px;
  }

  .p-top-about__content {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 2rem 1.5rem 2.875rem;
    border-radius: 10px;
  }

  .p-top-about .c-heading.is-lg.is-mg-level-5 {
    margin-bottom: 1rem;
  }

  .p-top-about .c-heading.is-lg.is-mg-level-5 .is-eng {
    margin-bottom: 1rem;
  }

  .p-top-about__button {
    margin-top: 1.5rem;
  }

  .p-top-about__button .c-button {
    width: 7.875rem;
    font-size: 0.75rem;
    border-width: 1.5px;
    padding: 0.625rem 2.25rem 0.625rem 1.5rem;
  }

  .p-top-about__button .c-button .is-icon {
    right: 0.8125rem;
  }

  .p-top-environment {
    padding-bottom: 2rem;
  }

  .p-top-environment__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
  }

  .p-top-environment__content {
    max-width: 100%;
    width: 100%;
  }

  .p-top-environment__button {
    display: flex;
    justify-content: center;
  }

  .p-top-banner {
    padding-bottom: 0;
  }

  .p-top-banner__banner {
    height: 9.625rem;
  }
}
