@charset "UTF-8";
:root {
  /* 헤더 기본 변수 */
  --header-color: #333;
  --header-color-active: #000;
  --header-line-color: 1px solid #dbdbdb;
  --header-bg-color: #fff;
  --header-height: 65px;
  --border-color: #dee2e6;
  /* 섹션 패딩 */
  --section-padding: 160px 0;
  /* 색상 Palette */
  --primary: rgb(138, 0, 252);
  --primary-dark: rgb(77, 15, 128);
  --primary-light: rgba(138, 0, 252, 0.1);
  --danger: #dc3545;
  --danger-dark: #c82333;
  --text-primary: #212529;
  --text-secondary: #868e96;
  --border-color-dark: #c8cfd5;
  --bg-light: #f5f7f8;
  --white: #ffffff;
  /* [애니메이션 설정] 순차적 등장 타이밍 */
  --header-bg-speed: 0.25s; /* 헤더 배경 깔리는 속도 */
  --menu-drop-speed: 0.4s; /* 메뉴 내려오는 속도 */
  --menu-delay: 0.15s; /* 헤더 깔린 후 메뉴 나올 때까지 대기 시간 */
  --nav-easing: cubic-bezier(0.4, 0, 0.2, 1); /* 고급스러운 감속 곡선 */
}

/* ==============================
   [애니메이션] 헤더 슬라이드 다운 (고정 시)
   ============================== */
@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ==============================
   Layout (헤더 영역)
   ============================== */
#header {
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  right: 0;
  z-index: 100;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 기본 배경 (투명) 및 구분선 */
  background-color: transparent;
  /* 공통 요소 기본 설정 */
  /* ------------------------------------------------------------
   1. 투명 모드 (PC/모바일 공통)
   조건: 고정X AND 메뉴열림X AND 마우스오버X
   ------------------------------------------------------------ */
  /* ------------------------------------------------------------
   2. 흰색 배경 모드
   조건: 고정됨 OR 모바일 메뉴 열림 OR 마우스 오버
   ------------------------------------------------------------ */
  /* 스크롤 고정 상태일 때만 그림자 추가 (마우스 오버 아닐 때) */
  /* 고정 시 슬라이드 애니메이션 */
}
#header .logo.white {
  display: none;
}
#header .logo.dark {
  display: block;
}
#header .nav-mobile-toggle-icon .line-1,
#header .nav-mobile-toggle-icon .line-2 {
  background-color: var(--header-color);
}
#header .nav-menu li a,
#header .icon-group a {
  color: var(--header-color);
}
#header.transparent:not(.fixed):not(.active):not(:hover) {
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom-color: transparent !important;
  /* 흰색 테마 강제 적용 */
  /* 모바일 토글 버튼도 흰색 */
}
#header.transparent:not(.fixed):not(.active):not(:hover) .logo.white {
  display: block !important;
}
#header.transparent:not(.fixed):not(.active):not(:hover) .logo.dark {
  display: none !important;
}
#header.transparent:not(.fixed):not(.active):not(:hover) .nav-menu li a,
#header.transparent:not(.fixed):not(.active):not(:hover) .icon-group a {
  color: #fff !important;
}
#header.transparent:not(.fixed):not(.active):not(:hover) .nav-mobile-toggle-icon .line-1,
#header.transparent:not(.fixed):not(.active):not(:hover) .nav-mobile-toggle-icon .line-2 {
  background-color: #fff !important;
}
#header.transparent:not(.fixed):not(.active):not(:hover) .btn-header {
  border-color: #fff !important;
  color: #fff !important;
}
#header.fixed, #header.active, #header:hover, #header:focus-within {
  background-color: var(--header-bg-color) !important;
  /* [중요] 메뉴 열릴 때 그림자 제거 (뿌연 막 현상 해결) */
  box-shadow: none !important;
  border-bottom-color: #f1f1f1 !important; /* 깔끔한 구분선 */
  /* [열릴 때 순서] 마우스 닿자마자 즉시 배경 깔림 (딜레이 0s) */
  transition-delay: 0s !important;
  /* 검은색 테마 적용 */
  /* 모바일 토글 버튼 검은색 */
}
#header.fixed .logo.white, #header.active .logo.white, #header:hover .logo.white, #header:focus-within .logo.white {
  display: none !important;
}
#header.fixed .logo.dark, #header.active .logo.dark, #header:hover .logo.dark, #header:focus-within .logo.dark {
  display: block !important;
}
#header.fixed .nav-menu li a,
#header.fixed .icon-group a, #header.active .nav-menu li a,
#header.active .icon-group a, #header:hover .nav-menu li a,
#header:hover .icon-group a, #header:focus-within .nav-menu li a,
#header:focus-within .icon-group a {
  color: var(--header-color) !important;
}
#header.fixed .nav-mobile-toggle-icon .line-1,
#header.fixed .nav-mobile-toggle-icon .line-2, #header.active .nav-mobile-toggle-icon .line-1,
#header.active .nav-mobile-toggle-icon .line-2, #header:hover .nav-mobile-toggle-icon .line-1,
#header:hover .nav-mobile-toggle-icon .line-2, #header:focus-within .nav-mobile-toggle-icon .line-1,
#header:focus-within .nav-mobile-toggle-icon .line-2 {
  background-color: #000 !important;
}
#header.fixed .btn-header, #header.active .btn-header, #header:hover .btn-header, #header:focus-within .btn-header {
  border-color: currentColor !important;
  color: inherit !important;
}
#header.fixed:not(:hover) {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
#header.fixed {
  animation: slideDown 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
