@charset "utf-8";

/* ========================================
   HEADER
======================================== */

.site-header { 
    --gnb-width: clamp(800px, 63vw, 1140px);
    --header-menu-space: 64px;
    position: relative;
    z-index: 1000;
    background: #fff;
}

/* UTIL */
.header-util {height: 40px; border-bottom: 1px solid #eee;}
.header-util .inner {display: flex; align-items: center; justify-content: space-between; height: 100%;}
.header-util__sns,.header-util__links {display: flex; align-items: center; gap: 1.5rem;font-family: 'Paperozi';}
.header-util a {font-size: 1rem; color: #666;}
.header-util a:hover,.header-util a:focus-visible {text-decoration: underline; text-underline-offset: 4px;}

/* MAIN HEADER */
.header-main {position: relative; height: 100px; background: #fff; border-bottom: 1px solid #eee;}
.header-main > .inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo {flex: 0 0 auto; margin-right: auto;}
.site-logo a {display: block;}
.site-logo img {width: auto; max-width: 250px; max-height: 64px;}

/* ========================================
   DESKTOP GNB
======================================== */

.gnb {
    width: var(--gnb-width);
    height: 100%;
    margin-left: auto;
}

.gnb__list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    height: 100%;
}

.gnb__item {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
}

.gnb__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 0.75rem;
    font-size: clamp(1.125rem, 1.25vw, 1.5rem);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.gnb__item {
    display: flex;
    align-items: center;
    height: 100%;
}

.gnb__link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 clamp(1rem, 1.4vw, 1.75rem);
    font-size: clamp(1.125rem, 1.25vw, 1.25rem);
    font-weight: 600;
    white-space: nowrap;
}

.gnb__link::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    bottom: 0;
    left: 1.5rem;
    height: 3px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.gnb__link:hover::after,.gnb__link:focus-visible::after,.gnb__item.is-active .gnb__link::after {transform: scaleX(1);}

/* MEGA MENU */
.gnb-mega {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.site-header.is-gnb-open .gnb-mega {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gnb-mega > .inner {
    position: relative;
    min-height: 280px;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.gnb-mega__intro {
    position: absolute;
    bottom: 3.5rem;
    left: var(--inner-padding);
    width: 300px;
    padding-right: 2rem;
}

.gnb-mega__intro strong {display: block; margin-bottom: 1rem; font-size: 1.5rem;}
.gnb-mega__menus {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: var(--gnb-width);
    margin-right: var(--header-menu-space);
    margin-left: auto;
}

.gnb-mega__title {display: block; margin-bottom: 1.25rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.4;}
.gnb-mega__group {padding: 0 0.75rem;text-align: center;}
.gnb-mega__depth2 {display: flex;flex-direction: column;align-items: center;gap: 0.75rem;}
.gnb-mega__depth2 a {display: inline-block;font-size: 1.125rem;line-height: 1.5;color: #555;}
.gnb-mega__depth2 a:hover,.gnb-mega__depth2 a:focus-visible {color: var(--color-primary);}

/* 전체메뉴 */
.header-all-menu {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-left: 1rem;
}

.header-all-menu span {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background: #222;
}

.header-all-menu span:nth-child(1) {top: 15px;}
.header-all-menu span:nth-child(2) {top: 23px;}
.header-all-menu span:nth-child(3) {top: 31px;}

/* ========================================
   ALL MENU LAYER
======================================== */

.all-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    color: #fff;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.all-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.all-menu__background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(15,45,20,0.82), rgba(10,35,15,0.9)),
        url("../images/common/bg/all-menu-bg.jpg") center / cover no-repeat;
}

.all-menu__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    overflow-y: auto;
}

.all-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 2rem clamp(2rem, 4vw, 5rem);
}

.all-menu__logo img {width: auto; max-width: 250px; max-height: 64px;}

.all-menu__close {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
}

.all-menu__close span {
    position: absolute;
    top: 27px;
    left: 12px;
    width: 32px;
    height: 2px;
    background: #fff;
}

.all-menu__close span:nth-child(1) {transform: rotate(45deg);}
.all-menu__close span:nth-child(2) {transform: rotate(-45deg);}

.all-menu__content {
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 40px;
}

.all-menu__nav {width: 100%;}

.all-menu__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /*grid-template-columns: repeat(7, minmax(0, 1fr));*/
    gap: 3rem 0;
    width: 100%;
}

.all-menu__item {
    min-width: 0;
    padding: 0 clamp(1.5rem, 2.5vw, 3rem);
    border-left: 1px solid rgba(255,255,255,0.22);
}

.all-menu__depth1 {
    display: block;
    min-height: 78px;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.45);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
}

