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

              *** README ***

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

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

              *** common ***
              공통 적용 부분

****************************************** */
.main .title h2 {
  font-family: var(--font-pointen);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-main);
  margin-bottom: 10px;
}

.main .title .text {
  font-family: var(--font-pointen);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.main .title .desc {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.4;
  color: #4d4d4d;
}

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .main .title .text {
    font-size: 3rem;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .main .title .text {
    font-size: 2.75rem;
    margin-bottom: 20px;
  }

  .main .title .desc {
    font-size: 1.063rem;
  }
}

/* 3. 태블릿 가로 (1024px) */
@media screen and (max-width: 1024px) {
  .main .title h2 {
    font-size: 1.125rem;
  }

  .main .title .text {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }

  .main .title .desc {
    font-size: 1rem;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .main .title h2 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .main .title .text {
    font-size: 2.25rem;
  }

  .main .title .desc {
    font-size: 0.938rem;
    line-height: 1.5;
  }

  /* 모바일은 행간이 좀 더 넓어야 읽기 편해요 */
}

/* 5. 스마트폰 세로 (480px) */
@media screen and (max-width: 480px) {
  .main .title h2 {
    font-size: .9rem;
  }

  .main .title .text {
    font-size: 1.75rem;
    /* 30px 정도로 축소 */
    margin-bottom: 10px;
    word-break: keep-all;
    /* 단어 단위 줄바꿈으로 깔끔하게 */
  }

  .main .title .desc {
    font-size: 0.85rem;

    br {
      display: none;
    }

    /* PC용 강제 줄바꿈이 있다면 모바일에서 해제 */
  }
}

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

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

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

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

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

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

.hero__slide__bg .hero__deco {
  position: absolute;
  top: 150px;
  right: 120px;
  width: 300px;
}

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

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

.hero__slide__since {
  font-size: 1.5rem;
  font-weight: 400;
}

.hero__slide__slogan {
  font-family: var(--font-pointen);
  font-size: 3.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero__slide__line {
  width: 1px;
  height: 50px;
  background-color: #ffffff;
  margin: 30px 0;
  margin-left: 6px;
}

.hero__slide__txt {
  font-size: 1.375rem;
  line-height: 1.2;
}

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

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

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

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

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

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

/* ================================
    HERO TEXT SLIDE-IN ANIMATION
================================ */
/* 초기 상태 */
.hero__slide__since,
.hero__slide__slogan,
.hero__slide__line,
.hero__slide__txt {
  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__slogan {
  transition-delay: 0.2s;
}

.hero__slide__line {
  transition-delay: 0.3s;
}

.hero__slide__txt {
  transition-delay: 0.4s;
}

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

/* ================================
          컨트롤러 커스텀
================================ */
.hero__control__wrap {
  position: absolute;
  width: 100%;
  bottom: 60px;
  z-index: 1;
}

.hero__control__wrap .inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 100px;
}

.hero__control__line {
  flex: 1;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
}

.hero__control {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero__control__nav {
  position: relative;
  width: 70px;
  height: 70px;
  background-color: transparent;
  cursor: pointer;
}

.hero__control__nav img {
  width: 100%;
  transition: transform .2s ease-out;

  /* 흔들림 방지 */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform;
}

.hero__control__nav.prev img {
  transform: rotate(180deg);
}

.hero__control__nav.prev:hover img {
  transform: rotate(180deg) translateX(5px);
}

.hero__control__nav.next:hover img {
  transform: translateX(5px);
}

.hero__control__nav::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff;
  border-radius: 50%;
}

.hero__control__nav.prev::before {
  left: -15px;
}

.hero__control__nav.next::before {
  right: -15px;
}

.hero__control__count {
  color: #ffffff;
  font-family: var(--font-pointen);
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__slide__count.current {
  font-size: 1.125rem;
}

/* --- 데스크탑 퍼스트 히어로 섹션 --- */

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .hero__slide__bg .hero__deco {
    top: 120px;
    right: 50px;
    width: 250px;
  }

  .hero__slide__slogan {
    font-size: 2.75rem;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .hero__slide__content .inner {
    padding-bottom: 120px;
  }

  .hero__slide__slogan {
    font-size: 2.5rem;
  }

  .hero__slide__txt {
    font-size: 1.25rem;
  }

  .hero__control__wrap .inner {
    gap: 50px;
  }
}

/* 3. 태블릿 가로 (1024px) */
@media screen and (max-width: 1024px) {

  /* 데코레이션 이미지 위치 조정 */
  .hero__slide__bg .hero__deco {
    top: 100px;
    right: 30px;
    width: 200px;
    opacity: 0.6;
    /* 글자와 겹칠 수 있으니 살짝 투명하게 */
  }

  .hero__slide__content .inner {
    padding-bottom: 100px;
  }

  .hero__slide__slogan {
    font-size: 2.25rem;
  }

  .hero__slide__line {
    height: 40px;
    margin: 20px 0;
  }

  /* 컨트롤러 영역 */
  .hero__control__nav {
    width: 50px;
    height: 50px;
  }

  .hero__control__nav::before {
    width: 30px;
    height: 30px;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {

  .hero__slide .swiper-slide {
    height: 90svh;
  }

  /* 768px부터는 데코 이미지가 텍스트를 방해하므로 상단으로 작게 치우거나 숨김 */
  .hero__slide__bg .hero__deco {
    top: 90px;
    right: 16px;
    width: 140px;
  }

  .hero__slide__content .inner {
    justify-content: center;
    /* 텍스트를 화면 중앙 쪽으로 */
    padding-bottom: 0;
  }

  .hero__slide__since {
    font-size: 1.125rem;
  }

  .hero__slide__slogan {
    font-size: 1.875rem;
    word-break: keep-all;
  }

  .hero__slide__txt {
    font-size: 1.125rem;
    word-break: keep-all;
  }

  /* 라인 숨기거나 짧게 */
  .hero__slide__line {
    height: 30px;
    margin: 15px 0;
  }

  /* 컨트롤러 바닥에 고정 */
  .hero__control__wrap {
    bottom: 40px;
  }

  .hero__control__wrap .inner {
    justify-content: center;
    gap: 20px;
  }

  .hero__control {
    gap: 20px;
  }

  .hero__control__line {
    display: none;
  }

  /* 모바일에서 선은 지우는 게 깔끔 */
}

/* 5. 스마트폰 세로 (480px) */
@media screen and (max-width: 480px) {

  .hero__slide .swiper-slide {
    height: 90svh;
  }

  /* 슬로건 줄바꿈 대응 */
  .hero__slide__slogan {
    font-size: 1.625rem;
  }

  .hero__slide__txt {
    font-size: 0.938rem;
    line-height: 1.4;
  }

  /* 480px에선 PC용 <br> 제거 (선택사항) */
  .hero__slide__slogan br,
  .hero__slide__txt br {
    display: none;
  }

  /* 컨트롤러 크기 최소화 */
  .hero__control__nav {
    width: 40px;
    height: 40px;
  }

  /* 복잡한 장식 제거 */
  .hero__control__count {
    font-size: 1.125rem;
  }

  .hero__slide__content .inner {
    padding: 0 20px;
    /* 기본 inner 패딩보다 조금 더 여유 */
  }
}

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

              *** main__history ***
                  메인 연혁 영역

****************************************** */
.main__history {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 150px 0 130px;
}

.main__history::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url(/assets/img/main/history_bg.jpg) no-repeat center / cover;
  opacity: 0.5;
  z-index: -1;

  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 7%,
      black 90%,
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 7%,
      black 90%,
      transparent 100%);
}

.main__history__deco {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.main__history .inner {
  position: relative;
}

.main__history__wrap {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

/* history left */
.main__history__content {
  flex: 1;
}

.main__history .title .text span {
  display: block;
  font-size: 1.9rem;
  font-weight: 300;
  margin-top: 30px;
  margin-bottom: 30px;
}

.main__history .title .desc {
  width: 530px;
}

/* 연혁 리스트 */
.main__history__content .content {
  margin-top: 70px;
  display: flex;
  align-items: start;
  gap: 30px;
}

.main__history__box {
  position: relative;
  padding-left: 36px;
}

.main__history__box::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  bottom: 0;
  width: 1px;
  opacity: .9;
  background: var(--c-main);
  -webkit-mask-image: linear-gradient(to bottom,
      black 0%,
      black 80%,
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      black 0%,
      black 80%,
      transparent 100%);
}

.main__history__item {
  position: relative;
}

/* 빨간 점 */
.main__history__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--c-main);
  border-radius: 50%;
}

.main__history__year {
  display: block;
  font-family: var(--font-pointen);
  font-size: 2.125rem;
  font-weight: 400;
  margin-bottom: 18px;
}

.main__history__list {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 30px;
}

/* history right */
.main__history__img {
  width: 580px;
  display: flex;
  flex-direction: column;
  gap: 190px;
}

.main__history__slide {
  width: 100%;
  height: 800px;
  overflow: hidden;
  border-radius: 40px;
  position: relative;
}

.main__history__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main__history__slide .swiper-pagination {
  right: 20px;
  display: flex;
  flex-direction: column;
}

.main__history__slide .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 1px solid #ffffff;
  opacity: 1;
  margin: 6px 0 !important;
  transition: background .3s;
}

.main__history__slide .swiper-pagination-bullet-active {
  background: #fff;
}

.main__history__txt {
  font-family: var(--font-pointen);
  font-size: 2.125rem;
  font-weight: 600;
  text-align: right;
  opacity: .7;
}

.main__history__txt span {
  display: inline-block;
  padding: 4px 2px;
  border-bottom: 1px solid #000;
}

/* --- 데스크탑 퍼스트 히스토리 섹션 --- */

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .main__history {
    padding: 120px 0;
  }

  .main__history__img {
    width: 500px;
    gap: 100px;
  }

  .main__history__slide {
    height: 650px;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .main__history__img {
    width: 450px;
  }

  .main__history__slide {
    height: 550px;
  }

  .main__history .title .desc {
    width: 100%;
    max-width: 500px;
  }

  .main__history__year {
    font-size: 1.875rem;
  }
}

/* 3. 태블릿 가로 (1024px) - 레이아웃 전환 시작 */
@media screen and (max-width: 1024px) {
  .main__history {
    padding: 100px 0;
  }

  .main__history__wrap {
    flex-direction: column;
    /* 세로 배치 */
    gap: 60px;
  }

  .main__history__content {
    width: 100%;
  }

  .main__history__img {
    width: 100%;
    flex-direction: row;
    /* 이미지와 우측 하단 텍스트 가로 배치 */
    align-items: flex-end;
    gap: 30px;
  }

  .main__history__slide {
    height: 450px;
    flex: 1;
  }

  .main__history__txt {
    font-size: 1.5rem;
    text-align: left;
    min-width: 200px;
  }

  .main__history .title .desc {
    max-width: 100%;
  }

  .main__history__content .content {
    margin-top: 50px;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .main__history {
    padding: 80px 0;
  }

  .main__history .title .text span {
    font-size: 1.5rem;
    margin: 20px 0;
  }

  /* 이미지 영역 정돈 */
  .main__history__img {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 500px;
  }

  .main__history__slide {
    height: 400px;
    border-radius: 24px;
  }

  .main__history__txt {
    font-size: 1.25rem;
  }

  /* 연혁 리스트 1열로 변경 (공간 확보) */
  .main__history__content .content {
    margin-top: 30px;
    flex-direction: column;
    gap: 0;
  }

  .main__history__box {
    width: 100%;
  }

  .main__history__box::before {
    top: 0px !important;
    left: 6px;
  }

  .main__history__box.left::before {
    -webkit-mask-image: none;
    mask-image: none;
    top: 20px !important;
  }
}

/* 5. 스마트폰 세로 (480px) */
@media screen and (max-width: 480px) {
  .main__history {
    padding: 60px 0;
  }

  .main__history__wrap {
    gap: 30px;
  }

  .main__history .title .text span {
    font-size: 1.25rem;
  }

  /* 장식 이미지 숨기거나 축소 */
  .main__history__deco {
    width: 100%;
    opacity: 0.7;
  }

  /* 슬라이드 높이 조절 */
  .main__history__slide {
    height: 300px;
  }

  .main__history__year {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .main__history__list {
    font-size: .9rem;
    margin-bottom: 16px;
  }

  /* 연혁 구분 점 위치 조정 */
  .main__history__item::before {
    left: -25px;
    width: 7px;
    height: 7px;
    top: 12px;
  }

  .main__history__box {
    padding-left: 20px;
  }

  .main__history__box::before {
    left: -2px;
    top: 15px;
  }

  .main__history__txt {
    font-size: 1.125rem;
    line-height: 1.4;
  }
}

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

            *** main__products ***
                메인 제품 영역

****************************************** */
.main__products {
  padding: 50px 0;
}

.main__products .title {
  text-align: center;
}

.main__products .desc {
  width: 730px;
  margin: 0 auto;
}

.main__products__slide__wrap {
  position: relative;
}

.main__products__card__bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w);
  height: var(--card-h);
  transform: translate(-50%, -50%) translate(-30px, -30px);
  border-radius: 30px 0 0 0;
  background-color: var(--c-main);
  z-index: 0;
  pointer-events: none;
}

.main__products__slide {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.main__products__card {
  /* width: 350px; */
  /* height: 510px; */
  background-color: #ffffff;
  box-shadow: 6px 6px 12px rgba(0, 0, 0, .1);
}

.main__products__img {
  overflow: hidden;
}

.main__products__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main__products__meta {
  position: relative;
  padding: 50px 36px 20px;
}

.main__products__meta > img {
  position: absolute;
  top: -90px;
  left: 30px;
  width: 130px;
}

.main__products__meta > a {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #ffffff;
  background-color: var(--c-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: .7rem;
  font-weight: 500;
  padding-top: 4px;
}

.main__products__meta > a img {
  width: 45%;
}

.main__products__meta h3 {
  font-family: var(--font-pointen);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.main__products__meta p {
  font-size: .9rem;
  font-weight: 300;
  color: #999999;
  margin-top: 10px;
}

/* 하단 인덱스 */
.main__products__slide .swiper-pagination {
  position: absolute;
  bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

.main__products__slide .swiper-pagination-bullet {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  opacity: 1 !important;
  margin: 0 !important;
  border-radius: 0;
  cursor: pointer;
}

.main__products__slide .index__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.125rem;
  font-weight: 300;
  color: #b2b2b2;
  transition: color 250ms ease;
}

.main__products__slide .index__line {
  transform: translateY(1px);
  width: 0px;
  height: 2px;
  background: var(--c-main);
  transition: width 420ms cubic-bezier(0.2, 1, 0.3, 1);
}

.main__products__slide .swiper-pagination-bullet-active.index__item {
  font-weight: 500;
  color: var(--c-main);
}

.main__products__slide .swiper-pagination-bullet-active.index__item .index__line {
  width: 40px;
  margin-right: 4px;
}

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .main__products__meta {
    padding: 40px 30px 20px;
  }

  .main__products__meta > img {
    width: 110px;
    top: -80px;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .main__products__meta h3 {
    font-size: 1.3rem;
  }

  .main__products__meta > a {
    width: 60px;
    height: 60px;
    top: 20px;
    right: 20px;
  }

  .main__products__meta > img {
    width: 100px;
    top: -75px;
  }
}

/* 3. 태블릿 가로 (1024px) */
@media screen and (max-width: 1024px) {
  .main__products {
    padding: 80px 0;
  }

  .main__products__slide {
    padding: 80px 0 60px;
  }

  .main__products__meta {
    padding: 35px 25px 20px;
  }

  .main__products__meta > img {
    width: 90px;
    top: -65px;
  }

  .main__products__card__bg {
    transform: translate(-50%, -50%) translate(-20px, -15px);
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .main__products .desc {
    width: 100%;
  }

  .main__products__meta h3 {
    font-size: 1.15rem;
  }

  .main__products__meta p {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .main__products__meta > img {
    width: 80px;
    top: -55px;
    left: 20px;
  }

  .main__products__meta > a {
    width: 50px;
    height: 50px;
    font-size: 0.6rem;
    top: 15px;
    right: 15px;
  }
}

/* 5. 스마트폰 (480px) */
@media screen and (max-width: 480px) {
  .main__products {
    padding: 80px 0 20px;
  }

  .main__products__meta {
    padding: 30px 15px 15px;
  }

  .main__products__meta h3 {
    font-size: 1rem;
  }

  .main__products__meta > img {
    width: 65px;
    top: -45px;
  }

  .main__products__slide .index__item {
    font-size: 0.8rem;
  }

  .main__products__slide .swiper-pagination-bullet-active.index__item .index__line {
    width: 25px;
  }
}

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

            *** main__category ***
              메인 카테고리 영역

****************************************** */
.main__category {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 150px 0 80px;
}

.main__category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url(/assets/img/main/category_bg.jpg) no-repeat center / cover;
  opacity: 0.5;
  z-index: -1;

  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 7%,
      black 90%,
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 7%,
      black 90%,
      transparent 100%);
}

.main__category::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 253, 252, 1) 0%, rgba(255, 253, 252, 0) 100%);
}

.main__category__deco {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.main__category .title {
  display: flex;
  justify-content: space-between;
}

.main__category .title .text {
  line-height: 1.2 !important;
}

.main__category__title {
  flex: 1;
}

.main__category__desc {
  width: 530px;
  margin-top: 40px;
}

.main__category__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  padding-top: 230px;
  padding-bottom: 50px;
}

.main__category__grid > img {
  position: absolute;
  top: 40px;
  right: 350px;
}

.main__category__img {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: 0 0 12px rgba(0, 0, 0, .3);
}

.main__category__img::after {
  content: '';
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(25deg,
      var(--c-main) 0%,
      rgba(0, 0, 0, 0) 80%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

.main__category__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 3s;
}

.main__category__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 10px 0;
  transition: all .3s;
}

.main__category__meta h3 {
  font-family: var(--font-pointen);
  font-size: 2.375rem;
  font-weight: 600;
}

.main__category__line {
  position: relative;
  width: 85%;
  height: 1px;
  background-color: var(--c-main);
}

.main__category__line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--c-main);
}

