html,
body {
  position: relative;
}

.hero-swiper {
  width: 100%;
  height: 100vh;
}

.hero-swiper .swiper-slide {
  text-align: left;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 슬라이드 내부 요소 */
.hero-video,
.hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.hero-img {
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.swiper-slide-active .hero-img {
  animation: zoom 3s cubic-bezier(0.25, 0.1, 0.25, 1) both;
  animation-delay: 0.01s;
}

.hero-txt {
  z-index: 1;
  align-items: flex-start;
}

.hero-txt .hero-client-box {
  margin-bottom: 2.5rem;
}

.hero-txt .hero-client {
  width: 30rem;
}

.hero-txt .hero-main {
  margin-bottom: 3rem;
  font-size: 7.5rem;
}

.hero-txt .hero-sub {
  margin-bottom: 5rem;
  font-size: 3rem;
  line-height: 1.3;
  font-weight: 600;
}

.hero-txt .hero-btn {
  display: flex;
  align-items: center;
  font-weight: 700;
  border: 2px solid white;
  background-color: transparent;
  font-size: 1.6rem;
  line-height: 1.2;
  padding: 1.8rem 3.2rem;
}

.hero-txt .hero-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 커스텀 페이지네이션 컨테이너 */
.main-visual-control-con {
  position: absolute;
  bottom: 8.5rem;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
}

.main-visual-control-inner {
  width: 100%;
  max-width: 1830px;
  padding: 0 15px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-visual-custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  width: auto;
  margin: 0 1.2rem;
}

.main-visual-custom-pagination .bar {
  margin: 0 0.5rem;
}

.main-visual-custom-pagination .now {
  width: 23px;
  text-align: left;
}

.main-visual-custom-pagination .next-opacity,
.main-visual-next-btn,
.main-visual-prev-btn {
  opacity: 0.3;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  display: none;
}

.main-visual-next-btn,
.main-visual-prev-btn {
  position: static;
  width: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition-property: all;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}
.main-visual-next-btn:hover,
.main-visual-prev-btn:hover {
  opacity: 1;
}

/* 프로그레스바 외부 틀 */
.progress__bar {
  position: relative;
  width: 100%;
  height: 2px;
  margin-left: 1.5rem;
  background-color: rgba(255, 255, 255, 0.3);
  flex: 1;
}

/* 프로그레스바 채움 (자동 재생 시간에 따라 너비가 실시간으로 늘어납니다) */
.progress__fill {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  background-color: white;
  width: 0%;
  transition: none;
  z-index: 2;
}

/* 텍스트 애니메이션 */
.animation-box {
  overflow: hidden;
  display: block;
}

.animation-item {
  position: relative;
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition:
    opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.1s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-btn-box .animation-item {
  transform: translateY(-100%);
}

.swiper-slide-active .animation-item {
  transform: translateY(0%);
  opacity: 1;
}

.hero-txt .main .animation-item {
  transition-delay: 0.2s;
}

.hero-txt .sub .animation-item {
  transition-delay: 0.7s;
}

.hero-txt .hero-btn-box .animation-item {
  transition-delay: 1s;
}

@media (max-width: 1024px) {
  .main-visual-control-con {
    bottom: 4rem;
  }
  .hero-txt .hero-sub {
    margin-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .hero-txt .hero-main {
    font-size: 50px;
  }
}
@keyframes zoom {
  0% {
    transform: translate(-50%, -50%) scale(1.25);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.001);
  }
}