.all-menu__depth2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.75rem;
}

.all-menu__depth2 a {font-size: 1.0625rem; line-height: 1.5;}
.all-menu__depth2 a:hover,.all-menu__depth2 a:focus-visible {text-decoration: underline; text-underline-offset: 5px;}

@media (max-width: 1279px) {.all-menu {display: none;}}

/* ========================================
   MOBILE NAVIGATION
======================================== */

.mobile-menu-button,.mobile-navigation,.mobile-menu-overlay {display: none;}

/* ========================================
   TABLET / MOBILE
======================================== */

@media (max-width: 1279px) {
    .header-util,.gnb,.header-all-menu {display: none;}

    .header-main {height: 80px;}
    .site-logo img {max-width: 220px; max-height: 52px;}

    .mobile-menu-button {
        position: relative;
        display: block;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin-left: auto;
    }

    .mobile-menu-button span {
        position: absolute;
        left: 10px;
        width: 28px;
        height: 2px;
        background: #222;
    }

    .mobile-menu-button span:nth-child(1) {top: 14px;}
    .mobile-menu-button span:nth-child(2) {top: 23px;}
    .mobile-menu-button span:nth-child(3) {top: 32px;}

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1090;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(0,0,0,0.5);
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.is-active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: flex;
        flex-direction: column;
        width: min(430px, 90vw);
        background: #fff;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-navigation.is-open {
        visibility: visible;
        transform: translateX(0);
    }

    .mobile-navigation__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        min-height: 80px;
        padding: 0 1.5rem;
        border-bottom: 1px solid #eee;
    }

    .mobile-navigation__logo img {max-width: 200px; max-height: 50px;}

    .mobile-navigation__close {
        position: relative;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
    }

    .mobile-navigation__close span {
        position: absolute;
        top: 23px;
        left: 10px;
        width: 28px;
        height: 2px;
        background: #222;
    }

    .mobile-navigation__close span:nth-child(1) {transform: rotate(45deg);}
    .mobile-navigation__close span:nth-child(2) {transform: rotate(-45deg);}

    .mobile-gnb {flex: 1 0 auto;}

    .mobile-gnb__item {border-bottom: 1px solid #eee;}

    .mobile-gnb__depth1 {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 64px;
        padding: 0.75rem 1.5rem;
        font-size: 1.125rem;
        font-weight: 600;
        text-align: left;
    }

    .mobile-gnb__title {min-width: 0;}

    .mobile-gnb__icon {
        position: relative;
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        margin-left: 1rem;
    }

    .mobile-gnb__icon::before,.mobile-gnb__icon::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 2px;
        background: #333;
        transform: translate(-50%, -50%);
        transition: transform 0.2s ease;
    }

    .mobile-gnb__icon::after {transform: translate(-50%, -50%) rotate(90deg);}
    .mobile-gnb__depth1[aria-expanded="true"] .mobile-gnb__icon::after {transform: translate(-50%, -50%) rotate(0deg);}

    .mobile-gnb__toggle::before,.mobile-gnb__toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 2px;
        background: #333;
        transform: translate(-50%, -50%);
        transition: transform 0.2s ease;
    }

    .mobile-gnb__toggle::after {transform: translate(-50%, -50%) rotate(90deg);}
    .mobile-gnb__toggle[aria-expanded="true"]::after {transform: translate(-50%, -50%) rotate(0deg);}

    .mobile-gnb__depth2 {padding: 0.5rem 1.5rem 1.25rem; background: #f7f7f7;}
    .mobile-gnb__depth2 > li > a {display: block; padding: 0.625rem 0.75rem; font-size: 1rem; color: #555;}
    .mobile-gnb__item.is-active > .mobile-gnb__depth1 {background: #fafafa;}
    .mobile-gnb__item.is-active > .mobile-gnb__depth1 {background: #f7f7f7;}

    /* 향후 3depth */
    .mobile-gnb__depth3 {padding: 0.25rem 0 0.5rem 1rem;}
    .mobile-gnb__depth3 a {display: block; padding: 0.5rem 0.75rem; font-size: 0.9375rem; color: #666;}

    .mobile-navigation__util {display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 1.5rem; border-top: 1px solid #eee;}
    .mobile-navigation__util a {font-size: 0.9375rem; color: #555;}

    .mobile-navigation__sns {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        padding: 0 1.5rem 1.5rem;
    }

    .mobile-navigation__sns a {font-size: 0.875rem; color: #666;}
}

@media (max-width: 768px) {
    .header-main {height: 70px;}
    .site-logo img {max-width: 180px; max-height: 44px;}

    .mobile-navigation {width: min(360px, 92vw);}
    .mobile-navigation__header {min-height: 70px; padding: 0 1.25rem;}
    .mobile-navigation__logo img {max-width: 170px; max-height: 42px;}

    .mobile-gnb__depth1 > a {min-height: 60px; padding-left: 1.25rem; font-size: 1.0625rem;}
    .mobile-gnb__depth2 {padding-right: 1.25rem; padding-left: 1.25rem;}
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
    .gnb-mega,.gnb__link::after,.all-menu,.mobile-menu-overlay,.mobile-navigation,.mobile-gnb__icon::after {transition: none;}
}

/* ========================================
   FOOTER BANNER
======================================== */

.footer-banner {border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; background: #fff;}

.footer-banner .inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 110px;
}

.footer-banner__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.footer-banner__title {font-size: 1.125rem; font-weight: 700; white-space: nowrap;}

.footer-banner__control {display: flex; align-items: center;}

.footer-banner__toggle {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.footer-banner__toggle::before,.footer-banner__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 3px;
    height: 14px;
    background: #333;
    transform: translateY(-50%);
}

.footer-banner__toggle::before {left: 17px;}
.footer-banner__toggle::after {right: 17px;}

.footer-banner__toggle[aria-pressed="true"]::before {
    top: 50%;
    left: 17px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #333;
    background: transparent;
    transform: translateY(-50%);
}

.footer-banner__toggle[aria-pressed="true"]::after {display: none;}

.footer-banner__viewport {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.footer-banner__track {
    --footer-banner-gap: 3rem;
    display: flex;
    gap: var(--footer-banner-gap);
    width: max-content;
    will-change: transform;
}

.footer-banner__list {
    display: flex;
    align-items: center;
    gap: var(--footer-banner-gap);
    flex: 0 0 auto;
}

.footer-banner__item {flex: 0 0 auto;}

.footer-banner__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 60px;
    padding: 0.5rem 1rem;
}

.footer-banner__item img {
    width: auto;
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

/* ========================================
   FOOTER
======================================== */

.footer-main {padding: 2.25rem 0 2.75rem; background: #272a2f; color: #ccc;}

.footer-policy {padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.15);}

.footer-policy__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0;
}

.footer-policy__list li {display: flex; align-items: center;}

.footer-policy__list li:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 12px;
    margin: 0 1rem;
    background: rgba(255,255,255,0.3);
}

.footer-policy__list a {font-size: 0.9375rem; color: #ddd;}
.footer-policy__list a:hover,.footer-policy__list a:focus-visible {text-decoration: underline; text-underline-offset: 4px;}
.footer-policy__list .is-privacy {font-weight: 700; color: #fff;}

.footer-info {padding-top: 1.5rem;}

.footer-info__address {font-size: 0.9375rem; line-height: 1.7; color: #bbb;}

.footer-info__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #bbb;
}

.footer-info__contact a:hover,.footer-info__contact a:focus-visible {color: #fff; text-decoration: underline; text-underline-offset: 4px;}

.footer-info__copyright {margin-top: 1rem; font-size: 0.8125rem; color: #888;}

/* ========================================
   FOOTER RESPONSIVE
======================================== */

@media (max-width: 1279px) {
    .footer-banner .inner {gap: 1.5rem;}
    .footer-banner__list {gap: 2rem;}
    .footer-banner__track {--footer-banner-gap: 2rem;}
    .footer-banner__item a {min-width: 160px;}
    .footer-banner__item img {max-width: 160px;}
}

@media (max-width: 768px) {
    .footer-banner__track {--footer-banner-gap: 1rem;}

    .footer-banner .inner {
        display: block;
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .footer-banner__head {justify-content: space-between; margin-bottom: 0.75rem;}
    .footer-banner__title {font-size: 1rem;}
    .footer-banner__item a {min-width: 145px; min-height: 52px; padding: 0.375rem 0.75rem;}
    .footer-banner__item img {max-width: 140px; max-height: 42px;}

    .footer-main {padding: 1.75rem 0 2rem;}

    .footer-policy__list {gap: 0.75rem 1.25rem;}
    .footer-policy__list li:not(:last-child)::after {display: none;}
    .footer-policy__list a {font-size: 0.875rem;}

    .footer-info {padding-top: 1.25rem;}
    .footer-info__address,.footer-info__contact {font-size: 0.875rem;}
    .footer-info__contact {display: block;}
    .footer-info__contact span {display: block;}
    .footer-info__copyright {margin-top: 0.875rem; line-height: 1.6;}
}

@media (prefers-reduced-motion: reduce) {
    .footer-banner__track {transform: none !important;}
}