@charset "utf-8";
main, section, header, footer, nav, article, aside {
    display: block;
}
/* ============================================================
   TRAVART · 레이아웃 공통 (헤더/푸터)
   ------------------------------------------------------------
   - 로드 순서: _core → layout-common.css → {main.css|sub-common.css} → {섹션}.css
   - 홈/서브 값 100% 일치 확인된 블록만 이관 (2026-07 정리)
   - :root 토큰은 main.css/sub-common.css 쪽에 그대로 유지(기존 정책),
     여기서 var() 참조만 함 — 브라우저가 캐스케이드 계산 후 resolve
     하므로 파일 로드 순서와 무관하게 동작함, 단 헤더/푸터 단독으로는
     로드 못하고 항상 main.css 또는 sub-common.css 중 하나와 같이 로드
     돼야 함(토큰 출처가 거기 있어서) — 알아두어야 할 의존관계.
   ============================================================ */

/* ============================================================
   1. HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--t-line);
}
.header__inner {
    max-width: 1240px;
    margin: 0 auto;
    height: var(--header-h);
    padding: 0;
    display: flex;
    align-items: center;
    gap: 40px;
}
.header__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.logo-img { width: 152px; height: auto; }
.logo-sub {
    margin-top: 5px;
    width: 159px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--brand-3);
    box-sizing: border-box;
    padding: 3px 0;
}

.gnb { flex: 1; }
.gnb__list {
    display: flex;
    gap: 68px;
    justify-content: center;
}
.gnb__link {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding: 4px 0;
    position: relative;
}
.gnb__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--brand-3);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
}
.gnb__link:hover::after { transform: scaleX(1); }
.gnb__link.is-active { color: var(--t-text); font-weight: 700; }
.gnb__link.is-active::after { transform: scaleX(1); }

.header__util {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.header__login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #444;
    font-weight: 500;
}
.header__login-icon { width: 15px; height: auto; }

/* ---- 로그인 후 상태 UI (마크업은 header.php에서 주석처리, 세션 연동 시 활성화) ---- */
.header__user { display: flex; align-items: center; gap: 14px; }
.header__logout { font-size: 13px; color: var(--t-meta); }

.header__menu-btn { display: none; font-size: 24px; color: #333; line-height: 1; }

/* ---- 언어 선택 ---- */
.lang { position: relative; }
.lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--t-line);
    border-radius: 20px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    line-height: 1;
}
.lang__btn .xi-globus { font-size: 16px; }
.lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--t-line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 120;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu li { text-align: center; }
.lang__menu a {
    display: block;
    padding: 8px 14px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}
.lang__menu a:hover { background: #f4f6fb; }
.lang__menu a.is-active { color: var(--brand); font-weight: 700; }

/* ============================================================
   2. MOBILE MENU PANEL (헤더 햄버거 → 우측 슬라이드인)
   ============================================================ */
.m-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
}
.m-nav.is-open { visibility: visible; }
.m-nav__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity .3s ease;
}
.m-nav.is-open .m-nav__dim { opacity: 1; }
.m-nav__panel {
    position: absolute;
    top: 0; right: 0;
    width: 78%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    padding: 18px 22px 28px;
    box-sizing: border-box;
    overflow-y: auto;
}
.m-nav.is-open .m-nav__panel { transform: translateX(0); }
.m-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--t-line);
}
.m-nav__logo { width: 120px; height: auto; }
.m-nav__close { font-size: 24px; color: #333; background: none; border: 0; cursor: pointer; line-height: 1; }
.m-nav__gnb { display: flex; flex-direction: column; padding: 8px 0; }
.m-nav__gnb a {
    padding: 14px 4px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f1f1f4;
}
.m-nav__gnb a.is-active { color: var(--brand); }
.m-nav__util { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--t-line); }
.m-nav__login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin-top: 4px;
    box-sizing: border-box;
    background: var(--brand);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.m-nav__login .header__login-icon { width: 17px; filter: brightness(0) invert(1); }
/* ---- 로그인 후 상태 UI ---- */
.m-nav__user { display: flex; flex-direction: column; gap: 8px; }
.m-nav__logout { text-align: center; font-size: 13px; color: var(--t-meta); margin-top: 6px; }
.m-nav__lang { margin-top: 18px; }
.m-nav__lang-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #888; margin-bottom: 10px; }
.m-nav__lang-list { display: flex; gap: 8px; flex-wrap: wrap; }
.m-nav__lang-list a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border: 1px solid var(--t-line);
    border-radius: 18px;
}
.m-nav__lang-list a.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }

/* ============================================================
   3. FOOTER
   ============================================================ */
.footer {
    background: #f7f7f8;
    padding: 40px 0 60px;
    margin-top: 30px;
}
.footer__gnb {
    display: flex;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e4e4e6;
    margin-bottom: 28px;
}
.footer__gnb a { font-size: 14px; font-weight: 600; color: #444; }
.footer__body {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
.footer__logo { margin-bottom: 16px; }
.logo-img--gray { height: 24px; width: auto; opacity: 0.45; filter: grayscale(1); }
.footer__company { font-size: 13px; line-height: 1.8; color: #9a9a9a; }
.footer__cs { text-align: left; min-width: 240px; }
.footer__cs-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.footer__cs-time { font-size: 13px; color: #9a9a9a; margin-bottom: 10px; }
.footer__cs-tel { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }

/* ============================================================
   4. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .gnb__list { gap: 28px; }
    .gnb__link { font-size: 17px; }
    .header__inner { gap: 24px; padding: 0 var(--spacing-lg);}

}

@media (max-width: 1023px) {
    :root { --header-h: 60px; }
    .gnb { display: none; }
    .header__util { margin-left: auto; gap: 10px; }
    .header__login span { display: none; }
    .lang { display: none; }
    .logo-sub { display: none; }
    .header__menu-btn { display: block; }
}

@media (max-width: 768px) {
    .footer__body { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}