/* トップページ：ヒーロー
========================================================================== */
.top__hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.top__hero__video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.top__hero__title {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  font-size: 12rem;
  color: #fff;
  line-height: 1.3;
  padding: 5rem 8rem;
  text-shadow: 0 0 2rem #000;
  opacity: 0;
  animation: fadeIn 1s both ease-in-out;
  animation-delay: .3s;
  font-family: "Baskervville", serif;
}

@media (max-width: 768px) {
  .top__hero__title {
    font-size: 8.4rem;
    padding: 0 4rem 20rem;
  }
}

/* トップページ：VMV
========================================================================== */
.top__vmv {
  background: #fff;
}

.top__vmv__container {
  max-width: 116rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.top__vmv__left {
  display: flex;
  flex-direction: column;
  padding: 11rem 0 13rem;
}

.top__vmv__item {
  margin-bottom: 1rem;
}

.top__vmv__item:last-child {
  margin-bottom: 0;
}

.top__vmv__title {
  font-family: "Baskervville", serif;
  font-size: 5.4rem;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 1;
}

.top__vmv__content {
  display: flex;
  font-family: "Noto Serif", serif;
  margin-bottom: 2rem;
}

.top__vmv__line {
  margin: 0 1.7rem;
  min-height: 16rem;
  width: 1px;
  background-color: #333;
}

.top__vmv__item:last-of-type .top__vmv__line {
  min-height: 27.4rem;
}

.top__vmv__text {
  font-size: 2.8rem;
  font-weight: 500;
  padding-top: 1.2rem;
}

.top__vmv__list {
  padding-top: 1.5rem;
}

.top__vmv__list__item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: .4rem 0;
  font-size: 2.8rem;
  font-weight: 500;
}

.top__vmv__value__number {
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  width: 2.8rem;
  height: 2.8rem;
  background: var(--primary-color);
  color: #fff;
  flex-shrink: 0;
  font-weight: 300;
}

.top__vmv__right {
  position: relative;
}

.top__vmv__right--gray {
  position: relative;
  z-index: 2;
  background: #f4f5f6;
  width: 36rem;
  height: 0;
  transition: 1.8s ease;
}

.top__vmv__right--blue {
  position: absolute;
  bottom: 0;
  right: -6rem;
  background: var(--primary-color);
  width: 36rem;
  height: 0;
  transition: 1.8s ease;
}

.top__vmv__right.active .top__vmv__right--gray {
  height: 81rem;
}

.top__vmv__right.active .top__vmv__right--blue {
  right: 0;
  height: 81rem;
}

