/*----------------------- header -----------------------*/
/*-- h_top --*/
.h_top {
    width: 100%;
    padding: 20px 0;
    position: fixed;
    top: 20px;
    left: 0;
    z-index: 20;
    transition: top .5s ease, padding .5s ease;
}
.h_top::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    transform: translateY(calc(-100% - 20px));
    border-bottom: 1px solid var(--dark-line);
    position: absolute;
    top: 0;
    left: 0;
    transition: transform .5s ease;
}
.h_top > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.h_logo {
    width: 125px;
    transition: width .5s ease;
}
.h_logo figure {
    width: 100%;
    transition: all .5s ease;
}

.h_nav > ul {
    display: flex;
    align-items: center;
    gap: 40px;
}
.h_nav > ul > li {
    position: relative;
}
.h_nav .nav_main {
    padding: 8px 20px;
    border-radius: var(--radius-ss);
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    color: var(--gray-500);
    transition: color .5s ease, background .5s ease;
}
.h_nav .nav_main:hover {
    background-color: var(--gray-100);
}
.h_nav .nav_contact .nav_main {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}
.nav_sub {
    min-width: 140px;
    padding-top: 10px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}
.sub_main {
    width: 100%;
    padding: 4px;
    background-color: var(--white);
    border-radius: var(--radius-ss);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.h_nav > ul > li:hover .nav_sub {
    opacity: 1;
    pointer-events: all;
}
.nav_sub a {
    border-radius: var(--radius-ss);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .5s ease;
}
.nav_img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background .5s ease;
}
.nav_img img {
    width: 24px;
    height: 24px;
}
.nav_text {
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    color: var(--gray-500);
    text-wrap: nowrap;
}
.nav_sub a:hover {
    background-color: var(--gray-100);
}
.nav_sub a:hover .nav_img {
    background-color: var(--white);
}

.ham_btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-ss);
    background-color: var(--gray-500);
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 31;
}
.ham_btn span::before,
.ham_btn span::after {
    content: '';
    position: absolute;
    transition: transform .5s ease;
}
.ham_btn span,
.ham_btn span::before,
.ham_btn span::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--white);
}
.ham_btn span::before {
    transform: translateY(-6px);
}
.ham_btn span::after {
    transform: translateY(6px);
}
.ham_btn.open span::before,
.ham_btn.open span::after {
    transform: translateY(0px);
}

.h_top.white .h_logo figure {
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}
.h_top.white .h_nav .nav_main {
    color: var(--white);
}
.h_top.white .nav_main:hover {
    background-color: var(--white-200);
}

.h_top.scroll {
    top: 0;
    padding: 14px 0;
}
.h_top.scroll::before {
    transform: translateY(0);
}
.h_top.scroll .h_logo figure {
    filter: brightness(1) invert(0);
    -webkit-filter: brightness(1) invert(0);
}
.h_top.scroll .h_nav .nav_main {
    color: var(--gray-500);
}

