@charset "UTF-8";

/* ==========================================================================
   공통 레이아웃
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. 헤더 레이아웃
   ========================================================================== */
.header {
    width: 100%;
    height: 86px;
    position: sticky;
    top: 0;
    background-color: var(--background-default);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    aspect-ratio: 141 / 50;
    width: 15vw;
    max-width: 141px;
    background: var(--svg-logo-lifetag) no-repeat 0 / contain;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}


.gnb ul {
    box-sizing: border-box;
    display: flex;
    gap: 14px;
    align-items: center;
    height: 54px;
    padding: 6px;
    font-size: 1.6rem;
    font-weight: 600;
    background-color: var(--background-dark);
    border-radius: 27px;
}

.gnb ul a {
    display: block;
    height: 42px;
    padding: 0 24px;
    font-size: 1.6rem;
    line-height: 42px;
    border-radius: 21px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gnb ul a.active {
    color: var(--text-inverted);
    background-color: var(--background-impact);
}

.gnb ul li a:not(.active):hover {
    background-color: var(--background-highlight);
}

.gnb ul li.has-depth {
    position: relative;
}

.gnb ul li.has-depth .ico-arrow-down-12 {
    margin-left: 2px;
}

.gnb ul li.has-depth a.active .ico-arrow-down-12 {
    filter: brightness(0) invert(1);
}

.gnb ul .depth2 {
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 130px;
    height: auto;
    padding: 10px 0;
    background-color: var(--background-default);
    border: 1px solid var(--stroke-separator);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: pointer;
    z-index: 110;
}

.gnb ul .depth2 li {
    width: 100%;
}

.gnb ul .depth2 li a {
    display: block;
    height: 40px;
    padding: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 40px;
    color: var(--text-secondary);
    background-color: transparent;
    border-radius: 0;
}

.gnb ul .depth2 li a:hover {
    color: var(--text-impact);
    background-color: var(--background-highlight);
}

.gnb ul li.has-depth:hover .depth2 {
    opacity: 1;
    visibility: visible;
}

.gnb ul li.has-depth .depth2::before {
    content: '';
    position: absolute;
    top: -2.0rem;
    left: 0;
    width: 100%;
    height: 2.0rem;
    background-color: transparent;
    cursor: pointer;
}

.gnb .btn-layer-close {
    display: none;
}

.header-util .ico-search {
    width: 44px;
    height: 44px;
}

/* ==========================================================================
   2. 메인 레이아웃
   ========================================================================== */
.main {
    position: relative;
    padding-bottom: 12rem;
    background-color: var(--background-default);
    border-radius: 0 0 120px 120px;
}

.main section {
    padding: 8rem 0 0;
    opacity: 0;
    transition: opacity .8s ease-out, transform .8s ease-out;
    will-change: opacity, transform;
}

.main section:first-child {
    opacity: 1;
}

.main section.is-animated {
    opacity: 1;
}

/* ==========================================================================
   3. 푸터 레이아웃
   ========================================================================== */
.footer {
    margin-top: -120px;
    padding: 180px 0 60px;
    background-color: var(--background-footer);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

.footer-info .footer-logo {
    width: 190px;
    height: 91px;
    margin-bottom: 4rem;
    background: var(--svg-logo-lifetag-ft) no-repeat 0 / contain;
}

.footer-info .info-group {
    margin-bottom: 0.2rem;
    font-size: 0;
}

.footer-info .info-group span {
    position: relative;
    display: inline-block;
    font-size: 1.4rem;
    color: var(--text-description);
    line-height: 1.6;
}

.footer-info .info-group span+span {
    padding-left: 16px;
}

.footer-info .info-group span+span::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 55%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.1rem;
    background-color: #D1D5DB;
}

.footer-info .copyright {
    margin-top: 1.6rem;
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 600;
}

.btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: var(--background-default);
    background-image: var(--svg-ico-arrow-tail-t-24);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    border: 1px solid var(--stroke-separator);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    transition: background-color 0.2s ease;
}

.btn-top:hover {
    background-color: var(--background-dark);
}

