/* *****************************************

              *** README ***
  * 최초 작성일 25-12-29

****************************************** */

@import url(animate.css);

/* *****************************************

              *** hero__slide ***
                메인 슬라이드 영역

****************************************** */

/* Swiper 전체 컨테이너 크기 지정 */
.hero__slide {
  width: 100%;
}

/* Swiper 메인 부분 */
.hero__slide .swiper-slide {
  width: 100%;
  height: 850px;
}

.hero__slide__bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 5s;
}

.hero__slide__content {
  height: 100%;
  color: #ffffff;
}

.hero__slide__content .inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(100px);
}

.hero__slide__sub {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero__slide__txt {
  font-family: var(--font-pointen);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.hero__slide__link a {
  display: inline-block;
  font-size: 1.5rem;
  background-color: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 10px;
  padding: 20px 40px;
  transition: all .3s;
}

.hero__slide__link a:hover {
  background-color: rgba(255, 255, 255, .5);
}

/* ================================
    HERO IMG SCALE ANIMATION
================================ */
.slide-x-right .hero__slide__bg img {
  transform: scale(1.1) translateX(30px);
}

.slide-x-left .hero__slide__bg img {
  transform: scale(1.1) translateX(-30px);
}

.slide-y-up .hero__slide__bg img {
  transform: scale(1.1) translateY(30px);
}

/* 활성화 */
.swiper-slide-active.slide-x-right .hero__slide__bg img {
  transform: scale(1.1) translateX(-30px);
}

.swiper-slide-active.slide-x-left .hero__slide__bg img {
  transform: scale(1.1) translateX(30px);
}

.swiper-slide-active.slide-y-up .hero__slide__bg img {
  transform: scale(1.1) translateY(-30px);
}

/* ================================
    HERO TEXT SLIDE-IN ANIMATION
================================ */
/* 초기 상태 */
.hero__slide__sub,
.hero__slide__txt,
.hero__slide__link {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* 순차 딜레이 */
.hero__slide__sub {
  transition-delay: 0.2s;
}

.hero__slide__txt {
  transition-delay: 0.3s;
}

.hero__slide__link {
  transition-delay: 0.4s;
}

/* 활성 슬라이드 */
.swiper-slide-active .hero__slide__sub,
.swiper-slide-active .hero__slide__txt,
.swiper-slide-active .hero__slide__link {
  opacity: 1;
  transform: translateY(0);
}

/* 반응형 시작 */

/* 1440px 이하: 큰 노트북 및 소형 데스크탑 */
@media screen and (max-width: 1440px) {
  .hero__slide .swiper-slide {
    height: 750px;
    /* 높이 약간 축소 */
  }

  .hero__slide__sub {
    font-size: 2.2rem;
  }

  .hero__slide__txt {
    font-size: 3.5rem;
  }
}

/* 1280px 이하: 노트북 표준 */
@media screen and (max-width: 1280px) {
  .hero__slide .swiper-slide {
    height: 650px;
  }

  .hero__slide__sub {
    font-size: 2rem;
  }

  .hero__slide__txt {
    font-size: 3rem;
  }

  .hero__slide__link a {
    padding: 15px 35px;
    font-size: 1.3rem;
  }
}

/* 1024px 이하: 태블릿 가로 */
@media screen and (max-width: 1024px) {
  .hero__slide .swiper-slide {
    height: 600px;
  }

  .hero__slide__content .inner {
    transform: translateY(60px);
    /* 중앙 위치 보정 */
  }

  .hero__slide__sub {
    font-size: 1.8rem;
  }

  .hero__slide__txt {
    font-size: 2.8rem;
    margin-bottom: 40px;
  }
}

/* 768px 이하: 태블릿 세로 및 대형 모바일 */
@media screen and (max-width: 768px) {
  .hero__slide .swiper-slide {
    height: 500px;
  }

  .hero__slide__content .inner {
    transform: translateY(40px);
    padding: 0 20px;
    /* 좌우 여백 확보 */
    text-align: center;
    /* 모바일 대응 중앙 정렬 추천 */
  }

  .hero__slide__sub {
    font-size: 1.4rem;
  }

  .hero__slide__txt {
    font-size: 2.2rem;
    margin-bottom: 30px;
    word-break: keep-all;
    /* 줄바꿈 자연스럽게 */
  }

  .hero__slide__link a {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
  }
}

/* 480px 이하: 스마트폰 */
@media screen and (max-width: 480px) {
  .hero__slide .swiper-slide {
    height: 70vh;
    /* 모바일에서 꽉 차게 보이길 원할 경우 */
    min-height: 450px;
  }

  .hero__slide__content .inner {
    transform: translateY(30px);
  }

  .hero__slide__sub {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .hero__slide__txt {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .hero__slide__link a {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

/* *****************************************

              *** main__products ***
                제품 슬라이드 영역

****************************************** */
.main__products {
  padding: 20px 0 100px;
  position: relative;
}

.main__products__animate {
  position: absolute;
  left: 0;
  top: 145px;
  width: 100%;
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.main__products__animate__text {
  font-family: var(--font-pointen);
  font-size: 7rem;
  font-weight: 700;
  color: hsl(25, 33%, 39%);
  opacity: .1;
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.main__products__slide {
  width: 100%;
  height: 750px;
}

.main__products__slide .swiper-wrapper {
  align-items: center;
}

.main__products__slide .swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;

  color: var(--c-g100);

  z-index: 0;
}

.main__products__slide .slide-inner {
  width: 100%;
  height: 300px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.main__products__slide .slide-inner img {
  position: absolute;
  top: 55%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: -1;
  width: 130%;
  height: auto;
  object-fit: cover;
  transition: all 0.5s;
}

/* [핵심] 가운데 활성화된 슬라이드의 내부 박스 스타일 */
.main__products__slide .swiper-slide-active .slide-inner {
  height: 550px;
}

.main__products__slide .swiper-slide-active .slide-inner img {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 230%;
}

/* 제품 슬라이드 텍스트 */
.main__products__slide .text {}

.main__products__slide .text h3 {
  font-family: var(--font-pointen);
  font-size: 2rem;
  line-height: 1;
  transition: all 0.5s ease;
}

.main__products__slide .swiper-slide-active .text h3 {
  font-size: 3.75rem;
  margin-bottom: 10px;
}

.main__products__slide .text p {
  font-size: 1.125rem;
  line-height: 1.5;
  /* margin-bottom: 24px; */
}

.main__products__slide .text a {
  font-size: 0.875rem;
  font-weight: 500;

  background-color: rgba(255, 255, 255, .2);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .7);
  display: none;
}

.main__products__slide .text p,
.main__products__slide .text a {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

/* 활성화된 슬라이드 (Active) 상태 */
.main__products__slide .swiper-slide-active .text p {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin-bottom: 24px;
  transform: translateY(0);
}

.main__products__slide .swiper-slide-active .text a {
  display: inline-block;
  opacity: 1;
  visibility: visible;
  height: auto;
  transform: translateY(0);
  padding: 8px 16px;
}

.main__products__slide .bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0px;
  opacity: 0;
  background: linear-gradient(to top,
      #845e42 0%,
      #845e42 20%,
      rgba(132, 94, 66, 0) 100%);
  transition: all .35s;
  z-index: -1;
}

.main__products__slide .swiper-slide-active .bg {
  height: 300px;
  opacity: 1;
}

/* 컨트롤러 커스텀 */
.main__products__control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
}

.main__products__count {
  font-size: 1.25rem;
  font-weight: 500;
  min-width: 20px;
}

.main__products__progress {
  width: 180px;
  height: 2px;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--c-main);
  width: 0;
  transition: width 0.3s ease;
  border-radius: 999px;
}

.main__products__nav {
  width: 60px;
  height: 60px;
  border: 1.5px solid #e5e5e5;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.main__products__nav:hover {
  border-color: #845e42;
}

.main__products__nav::after {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 2px solid #ccc;
  border-right: 2px solid #ccc;
  display: inline-block;
}

.main__products__nav.prev::after {
  transform: rotate(-135deg);
  margin-left: 5px;
}

.main__products__nav.next::after {
  transform: rotate(45deg);
  margin-right: 5px;
}

/* 제품 섹션 반응형 시작 */

/* 1440px 이하 */
@media screen and (max-width: 1440px) {
  .main__products__animate__text {
    font-size: 5.5rem;
    /* 배경 텍스트 크기 축소 */
  }

  .main__products__slide {
    height: 700px;
  }
}

/* 1280px 이하 */
@media screen and (max-width: 1280px) {
  .main__products__animate {
    top: 100px;
  }

  .main__products__animate__text {
    font-size: 4.5rem;
  }

  .main__products__slide .swiper-slide-active .text h3 {
    font-size: 3rem;
  }
}

/* 1024px 이하: 태블릿 (슬라이드 3개 노출 권장) */
@media screen and (max-width: 1024px) {
  .main__products {
    padding-bottom: 80px;
  }

  .main__products__slide {
    height: 650px;
  }

  .main__products__slide .swiper-slide-active .slide-inner {
    height: 480px;
    /* 액티브 슬라이드 높이 조절 */
  }

  .main__products__slide .text h3 {
    font-size: 1.5rem;
  }

  .main__products__slide .swiper-slide-active .text h3 {
    font-size: 2.5rem;
  }

  .main__products__progress {
    width: 120px;
    /* 프로그레스 바 너비 축소 */
  }
}

/* 768px 이하: 모바일 (슬라이드 1.5개~2개 노출) */
@media screen and (max-width: 768px) {
  .main__products__animate {
    top: 60px;
  }

  .main__products__animate__text {
    font-size: 3rem;
  }

  .main__products__slide {
    height: 550px;
  }

  .main__products__slide .slide-inner {
    height: 250px;
    /* 일반 슬라이드 높이 */
    padding: 20px;
  }

  .main__products__slide .swiper-slide-active .slide-inner {
    height: 400px;
    /* 액티브 슬라이드 높이 */
  }

  .main__products__slide .swiper-slide-active .text h3 {
    font-size: 2rem;
  }

  .main__products__slide .text p {
    font-size: 0.95rem;
    word-break: keep-all;
  }

  .main__products__nav {
    width: 45px;
    height: 45px;
  }
}

/* 480px 이하: 최소형 모바일 */
@media screen and (max-width: 480px) {
  .main__products__animate__text {
    font-size: 2.5rem;
  }

  .main__products__slide {
    height: 500px;
  }

  .main__products__slide .swiper-slide-active .slide-inner {
    height: 350px;
  }

  .main__products__slide .swiper-slide-active .text h3 {
    font-size: 1.75rem;
  }

  .main__products__slide .text p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .main__products__control {
    gap: 10px;
  }

  .main__products__progress {
    width: 80px;
  }
}

/* *****************************************

              *** main__heritage ***
                    액티브 섹션

****************************************** */
.main__heritage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(132, 94, 66, 0.06);
  color: #000;
  z-index: 1;
  padding: 0 50px;
}

.main__heritage__intro {
  text-align: center;
  will-change: transform, opacity;
}

.main__heritage__intro__text {
  text-align: center;
  height: 74px;
}

.main__heritage__intro__text img {
  width: 350px;
}

.main__heritage__intro__name {
  font-family: var(--font-pointen);
  font-size: 5rem;
  font-weight: 700;
  display: inline-block;
  /* 추가 */
  overflow: hidden;
  /* 추가: 글자가 튕기는 현상 방지 */
}

/* 타이핑될 개별 글자(span) 스타일 */
.main__heritage__intro__name span {
  display: inline-block;
  transform: translateY(10px);
  /* 시작 위치 살짝 아래 */
  will-change: transform, opacity;
}

.scroll-track {
  position: relative;
  height: 650vh;
  margin-top: -100vh;
  z-index: 2;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.card {
  pointer-events: auto;
  width: 350px;
  height: 500px;
  border-radius: 20px;
  transform: translate3d(0, 110vh, 0);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  will-change: transform, width, height, border-radius;
  overflow: hidden;
  /* ✅ 미세 떨림 방지(서브픽셀/리샘플링) */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  contain: layout paint size;
}

/* ✅ 기존 card background를 <img>로 바꿔서 리사이즈 시 background 재계산 떨림 줄이기 */
.card-bg-before {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.card-bg-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* ✅ GPU 합성 + 미세 스케일로 흔들림/틈 방지 */
  transform: translateZ(0) scale(1.001);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  image-rendering: auto;
}

.card-bg-after {
  position: absolute;
  /* ✅ 카드가 커지기 전에도 이미 화면 전체 크기를 유지 */
  width: 100vw;
  height: 100vh;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  will-change: opacity, transform;
  z-index: 1;
  pointer-events: none;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.card-bg-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transform: translateZ(0) scale(1.001);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.btn-fixed-left {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  opacity: 0;
  z-index: 10;
  will-change: transform, opacity;
}

.btn-fixed-left p {
  font-size: 2.75rem;
  font-weight: 500;
}

.btn-fixed-right {
  position: absolute;
  left: calc(50% + 150px + 100px);
  top: 60%;
  transform: translate3d(50px, 0, 0);
  width: 300px;
  opacity: 0;
  pointer-events: auto;
  z-index: 10;
  will-change: transform, opacity;
}

.btn-fixed-right p {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 30px;
}

.btn-fixed-right a {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-main);
  border: 1px solid var(--c-main);
  border-radius: 8px;
  padding: 15px 25px;
  transition: color .3s, background-color .3s;
}

.btn-fixed-right a:hover {
  color: var(--c-g100);
  background-color: var(--c-main);
}

.card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-content .inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 20px;
  padding-bottom: 150px;
}

/* 1. 기본 상태: 밑으로 살짝 내려가 있고 투명함 */
.card-content div,
.card-content p {
  opacity: 0;
  transform: translateY(30px);
  /* 초기 위치: 아래 */
  /* transition 삭제 (GSAP이 제어함) */
  will-change: opacity, transform;
}

.main__heritage__end__big {
  font-family: var(--font-pointen);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.main__heritage__end__small {
  font-size: 2.125rem;
  font-weight: 300;
}

/* Heritage 섹션 반응형 시작 */

/* 1440px 이하 */
@media screen and (max-width: 1440px) {
  .main__heritage__intro__text {
    height: 60px;
  }

  .main__heritage__intro__text img {
    width: 280px;
  }

  .main__heritage__intro__name {
    font-size: 4rem;
  }

  .btn-fixed-left p {
    font-size: 2.2rem;
  }

  .btn-fixed-right {
    left: calc(50% + 150px + 50px);
  }

  /* 간격 축소 */
}

/* 1280px 이하 */
@media screen and (max-width: 1280px) {
  .btn-fixed-left p {
    font-size: 1.8rem;
  }

  .btn-fixed-right {
    width: 250px;
  }

  .main__heritage__end__big {
    font-size: 3.5rem;
  }

  .main__heritage__end__small {
    font-size: 1.8rem;
  }
}

/* 1024px 이하: 태블릿 */
@media screen and (max-width: 1024px) {
  .main__heritage__intro__text {
    height: 48px;
  }

  .main__heritage__intro__text img {
    width: 220px;
  }

  .main__heritage__intro__name {
    font-size: 3rem;
  }

  .card {
    width: 300px;
    height: 420px;
  }

  /* 카드 크기 축소 */

  .btn-fixed-left,
  .btn-fixed-right {
    display: none;
  }

  .btn-fixed-right p {
    font-size: 1rem;
  }

  .card-content .inner {
    padding-bottom: 100px;
  }

  .main__heritage__end__big {
    font-size: 2.8rem;
  }

  .main__heritage__end__small {
    font-size: 1.5rem;
  }
}

/* 768px 이하: 모바일 일반 */
@media screen and (max-width: 768px) {
  .main__heritage {
    padding: 0 20px;
  }

  .main__heritage__intro__text {
    height: 40px;
  }

  .main__heritage__intro__text img {
    width: 180px;
  }

  .main__heritage__intro__name {
    font-size: 2.5rem;
  }

  /* 모바일에서 좌우 배치 대신 상하 배치 느낌으로 유도 */
  .btn-fixed-left {
    text-align: center;
    top: 35%;
  }

  .btn-fixed-left p {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .btn-fixed-right {
    width: 50%;
  }

  .btn-fixed-right p {
    margin-bottom: 15px;
  }

  .btn-fixed-right a {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .card {
    width: 260px;
    height: 380px;
  }

  .main__heritage__end__big {
    font-size: 2.2rem;
  }

  .main__heritage__end__small {
    font-size: 1.2rem;
    word-break: keep-all;
  }
}

/* 480px 이하: 최소형 모바일 */
@media screen and (max-width: 480px) {
  .scroll-track {
    height: 550vh;
  }

  .main__heritage__intro__text {
    height: 34px;
  }

  .main__heritage__intro__text img {
    width: 160px;
  }

  .main__heritage__intro__name {
    font-size: 2rem;
  }

  .btn-fixed-left p {
    font-size: 1.25rem;
  }

  .btn-fixed-right {
    width: 50%;
    padding: 0 15px;
  }

  .btn-fixed-right p {
    font-size: 0.9rem;
  }

  .card {
    width: 220px;
    height: 320px;
  }

  .card-content .inner {
    padding-bottom: 150px;
    text-align: center;
  }

  .main__heritage__end__big {
    font-size: 1.8rem;
  }

  .main__heritage__end__small {
    font-size: 1rem;
  }
}

/* *****************************************

              *** main__video ***
                  브랜드 필름

****************************************** */
.main__video {
  padding: 150px 0 100px;
  background-color: var(--c-main);
  position: relative;
  overflow: hidden;
}

.main__video__animate {
  position: absolute;
  left: 0;
  top: 50px;
  width: 100%;
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.main__video__animate__text {
  font-family: var(--font-pointen);
  font-size: 7rem;
  font-weight: 700;
  color: var(--c-g100);
  opacity: .1;
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.main__video__slide {
  --h--mainvideo: 650px;
}

.main__video__slide .swiper-slide {
  overflow: hidden;
  position: relative;
  width: 650px;
  transition: width .7s;
}

.main__video__slide .swiper-slide-active {
  width: 1100px;
}

.main__video__slide .swiper-slide:last-child {
  width: 500px;
  pointer-events: none;
}

.main__video__box {
  border-radius: 10px;
  overflow: hidden;
}

.main__video__box {
  position: relative;
  cursor: pointer;
}

/* 기본 비디오 컨트롤 숨기기 */
video::-webkit-media-controls {
  display: none !important;
}

.main__video__box video {
  width: 100%;
  height: var(--h--mainvideo);
  object-fit: cover;
}

/* 버튼 기본 설정 */
.video-control {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* 1. 일시정지 상태일 때 (재생 버튼 모양) */
.video-control.play-state {
  opacity: 1;
}

.video-control.play-state::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  /* 위아래 15px씩 총 높이 30px, 너비 25px 삼각형 */
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
  margin-left: 8px;
  /* 정가운데처럼 보이도록 살짝 오른쪽으로 밀어줌 */
}

/* 2. 재생 중일 때 (일시정지 버튼 모양) */
.video-control.pause-state {
  opacity: 0;
  /* 평소엔 숨김 */
}

.video-control.pause-state::before,
.video-control.pause-state::after {
  content: '';
  width: 6px;
  /* 막대 두께 */
  height: 30px;
  /* 막대 길이 */
  background: #fff;
  margin: 0 5px;
  /* 두 막대 사이 간격 */
  border-radius: 2px;
  /* 살짝 둥글게 하면 더 고급스러워요 */
}

/* 3. 재생 중일 때(pause-state) 마우스를 올리면 보이게 함 */
.main__video__box:hover .video-control.pause-state {
  opacity: 1;
}

.main__video__text {
  color: var(--c-g100);
  margin-top: 10px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
}

/* 비디오 섹션 반응형 시작 */

/* 1440px 이하 */
@media screen and (max-width: 1440px) {
  .main__products__slide .swiper-slide:last-child {
    display: none;
  }

  .main__video__animate__text {
    font-size: 5.5rem;
  }

  .main__video__slide {
    --h--mainvideo: 550px;
  }

  .main__video__slide .swiper-slide {
    width: 500px;
  }

  .main__video__slide .swiper-slide-active {
    width: 900px;
  }
}

/* 1280px 이하 */
@media screen and (max-width: 1280px) {
  .main__video {
    padding: 100px 0 80px;
  }

  .main__video__animate {
    top: 30px;
  }

  .main__video__animate__text {
    font-size: 4.5rem;
  }

  .main__video__slide {
    --h--mainvideo: 480px;
  }

  .main__video__slide .swiper-slide {
    width: 450px;
  }

  .main__video__slide .swiper-slide-active {
    width: 800px;
  }
}

/* 1024px 이하: 태블릿 */
@media screen and (max-width: 1024px) {
  .main__video__slide {
    --h--mainvideo: 400px;
  }

  .main__video__slide .swiper-slide {
    width: 380px;
  }

  .main__video__slide .swiper-slide-active {
    width: 700px;
  }

  .video-control {
    width: 60px;
    height: 60px;
  }

  .video-control.play-state::before {
    border-width: 10px 0 10px 18px;
    margin-left: 5px;
  }

  .video-control.pause-state::before,
  .video-control.pause-state::after {
    height: 20px;
    width: 4px;
  }
}

/* 768px 이하: 모바일 일반 */
@media screen and (max-width: 768px) {
  .main__video {
    padding: 80px 0 60px;
  }

  .main__video__animate__text {
    font-size: 3rem;
  }

  .main__video__slide {
    --h--mainvideo: 350px;
  }

  /* 모바일에서는 슬라이드 간의 너비 차이를 줄여 가독성 확보 */
  .main__video__slide .swiper-slide {
    width: 280px;
  }

  .main__video__slide .swiper-slide-active {
    width: 450px;
  }

  .main__video__slide .swiper-slide:last-child {
    width: 100px;
  }

  /* 여백용 마지막 슬라이드 축소 */

  .main__video__text {
    font-size: 1.2rem;
  }

  .video-control {
    opacity: 1 !important;
    width: 50px;
    height: 50px;
  }

  /* 모바일은 호버가 없으므로 항상 보이게 */
}

/* 480px 이하: 최소형 모바일 */
@media screen and (max-width: 480px) {
  .main__video__animate__text {
    font-size: 2.5rem;
  }

  .main__video__slide {
    --h--mainvideo: 280px;
  }

  .main__video__slide .swiper-slide {
    width: 240px;
  }

  .main__video__slide .swiper-slide-active {
    width: 320px;
  }

  .main__video__text {
    font-size: 1rem;
  }
}

/* *****************************************

              *** main__notice ***
                  공지사항/뉴스

****************************************** */

.main__notice {
  padding: 100px 0 150px;
}

.main__notice__wrap {
  display: flex;
}

.main__notice__title {
  width: 35%;
}

.main__notice__title h2 {
  font-size: 3.5rem;
  font-weight: 600;
}

.main__notice__more {
  margin-top: 30px;
}

.main__notice__more a {
  display: inline-block;
  border-radius: 10px;
  border: 1px solid var(--c-main);
  color: var(--c-main);
  font-size: 1.375rem;
  font-weight: 500;
  padding: 16px 60px;
  transition: all .3s ease;
}

.main__notice__more a:hover {
  background-color: var(--c-main);
  color: var(--c-g100);
}

.main__notice__content {
  flex: 1;
}

.main__notice__link {
  display: flex;
  gap: 20px;
  margin-top: 50px;
}

.main__notice__link a {
  font-size: 1.5rem;
  font-weight: 600;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-g100);
  padding: 36px 50px;
  border-radius: 10px;
}

.main__notice__link a img {
  height: 50px;
}

.main__notice__contact {
  background-color: var(--c-main);
}

.main__notice__catalog {
  background-color: var(--c-g000);
}

.main__notice__contact,
.main__notice__catalog {
  transition: background-color .3s ease;
}

.main__notice__contact:hover {
  background-color: #996d4d;
}

.main__notice__catalog:hover {
  background-color: #222222;
}

/* 공지사항 섹션 반응형 시작 */

/* 1440px 이하 */
@media screen and (max-width: 1440px) {
  .main__notice__title h2 {
    font-size: 3rem;
  }

  .main__notice__more a {
    padding: 14px 50px;
    font-size: 1.25rem;
  }

  .main__notice__link a {
    padding: 30px 40px;
    font-size: 1.3rem;
  }
}

/* 1280px 이하 */
@media screen and (max-width: 1280px) {
  .main__notice {
    padding: 80px 0 130px;
  }

  .main__notice__title {
    width: 30%;
  }

  .main__notice__title h2 {
    font-size: 2.5rem;
  }

  .main__notice__link a {
    font-size: 1.2rem;
  }

  .main__notice__link a img {
    height: 40px;
  }
}

/* 1024px 이하: 태블릿 (좌우 배치 유지하되 폰트 축소) */
@media screen and (max-width: 1024px) {
  .main__notice__wrap {
    gap: 40px;
  }

  .main__notice__title {
    width: 25%;
  }

  .main__notice__title h2 {
    font-size: 2.2rem;
  }

  .main__notice__more {
    margin-top: 20px;
  }

  .main__notice__more a {
    padding: 10px 30px;
    font-size: 1.1rem;
  }

  .main__notice__link {
    gap: 15px;
  }

  .main__notice__link a {
    padding: 25px 30px;
  }
}

/* 768px 이하: 모바일 일반 (세로 배치 전환) */
@media screen and (max-width: 768px) {
  .main__notice {
    padding: 60px 0 110px;
  }

  .main__notice__wrap {
    flex-direction: column;
    gap: 28px;
  }

  /* 세로 정렬 */

  .main__notice__title {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }

  .main__notice__title h2 {
    font-size: 2.5rem;
  }

  .main__notice__more a {
    width: 100%;
    text-align: center;
  }

  .main__notice__more {
    margin-top: 15px;
  }

  .main__notice__content {
    width: 100%;
  }

  .main__notice__link {
    flex-direction: column;
    margin-top: 40px;
  }

  .main__notice__link a {
    padding: 20px 30px;
    font-size: 1.25rem;
  }

  .main__notice__link a img {
    height: 35px;
  }
}

/* 480px 이하: 최소형 모바일 */
@media screen and (max-width: 480px) {
  .main__notice {
    padding: 60px 0 100px;
  }

  .main__notice__title h2 {
    font-size: 2rem;
  }

  /* 버튼 꽉 차게 */

  .main__notice__link a {
    padding: 18px 25px;
    font-size: 1.1rem;
  }

  .main__notice__link a img {
    height: 30px;
  }
}