@import url("common.css");
@import url("layout.css");

/****************SWIPER*/
.swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.swiper-slide::before,
.swiper-slide::after,
.swiper-slide video::-webkit-media-controls-start-playback-button {
  display: none !important;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.swiper-slide iframe {
  width: 100%;
  height: 100%;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 비디오 */
.main_video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.main_video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*object-position: top left;*/
}

.pagination {
  position: absolute;
  z-index: 20;
  left: 95px;
  top: calc(50% - 40px);
  transition: .3s;
}
.pagination span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #f9f9f960;
  margin: 20px 0;
  transition: width 0.3s;
}
.pagination .swiper-pagination-bullet-active {
  width: 70px;
  background-color: #f9f9f9;
}

/**************** overlay*/
.main_video_overay {
  position: absolute;
  z-index: 1;
  background-color: #00000010;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center; /* 가로 중앙 정렬 */
  align-items: center; /* 세로 중앙 정렬 */
}
.video_mottom {
  width: 50%;
  height: 100%;
  text-align: left;
  display: flex;
  align-items: center; /* 세로 중앙 정렬 */
  transition: .3s;
}
.video_mottom blockquote p.h3 {
  color: #f9f9f9;
  white-space: pre-line;
  font-size: 2.9vw;
  line-height: 150%;
  font-weight: 700;
  opacity: 0;
  transition: 0.5s;
  transform: translateX(50px);
}
.video_mottom blockquote p.summary {
  color: #f9f9f9;
  white-space: pre-line;
  font-size: 1.2vw;;
  line-height: 170%;
  font-weight: 400;
  opacity: 0;
  transition: 1s;
  transform: translateX(50px);
}
.video_mottom button {
  background-color: #f9f9f900;
  border: 1px solid #f9f9f9;
  height: 46px;
  padding: 0 40px;
  margin-right: 10px;
  border-radius: 3px;
  color: #f9f9f9;
  font-weight: 700;
  font-size: 1.2rem;
  transition: 1s;
  opacity: 0;
  transform: translateX(50px);
}
.video_mottom button:hover {
  background-color: #f9f9f930;
}

/**************** 애니메이션*/
.swiper-slide-active .video_mottom blockquote p.h3 {
  opacity: 1;
  transform: translateX(0px);
  transition-delay: 0.1s;
}
.swiper-slide-active .video_mottom blockquote p.summary {
  opacity: 1;
  transform: translateX(0px);
  transition-delay: 0.2s;
}
.swiper-slide-active .video_mottom button {
  opacity: 1;
  transform: translateX(0px);
  transition-delay: 0.3s;
}

/****************quick 메뉴*/
.quick {
  position: fixed;
  height: calc(100% - 105px);
  right: 0;
  top: 100px;
  backdrop-filter: blur(5px);
  background-color: #12121205;
  z-index: 10;
  border-left: 1px;
}
.quick button {
  height: calc(25%);
  display: block;
  background-color: transparent;
  border: 0;
  border-left: 1px solid #f9f9f930;
  border-bottom: 1px solid #f9f9f930;
  width: 100%;
  aspect-ratio: 1 1;
  width: 200px;
  color: #f9f9f9;
  background-repeat: no-repeat;
  background-position: 50% calc(50% - 20px);
  background-size: 30px 30px;
  padding-top: 45px;
  font-size: 1.2rem;
  position: relative;
  font-weight: 500;
  overflow: hidden;
}
.quick button.product {
  background-image: url(/assets/svg/ico_product.svg);
}
.quick button.dataroom {
  background-image: url(/assets/svg/ico_dataroom.svg);
}
.quick button.catalog {
  background-image: url(/assets/svg/ico_catalog.svg);
}
.quick button.purchase {
  background-image: url(/assets/svg/ico_purchase.svg);
}
.quick button:hover .bg {
  background-color: #227dcd;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  position: absolute;
  z-index: -1;
  top: -1px;
  left: -1px;
  background: linear-gradient(to right, #227dcd, #17558b);
  overflow: hidden;
  opacity: .9;
}
.quick button:hover .bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
          to right,
          rgba(255, 255, 255, 0.2),
          rgba(255, 255, 255, 0)
  );
  transform: skewX(-30deg);
  animation: shineEffect 0.5s infinite linear;
  filter: blur(20px);
}
@keyframes shineEffect {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}


/**************** 프로그래스 바 컨테이너 */
.autoplay-progress {
  position: absolute;
  bottom: 0; /* 하단 배치 */
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

/* 진행되는 바 */
.progress-bar {
  width: 0%;
  height: 100%;
  background: #ff5722;
  transition: width linear;
}

/*스크롤*/
.scroll_down {
  display: none;
  width: 22px;
  height: 200px;
  background-color: #f9f9f9;
  z-index: 2;
  position: fixed;
  left: 40px;
  bottom: 40px;
  mask-image: url("/assets/svg/scroll_down.svg");
  mask-size: auto;
  mask-repeat: no-repeat;
  mask-position: 50% 50%;
  -webkit-mask-image: url("/assets/svg/scroll_down.svg");
  -webkit-mask-size: auto;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 50% 50%;
  animation: moveUpDown 1s infinite ease-in-out;
}
@keyframes moveUpDown {
  0%,
  100% {
    transform: translateY(0);
  } /* 원래 위치 */
  50% {
    transform: translateY(-10px);
  } /* 아래로 이동 */
}

/****************메인 팝업******/
/* 팝업 배경 */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 팝업 컨테이너 */
#popup-container {
  width: calc(100% - 40px);
  max-width: 960px;
  /*padding: 20px;*/
  position: relative;
  text-align: center;
}

