/* Header and mobile navigation menu labels */
[data-shared-header] a, [data-shared-header] button, [data-shared-header] .menu-label, [data-shared-header] .nav-label, header nav a, header nav button, .site-header a, .site-header button, #hd #gnb a, #gnb a, #gnb button, .gnb a, .gnb button, #mobile_hd a, #mobile_menu a, .mobile-menu a, .mobile-menu button, .mobile-nav a, .mobile-nav button, .mobile-gnb a, .mobile-gnb button, .m-menu a, .m-menu button, .mgnb a, .mgnb button, .drawer a, .drawer button, .side-menu a, .side-menu button { text-transform: capitalize; }
.site-header { position: fixed; top: 0; left: 0; z-index: 80; width: 100%; height: var(--header-height-desktop); color: #fff; transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease; }
.site-header.is-scrolled, .site-header.is-menu-open { color: #111; background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 18px rgba(0, 0, 0, 0.08); backdrop-filter: blur(14px); }
.site-header__inner { position: relative; width: min(var(--content-max), calc(100% - 200px)); height: 100%; margin-inline: auto; }
.site-logo { position: absolute; top: 0; left: 50%; width: 100px; height: 100px; transform: translateX(-50%); }
.site-logo img { width: 100%; height: 100%; object-fit: contain; }
/* 스크롤 시 1줄 가로형으로 바뀌는 워드마크. 공통 스타일은 여기, 표시/크기는 구간별 morph에서. */
.site-logo__word { display: none; position: absolute; left: 50%; top: 0; transform: translateX(-50%); align-items: center; justify-content: center; background: #f26521; color: #fff; font-family: var(--font-latin); font-weight: 500; letter-spacing: 0.3px; white-space: nowrap; line-height: 1; border-radius: 2px; pointer-events: none; opacity: calc(1.4 * var(--sticky, 0) - 0.4); /* 스크롤 진행에 따라 페이드인(공통) */
}
/* 스크롤 시 정사각 마크는 페이드아웃(공통, 겹침 크로스페이드) */
.site-logo .site-logo__mark { opacity: calc(1 - 1.4 * var(--sticky, 0)); }
.language-switcher { position: absolute; top: 39px; left: 0; display: flex; align-items: center; gap: 30px; font-family: var(--font-latin); font-size: var(--font-header-menu-size); line-height: 0.9; letter-spacing: 0; white-space: nowrap; }
.language-switcher__button { appearance: none; border: 0; padding: 0; color: currentColor; background: transparent; cursor: pointer; }
.language-switcher__button.is-active { font-weight: 700; color: var(--color-primary); }
.site-header:not(.is-scrolled):not(.is-menu-open) .language-switcher__button.is-active { color: currentColor; }
.site-header:not(.is-scrolled):not(.is-menu-open) .site-header__social { color: currentColor; }
.site-header:not(.is-scrolled):not(.is-menu-open) .site-header__social-divider { color: rgba(255, 255, 255, 0.65); }
.language-switcher__divider { color: #999; font-weight: 300; }
.site-header__social { position: absolute; top: 39px; right: 0; display: flex; align-items: center; gap: 30px; color: #777; font-family: var(--font-latin); font-size: var(--font-header-menu-size); line-height: 0.9; letter-spacing: 0; white-space: nowrap; }
.social-link { display: inline-flex; align-items: center; gap: 10px; }
.social-link svg { width: 20px; height: 20px; }
.site-header__social-divider { color: #999; font-weight: 300; }
/* ===== 헤더 라이트 테마 (밝은 타이틀/히어로 페이지) =====
   페이지의 <body data-header-theme="light"> 로 켜면, 스크롤 전 상단에서도 헤더 글자가 어둡게 표시된다.
   기본(속성 없음) = 흰 글자(어두운 히어로용). 스크롤 시(.is-scrolled) 동작은 양쪽 공통.
   ↔ 페이지별 상단 배경이 밝으면 data-header-theme="light", 어두우면 생략(기본 흰색). */
body[data-header-theme="light"] .site-header { color: #111; }
body[data-header-theme="light"] .site-header:not(.is-scrolled):not(.is-menu-open) .site-header__social { color: #777; }
body[data-header-theme="light"] .site-header:not(.is-scrolled):not(.is-menu-open) .site-header__social-divider { color: #cfcfcf; }
body[data-header-theme="light"] .site-header:not(.is-scrolled):not(.is-menu-open) .language-switcher__button.is-active { color: var(--color-primary); }
body[data-header-theme="light"] .site-header:not(.is-scrolled):not(.is-menu-open) .language-switcher__button:not(.is-active) { color: #999; }
.site-nav { position: absolute; top: 132px; left: 50%; display: flex; align-items: center; gap: 34px; transform: translateX(-50%); font-family: var(--font-latin); font-size: var(--font-header-menu-size); font-weight: 400; line-height: 0.9; letter-spacing: 0; white-space: nowrap; }
.site-nav__item { position: relative; display: inline-flex; align-items: center; z-index: 1; }
.site-nav__item::after { content: ""; position: absolute; top: 100%; left: 50%; z-index: 1; width: calc(100% + 28px); height: 24px; transform: translateX(-50%); }
.site-nav__link { display: inline-flex; position: relative; align-items: center; min-height: 32px; padding-inline: 2px; }
.site-nav__link::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; opacity: 0; transform: scaleX(0.72); transform-origin: center; transition: opacity 160ms ease, transform 160ms ease; }
.site-nav__link:hover::after, .site-nav__link:focus-visible::after, .site-nav__item:hover > .site-nav__link::after, .site-nav__item.is-hover > .site-nav__link::after, .site-nav__item:focus-within > .site-nav__link::after { opacity: 1; transform: scaleX(1); }
.site-nav__submenu { position: absolute; left: 50%; top: calc(100% + 14px); z-index: 90; display: grid; width: max-content; min-width: 188px; max-width: min(300px, calc(100vw - 40px)); padding: 14px 0; color: #fff; background: var(--color-primary); border-radius: 8px; box-shadow: none; opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.site-nav__submenu::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 18px; }
.site-nav__item:hover .site-nav__submenu, .site-nav__item.is-hover .site-nav__submenu, .site-nav__item:focus-within .site-nav__submenu { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.site-nav__submenu-link { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 28px; color: #fff; font-size: var(--font-header-menu-size); font-weight: 500; line-height: 1.2; text-align: center; white-space: nowrap; }
.site-nav__submenu-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.site-header.is-scrolled .site-nav, .site-header.is-menu-open .site-nav { top: 124px; }
.site-nav a { transition: color 160ms ease; }
.site-nav a:hover { color: inherit; }
.hamburger { position: absolute; top: 27px; right: 0; display: none; width: 32px; height: 24px; border: 0; padding: 0; color: currentColor; background: transparent; cursor: pointer; }
.hamburger span { position: absolute; left: 0; width: 32px; height: 2px; background: currentColor; transition: transform 180ms ease, top 180ms ease; }
.hamburger span:first-child { top: 7px; }
.hamburger span:last-child { top: 17px; }
.site-header.is-menu-open .hamburger span:first-child { top: 12px; transform: rotate(45deg); }
.site-header.is-menu-open .hamburger span:last-child { top: 12px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-height-mobile) 0 auto 0; z-index: 70; display: none; max-height: calc(100vh - var(--header-height-mobile)); overflow-y: auto; padding: 28px 24px 36px; color: #111; background: rgba(255, 255, 255, 0.97); box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu__nav { display: grid; gap: 18px; font-family: var(--font-latin); font-size: 20px; font-weight: 600; }
.mobile-menu__group { display: grid; gap: 0; }
.mobile-menu__title { appearance: none; display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; padding: 0; color: #111; background: transparent; cursor: pointer; font: inherit; text-align: left; }
.mobile-menu__title::after { content: ""; width: 10px; height: 10px; margin-left: 20px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-3px); transform-origin: center; transition: transform 160ms ease; }
.mobile-menu__group.is-active .mobile-menu__title::after { transform: rotate(-135deg) translateY(-3px); }
.mobile-menu__children { display: grid; gap: 10px; margin-top: 10px; padding-left: 16px; border-left: 1px solid rgba(0, 0, 0, 0.12); }
.mobile-menu__children[hidden] { display: none; }
.mobile-menu__sublink { color: #555; font-size: 16px; font-weight: 500; line-height: 1.25; }
.site-footer { background: var(--color-soft); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 601px; padding: 60px; }
.site-footer__logo { width: 130px; height: 130px; }
.site-footer__info { margin-top: 59px; display: grid; gap: 14px; width: 360px; font-family: var(--font-latin); font-size: 15px; line-height: 0.9; letter-spacing: 0; }
.site-footer__row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; }
.site-footer__label, .site-footer__company { color: #000; font-weight: 600; }
.site-footer__value { color: #777; font-weight: 300; }
.site-footer__links { display: flex; gap: 30px; margin-top: 40px; color: #555; font-family: var(--font-latin); font-size: 14px; line-height: 0.9; letter-spacing: 0; white-space: nowrap; }
.site-footer__copyright { margin-top: 81px; color: #555; font-family: var(--font-latin); font-size: 14px; line-height: 0.9; letter-spacing: 0; }
.site-footer__right { align-self: center; justify-self: end; display: grid; gap: 40px; width: 319px; text-align: right; font-family: var(--font-latin); font-size: 15px; line-height: 0.9; letter-spacing: 0; }
.site-footer__group { display: grid; gap: 10px; justify-items: end; }
.site-footer__group-title { color: #000; }
.site-footer__group a { color: #777; font-weight: 300; }
@media (max-width:1180px) {
  .site-header__inner { width: min(100% - 64px, var(--content-max)); }
  .site-nav { gap: 24px; font-size: 17px; }
  .site-header__social { gap: 18px; font-size: 16px; }
  .language-switcher { gap: 18px; font-size: 16px; }
}
@media (max-width:900px) {
  .site-header { height: 100px; }
  .site-nav { display: none; }
  .site-header__social { display: none; }
  .hamburger { display: block; top: 38px; }
  .mobile-menu { display: block; /* 햄버거가 보이는 ≤900 전 구간에서 메뉴 패널 활성(721~900 데드존 수정) */
    inset: 100px 0 auto 0; }
  .site-footer__inner { grid-template-columns: 1fr; min-height: 0; padding: 50px 40px; }
  .site-footer__logo { width: 110px; height: 110px; }
  .site-footer__info { width: 100%; margin-top: 40px; line-height: 1.25; }
  .site-footer__copyright { margin-top: 48px; line-height: 1.35; }
  .site-footer__right { justify-self: start; width: 100%; margin-top: 44px; text-align: left; }
  .site-footer__group { justify-items: start; }
}
@media (max-width:720px) {
  .site-header { height: var(--header-height-mobile); }
  .site-header__inner { width: min(100% - 40px, var(--content-max)); }
  .site-logo { top: 0; width: 76px; height: 76px; }
  .language-switcher { top: 29px; gap: 14px; font-size: 13px; }
  .hamburger { top: 27px; }
  .mobile-menu { inset: var(--header-height-mobile) 0 auto 0; display: block; }
  .site-footer__inner { grid-template-columns: 1fr; min-height: 0; padding: 44px 24px; }
  .site-footer__logo { width: 90px; height: 90px; }
  .site-footer__info { width: 100%; margin-top: 34px; font-size: 13px; line-height: 1.35; }
  .site-footer__row { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .site-footer__links { flex-wrap: wrap; row-gap: 12px; margin-top: 30px; font-size: 13px; line-height: 1.2; }
  .site-footer__copyright { margin-top: 36px; font-size: 12px; line-height: 1.4; }
  .site-footer__right { justify-self: start; width: 100%; margin-top: 38px; text-align: left; }
  .site-footer__group { justify-items: start; }
}
/* Shared footer: source-aligned compact footer used by final scope pages. */
.site-footer { background: #eee; }
.site-footer__top { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 44px; width: min(1800px, calc(100% - 120px)); min-height: 130px; margin-inline: auto; }
.site-footer__logo-link, .site-footer__logo { width: 130px; height: 130px; }
.site-footer__nav { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; gap: 16px 28px; color: #000; font-family: var(--font-latin); font-size: 20px; line-height: 0.9; letter-spacing: 0; white-space: nowrap; }
.site-footer__social { display: flex; align-items: center; gap: 40px; color: #777; font-family: var(--font-latin); font-size: 20px; line-height: 0.9; letter-spacing: 0; white-space: nowrap; }
.site-footer__social .social-link { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__social svg { width: 20px; height: 20px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 80px; width: min(1800px, calc(100% - 120px)); min-height: 227px; margin-inline: auto; padding: 100px 0 60px; }
.site-footer__info, .site-footer__customer { display: grid; align-content: start; gap: 14px; width: 360px; margin-top: 0; color: #777; font-family: var(--font-latin); font-size: 15px; line-height: 0.9; letter-spacing: 0; }
.site-footer__row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; }
.site-footer__label, .site-footer__company { color: #000; font-weight: 600; }
.site-footer__value { color: #777; font-weight: 300; }
.site-footer__copyright { flex-basis: 100%; margin-top: 38px; color: #555; font-size: 14px; line-height: 0.9; letter-spacing: 0; white-space: nowrap; }
@media (max-width:1180px) {
  /* 전환 구간: 로고를 두 행에 걸쳐 세로 가운데 정렬, 우측 칼럼에 메뉴(위)+소셜(아래) 스택.
     소셜이 로고 높이 안에 들어오도록. */
  .site-footer__top { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 32px; row-gap: 10px; width: min(100% - 64px, var(--content-max)); padding-top: 20px; }
  .site-footer__logo-link, .site-footer__logo { grid-row: 1 / 3; align-self: center; width: 110px; height: 110px; }
  .site-footer__nav { grid-column: 2; grid-row: 1; align-self: end; gap: 12px 24px; font-size: 16px; }
  .site-footer__social { grid-column: 2; grid-row: 2; align-self: start; gap: 24px; font-size: 16px; }
  .site-footer__bottom { width: min(100% - 64px, var(--content-max)); padding: 70px 0 54px; }
}
@media (max-width:720px) {
  .site-footer__top { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; row-gap: 8px; width: min(100% - 40px, var(--content-max)); min-height: 0; padding: 0; }
  .site-footer__logo-link, .site-footer__logo { grid-row: 1 / 3; align-self: center; width: 90px; height: 90px; }
  .site-footer__nav { display: none; }
  .site-footer__social { grid-column: 2; grid-row: 2; align-self: start; gap: 18px; padding-left: 0; font-size: 13px; }
  .site-footer__social svg { width: 16px; height: 16px; }
  .site-footer__bottom { display: grid; gap: 30px; width: min(100% - 40px, var(--content-max)); padding: 42px 0 44px; }
  .site-footer__info, .site-footer__customer { width: 100%; font-size: 13px; line-height: 1.35; }
  .site-footer__row { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .site-footer__copyright { margin-top: 26px; font-size: 12px; line-height: 1.4; white-space: normal; }
}
/* ==========================================================================
   스크롤 연동 헤더 축소 (데스크톱 ≥901px, nav 노출 구간).
   스크롤 오프셋 → site.js가 --sticky(0~1) 설정. 헤더 높이·로고가 연속 축소되고
   로고가 2줄 정사각(SVG) → 1줄 가로 워드마크로 크로스페이드 → 글자들이 위로 올라감.
   ========================================================================== */
@media (min-width:901px) {
  .site-header { height: calc(168px - 82px * var(--sticky, 0)); }
  /* 168 → 86 */

  .site-logo { width: auto; height: auto; top: 0; }
  .site-logo .site-logo__mark { display: block; width: calc(100px - 56px * var(--sticky, 0)); /* 100 → 44 */
    height: calc(100px - 56px * var(--sticky, 0)); object-fit: contain; }
  .site-logo__word { display: inline-flex; font-size: 20px; padding: 9px 16px; }
  .site-nav { top: calc(132px - 78px * var(--sticky, 0)); }
  /* 132 → 54 */
  .site-header.is-scrolled .site-nav, .site-header.is-menu-open .site-nav { top: calc(132px - 86px * var(--sticky, 0)); }
  /* 스크롤 시 상단 행(KOR/ENG · 워드마크 · 소셜)을 나란히 정렬 */
  .language-switcher { top: calc(50px - 29px * var(--sticky, 0)); }
  /* 39 → 10 */
  .site-header__social { top: calc(50px - 29px * var(--sticky, 0)); }
}
/* ==========================================================================
   모바일에서도 스크롤 시 헤더/로고 축소 + 정사각→1줄 워드마크 (≤900, 햄버거 구간).
   nav/소셜은 모바일에서 숨김이라 KOR/ENG·로고·햄버거만 위로 당겨 축소.
   ========================================================================== */
@media (max-width:900px) {
  /* 스크롤 시 로고/워드마크를 위에 딱 붙이고(top:0) 헤더를 타이트하게 */
  .site-header { height: calc(100px - 44px * var(--sticky, 0)); }
  /* 100 → 56 */
  .site-logo { width: auto; height: auto; top: 0; }
  .site-logo .site-logo__mark { display: block; width: calc(100px - 56px * var(--sticky, 0)); /* 100 → 44 */
    height: calc(100px - 56px * var(--sticky, 0)); object-fit: contain; }
  .site-logo__word { display: inline-flex; font-size: 18px; padding: 8px 14px; }
  /* KOR/ENG·햄버거를 워드마크(상단 행)에 정렬 */
  .language-switcher { top: calc(39px - 30px * var(--sticky, 0)); }
  /* 39 → 9 */
  .hamburger { top: calc(38px - 33px * var(--sticky, 0)); }
  /* 38 → 5 */
  .mobile-menu { top: calc(100px - 44px * var(--sticky, 0)); inset-inline: 0; inset-block-end: auto; }
}
@media (max-width:720px) {
  .site-header { height: calc(var(--header-height-mobile) - 32px * var(--sticky, 0)); }
  /* 76 → 44 */
  .site-logo { top: 0; }
  .site-logo .site-logo__mark { width: calc(76px - 36px * var(--sticky, 0)); /* 76 → 40 */
    height: calc(76px - 36px * var(--sticky, 0)); }
  .site-logo__word { font-size: 16px; padding: 7px 12px; }
  .language-switcher { top: calc(29px - 15px * var(--sticky, 0)); }
  /* 29 → 7 */
  .hamburger { top: calc(27px - 15px * var(--sticky, 0)); }
  /* 27 → 3 */
  .mobile-menu { top: calc(var(--header-height-mobile) - 32px * var(--sticky, 0)); }
}
/* Before / After comparison slider, based on the CSS Script demo structure. */
.bal-container { position: relative; width: 100%; aspect-ratio: var(--ba-aspect, 16 / 9); cursor: grab; overflow: hidden; font-family: var(--font-latin); background: #ececec; touch-action: pan-y; }
.bal-container.is-dragging { cursor: grabbing; }
.bal-after, .bal-before { display: block; position: absolute; top: 0; bottom: 0; left: 0; height: 100%; overflow: hidden; }
.bal-after { right: 0; width: 100%; }
.bal-before { width: 50%; z-index: 15; }
.bal-before-inset { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.ba-slider__image, .bal-after img, .bal-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; user-select: none; }
.ba-slider__image { border: 0; background-color: #ececec; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.bal-container .ba-slider__image.bg-image-placeholder { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0 !important; }
.bal-container .bg-image-placeholder__label { display: none; }
.bal-beforePosition, .bal-afterPosition { display: none !important; position: absolute; bottom: 0; margin: 1rem; padding: 2px 10px; border-radius: 0.2rem; color: #fff; background: #121212; font-size: 1em; line-height: 1.45; pointer-events: none; user-select: none; z-index: 21; }
.bal-beforePosition { left: 0; }
.bal-afterPosition { right: 0; }
.bal-handle { position: absolute; left: 50%; top: 50%; z-index: 20; width: 41px; height: 41px; margin-left: -20px; margin-top: -21px; border: 2px solid #fff; border-radius: 1000px; pointer-events: none; box-shadow: 0 0 10px rgb(12, 12, 12); }
.handle-left-arrow, .handle-right-arrow { position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px inset transparent; }
.handle-left-arrow { left: 50%; margin-left: -17px; border-right: 6px solid #fff; }
.handle-right-arrow { right: 50%; margin-right: -17px; border-left: 6px solid #fff; }
.bal-handle::before, .bal-handle::after { content: " "; display: block; position: absolute; left: 50%; width: 2px; height: 9999px; margin-left: -1.5px; background: #fff; }
.bal-handle::before { bottom: 50%; margin-bottom: 20px; box-shadow: 0 0 10px rgb(12, 12, 12); }
.bal-handle::after { top: 50%; margin-top: 20.5px; box-shadow: 0 0 5px rgb(12, 12, 12); }
