﻿* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: 'Microsoft JhengHei', snas-serif;
}

img {
    width: 100%;
    vertical-align: middle;
}

body {
    max-width: 1400px;
    margin: auto;
}

header{
    position: relative;
}

.navbar {
    display: none;
    background-color: #D9D9D9;
}

    .navbar ul {
        display: flex;
        list-style: none;
        width: max-content;
        margin: auto;
    }

    .navbar li {
        border-left: 1px solid #fff;
    }

.navbar li:last-of-type {
    border-right: 1px solid #fff;
}

.navbar ul li a {
    display: inline-block;
    padding: 0.5em 1.5em;
    color: black;
    font-family: 'Microsoft JhengHei', snas-serif;
    font-weight: bold;
}

    .navbar ul li a:hover {
        color: #000;
        background-color: #CACACA;
    }

/* #region 漢堡頁*/
.burger_area {
    position: absolute;
    background-color: #fff;
    /*display: none;*/
    left: 0;
    top: 3.2em;
    width: 100%;
    padding: 0 4%;
    height: 0;
    min-height: 0;
    font-size: 19.5px;
    font-weight: bold;
    color: #000000;
    z-index: 100;
    box-sizing: border-box;
    overflow: hidden;
    transform-origin: top;
    transition: .5s ease;
}

    .burger_area a {
        color: #000000;
        display: block;
        padding: .6em 0;
        transition: .3s;
        border-bottom: 2px solid #D9D9D9;
    }

    .burger_area > ul > li > a:hover {
        color: #fff;
        background-color: #D9D9D9;
    }

.burger_logon {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    padding: 6% 0;
    vertical-align: top;
}

    /*.burger_logon li {
        padding: 0 4%;
    }*/

    .burger_logon a {
        padding: 0;
    }

    /* .burger_logon li + li {
        border-left: 1px solid #000000;
    }*/

    .burger_logon a {
        display: flex;
        align-items: center;
        margin: auto;
        width: fit-content;
        text-align: center;
        border: 0;
    }

input[type="checkbox"] {
    display: none;
}

input:checked ~ .burger_area {
    height: calc(100vh - 3.2em);
    min-height: 630px;
}

label {
    width: 2rem;
    height: 2rem;
    display: block;
    position: relative;
    cursor: pointer;
    margin: 1rem;
}

    label span {
        position: absolute;
        width: 2rem;
        height: 0.15rem;
        background: #009877;
        border-radius: 0.1rem;
        transition: all 0.3s;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

input:checked ~ label span:first-child {
    left: 0%;
    top: 50%;
    transform: rotate(45deg);
}

input:checked ~ label span:nth-child(2n) {
    width: 0;
}

input:checked ~ label span:last-child {
    left: 0%;
    top: 50%;
    transform: rotate(-45deg);
}

label > span:first-child {
    top: calc(50% - 0.5rem);
}

label > span:nth-child(3) {
    top: calc(50% + 0.5rem);
}

.icon_question {
    width: 20px;
}

.icon_contactus {
    width: 20.6px;
}

.icon_logon {
    width: 15.3px;
}
/* #endregion */

.top_area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logon_btn {
    display: none;
    margin-right: 2em;
}

/*    .logon_btn li {
        padding: 0 10px;
    }*/

    .logo a {
        display: block;
        background: url('../images/logo.svg') no-repeat top left;
        background-size: contain;
        width: auto;
        aspect-ratio: 510/50;
        max-width: 230px;
        text-indent: 101%;
        white-space: nowrap;
        overflow: hidden;
        margin-left: 10px;
    }

.logon_btn ul {
    display: flex;
    align-items: center;
    margin: auto;
}

.logon_btn a,
#LabeldesktopEmpID {
    display: flex;
    align-items: center;
    color: #000;
    font-weight: 600;
}

    #LabeldesktopEmpID{
        cursor: pointer;
    }
    /*.logon_btn li + li {
        border-left: 1px solid #000000;
    }*/
    .footercontent {
        background-color: #3A8478;
        color: #fff;
        padding: 2% 2% 2% 4%;
        text-align: center;
    }

.trtrcuinfo {
    line-height: 1.8em;
    font-size: 14px;
}

.copyright {
    font-size: 10px;
}

