/*----------------------------------------
    wrapper
----------------------------------------*/
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/*----------------------------------------
    header
----------------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 102;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
    border-bottom: 1px solid #e8e8e8;
}

.site-header .inner {
    display: flex;
    position: relative;
    padding: 33px 0 23px;
}

.site-header .logo {
    margin-top: 5px;
}

.site-header .logo img {
    display: block;
    width: 100%;
}

.gnb {
    flex: 1;
    margin-left: 6.8939393%;
    margin-right: 2.8030303%;
}

.gnb .depth1 {
    display: flex;
    justify-content: space-between;
}

.gnb .depth1 > li {
    position: relative;
}

.gnb .mobile-only-menu {
    display: none;
}

.gnb .depth1-link {
    display: block;
    padding: 16px 21px 18px 22px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 24px;
    letter-spacing: -0.6px;
}

.gnb .depth2 {
    display: none;
    background-color: var(--color-white);
}
.gnb .depth1 > li .parent-gnb-title {
    display: none;
}
.gnb .depth1 > li.active .parent-gnb {
    display: flex !important;
}
.gnb .depth1 > li.active .depth2 {
    display: flex;
    max-height: 539px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}



.btn-menu {
    position: relative;
    width: 44px;
    height: 44px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    position: absolute;
    width: 28px;
    height: 2px;
    border-radius: 3px;
    background-color: var(--color-text);
    left: 50%;
    transform: translateX(-50%);
    transition: 0.3s;
    content: "";
}

.menu-icon {
    top: 21px;
}

.menu-icon::before {
    top: -9px;
}

.menu-icon::after {
    top: 9px;
}

.btn-menu[aria-expanded="true"] .menu-icon {
    background-color: transparent;
}

.btn-menu[aria-expanded="true"] .menu-icon::before {
    transform: translateX(-50%) rotate(45deg);
    top: 0;
}

.btn-menu[aria-expanded="true"] .menu-icon::after {
    transform: translateX(-50%) rotate(-45deg);
    top: 0;
}

.btn-search-panel {
    position: relative;
    width: 44px;
    height: 44px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    background: url(../images/ico-search-primary.svg) no-repeat;
    background-size: 28px;
    transform: translate(-50%, -50%);
}

.btn-back {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    background: url(../images/ico-arrow-left.svg) no-repeat center;
}


/*----------------------------------------
    container
----------------------------------------*/
.container {
    flex: 1;
}

.inner {
    max-width: 1320px;
    margin: 0 auto;
}

.container .inner:has(.sidebar) {
    display: flex;
    gap: 80px;
}

.container .inner + .inner {
    margin-top: 40px;
}

#content {
    scroll-margin-top: 114px;
}


/*----------------------------------------
    sidebar
----------------------------------------*/
.sidebar {
    flex: none;
    align-self: flex-start;
    position: sticky;
    top: 154px;
    width: 260px;
}

.sidebar .depth1-name {
    display: flex;
    justify-content: center;
    padding: 34px 20px 30px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: var(--color-primary);
    font-size: 30px;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    letter-spacing: -0.9px;
}

.sidebar .depth2-link {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 19px 30px;
    border: 1px solid #adbdde;
    border-top: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 24px;
    letter-spacing: -0.54px;
}

.sidebar .depth2-link.active,
.sidebar .depth2-link[aria-current="page"] {
    border-color: #4b4b4b;
    background-color: #4b4b4b;
    font-weight: 600;
    color: var(--color-white);
}

.sidebar .depth2-link:not(.no-children) {
    padding-right: 63px;
    background: url(../images/ico-unfold.svg) no-repeat right 30px center;
}

.sidebar .depth2-link.active:not(.no-children) {
    padding-right: 63px;
    background: #4b4b4b url(../images/ico-fold.svg) no-repeat right 30px center;
}

.sidebar .depth2-link.active + .depth3 {
    display: block;
    padding: 10px 0;
    border: 1px solid #adbdde;
    border-top: none;
    background-color: #f5f5f5;
}

.sidebar .depth3 {
    display: none;
}

.sidebar .depth3 > li > a {
    display: block;
    padding: 8px 30px;
    font-size: 18px;
    color: var(--color-text);
    line-height: 24px;
    letter-spacing: -0.54px;
}

.sidebar .depth3 > li > a.current {
    font-weight: 700;
    color: var(--color-primary);
}

