@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&family=Noto+Sans+TC:wght@100..900&display=swap');

/* DISABLE */
.nav_item:nth-child(4) li:first-child {
    display: none;
}

.k_company_menu_left {
    flex-direction: row;
    display: flex;
    align-items: center;
}

.mobile_menu_btn {
    cursor: pointer;
    display: none;
}

.mobile_menu_btn i {
    font-size: 28px;
    color: white;
}

header {
    top: 0;
    width: 100%;
    padding: 40px 0 0;
    z-index: 99;
    background-color: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    display: flex;
    position: absolute;
}

header.fixed {
    padding: 0 50px;
    z-index: 99;
    border-bottom: 1px solid rgb(230, 230, 230);
    background-color: white;
    align-items: initial;
    justify-content: initial;
    flex-direction: row;
    position: fixed;
}

header.fixed>a {
    padding: 15px 0;
}

header.fixed .k_company_logo {
    margin-bottom: 0;
    min-width: auto;
    max-width: 150px;
}

header.fixed>nav>ul>li>a {
    padding: 0;
    color: var(--hovering-color) !important;
}

header.fixed .nav_item {
    padding: 20px 0;
    border-bottom: 0;
    align-items: center;
    display: flex;
}

header.fixed .sub_ul {
    top: 68px;
}

header.fixed .nav_menu {
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
}

header.fixed .k_nav_toolbar {
    top: auto;
    right: auto;
    align-items: center;
    position: relative;
}

header.fixed .k_nav_toolbar_item {
    border-color: var(--hovering-color);
}

header.fixed .k_nav_toolbar_item i {
    color: var(--hovering-color);
}

header.fixed .k_nav_toolbar_item:hover i {
    color: white;
}

header.fixed .k_nav_toolbar_item ul {
    top: 70px;
}

.k_company_logo {
    margin-bottom: 30px;
    width: 100%;
    max-width: 460px;
}

nav {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    justify-content: center;
    display: flex;
}

nav a {
    font-size: 18px;
    color: white !important;
}

.nav_menu {
    column-gap: 60px;
    flex-direction: row;
    display: flex;
    position: relative;
}

.nav_item {
    border-bottom: 8px solid transparent;
    position: relative;
    cursor: pointer;
}

.nav_item>a {
    padding: 0 8px 10px;
    display: flex;
}

.nav_item:hover {
    border-bottom: 8px solid white;
}

@media screen and (min-width: 1200px) {
    .nav_item:hover .sub_ul {
        display: flex;
    }
}


/* .nav_item:last-child ul {
    right: 0;
    left: auto;
} */

.nav_item:nth-child(4) .sub_ul {
    min-width: 320px;
}

.sub_ul {
    left: 0;
    top: 45px;
    padding-top: 20px;
    padding-bottom: 30px;
    min-width: 240px;
    background-color: #bec4d4;
    flex-direction: column;
    position: absolute;
    display: none;
}

.sub_ul>li>a {
    padding: 10px 0 0 30px;
    width: 100%;
    font-size: 16px;
}

.sub_ul>li.hovering>a {
    color: var(--hovering-color) !important;
}

.sub_ul>li {
    width: 100%;
    flex-direction: row;
    display: flex;
}

.sub_ul li:hover .sub_ul_2 {
    display: flex !important;
}

.sub_ul_2 {
    top: 0;
    left: 100%;
    padding-top: 20px;
    padding-bottom: 30px;
    width: 100%;
    min-width: 265px;
    background-color: #bec4d4;
    flex-direction: column;
    position: absolute;
    display: none;
}

.sub_ul_2 li {
    width: 100%;
    flex-direction: row;
    display: flex;
}

.sub_ul_2 li a {
    padding: 10px 30px 0;
    width: 100%;
    font-size: 16px;
}

.sub_ul_2>li.hovering>a {
    color: var(--hovering-color) !important;
}

.sub_ul_2 li:hover .sub_ul_3 {
    display: flex !important;
}