/*-- ham_popup --*/
.ham_popup {
    width: 100%;
    height: 100dvh;
    display: none;
    justify-content: end;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 30;
    pointer-events: none;
}
.ham_popup.open {
    opacity: 1;
    pointer-events: all;
}
.popup_bg {
    width: 100%;
    height: 100%;
    background-color: var(--black-400);
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity .5s ease;
}
.ham_popup.open .popup_bg {
    opacity: 1;
}
.ham_box {
    width: 100%;
    max-width: 300px;
    height: 100%;
    background-color: var(--white);
    border-radius: 20px 0 0 20px;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transform: translateX(100%);
    transition: transform .5s ease;
}
.ham_popup.open  .ham_box {
    transform: translateX(0);
}
.ham_box::-webkit-scrollbar {
    display: none;
}
.ham_box_inner {
    width: 100%;
    height: auto;
    min-height: 100%;
    padding: 80px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
}
.ham_main {
    padding: 10px 0;
    font-size: var(--ft24);
    font-weight: var(--semi-bold);
}
.ham_sub_btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ham_sub_btn::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: url(/images/drop.svg) no-repeat center/contain;
    transition: transform .5s ease;
}
.ham_sub_btn.active::after {
    transform: rotate(180deg);
}
.ham_sub {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius-md);
    background-color: var(--gray-100);
}
.ham_sub a {
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ham_sub .nav_img {
    background-color: var(--white);
}
.ham_contact {
    margin-top: 30px;
    border-radius: var(--radius-md);
    background-color: var(--primary);
    font-size: var(--ft18);
    color: var(--white);
    text-align: center;
}
.ham_address {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ham_address li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ham_address p {
    font-size: var(--ft16);
    color: var(--gray-500);
}
.ham_address p.bold {
    width: 50px;
    font-weight: var(--semi-bold);
    flex-shrink: 0;
}

/*----------------------- footer -----------------------*/
footer {
    background-color: var(--white);
}
.footer {
    margin-top: 180px;
    padding: 120px 0 100px;
    border-radius: 20px 20px 0 0;
    background-color: var(--gray-600);
}
.footer * {
    font-size: var(--ft18);
    color: var(--white);
}
.footer a:hover {
    text-decoration: underline;
}
.f_top {
    display: flex;
    justify-content: space-between;
}
.f_l {
    display: flex;
    align-items: start;
    gap: 180px;
}
.f_logo {
    width: 240px;
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
    flex-shrink: 0;
}
.f_add {
    margin-bottom: 60px;
    line-height: 2;
}
.f_flex {
    display: flex;
    gap: 80px;
}
.f_flex address {
    padding-right: 80px;
    border-right: 1px solid var(--white-200);
}
.f_flex ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.f_flex li {
    display: flex;
    gap: 30px;
}
.f_flex p,
.f_flex a {
    width: fit-content;
    font-size: var(--ft18);
}
.f_flex p.bold {
    width: 120px;
    font-weight: var(--semi-bold);
    flex-shrink: 0;
}
.top_btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-ss);
    background-color: var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform .5s ease;
    flex-shrink: 0;
}
.top_btn:hover {
    transform: translateY(-4px);
}
.top_btn img {
    width: 30px;
    height: 30px;
}
.f_btm {
    margin-top: 180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.f_btm * {
    font-size: var(--ft16);
}
.f_btm a {
    width: fit-content;
}
.f_copy,
.f_menu {
    display: flex;
    gap: 32px;
}

/*----------------------- loader_bg -----------------------*/
.loader_bg {
    width: 100%;
    height: 100dvh;
    background-color: var(--black-400);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
}
.loader_bg.active {
    opacity: 1;
    pointer-events: all;
}
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid var(--white);
    animation:
        l20-1 0.8s infinite linear alternate,
        l20-2 1.6s infinite linear;
}
@keyframes l20-1{
    0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
    12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
    25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
    50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
    100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{ 
    0%    {transform:scaleY(1)  rotate(0deg)}
    49.99%{transform:scaleY(1)  rotate(135deg)}
    50%   {transform:scaleY(-1) rotate(0deg)}
    100%  {transform:scaleY(-1) rotate(-135deg)}
}

/*----------------------- btn -----------------------*/
.btn {
    width: 240px;
    height: 60px;
    border-radius: var(--radius-ss);
    background-color: var(--primary);
    transition: transform .5s ease;
}
.btn.gray {
    background-color: var(--gray-400);
}
.btn a {
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn p {
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    color: var(--white);
}
.btn img {
    width: 20px;
    height: 20px;
    transition: transform .5s ease;
}

.btn:hover {
    transform: translateY(-4px);
}
.btn:hover img {
    transform: rotate(320deg);
}
.btn.no-rotate:hover img {
    transform: rotate(0);
}

/*----------------------- partner_list -----------------------*/
.partner_list {
    margin-top: 180px;
    display: flex;
    align-items: center;
    gap: 120px;
    overflow: hidden;
}
.partner_wrapper {
    display: flex;
    align-items: center;
    gap: 120px;
    flex-shrink: 0;
    animation: partner 15s infinite linear;
}
@keyframes partner {
    to {
        transform: translateX(calc(-100% - 120px));
    }
}
.partner_img {
    width: 100px;
    height: fit-content;
    flex-shrink: 0;
}

@media all and (max-width: 1600px) {
    /*-- footer --*/
    .f_l {
        gap: 120px;
    }
}

@media all and (max-width: 1400px) {
    /*-- header --*/
    .h_top {
        top: 0;
    }
    .h_logo {
        width: 110px;
    }
    .h_nav > ul {
        gap: 24px;
    }

    /*-- footer --*/
    .f_l {
        flex-direction: column;
        gap: 40px;
    }
    .f_logo {
        width: 200px;
    }

    /*-- partner_list --*/
    .partner_list {
        margin-top: 140px;
    }
    .partner_img {
        width: 90px;
    }
}

@media all and (max-width: 1024px) {
    /*-- footer --*/
    .footer {
        margin-top: 140px;
        padding: 90px 0;
    }
    .f_logo {
        width: 140px;
    }
    .top_btn {
        width: 50px;
        height: 50px;
    }
    .top_btn img {
        width: 24px;
        height: 24px;
    }
    .f_flex {
        gap: 40px;
    }
    .footer *,
    .f_flex p, 
    .f_flex a {
        font-size: var(--ft16);
    }
    .f_flex p.bold {
        width: 90px;
    }
    .f_flex address {
        padding-right: 40px;
    }
    .f_btm {
        margin-top: 100px;
    }

    /*-- partner_list --*/
    .partner_list {
        margin-top: 100px;
    }
}

@media all and (max-width: 768px) {
    /*-- header --*/
    .h_top {
        padding: 14px 0;
    }
    .h_logo {
        width: 90px;
    }
    .h_nav {
        display: none;
    }

    .ham_btn {
        display: flex;
    }
    .ham_popup {
        display: flex;
    }

    /*-- footer --*/
    .footer {
        margin-top: 100px;
        border-radius: 0;
        padding: 50px 0;
    }
    .top_btn {
        width: 40px;
        height: 40px;
        position: absolute;
        right: 16px;
        bottom: 0;
    }
    .top_btn img {
        width: 18px;
        height: 18px;
    }
    .f_logo {
        width: 110px;
    }
    .f_add {
        margin-bottom: 20px;
    }
    .f_flex {
        flex-direction: column;
        gap: 14px;
    }
    .f_flex address {
        padding-right: 0;
        border: none;
    }
    .f_btm {
        margin-top: 60px;
        flex-direction: column;
        align-items: start;
        gap: 14px;
    }
    .f_btm * {
        font-size: var(--ft14);
    }
    .f_copy {
        flex-direction: column;
    }
    .f_copy, 
    .f_menu {
        gap: 5px 10px;
    }

    /*-- btn --*/
    .btn p {
        font-size: var(--ft16);
    }

    /*-- partner_list --*/
    .partner_list {
        margin-top: 60px;
        gap: 40px;
    }
    .partner_wrapper {
        gap: 40px;
    }
    @keyframes partner {
        to {
            transform: translateX(calc(-100% - 40px));
        }
    }
    .partner_img {
        width: 50px;
    }
}