.sidebar .inquiry-call {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar .inquiry-call .img-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 62px;
    height: 62px;
    border-radius: 100%;
    background-color: #4b4b4b;
}

.sidebar .inquiry-call .txt-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar .inquiry-call .txt-block span {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.sidebar .inquiry-call .txt-block strong {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 18px;
}


/*----------------------------------------
    content
----------------------------------------*/
.content {
    flex: 1;
}


/*----------------------------------------
    footer
----------------------------------------*/
.site-footer {
    padding: 54px 0 62px;
    background-color: #4b4b4b;
}

.site-footer .inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-footer .link,
.site-footer .info,
.site-footer .copyright {
    font-size: 15px;
    color: var(--color-white);
    line-height: 20px;
}

.site-footer .link,
.site-footer .info {
    display: flex;
    gap: 11px;
}

.site-footer .info {
    flex-wrap: wrap;
}

.site-footer .verified-mark {
    display: flex;
    gap: 14px;
}

.site-footer .verified-mark li img {
    display: block;
    height: 58px;
}


/*----------------------------------------
    margin & padding
----------------------------------------*/
.mt-0-imp { margin-top: 0 !important; }
.mt-10 { margin-top: 10px; }
.mt-13 { margin-top: 13px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-35 { margin-top: 35px; }
.mt-40 { margin-top: 40px; }
.pb-80 { padding-bottom: 80px; }


/*----------------------------------------
    flex style
----------------------------------------*/
.flex { display: flex; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }


/*----------------------------------------
    align
----------------------------------------*/
.tal { text-align: left; }
.tar { text-align: right; }
.tac { text-align: center; }


/*----------------------------------------
    media query
----------------------------------------*/
@media (min-width: 768px) {
    /*----------------------------------------
        hide
    ----------------------------------------*/
    .is-hidden-pc {
        display: none;
    }
}

@media (min-width: 1320px) {
    /*----------------------------------------
        header
    ----------------------------------------*/
    .site-header.scrolled {
        background-color: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px);
    }

    .gnb {
        display: block !important;
    }

    .gnb .depth1 > li {
        position: static;
    }
    .gnb .depth1>li>.on{ /* 현재 메뉴 활성화 */
        border-radius: 10px;
        background-color: var(--color-primary);
        font-weight: 700;
        color: var(--color-white);
    } 
    .gnb .depth2>li>.on{
        text-decoration: underline;
        text-underline-offset: 4px;
    }
    .gnb .depth3>li>.on{
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .gnb .depth1>.active>.on{
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .gnb .depth1 .active .depth1-link,
    .gnb .depth1 > li:focus-within > .depth1-link,
    .gnb .depth1-link:focus-visible,
    .gnb .depth1-link:hover {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        background-color: var(--color-primary);
        font-weight: 700;
        color: var(--color-white);
    }

    .gnb .depth1-link:focus-visible {
        outline-offset: 4px;
    }
    .gnb .depth1 > .active > .parent-gnb-title::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(5px, -155px);
        width: 150px;
        height: 150px;
    }
    .gnb .depth1 > .active:nth-child(1) > .parent-gnb-title::before {
        background: url(/static/homepage/images/pc-depth2-img1.png) no-repeat center center;
    }
    .gnb .depth1 > .active:nth-child(2) > .parent-gnb-title::before {
        background: url(/static/homepage/images/pc-depth2-img2.png) no-repeat center center;
    }
    .gnb .depth1 > .active:nth-child(3) > .parent-gnb-title::before {
        background: url(/static/homepage/images/pc-depth2-img3.png) no-repeat center center;
    }
    .gnb .depth1 > .active:nth-child(4) > .parent-gnb-title::before {
        background: url(/static/homepage/images/pc-depth2-img4.png) no-repeat center center;
    }
    .gnb .depth1 > .active:nth-child(5) > .parent-gnb-title::before {
        background: url(/static/homepage/images/pc-depth2-img5.png) no-repeat center center;
    }
    .gnb .depth1 > .active > .parent-gnb-title {
        display: block;
        position: absolute;
        z-index: 12;
        top: 300px;
        left: 100px;
        width: 160px;
        padding: 0;
        border-radius: 44px;
        background-color: #eaf4fc;
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -0.6px;
        text-align: center;
    }

    .gnb .no-children .depth1-link:hover {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .gnb .depth1 > li:focus-within > .depth2 {
        display: flex;
        max-height: 539px;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .gnb .depth2 {
        display: flex;
        flex-wrap: wrap;
        gap: 64px;
        position: absolute;
        top: 91px;
        left: 0;
        z-index: 11;
        width: 100%;
        min-height: 355px;
        max-height: 0;
        padding: 59px 95px 52px 380px;
        background: var(--color-white);
        border-radius: 30px;
        border: 2px solid var(--color-primary);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s, max-height 0.3s;
        visibility: hidden;
    }

    .gnb .depth2 > li.parent-gnb {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        position: absolute;
        top: 51px;
        left: 100px;
        width: 160px;
    }

    .gnb .depth2 > li.parent-gnb span {
        width: 100%;
        padding: 5px 0;
        border-radius: 44px;
        background-color: #eaf4fc;
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -0.6px;
        text-align: center;
    }

    /* .gnb .depth1 > li:hover .depth2,
    .gnb .depth1 > li:focus-within .depth2 {
        max-height: 539px;
        opacity: 1;
        pointer-events: auto;
    } */

    .gnb .depth2 > li {
        min-width: 148px;
    }

    .gnb .depth2 > li > a {
        display: block;
        margin-bottom: 21px;
        font-size: 20px;
        font-weight: 600;
        color: var(--color-text);
        line-height: 24px;
        letter-spacing: -0.6px;
        text-align: center;
    }

    .gnb .depth2 li a:focus,
    .gnb .depth2 li a:focus-visible,
    .gnb .depth2 li a:hover {
        color: #4675B9;
    }

    .gnb .depth2 li a:focus-visible,
    .gnb .depth3 li a:focus-visible {
        outline: var(--focus-outline);
        outline-offset: 4px;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .gnb .depth3 {
        display: block; /* PC에서는 항상 노출 */
    }

    .gnb .depth3 li a {
        display: block;
        font-size: 18px;
        font-weight: 500;
        color: var(--color-text);
        line-height: 30px;
        text-align: center;
        letter-spacing: -0.54px;
    }

    .btn-menu {
        display: none;
    }

    .btn-search-panel {
        display: none;
    }

    .btn-back {
        display: none;
    }

    /*----------------------------------------
        line break
    ----------------------------------------*/
    .line-break-1320-over {
        display: block;
    }
}

@media (max-width: 1359px) {
    /*----------------------------------------
        container
    ----------------------------------------*/
    .inner {
        padding: 0 24px;
    }
}

@media (max-width: 1319px) {
    /*----------------------------------------
        header
    ----------------------------------------*/
    .site-header {
        background-color: var(--color-white);
    }

    .site-header .inner {
        height: 80px;
        padding: 0 24px;
    }

    .site-header .logo {
        position: absolute;
        top: 23px;
        left: 50%;
        margin-top: 0;
        transform: translateX(-50%);
        width: 156px;
    }

    .gnb {
        display: none;
    }

    .gnb .mobile-only-menu {
        display: list-item;
    }

    .gnb.is-open {
        position: fixed;
        top: 80px;
        left: 0;
        z-index: 2;
        display: block;
        width: 100%;
        height: calc(100vh - 80px);
        margin: 0;
        padding-bottom: 80px;
        background-color: var(--color-white);
        overflow-y: auto;
    }

    .gnb .depth1 {
        flex-direction: column;
        border-bottom: 1px solid #adbdde;
    }

    .gnb .depth1 > li:has(.depth1-link) {
        border-top: 1px solid #adbdde;
    }

    .gnb .depth1 > li:has(.depth1-link.on) {
        border-top: none;
    }

    .gnb .depth1-link {
        /*
        padding: 25px 24px 26px;
        font-size: 24px;
        */
        padding: 20px 24px;
        font-weight: 500;
    }

    .gnb .depth1-link.on {
        font-weight: 600;
    }

    .gnb .depth1-link:focus-visible,
    .btn-menu:focus-visible,
    .btn-search-panel:focus-visible {
        outline: var(--focus-outline);
        outline-offset: -4px;
        box-shadow: inset 0 0 0 2px #31a3ff;
    }

    .gnb .depth1 > li:not(.no-children) .depth1-link {
        background: url(../images/ico-unfold.svg) no-repeat right 24px center;
        background-size: 12px auto;
    }

    .gnb .depth1 > li:not(.no-children) .depth1-link.on {
        background-color: #4b4b4b;
        background-image: url(../images/ico-fold.svg);
        color: var(--color-white);
    }

    .gnb .depth1-link.on + .depth2 {
        max-height: 864px;
        padding: 18px 0;
    }

    .gnb .depth1-link.on ~ .depth2 {
        max-height: none !important;
    }
    .gnb .depth2 {
        display: block;
        /*
        padding: 15px 0 13px;
        */
        max-height: 0;
        background-color: #f5f5f5;
        overflow: hidden;
        transition: max-height 0.3s, padding 0.3s;
    }

    .gnb .depth2 > li > a {
        display: block;
        /*
        padding: 9px 24px 10px;
        font-size: 22px;
        */
        padding: 6px 24px;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.5555555;
        letter-spacing: -0.54px;
    }

    .gnb .depth2 > li > a:focus-visible,
    .gnb .depth3 li a:focus-visible {
        outline: var(--focus-outline);
        outline-offset: -3px;
        box-shadow: inset 0 0 0 2px #31a3ff;
        background-color: #fff;
    }

    .gnb .depth3 {
        /*
        display: none;
        */
        display: flex;
        flex-wrap: wrap;
        gap: 0 36px;
        padding: 0 24px 18px;
    }

    .gnb .depth3 li a {
        display: block;
        padding: 10px 0;
        line-height: 1.25;
        letter-spacing: -0.48px;
    }

    .btn-menu {
        position: absolute;
        top: 50%;
        left: 16px;
        z-index: 3;
        transform: translateY(-50%);
    }

    .btn-search-panel {
        position: absolute;
        top: 50%;
        right: 16px;
        z-index: 1;
        transform: translateY(-50%);
    }

    .search-panel-wrap {
        display: none;
    }

    .search-panel-wrap.is-open {
        display: flex;
        z-index: 3;
        width: 100vw;
        height: 100vh;
        margin-left: -24px;
        margin-right: -24px;
        background-color: var(--color-white);
    }

    .search-panel-wrap.is-open .search-panel {
        display: flex;
        width: 100%;
        height: 80px;
        margin-top: 0;
        padding: 18px 16px 18px 8px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #adbdde;
    }

    .search-panel-wrap.is-open .search-panel input[type=search] {
        margin-right: 8px;
        height: 44px;
        border-radius: 0;
    }

    .search-panel-wrap.is-open .search-panel .search-btn {
        flex: none;
        position: static;
        width: 44px;
        height: 44px;
        border-radius: 0;
        background-color: transparent;
        background-image: url(../images/ico-search-primary.svg);
        background-size: 28px;
    }

    .search-panel-wrap.is-open .btn-back:focus-visible,
    .search-panel-wrap.is-open .search-btn:focus-visible,
    .search-panel-wrap.is-open input[type=search]:focus-visible {
        outline: var(--focus-outline);
        outline-offset: -3px;
        box-shadow: inset 0 0 0 2px #31a3ff;
    }

    .sitemap-btn {
        display: none;
    }

    /*----------------------------------------
        sidebar
    ----------------------------------------*/
    .sidebar {
        display: none;
    }

    /*----------------------------------------
        content
    ----------------------------------------*/
    .content {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 767px) {
    /*----------------------------------------
        container
    ----------------------------------------*/
    .container .inner + .inner {
        margin-top: 0;
    }

    /*----------------------------------------
        footer
    ----------------------------------------*/
    .site-footer {
        padding: 30px 0 33px;
    }

    .site-footer .link,
    .site-footer .info,
    .site-footer .copyright {
        font-size: 14px;
    }

    .site-footer .link {
        gap: 9px;
    }

    .site-footer .info {
        gap: 0;
    }

    .site-footer .info li {
        margin-right: 9px;
    }

    .site-footer .info li:last-child {
        margin-right: 0;
    }

    .site-footer .verified-mark {
        gap: 8px;
    }

    .site-footer .verified-mark li img {
        height: 44px;
    }

    /*----------------------------------------
        hide
    ----------------------------------------*/
    .is-hidden-mobile {
        display: none;
    }
}

@media (max-width: 430px) {
    /*----------------------------------------
        footer
    ----------------------------------------*/
    .site-footer .verified-mark li {
        flex: 1;
    }

    /*----------------------------------------
        line break
    ----------------------------------------*/
    .line-break-430 {
        display: block;
    }
}
