@charset "utf-8";
/* CSS Document */
/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: #232325;	
}

.hero__video {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}
.hero__video video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
}

.hero__video-pc {
  display: block;
}
.hero__video-sp {
  display: none;
}
@media (max-width: 767px) {
  .hero__video-pc {
    display: none;
  }
  .hero__video-sp {
    display: block;
  }
}
/* ===================== INTRO ===================== */
.intro {
  background-image: url("../images/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  padding: 64px 24px 70px;
}
.intro__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.intro__title {
  font-family: var(--font-title);
  color: var(--color-red);
  font-size: clamp(1.15rem, .95rem + 1vw, 3.5rem);
  font-weight: bold;
  line-height: 1.6;
  margin: 0 0 26px;
}
.intro__text {
  font-size: clamp(1.15rem, .60rem + 1vw, 2rem);
  color: var(--color-ink);
  margin: 0 0 48px;
  font-weight: bold;
}
.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--size-px-8) auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: var(--container);
  margin: 0 auto;
}
.cards__item a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 329 / 516;
}
.cards__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cards__item a:hover img {
  transform: scale(1.06);
}
/* ===================== GALLERY STRIP ===================== */
.gallery {
  overflow: hidden;
  width: 100%;
}
.gallery-track {
  display: flex;
  /* gap: clamp(10px, 2vw, 24px); */
  width: max-content;
  animation: scroll 25s linear infinite;
  height: clamp(120px, 20vw, 280px);
}
.gallery img {
  height: 100%;
  width: auto;
  flex-shrink: 0;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.gallery-track:hover {
  animation-play-state: paused;
  cursor: pointer;
}
/* ===================== NEWS ===================== */
.news {
  background: var(--color-bg);
  padding: 64px 24px 10px;
}
.news__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.news__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}
.news__item {
  display: flex;
  background: var(--color-white);
  border-left: 5px solid;
  border-image: linear-gradient(180deg, var(--color-navy), var(--color-red-dark)) 1;
}
.news__link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 26px;
  padding: 22px 28px;
}
.news__date {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: var(--size-4);
  color: var(--color-sub);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.news__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--size-4);
  color: var(--color-ink);
  line-height: 1.7;
}
/* ===================== RECRUIT ===================== */
.recruit {
  background: var(--color-bg);
  padding: 0 0 0;
}
.recruit__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 40px;
  text-align: center;
}
.recruit__lead {
  font-size: var(--size-4);
  color: var(--color-sub);
  margin: 0;
}
.recruit__panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
  margin: auto;
}
.recruit__links {
  background: linear-gradient(115deg, var(--color-navy) 0%, var(--color-red-dark) 100%);
  display: flex;
  flex-direction: column;
}
.recruit__links li {
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  height: calc(100% / 3);
}
.recruit__links li:last-child {
  border-bottom: 0;
}
.recruit__links a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  padding: 26px clamp(20px, 4vw, 44px);
  color: var(--color-white);
  transition: background .25s ease;
  height: 100%;
}
.recruit__links a:hover {
  background: rgba(255, 255, 255, .08);
}
.recruit__heading {
  font-family: var(--font-title);
  grid-column: 1;
  font-size: clamp(2rem, 1.2rem + 2vw, 4rem);
  font-weight: 800;
}
.recruit__sub {
  grid-column: 1;
  font-size: var(--size-4);
  opacity: .85;
  margin-top: 4px;
}
.recruit__arrow {
  grid-row: 1 / 3;
  grid-column: 2;
}
.recruit__photo {
  position: relative;
  overflow: hidden;
  height: 50vw;
  max-height: 800px;
}
.recruit__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  opacity: 0;
  animation: recruitFade 12s infinite;
}
/* 画像ごとに開始タイミングをずらす */
.recruit__photo img:nth-child(1) {
  animation-delay: 0s;
}
.recruit__photo img:nth-child(2) {
  animation-delay: 4s;
}
.recruit__photo img:nth-child(3) {
  animation-delay: 8s;
}
@keyframes recruitFade {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  } /* フェードイン完了 */
  25% {
    opacity: 1;
  } /* この間表示し続ける */
  33% {
    opacity: 0;
  } /* フェードアウト完了 */
  100% {
    opacity: 0;
  } /* 残りの時間は非表示のまま待機 */
}
.recruit__group {
  position: relative;
  overflow: hidden;
}
.recruit__group img {
  width: 100%;
  height: auto;
  display: block;
}
/* ===================================================
   RESPONSIVE — Tablet
   =================================================== */
@media (width <=1024px) {
  .recruit__panel {
    grid-template-columns: 1fr;
  }
  .recruit__photo {
    min-height: 500px;
  }
}
/* ===================================================
   RESPONSIVE — Mobile
   =================================================== */
@media (width <=760px) {
  .hero__brand {
    display: none;
  }
  .hero {
    min-height: 100vh;
    max-height: none;
  }
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 18px 36px;
  }
  .hero__brand {
    padding: 12px 18px;
  }
  .hero__brand img {
    height: 26px;
  }
  .intro {
    padding: 48px 16px 50px;
  }
  .intro__text br {
    display: none;
  }
  .intro__text {
    margin-bottom: 36px;
  }
  .stats {}
  .cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery img {
    height: 26vw;
  }
  .news {
    padding: 48px 16px 0;
  }
  .news__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px;
  }
  .recruit__inner {
    padding: 0 16px 32px;
  }
  .recruit__links a {
    padding: 20px 18px;
  }
  .recruit__slogan {
    font-size: 1.3rem;
    top: 14px;
    left: 16px;
  }
}

@media (max-aspect-ratio: 16 / 9) {
  .hero {
    min-height: 0;
  }

  .hero__video {
    height: auto;
  }

  .hero__video video {
    position: static;
    width: 100%;
    height: auto;
    -webkit-transform: none;
    -moz-transform: none;
    transform: none;
    object-fit: fill;
  }
}