#header.desktop {
  display: none;
}
#header.transparent + #main {
  margin-top: 0;
}

.nav {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* [PC] 메뉴 네비게이션 */
}
.nav-menu {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* 클릭 통과 */
  /* PC 리사이즈 초기화 */
  opacity: 1 !important;
  transform: none !important;
  background-color: transparent !important;
  padding: 0 !important;
  visibility: visible !important;
  /* 메뉴 호버 시 폰트 강조 */
  /* [PC] 우측 상단 유틸리티(로그인 등) */
}
.nav-menu li {
  pointer-events: auto;
  min-width: 120px;
  text-align: center;
  position: relative;
}
@media (max-width: 920px) {
  .nav-menu li {
    min-width: 90px;
  }
}
.nav-menu li a {
  text-decoration: none;
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: var(--header-height);
}
.nav-menu li a.active {
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 1px;
}
.nav-menu li:not(.nav-utils):hover > a {
  font-weight: 700;
}
.nav-menu .nav-utils {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
.nav-menu .nav-utils .icon-group {
  display: flex;
  align-items: center;
  margin-right: 0;
}
.nav-menu .nav-utils .icon-group a.btn-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid currentColor;
  color: inherit;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  padding: 0 20px;
  height: 40px;
  text-decoration: none;
  transition: all 0.3s;
  margin: 0;
}
.nav-menu .nav-utils .icon-group a.btn-header::after {
  display: none;
}
.nav-menu .nav-utils .icon-group a.btn-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.nav-menu .nav-utils .icon-group a.btn-header span {
  position: relative;
  top: 1px;
}

/* ==============================
   [PC] 메가 메뉴
   ============================== */
.nav-mega-wrap {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #f5f5f5;
  padding: 40px 0 60px;
  z-index: 190;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* 초기 상태 (숨김) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  /* [닫힐 때 순서] 마우스 나가면 즉시 사라짐 (딜레이 0s) */
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* 호버 시 등장 */
.nav-menu li:hover .nav-mega-wrap {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  /* [열릴 때 순서] 헤더 배경 깔린 후 메뉴 등장 (딜레이 적용) */
  transition: opacity var(--menu-drop-speed) var(--nav-easing) var(--menu-delay), transform var(--menu-drop-speed) var(--nav-easing) var(--menu-delay), visibility var(--menu-drop-speed) var(--menu-delay);
}

/* ==============================
   [PC] 메가 메뉴 내부 레이아웃 (수정됨)
   ============================== */
.nav-mega-inner {
  display: grid; /* Flex 대신 Grid 사용 */
  grid-template-columns: 3fr 4fr 3fr;
  gap: 40px; /* 사이 간격 */
  align-items: start; /* 위쪽 정렬 */
}

/* 1. 첫 번째 칸 (50%) - 타이틀 */
.mega-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  word-break: keep-all;
  padding-top: 10px;
  text-align: left;
}