/* 유튜브 영상 반응형 */
.popup-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.3);
  background-color: #121212;
  aspect-ratio: 48 / 27;
}
.popup-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px 5px 0 0;
}

/* 버튼 스타일 */
.popup-buttons {
  padding: 5px 0px;
  width: 100%;
  text-align: right;
}
.popup-buttons button {
  background: #121212;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin: 10px 0px 10px 10px;
  font-weight: 600;
}

.popup-buttons button:hover {
  background: #121212;
}

/* 닫기 버튼 */
#popup-close {
  background: #121212;
  float: right;
}

#popup-close:hover {
  background: #121212;
}




/*******************************************************************/
/*******************************************************************/
/*******************************************************************/
/* 1) 모바일 기본 스타일 (768px 이하) */
@media (max-width: 577px) {
  /*QUICK*/
  .quick{
    top:auto;
    bottom:5px;
    display: flex;
    height: 100px;
    width: 100%;
    backdrop-filter: blur(2px);
  }
  .quick button{
    width: 25%;
    height: 100%;
    border-top: 1px solid #f9f9f915;
    border-left: 1px solid #f9f9f915;
    font-size: .9rem;
    background-size: 20px 20px;
    background-position: 50% calc(50% - 10px);
    padding-top: 35px;
  }
  .quick button .bg{
    display: none;
  }
  .quick button:first-child{
    border-left: 0;
  }
  .video_mottom{
    width: 100%;
    transform: scale(.8);
  }
  .video_mottom blockquote p.summary{
    word-break: keep-all; /* 한글 단어는 유지 */
    overflow-wrap: break-word; /* 영어 단어는 필요 시 줄바꿈 */
    white-space: normal;
    width: 400px;
    font-size: 6.4vw;
    line-height: 150%;
  }
  .video_mottom blockquote p.h3{
    font-size: 9vw;
  }
  .pagination{
    display: none;
  }


  .video_mottom button {
    height: auto;
    padding: 5px 25px;
    font-size:5vw ;
  }
}


/*******************************************************************/
/*******************************************************************/
/*******************************************************************/
@media (min-width: 578px) and (max-width: 990px) {
  /*QUICK*/
  .quick{
    top:auto;
    bottom:5px;
    display: flex;
    height: 100px;
    width: 100%;
  }
  .quick button{
    width: 25%;
    height: 100%;
    border-top: 1px solid #f9f9f940;
    font-size: .9rem;
    background-size: 20px 20px;
    background-position: 50% calc(50% - 10px);
    padding-top: 35px;
  }
  .video_mottom{
    width: 80%;
    transform: scale(1);
    justify-content: center;
  }
  .video_mottom blockquote p.h3{
    font-size: 6vw;
  }
  .video_mottom blockquote p.summary{
    /*word-break: keep-all; !* 한글 단어는 유지 *!*/
    /*overflow-wrap: break-word; !* 영어 단어는 필요 시 줄바꿈 *!*/
    /*white-space: normal;*/
    width: 100%;
    font-size: 3vw;
    white-space: pre-line;
  }
  .video_mottom button {
    height: auto;
    padding: 5px 20px;
    font-size:3vw ;
  }
  .pagination{
    display: none;
  }

}


/*******************************************************************/
/*******************************************************************/
/*******************************************************************/
/* 4) 일반 PC (991px 이상) */
@media (min-width: 991px) and (max-width:1300px) {
  /***퀵***/
  .quick{
    height: calc(100% - 65px);
    top:69px;
  }
  .quick button{
    font-size: 1.6vw;
    width: 150px;
  }

  /***모토***/
  .video_mottom{
    width: 60%;
    transform: scale(1);
    justify-content: center;
    margin-right: 10%;
  }
  .video_mottom blockquote p.h3{
    font-size: 5vw;
  }
  .video_mottom blockquote p.summary{
    /*word-break: keep-all; !* 한글 단어는 유지 *!*/
    /*overflow-wrap: break-word; !* 영어 단어는 필요 시 줄바꿈 *!*/
    /*white-space: normal;*/
    width: 100%;
    font-size: 2.5vw;

  }
  .video_mottom button {
    height: auto;
    padding: 5px 20px;
    font-size:2.5vw ;
  }
  .pagination{
    left: 30px;
    bottom:80px;
    top: auto;
    transform: scale(.8);
  }
}


/*******************************************************************/
/*******************************************************************/
/*******************************************************************/
/* 5) 대형 화면 (1301px 이상) */
@media (min-width: 1301px) and (max-width: 1600px) {
  /***퀵***/
  .quick{
    height: calc(100% - 75px);
    top:70px;
  }
  .quick button{
    font-size: 1rem;
  }



}

/*******************************************************************/
/*******************************************************************/
/*******************************************************************/
@media (min-width: 1301px) and (min-height: 900px) {
  .video_mottom blockquote{
    transform: scale(1.3);
    transform-origin: left;
  }
}

/*******************************************************************/
/*******************************************************************/
/*******************************************************************/
@media (min-width: 1601px) and (min-height: 1200px) {
  .video_mottom blockquote{
    transform: scale(1.5);
  }
}

/*수정1*/