.main__category__text {
  width: 85%;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.4;
  color: #333333;
}

.main__category__card {
  position: relative;
}

.main__category__card.jeotgal {
  transform: translateY(-150px);
}

.main__category__card.gift {
  transform: translateY(-270px);
}

/* hover event */
.main__category__card:hover .main__category__img img {
  transform: scale(1.05);
}

.main__category__card:hover .main__category__img::after {
  opacity: 1;
}

.main__category__card:hover .main__category__meta {
  transform: translateY(-6px);
}

/* --- 데스크탑 퍼스트 카테고리 섹션 --- */

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .main__category__grid {
    gap: 40px;
  }

  .main__category__grid > img {
    right: 330px;
    width: 350px;
  }

  .main__category__meta h3 {
    font-size: 2rem;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .main__category .title {
    flex-direction: column;
  }

  .main__category__desc {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
  }

  .main__category__grid {
    padding-top: 180px;
    gap: 30px;
  }

  .main__category__grid > img {
    top: 10px;
    right: 300px;
    width: 320px;
  }

  .main__category__meta h3 {
    font-size: 1.75rem;
  }

  .main__category__text {
    width: 100%;
    font-size: 1.125rem;
  }

  .main__category__line {
    width: 100%;
  }
}

/* 3. 태블릿 가로 (1024px) */
@media screen and (max-width: 1024px) {
  .main__category {
    padding: 100px 0 60px;
  }

  /* 카드 지그재그 완화 */
  .main__category__card.jeotgal {
    transform: translateY(-80px);
  }

  .main__category__card.gift {
    transform: translateY(-140px);
  }

  .main__category__grid {
    padding-top: 150px;
  }

  .main__category__grid > img {
    top: 10px;
    right: 200px;
    width: 320px;
  }

  .main__category__img {
    border-radius: 24px;
    height: 400px;
  }

  .main__category__meta h3 {
    font-size: 1.5rem;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .main__category {
    padding: 80px 0 40px;
  }

  /* 그리드를 1열로 변경 */
  .main__category__grid {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 120px;
  }

  /* 데코 이미지 위치 조정 */
  .main__category__grid > img {
    width: 350px;
    right: 0;
    top: 30px;
  }

  /* 지그재그 효과 제거 (모바일에선 일렬이 국룰) */
  .main__category__card.jeotgal,
  .main__category__card.gift {
    transform: translateY(0);
  }

  .main__category__img {
    height: 400px;
  }

  .main__category__meta {
    margin: 20px 0 0;
    gap: 12px;
  }

  .main__category__meta h3 {
    font-size: 1.375rem;
  }

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

/* 5. 스마트폰 세로 (480px) */
@media screen and (max-width: 480px) {
  .main__category {
    padding: 60px 0 30px;
  }

  /* 텍스트 줄바꿈 방지 */
  .main__category__title .text {
    font-size: 1.875rem;
  }

  .main__category__grid {
    gap: 30px;
    padding-top: 80px;
  }

  .main__category__grid > img {
    width: 250px;
    right: 0;
    top: 10px;
  }

  .main__category__img {
    border-radius: 20px;
  }

  .main__category__meta h3 {
    font-size: 1.25rem;
  }

  .main__category__text {
    font-size: .9rem;
  }

  /* 라인 끝 점 크기 살짝 축소 */
  .main__category__line::after {
    width: 8px;
    height: 8px;
  }
}

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

              *** main__video ***
                메인 비디오 섹션

****************************************** */
.main__video {
  background: url(/assets/img/main/video_bg.jpg);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top;

  padding: 100px 0 200px;

  position: relative;
  z-index: 1;
}

.main__video > img {
  position: absolute;
  top: 52%;
  left: 35%;
  transform: translate(-50%, -50%);
  z-index: -1;
  width: 400px;
  mix-blend-mode: multiply;
  opacity: .1;
  pointer-events: none;
}

.main__video .inner {
  display: flex;
  gap: 60px;
}

.main__video__text {
  width: 37%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 20px;
}

.main__video__text .title .text {
  line-height: 1.2 !important;
}

.main__video__text .impact {
  font-family: var(--font-pointen);
  font-size: 1.9rem;
  font-weight: 400;
  margin-bottom: 30px;
}

.main__video__text .impact span {
  color: var(--c-main);
}

.main__video__text .box {
  display: flex;
}

.main__video__text .box span {
  display: block;
}

.main__video__text .box span:last-child {
  border-left: 2px solid var(--c-main);
  margin-left: 2px;
  padding-left: 12px;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.3;
  color: #4d4d4d;
  margin-bottom: 50px;
}

.main__video__text .box span img {
  width: 90px;
  margin-right: 8px;
  margin-top: 1px;
}

.main__video .content {
  flex: 1;
  min-width: 0;
}

.main__video__wrap {
  height: 650px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.main__video__wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
}

/* 버튼 기본 설정 */
.main__video__control {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: rgba(0, 0, 0, .5);
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: none;
}

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

.main__video__control.play::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  /* 삼각형 */
  border-width: 22px 0 22px 38px;
  border-color: transparent transparent transparent #fff;
  margin-left: 12px;
  /* 정가운데처럼 보이도록 살짝 오른쪽으로 밀어줌 */
}

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

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

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

/* ================================
          컨트롤러 커스텀
================================ */
.main__video__next__wrap {
  position: absolute;
  width: 100%;
  bottom: 60px;
  z-index: 1;
}

.main__video__next__wrap .inner {
  position: relative;
}

.main__video__nav {
  position: relative;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--c-main);
}