/* ==========================================================================
   4. 검색 레이어
   ========================================================================== */
.search-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-layer.is-active {
    opacity: 1;
    visibility: visible;
}

.search-layer .search-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.search-layer .search-content {
    position: relative;
    width: 100%;
    background-color: #FFFFFF;
    padding: 13rem 0 8rem;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-execute-search {
    width: 4rem;
    height: 4rem;
    background: var(--svg-ico-search-40) no-repeat;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    .header {
        height: 55px;
        z-index: 1001;
    }

    .logo {
        position: relative;
        width: 102px;
        height: 36px;
        z-index: 1010;
    }

    .header-util {
        display: flex !important;
        align-items: center;
        gap: 5px;
        position: relative;
        margin-right: -8px;
        z-index: 1010;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.menu-open .header-util {
        opacity: 0;
        visibility: hidden;
    }

    .btn-menu-open {
        display: block !important;
        width: 44px;
        height: 44px;
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .btn-top {
        right: 10px;
        bottom: 25px;
        width: 50px;
        height: 50px;
    }

    .ico-hamburger {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--text-primary);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: background-color 0.2s ease;
    }

    .ico-hamburger::before,
    .ico-hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        left: 0;
        transition: top 0.2s ease;
    }

    .ico-hamburger::before {
        top: -8px;
    }

    .ico-hamburger::after {
        top: 8px;
    }

    .gnb {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 85vh;
        padding: 65px 20px 40px 20px;
        background-color: var(--background-default);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
        overflow-y: visible;
    }

    .gnb.is-active {
        opacity: 1;
        visibility: visible;
    }

    .gnb ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0;
        background-color: transparent;
        border-radius: 0;
        height: auto;
    }

    .gnb ul li {
        width: 100%;
    }

    .gnb ul a {
        display: block;
        height: auto;
        line-height: 1.5;
        padding: 13px 20px;
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--text-primary);
        background-color: transparent !important;
        border-radius: 0;
    }

    .gnb ul a.active {
        font-weight: 700;
        color: var(--text-impact) !important;
    }

    .gnb ul li.has-depth>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 12px;
        padding: 14px 20px;
    }

    .gnb ul li.has-depth.is-expanded>a {
        background-color: var(--background-dark) !important;
    }

    .gnb ul li.has-depth .ico-arrow-down-12 {
        transition: transform 0.2s ease;
    }

    .gnb ul li.has-depth.is-expanded .ico-arrow-down-12 {
        transform: rotate(180deg);
    }

    .gnb ul .depth2 {
        display: none;
        flex-direction: column;
        gap: 8px;
        position: static;
        width: 100%;
        padding: 10px 0;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
    }

    .gnb ul .depth2 li a {
        padding: 0 20px;
        text-align: left;
        font-size: 1.6rem;
        font-weight: 500;
        color: var(--text-secondary);
        background-color: transparent !important;
    }

    .gnb ul .depth2 li a.active {
        color: var(--text-impact) !important;
        font-weight: 700;
    }

    .gnb ul .depth2 li a:hover {
        color: var(--text-secondary);
        background-color: none;
    }

    .gnb ul li.has-depth .depth2::before {
        display: none;
    }

    .gnb.is-active ul li.has-depth.is-expanded .depth2 {
        display: flex !important;
    }

    .gnb .btn-layer-close {
        display: flex;
    }

    .search-layer .search-content {
        padding: 8rem 0;
        border-radius: 0 0 30px 30px;
    }

    .main {
        padding-bottom: 6rem;
        border-radius: 0 0 40px 40px;
    }

    .slide-buttons {
        display: none;
    }

    .footer {
        padding-top: 160px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-info {
        order: 2;
        margin-top: 3rem;
    }

    .footer-links {
        order: 1;
        gap: 10px;
        font-size: 1.6rem;
    }

    .footer-info .footer-logo {
        width: 167px;
        height: 80px;
        margin-bottom: 2rem;
    }

    .footer-info .copyright {
        margin-top: 1.2rem;
    }
}