/* 2. 두 번째 칸 (25%) - 리스트 */
.mega-list {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-left: 20px;
  border-left: 1px solid #eee;
  /* flex 관련 속성 제거 */
}
.mega-list li {
  text-align: left !important;
  min-width: auto !important;
}
.mega-list li a {
  font-size: 16px;
  color: #fff !important;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
  /* 호버 시 밑줄 제거 및 색상 변경 */
  /* 호버 시 밑줄 제거 및 색상 변경 */
}
.mega-list li a:hover {
  color: var(--primary);
  text-decoration: none;
}
.mega-list li a.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 1px;
}

/* 3. 세 번째 칸 (25%) - 이미지 */
.mega-image {
  /* 고정 너비(flex: 0 0 300px) 제거하고 꽉 차게 변경 */
  width: 100%;
  height: 250px; /* 높이는 디자인에 맞춰 조절 (예: 250px) */
  border-radius: 12px;
  overflow: hidden;
  background-color: #f4f4f4;
}
.mega-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s;
}
.mega-image:hover img {
  transform: scale(1.05);
}

/* ==============================
   공통 로고 및 기타
   ============================== */
.logo {
  height: var(--header-height);
  width: 120px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 10;
  position: relative;
}
.logo.white {
  display: none;
}
.logo.dark {
  display: block;
}

#main {
  margin-top: 65px;
}

.nav-mobile {
  display: none;
}

/* ==============================
   [모바일] 반응형 스타일 (768px 이하)
   ============================== */