.main__video__nav img {
  width: 70px;
  transition: transform .2s ease-out;

  /* 흔들림 방지 */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform;
}

.main__video__nav:hover img {
  transform: translateX(5px);
}

.main__video__nav::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-main);
  border-radius: 50%;
}

/* --- 데스크탑 퍼스트 비디오 섹션 --- */

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .main__video {
    padding-bottom: 150px;
  }

  .main__video__text {
    width: 40%;
  }

  .main__video__wrap {
    height: 550px;
  }

  .main__video > img {
    left: 30%;
    width: 350px;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .main__video .inner {
    gap: 40px;
  }

  .main__video__text .impact {
    font-size: 1.625rem;
  }

  .main__video__wrap {
    height: 480px;
  }
}

/* 3. 태블릿 가로 (1024px) - 레이아웃 전환 시작 */
@media screen and (max-width: 1024px) {
  .main__video {
    padding: 80px 0 120px;
    background-size: cover;
  }

  .main__video .swiper-slide .inner {
    flex-direction: column;
    /* 세로 배치 */
    gap: 50px;
  }

  .main__video__text {
    width: 100%;
    padding-bottom: 0;
    min-height: 500px;
  }

  .main__video__text .box span:last-child {
    margin-bottom: 0;
  }

  .main__video .content {
    width: 100%;
  }

  .main__video__wrap {
    height: 450px;
  }

  /* 중앙 장식 이미지 위치 조정 */
  .main__video > img {
    top: 30%;
    left: 50%;
    width: 250px;
  }

  .main__video__next__wrap {
    bottom: 48%;
    transform: translateY(-50%);
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .main__video__text {
    min-height: 450px;
  }

  .main__video__text .impact {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .main__video__text .box span img {
    width: 70px;
  }

  .main__video__text .box span:last-child {
    font-size: 1rem;
  }

  .main__video__wrap {
    height: 400px;
    border-radius: 20px;
  }

  .main__video__control {
    width: 70px;
    height: 70px;
  }

  .main__video__control.play::before {
    border-width: 15px 0 15px 25px;
    margin-left: 8px;
  }

  .main__video__next__wrap {
    bottom: 49%;
    transform: translateY(-50%);
  }

  .main__video__nav img {
    width: 50px;
  }

  .main__video__nav::before {
    width: 30px;
    height: 30px;
    right: -10px;
  }
}

/* 5. 스마트폰 세로 (480px) */
@media screen and (max-width: 480px) {
  .main__video {
    padding: 20px 0 100px;
  }

  .main__video__text {
    min-height: 400px;
  }

  /* 텍스트 줄바꿈 및 크기 조정 */
  .main__video__text .impact {
    font-size: 1.25rem;
    line-height: 1.4;
    word-break: keep-all;
  }

  .main__video__text .box {
    gap: 15px;
    align-items: center;
  }

  .main__video__text .box span:last-child {
    font-size: 0.9rem;
  }

  .main__video__wrap {
    height: 280px;
  }

  .main__video__next__wrap {
    bottom: 41%;
    transform: translateY(-50%);
  }

  .main__video__nav {
    font-size: 1rem;
  }

  .main__video__nav img {
    width: 40px;
  }

  /* 복잡한 장식 제거 */
}

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

              *** main__info ***
              메인 인포메이션 섹션

****************************************** */
.main__info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  color: #ffffff;
}

.main__info__grid > div {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 150px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.main__info__notice__wrap {
  background: url(/assets/img/main/info_bg_notice.jpg);
}

.main__info__location__wrap {
  background: url(/assets/img/main/info_bg_location.jpg);
}

.main__info__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main__info__title h2 {
  font-family: var(--font-pointen);
  font-size: 2rem;
  font-weight: 300;
}

.main__info__title div a {
  position: relative;
  display: block;
  width: 75px;
}

.main__info__title div a img {
  width: 100%;
  transform: translateX(-15px);
  transition: transform .2s ease-out;

  /* 흔들림 방지 */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform;
}

.main__info__title div a:hover img {
  transform: translateX(-10px);
}

.main__info__title div a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(calc(-50% + 1px));
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff;
  border-radius: 50%;
}

.main__info__location {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.25rem;
  font-weight: 300;
}

.main__info__location li {
  display: flex;
  position: relative;
  padding-left: 16px;
}

.main__info__location li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #fff;
}