/* Rロゴマスク画像でくり抜き */
.top__vmv__logo {
  position: absolute;
  top: 16rem;
  left: 2rem;
  width: 48rem;
  height: 69rem;
  z-index: 3;
  -webkit-mask-image: url('../images/top/vmv_mask.png');
  mask-image: url('../images/top/vmv_mask.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* マスク内に動画を表示させるための疑似要素 */
.top__vmv__logo video {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .top__vmv__container {
    grid-template-columns: 1fr;
  }

  .top__vmv__left {
    padding: 15rem 7.2rem 3rem;
  }

  .top__vmv__title {
    font-size: 8rem;
  }

  .top__vmv__item:last-of-type .top__vmv__line {
    min-height: 35.6rem;
  }

  .top__vmv__line {
    margin: 0 2rem;
    min-height: 18rem;
    width: 1px;
    background-color: #333;
  }

  .top__vmv__text,
  .top__vmv__list__item {
    font-size: 4.2rem;
  }

  .top__vmv__value__number {
    width: 4.2rem;
    height: 4.2rem;
  }

  .top__vmv__right {
    padding-bottom: 16rem;
  }

  .top__vmv__right--gray {
    width: 0;
    height: 36rem;
    transition: 1s ease;
  }

  .top__vmv__right--blue {
    position: relative;
    margin-left: auto;
    margin-top: -4.2rem;
    width: 0;
    height: 36rem;
    transition: 1s ease;
    transition-delay: .3s;
  }

  .top__vmv__right.active .top__vmv__right--gray {
    height: 36rem;
    width: 78rem;
  }

  .top__vmv__right.active .top__vmv__right--blue {
    height: 36rem;
    width: 78rem;
  }

  .top__vmv__logo {
    position: absolute;
    top: -7.4rem;
    right: 6.5rem;
    left: auto;
    width: 50rem;
    height: 71rem;
  }
}

/* トップページ：事業内容
========================================================================== */
.top__service {
  position: relative;
  padding: 11rem 2rem;
  background: rgba(51, 51, 51, 0.5);
  color: #fff;
}

/* .top__service::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
} */

.top__service__container {
  max-width: 128rem;
  margin: 0 auto;
}

.top__service__header {
  text-align: center;
}

.top__service__text {
  color: #fff;
  font-weight: 500;
  margin: 1.5rem 0;
}

.top__service__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: .5rem;
  margin-bottom: 7.5rem;
}

.top__service__item {
  position: relative;
  overflow: hidden;
}

.top__service__item__image {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.top__service__item:hover .top__service__item__image {
  transform: scale(1.1);
}

.top__service__item__title {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  font-family: "Noto Serif", serif;
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 768px) {
  .top__service {
    padding: 15rem 4rem;
  }

  .top__service__text {
    margin: 2.5rem 0;
    line-height: 1.6;
  }

  .top__service__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .top__service__item__title {
    font-size: 3.6rem;
  }
}

/* トップページ：会社概要
========================================================================== */
.top__company {
  background: #f9fafb;
  padding: 11rem 0 12rem;
}

.top__company__header {
  padding: 0 15rem;
  margin-bottom: 2rem;
}

.top__company__text {
  font-weight: bold;
  margin-top: 2rem;
  margin-left: 4rem;
}

.top__company__images {
  position: relative;
  background-color: #F4F5F6;
  margin-left: 30rem;
  margin-bottom: 10rem;
  margin-top: 7.5rem;
  height: 49rem;
}

.top__company__images::before {
  content: "";
  position: absolute;
  top: -8rem;
  left: -13rem;
  background-color: #333;
  width: 1px;
  height: 72.5rem;
}

.top__company__image {
  position: absolute;
}

.top__company__image:nth-of-type(1) {
  width: 44rem;
  top: -18rem;
  right: 16rem;
}

.top__company__image:nth-of-type(2) {
  width: 40rem;
  top: 2rem;
  left: -6rem;
}

.top__company__image:nth-of-type(3) {
  width: 28rem;
  top: 3rem;
  right: 44rem;
}

.top__company__image:nth-of-type(4) {
  width: 34rem;
  bottom: 3rem;
  left: -10.5rem;
}

.top__company__image:nth-of-type(5) {
  width: 52rem;
  bottom: -2rem;
  right: 24rem;
}

@media (max-width: 768px) {
  .top__company {
    padding: 14rem 0 15rem;
  }

  .top__company__header {
    padding: 0 8rem;
    margin-bottom: 10rem;
  }

  .top__company__text {
    margin-top: 4.5rem;
    margin-left: 5.5rem;
  }

  .top__company__images {
    margin-left: 15rem;
    height: 90rem;
  }

  .top__company__images::before {
    top: -12rem;
    left: -5rem;
    height: 127rem;
  }

  .top__company__image:nth-of-type(1) {
    width: 40rem;
    top: 6rem;
    right: 0;
  }

  .top__company__image:nth-of-type(2) {
    width: 38rem;
    top: -6.5rem;
    left: -1.4rem;
  }

  .top__company__image:nth-of-type(3) {
    top: 32rem;
    right: 6.6rem;
    z-index: 2;
  }

  .top__company__image:nth-of-type(4) {
    width: 32rem;
    bottom: 49rem;
    left: 2.4rem;
  }

  .top__company__image:nth-of-type(5) {
    width: 68rem;
    bottom: 5.8rem;
    right: auto;
    left: -1.4rem;
  }
}

/* トップページ：採用情報
========================================================================== */
.top__recruit {
  background-color: #fff;
}

.top__recruit__bg {
  background-image: url('../images/top/recruit_bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  padding: 11rem 0 7rem;
  position: relative;
  transition: .4s linear;
}

.top__recruit__container {
  max-width: 112rem;
  margin: 0 auto;
}

.top__recruit__header {
  text-align: center;
  margin-bottom: 6rem;
}

.top__recruit__text {
  color: #fff;
  font-weight: 500;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .top__recruit__bg {
    padding: 14rem 0 15rem;
    transition: .3s linear;
  }
}