@media (max-width: 768px) {
  #header {
    width: 100%;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    height: var(--header-height);
    background-color: transparent;
    transition: background-color 0.3s ease;
    /* 모바일 메뉴 활성화 시 */
    /* 활성화 시 애니메이션 */
  }
  #header.active {
    background-color: #fff !important;
  }
  #header.active .logo.white {
    display: none !important;
  }
  #header.active .logo.dark {
    display: block !important;
  }
  #header.active .nav-mobile-toggle-icon .line-1,
  #header.active .nav-mobile-toggle-icon .line-2 {
    background-color: #000 !important;
  }
  #header.active .nav-menu li a {
    color: #000 !important;
  }
  #header.transparent:not(.active) .line-1, #header.transparent:not(.active) .line-2 {
    background-color: #fff;
  }
  #header.transparent.fixed .line-1,
  #header.transparent.fixed .line-2 {
    background-color: #000;
  }
  #header .nav {
    display: flex;
    justify-content: space-between;
    /* 모바일 네비게이션 드로어 */
  }
  #header .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden; /* 스크롤은 내부에서 처리 */
    overflow-y: auto; /* 메뉴가 길어지면 스크롤 */
    padding-top: 40px !important; /* 상단 여백 조정 */
    padding-right: 0 !important;
    padding-left: 0 !important;
    background-color: #ffffff !important;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0 !important;
    pointer-events: auto;
    /* 모바일 로그인 버튼 */
  }
  #header .nav-menu li {
    min-width: auto;
    text-align: right;
    width: 100%;
    margin-bottom: 0; /* 개별 마진 제거 */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  #header .nav-menu li a {
    font-size: 32px;
    line-height: normal;
    color: #000 !important;
  }
  #header .nav-menu .nav-utils {
    position: relative; /* static 대신 relative */
    height: auto !important;
    margin-top: 40px !important;
    margin-bottom: 60px !important;
    width: 100% !important;
    padding: 0 24px !important; /* 좌우 패딩 */
    display: flex;
    justify-content: flex-end;
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  }
  #header .nav-menu .nav-utils .icon-group {
    width: 100%;
    display: block;
  }
  #header .nav-menu .nav-utils .icon-group a.btn-header {
    width: 100%;
    height: 56px;
    font-size: 16px;
    border-radius: 4px;
    background-color: #000;
    color: #fff !important;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  #header .nav-menu .nav-utils .icon-group a.btn-header:hover {
    background-color: #333;
  }
  #header.active .nav-menu {
    height: calc(100vh - var(--header-height));
    opacity: 1 !important;
    z-index: 2;
  }
  #header.active .nav-menu li,
  #header.active .nav-menu .nav-utils {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  #header.active .nav-mobile-toggle-icon .line-1 {
    top: 0;
    transform: rotateZ(45deg);
    transition: top 200ms, transform 200ms 160ms;
    background-color: #000;
  }
  #header.active .nav-mobile-toggle-icon .line-2 {
    top: 0;
    transform: rotateZ(-45deg);
    transition: top 200ms, transform 200ms 160ms;
    background-color: #000;
  }
  .nav-mobile {
    display: flex;
    height: var(--header-height);
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
  }
  .nav-mobile-toggle {
    width: 50px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
  }
  .nav-mobile-toggle-icon {
    width: 30px;
    position: relative;
  }
  .nav-mobile-toggle-icon .line-1,
  .nav-mobile-toggle-icon .line-2 {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--header-color);
    transition: transform 200ms 160ms, top 200ms;
    display: block;
  }
  .nav-mobile-toggle-icon .line-1 {
    top: -4px;
  }
  .nav-mobile-toggle-icon .line-2 {
    top: 4px;
  }
  /* ============================================================
   [모바일] 아코디언 메뉴 스타일
   ============================================================ */
  /* 1. 상위 메뉴 (1단) 스타일 */
  .nav-menu li a {
    position: relative;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000 !important;
    padding: 15px 24px !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  /* 화살표 아이콘 */
  .nav-menu li a.has-sub::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #777;
    border-right: 2px solid #777;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-right: 0;
  }
  /* 열렸을 때 화살표 회전 */
  .nav-menu li.open > a::after {
    transform: rotate(-135deg);
    border-color: #000;
  }
  /* 2. 서브 메뉴 컨테이너 초기화 */
  .nav-mega-wrap {
    position: static !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background-color: #fff !important;
    box-shadow: none !important;
    border-top: none !important;
    padding: 0 !important;
    display: none; /* 평소엔 숨김 */
  }
  /* 메뉴 열림 표시 */
  .nav-menu li.open .nav-mega-wrap {
    display: block;
    border-bottom: 1px solid #f4f6f8;
  }
  /* 3. PC 전용 요소 숨김 */
  .nav-mega-inner {
    display: block !important;
    padding: 0 !important;
  }
  .mega-title,
  .mega-image {
    display: none !important;
  }
  /* 4. 하위 메뉴 1단 리스트 */
  .mega-list {
    display: block !important; /* 그리드 제거 -> 블록 */
    padding: 5px 0 20px 0 !important;
    margin: 0 !important;
    border: none !important;
    background-color: #fff !important;
  }
  .mega-list li {
    width: 100% !important; /* 꽉 차게 */
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .mega-list li a {
    display: block;
    font-size: 16px !important;
    padding: 10px 30px !important;
    background: transparent !important;
    line-height: 1.4;
  }
  /* 하위 메뉴 호버/활성 스타일 */
  .mega-list li a:hover {
    color: #000 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
/* ==============================================
*  메인 오버레이
* ============================================== */
.main-overlay.show {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.4);
}

.site-footer {
  padding: 60px 0;
  font-size: 1.4rem;
  background: linear-gradient(to top, #c1bebf, #ffffff);
  color: #777;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

.footer-menus {
  grid-column: span 8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-column .col-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
  text-decoration: underline;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul a {
  text-decoration: none;
  color: #777;
  transition: color 0.3s;
}

.footer-column ul a:hover {
  color: #000;
}

.footer-logo-area {
  grid-column: span 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-logo img {
  max-width: 250px;
  height: auto;
  opacity: 0.6;
}

.footer-bottom {
  grid-column: 1/-1;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #c0c0c0;
}

.footer-legal-links {
  margin-bottom: 40px;
}

.footer-legal-links a {
  text-decoration: none;
  color: #777;
  margin-right: 25px;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

.footer-cs-info {
  grid-column: 1/span 6;
}

.footer-company-info {
  grid-column: 7/span 6;
  text-align: right;
}

.footer-cs-info .col-title,
.footer-company-info .col-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-decoration: none;
}

.footer-cs-info p,
.footer-company-info p {
  line-height: 1.8;
}

/* 반응형 (푸터) */
@media (max-width: 920px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-menus {
    grid-column: auto;
  }
  .footer-logo-area {
    grid-column: auto;
    justify-content: center;
    margin-top: 40px;
  }
}
@media (max-width: 768px) {
  .footer-menus,
  .footer-contact-grid {
    text-align: left;
  }
  .footer-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-cs-info,
  .footer-company-info {
    grid-column: auto;
    text-align: left;
  }
}
@media (max-width: 500px) {
  .footer-menus {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-contact-grid {
    grid-template-columns: 1fr;
  }
}
.main-overlay.show {
  transition: all 200ms ease;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.3);
}

/* ==============================================
*  히어로 블록
* ============================================== */
.hero-block {
  position: relative;
  width: 100%;
  height: 660px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 1420px) {
  .hero-block {
    height: 500px;
  }
}
@media (max-width: 768px) {
  .hero-block {
    height: 370px;
  }
}
/* ==============================================
* 이미지 박스 (Container)
* ============================================== */
.image-box {
  /* 비율 변경을 위한 지역 변수 (기본값 1:1) */
  --ratio: 1/1;
  width: 100%;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  background-color: #f6f6f6; /* 배경색 직접 지정 */
  position: relative;
  border-radius: 8px;
  isolation: isolate;
}

.image-box img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease; /* 속도 직접 지정 */
}

/* 마우스 오버 시 확대 효과 */
.image-box:hover img {
  transform: scale(1.05);
}

/* ==============================================
* 비율 모디파이어 (지역 변수값만 변경)
* ============================================== */
/* 1. 세로형 */
.image-box--34 {
  --ratio: 3/4;
}

.image-box--23 {
  --ratio: 2/3;
}

.image-box--916 {
  --ratio: 9/16;
}

/* 2. 가로형 */
.image-box--43 {
  --ratio: 4/3;
}

.image-box--32 {
  --ratio: 3/2;
}

.image-box--169 {
  --ratio: 16/9;
}

.image-box--219 {
  --ratio: 21/9;
}

/* 3. 정사각형 명시 */
.image-box--11 {
  --ratio: 1/1;
}

/* ==============================================
* 콘텐츠 영역 (텍스트)
* ============================================== */
.image-box-inner {
  padding: 16px 4px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.image-box-title {
  /* 말줄임표 처리 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-box-desc {
  line-height: 1.4;
}

.image-box-price {
  margin-top: 4px;
}

/* ==============================================
*  타이틀 박스
* ============================================== */
.title-box {
  padding-top: 30px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.title-box-tit {
  font-size: 3.4rem; /* t-sm 데스크탑 기준 */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.title-box-desc {
  font-size: 2.1rem; /* b-md 데스크탑 기준 */
  line-height: 1.6;
  letter-spacing: 0em;
}

/* ==============================================
*  커버 블록
* ============================================== */
.cover-block {
  width: 100%;
  height: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.cover-block-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cover-block-image img {
  min-width: 100%;
  min-height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  max-width: 100% !important;
}

.cover-block-center {
  z-index: 2;
  width: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.cover-block-bottom {
  width: 100%;
  z-index: 2;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 16px;
}

.cover-block-left {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
}

.cover-block-right {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 2;
  text-align: right;
}

.cover-block-txtbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==============================================
*  메인 그리드 1/2열
* ============================================== */
.grid-container {
  display: flex;
  width: 100%;
  height: auto;
  gap: 20px;
  margin-bottom: 20px;
}

.left-column {
  flex: 1;
  height: 900px;
  background-color: #f7f7f7;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 20px;
}

.left-column img {
  max-width: 700px;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 0 auto;
}

.right-column-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 900px;
}

.right-column-top,
.right-column-bottom {
  flex: 1;
  background-color: #f7f7f7;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 20px;
  min-height: 350px;
}

.right-column-top img,
.right-column-bottom img {
  max-width: 300px;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 0 auto;
}

.text-box {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: calc(100% - 40px);
  padding: 20px;
  text-align: center;
}
.text-box P {
  font-size: 18px;
  padding-top: 8px;
  font-weight: 400;
}

/* 모바일 최적화 (화면 너비 1100px 이하) */
@media (max-width: 1024px) {
  .grid-container {
    flex-direction: column;
    height: auto;
  }
  .left-column,
  .right-column-wrapper {
    flex: none;
    width: 100%;
    height: auto;
  }
  .left-column {
    height: 600px;
  }
  .left-column img {
    height: 400px;
  }
  .right-column-top,
  .right-column-bottom {
    height: 200px;
  }
  .text-box {
    padding: 10px;
  }
  .right-column-top img,
  .right-column-bottom img {
    width: 200px;
  }
}
/* ==============================================
*  버튼 컴포넌트
* ============================================== */
.btn {
  /* 기본 디자인 */
  display: inline-block;
  padding: 10px 20px;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary 버튼 */
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

/* Secondary 버튼 */
.btn-secondary {
  background-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: var(--border-color-dark);
}

/* Outline 버튼 */
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

/* Danger 버튼 */
.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: var(--danger-dark);
}

/* ==============================
  기본 에니메이션
  ============================== */
.ani-on {
  opacity: 0;
}

.ani-on-active {
  animation: aniontxt 0.8s cubic-bezier(0.33, 0.45, 0.78, 0.85) forwards;
}

@keyframes aniontxt {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.letter {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  filter: blur(15px);
}

.ani-on[data-type=blur].ani-on-active .letter {
  animation: blurLetter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blurLetter {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    filter: blur(15px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
/* ==============================
  이미지 웨이브
  ============================== */
.img-wave {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.img-wave .slice {
  flex: none;
  width: 12.5%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 800% 100%;
  background-position: center top;
  transform: translateY(100%);
  animation: waveUp 1s forwards;
  margin-left: -0.8px;
}
.img-wave .slice:first-child {
  margin-left: 0;
}

@keyframes waveUp {
  to {
    transform: translateY(0);
  }
}
/* ==============================
  이미지 호버
  ============================== */
.img-hover img {
  transform: scale(1); /* 기본 크기를 명시해야 트랜지션이 부드럽게 작동합니다 */
  transition: transform 1s ease-in-out;
}

.img-hover:hover img,
.img-hover.hover-on img {
  transform: scale(1.2);
}

.img-hover {
  overflow: hidden;
}

/* ==============================
  카드 순차 리스트
  ============================== */
/* 초기 상태: 무조건 안 보여야 합니다 */
.card-ani {
  opacity: 0;
  transform: translateY(30px);
  /* 부드러운 동작을 위한 트랜지션 설정 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  /* [중요] 깜빡임 방지 및 성능 최적화 코드 */
  backface-visibility: hidden;
  will-change: opacity, transform;
}

/* 활성 상태 */
.card-ani.ani-on-active {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
  이미지 줌인
  ============================== */
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.2) translate(-20px, -10px);
  }
}
.img-zoom img {
  animation: kenburns 12s ease-in-out infinite alternate;
}