.main__info__location li div {
  width: 150px;
}

.main__info__location li p {
  flex: 1;
  line-height: 1.3;
}

/* --- 데스크탑 퍼스트 인포 섹션 --- */

/* 1. 노트북 (1440px) */
@media screen and (max-width: 1440px) {
  .main__info__grid > div {
    padding: 80px 100px;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .main__info__grid > div {
    padding: 70px 60px;
  }

  .main__info__location {
    font-size: 1.125rem;
  }

  .main__info__location li div {
    width: 120px;
  }
}

/* 3. 태블릿 가로 (1024px) - 레이아웃 전환 시작 */
@media screen and (max-width: 1024px) {
  .main__info__grid {
    grid-template-columns: 1fr;
    /* 2열에서 1열로 변경 */
  }

  .main__info__grid > div {
    padding: 80px 40px;
    gap: 40px;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .main__info__title h2 {
    font-size: 1.75rem;
  }

  .main__info__location li {
    flex-direction: column;
    gap: 5px;
  }

  .main__info__location li div {
    font-weight: 500;
    opacity: 0.8;
  }

  .main__info__location li::before {
    top: 12px;
  }
}

/* 5. 스마트폰 세로 (480px) */
@media screen and (max-width: 480px) {
  .main__info__grid > div {
    padding: 30px 20px;
    gap: 30px;
  }

  .main__info__title div a {
    width: 60px;
  }

  .main__info__title div a::before {
    width: 30px;
    height: 30px;
  }

  .main__info__location {
    font-size: .9rem;
  }

  .main__info__location li {
    padding-left: 8px;
  }

  .main__info__location li::before {
    top: 8px;
  }

  .main__info__location li p br {
    display: none;
  }

  /* 주소 줄바꿈 해제해서 공간 확보 */
}