
.header {
    height: 100px;
    width: 100%;
    padding: 0 20px;
    margin: 0 70px;
    color: #222D32;
}

.header .logo {
    /*line-height: 100px;*/
    float: left;
    font-family: 'Microsoft JhengHei';
    /*text-transform: uppercase;*/
    display: flex;
    align-items: center;
    height: 100%;
}
.header .logo a {
    line-height: 65px;
}
.header .logo img {
    width: auto;
    height: 60px;
}

.header ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.header li {
    line-height: 100px;
    display: inline-block;
}

.header li ul a {
    display: block;
    margin: 16px;
}

.header li a {
    display: block;
    color: #000;
    text-align: center;
    text-decoration: none;
    padding: 0 8px;
    font-size: 20px;
    font-weight: bold;
    transition: .4s;
}

.header li a:hover {
    text-decoration: none;
    color: #000;
}
.header ul ul {
    display: none;
}

.header li:hover ul {
    display: block;
    position: absolute;
    background-color: rgba(0, 0, 0, 1);
    z-index: 999;
}
.header li:hover ul a {
    color: #FFF;
    text-align: left;
    height: 40px;
    line-height: 39px;
}

.show-menu-btn, .hide-menu-btn {
    transition: .4s;
    font-size: 30px;
    cursor: pointer;
    display: none;
}
.show-menu-btn .fa {
    transition: .4s;
}
/*.menu a:hover, .show-menu-btn:hover, .hide-menu-btn:hover {
    color: #222D32;
}*/
.show-menu-btn .fa:hover {
    color: #222D32;
}

.show-menu-btn {
    float: right;
}

.show-menu-btn i {
    line-height: 90px;
}

#chk {
    position: absolute;
    visibility: hidden;
    z-index: -1000;
}

@media screen and (max-width: 1100px) {
    .header {
        margin: 0;
    }
    .header img {
        width: 200px;
        margin: 12px;
    }

    .header .show-menu-btn, .hide-menu-btn {
        display: block;
    }

    .header .menu {
        position: fixed;
        width: 100%;
        max-width: 300px;
        height: 100%;
        background: #333;
        right: -100%;
        top: 0;
        text-align: center;
        padding: 80px 0;
        line-height: normal;
        transition: .6s;
        z-index: 1000000;
        overflow-y: auto;
    }
    .header .menu li {
        float: none;
        line-height: 10px;
        display: block;
    }
    .header .menu a {
        display: block;
        padding: 20px;
        font-size: 20px;
        font-weight: bold;
        color: #FFF;
    }
    .header li:hover ul {
        position: static;
        height: 210px;
    }
    .header li:hover ul a {
        text-align: center;
        line-height: 0;
        margin: 10px 0;
    }

    .header .hide-menu-btn {
        position: absolute;
        top: 40px;
        right: 40px;
        color: #FFF;
    }

    /* .header .fa {
        color: #FFF;
    } */

    #chk:checked ~ .menu {
        top: 0;
        right: 0;
    }
}

@media screen and (max-width: 992px) {
    .header {
        height: 70px;
    }
    .header .logo img {
        width: auto;
        height: 50px;
    }
    .show-menu-btn i {
        line-height: 70px;
    }
}