.sub_ul_3 {
    top: 0;
    left: 100%;
    padding-top: 20px;
    padding-bottom: 30px;
    width: 100%;
    height: 120%;
    min-width: 240px;
    background-color: #bec4d4;
    flex-direction: column;
    position: absolute;
    display: none;
}

.sub_ul_3 li {
    width: 100%;
    flex-direction: row;
    display: flex;
}

.sub_ul_3>li.hovering>a {
    color: var(--hovering-color) !important;
}

.k_nav_toolbar {
    top: 40px;
    right: 40px;
    column-gap: 10px;
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.k_nav_toolbar_item {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    border: 1px solid white;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.k_nav_toolbar_item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k_nav_toolbar_item i {
    font-size: 16px;
    color: white;
}

.k_nav_toolbar_item:hover {
    background-color: var(--hovering-color);
    transition: all .3s ease-in-out;
}

.k_nav_toolbar_item.active ul {
    display: block;
}

.k_nav_toolbar_item ul {
    top: 50px;
    display: none;
    position: absolute;
}

.k_nav_toolbar_item ul li {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: all .3s ease-in-out;
    color: var(--hovering-color);
    background-color: white;
    text-align: center;
}

.k_nav_toolbar_item ul li:hover {
    transition: all .3s ease-in-out;
    background-color: var(--hovering-color);
    color: white;
}

.k_nav_toolbar_item ul li:nth-child(2) {
    font-family: "Noto Sans TC", sans-serif;
}

.k_nav_toolbar_item ul li:nth-child(3) {
    font-family: "Noto Sans SC", sans-serif;
}

footer {
    padding: 4% 8%;
    background-color: #131313;
}

.k_footer {
    grid-template-columns: 1fr auto 3.3fr;
    display: grid;
}

.k_footer_logo {
    margin-bottom: 60px;
}

.k_footer_logo img {
    width: 100%;
    max-width: 150px;
}

.k_footer_contact_item {
    margin-bottom: 15px;
    color: white;
    flex-direction: row;
    align-items: center;
    display: flex;
}

.k_footer_contact_item img {
    width: 100%;
    max-width: 16px;
}

.k_footer_contact_item:first-child {
    align-items: flex-start;
}

.k_footer_contact_item>div {
    margin-left: 10px;
}

.k_footer_contactus_btn {
    margin-top: 40px;
    margin-right: 90px;
    border-radius: 50px;
    border: 1px solid white;
}

.k_footer_contactus_btn a {
    padding: 15px 20px;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k_footer_contactus_btn:hover a {
    border-radius: 50px;
    color: var(--hovering-color);
    background-color: white;
    transition: all .3s ease-in-out;
}

.k_footer_line {
    margin: 0 100px 0 60px;
    width: 1px;
    background-color: var(--text-color);
}

.k_footer_sitemap {
    justify-content: space-between;
    flex-direction: row;
    display: flex;
}

.k_footer_sitemap_item {
    row-gap: 40px;
    flex-direction: column;
    display: flex;
}

.k_footer_sitemap_subitem {
    row-gap: 15px;
    flex-direction: column;
    display: flex;
}

.k_footer_sitemap_subitem h6 {
    font-size: 11px;
    text-transform: uppercase;
    color: white;
}

.k_footer_sitemap_subitem a {
    font-weight: 100;
    color: #d7d6d6;
}

.k_footer_sitemap_subitem a:hover {
    text-decoration: underline;
}

.k_footer_bottom {
    margin-top: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    display: flex;
}

.k_footer_bottom span {
    font-size: 14px;
    color: white;
}

.k_footer_social {
    column-gap: 15px;
    flex-direction: row;
    display: flex;
}

.k_footer_social_item a {
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all .3s ease-in-out;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k_footer_social_item a:hover {
    transition: all .3s ease-in-out;
    background-color: var(--main-color);
}

.k_footer_social_item a i {
    font-size: 20px;
    color: #131313;
}

.k_footer_social_item a:hover i {
    transition: all .3s ease-in-out;
    color: var(--white-color);
}

@media screen and (max-width: 1600px) {
    header.fixed .nav_menu {
        max-width: 960px;
    }

    header.fixed .sub_ul {
        top: 65px;
    }

    header.fixed>nav>ul>li>a {
        font-size: 16px;
    }
}

@media screen and (max-width: 1400px) {
    .nav_menu {
        column-gap: 40px;
    }

    header.fixed .nav_menu {
        max-width: 760px;
        column-gap: 25px;
    }
}

@media screen and (max-width: 1199px) {

    .sub_ul_2,
    .sub_ul_2 li {
        top: auto;
        left: auto;
        width: auto;
        padding: 0;
        min-width: auto;
        background-color: transparent;
        position: relative;
        display: none;
    }

    .mobile_menu_btn {
        display: flex;
    }

    header {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .k_company_menu_left {
        flex-direction: row-reverse;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header .k_nav_toolbar {
        width: 100%;
        display: none;
    }

    header.active .k_company_logo {
        display: none;
    }

    header.active .k_nav_toolbar {
        right: 20px;
        bottom: 20px;
        top: initial;
        display: flex;
        position: absolute;
    }

    .k_nav_toolbar_item.active ul {
        bottom: 40px;
        top: initial;
    }

    .k_nav_toolbar_item ul li {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    header.fixed2 .k_company_logo {
        margin-bottom: 0;
        min-width: auto;
        max-width: 110px;
    }

    header.fixed2.active .k_company_logo {
        display: none;
    }

    header.fixed2 .mobile_menu_btn>i {
        color: var(--hovering-color);
    }

    header.fixed2.active .mobile_menu_btn>i {
        color: var(--white-color);
    }

    header.fixed2.active .k_nav_toolbar_item i header.fixed2.active .mobile_menu_btn>i {
        color: var(--white-color);
    }

    header.fixed2>nav>ul>li>a {
        padding: 0;
        color: var(--white-color) !important;
    }

    header.fixed2>a {
        padding: 15px 0;
    }

    header.fixed2 {
        padding: 15px 20px;
        z-index: 99;
        border-bottom: 1px solid rgb(230, 230, 230);
        background-color: white;
        align-items: initial;
        justify-content: initial;
        justify-content: space-between;
        flex-direction: row;
        position: fixed;
    }

    .k_company_logo {
        margin-bottom: 0;
    }

    .k_company_menu_left {
        width: 100%;
        z-index: 999;
    }

    header.active {
        height: 100%;
        flex-direction: column;
    }

    header.active nav {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header.active .k_nav_toolbar {
        display: flex;
        position: absolute;
    }

    nav {
        width: 100%;
        height: 100vh;
        left: 0;
        top: 0;
        background-color: var(--hovering-color);
        position: absolute;
        display: none;
    }

    .nav_menu {
        width: 100%;
        height: 500px;
        overflow-y: auto;
        flex-direction: column;
        align-items: center;
    }

    .nav_item {
        margin-bottom: 20px;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }

    .nav_item,
    .nav_item:hover {
        border-bottom: 0;
    }

    .nav_item>a {
        font-size: 16px;
        font-weight: 600;
        padding: 0;
        text-transform: uppercase;
    }

    .nav_item.active .sub_ul {
        display: flex;
    }

    .sub_ul.active {
        display: flex;
    }

    .sub_ul {
        padding: 10px;
        top: 0;
        min-width: initial;
        position: relative;
        background-color: transparent;
    }

    .sub_ul>li {
        margin-bottom: 5px;
        justify-content: center;
    }

    .sub_ul>li>a {
        padding: 0;
        font-size: 14px;
        width: auto;
        text-align: center;
        border-bottom: 1px solid transparent;
    }

    .sub_ul>li>a:hover {
        color: var(--white-color);
        border-bottom: 1px solid white;
    }

    .sub_ul>li.hovering>a {
        color: var(--white-color) !important;
    }
}