.email {
    text-decoration: underline;
    vertical-align: baseline;
}

.burger_area .logout_btn_mb {
    margin: 15% auto 0;
    font-size: 26px;
    text-align: center;
    width: 60%;
    max-width: 280px;
    border: 4px solid #009877;
    border-radius: 40px;
    color: #484848;
}


.logout {
    display: none;
    position: absolute;
    background-color: #E5F2F7;
    right: -1.5em;
    top: 1em;
    border-radius: 20px;
    margin: 1em 0;
}

    .logout::after {
        display: block;
        position: absolute;
        content: '';
        width: 0;
        height: 0;
        border: .7em solid;
        border-color: transparent transparent #E5F2F7 transparent;
        top: -1.2em;
        left: 6em;
    }

.logout_area{
    position: relative;
}

.logoutlink{
    display: block;
    width: 5em;
    margin: 1em 1em;
    padding: .4em 1.5em;
    font-size: 20px;
    border: none;
    background-color: #fff;
    border-radius: 20px;
    font-weight: 600;
    justify-content: center;
}


.logout_icon{
    width: 24px;
    padding-right: 1em;
}
.logout_icon_mb {
    width: 26px;
    padding: .2em 1em 0 0;
    vertical-align: top;
}
.logout_area:hover .logout {
    display: block;
}

@media screen and (min-width:376px) {
    .logo a {
        max-width: 300px;
        margin: 6% 0 5% 4%;
    }
}

@media screen and (min-width:680px) {
    .logo a {
        max-width: 350px;
    }
}

@media screen and (min-width:769px) {
    .logo a {
        max-width: 400px;
    }

    .burger_area {
        display: none;
    }
    .footercontent {
        background-color: #3A8478;
        color: #fff;
        padding: 2% 2% 2% 4%;
        /*display: flex;
        justify-content: space-between;*/
        align-items: end;
        text-align: left;
    }

    .trtrcuinfo {
        line-height: 1.8em;
        font-size: 20px;
    }

    .logon_btn {
        display: flex;
    }

    .navbar {
        display: block;
    }

    .burger {
        display: none;
    }
    .logon_btn a,
    #LabeldesktopEmpID,
    .logon_btn span,
    .navbar ul li a {
        font-size: 14px;
    }
    .icon_question {
        width: calc(25px*.8);
    }

    .icon_contactus {
        width: calc(25.6px*.8);
    }

    .icon_logon {
        width: calc(20.3px*.8);
    }

    /*.logon_btn li {
        padding: 0 15px;
    }*/

    .trtrcuinfo {
        font-size: 16px;
    }
    .copyright {
        font-size: 13px;
        text-align: right;
    }
    .logout::after {
        display: block;
        position: absolute;
        content: '';
        width: 0;
        height: 0;
        border: .7em solid;
        border-color: transparent transparent #E5F2F7 transparent;
        top: -1.2em;
        left: 4em;
    }

    /*防止下滑時很難選到*/
    .logout::before {
        display: block;
        position: absolute;
        content: '';
        width: 7em;
        height: 1.8em;
        top: -1.2em;
        left: 1em;
    }
}

@media screen and (min-width:900px) {
    .logo a {
        max-width: 450px;
    }
    .copyright {
        font-size: 15px;
    }
    
}

@media screen and (min-width:1000px) {
    .logo a {
        max-width: 470px;
    }
    .logon_btn a,
    #LabeldesktopEmpID,
    .navbar ul li a,
    .trtrcuinfo {
        font-size: 18px;
    }
    .logout::after {
        left: 5em;
    }
    .logout::before {
        width: 9.5em;
        height: 2em;
    }
}

@media screen and (min-width:1200px) {
    .logo a {
        max-width: 562px;
    }
    .logon_btn a,
    #LabeldesktopEmpID,
    .trtrcuinfo,
    .navbar ul li a {
        font-size: 20px;
    }
    .icon_question {
        width: 25px;
    }

    .icon_contactus {
        width: 25.6px;
    }

    .icon_logon {
        width: 20.3px;
    }
    .logout::after {
        left: 6em;
    }
    .logout::before {
        width: 10.5em;
        height: 2em;
    }
    /*.logon_btn li {
        padding: 0 20px;
    }*/
}
