@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');
:root{
    --navBG:#A41414;
    --navBG_hover:#ba1818;
}
nav {
    position: sticky;
    margin: 0 auto;
    top: 0;
    /* 依照設計稿 1920 或 1000【兩者擇一】 */
    /* 不用的請【註解】  即可 */
    max-width: 1000px;
    font-family: "Noto Sans TC", sans-serif;
    z-index: 20;
}

.navControl{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--navBG);
    
}
.logo{
    width: 80%;
    margin-left: 5%;
}
.navList {
    display: flex;
width: 80%;
}

.navItem {
    width: 33.3333%;
}



.navLink {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    text-align: center;
    padding: 8% 0;
    background-color: var(--navBG);
    transition: all .3s;
    color: #fff;
}

.navLink:hover {
    background-color: var(--navBG_hover);
}
.navLink--green:hover {
    background-color: #138872;
}

.txt_yellow {
    color: #F7FAAB;
}
.SP_show{
    display: none;
}
@media (max-width:768px) {
    .navList {
        flex-direction: column;
        clip-path: inset(0 0 100% 0);
        position: absolute;
        top: 100%;
        width: 100%;
        background-color: var(--navBG);
        transition: all .3s;
    }

    .navList--active {
        clip-path: inset(0 0 0% 0);
    }

    .navItem {
        width: 100%;
        border: none;
        border-top: 2px dashed #fff;
    }

    .navItem:nth-child(1) {
        border-radius: 0 0 0 0;
    }

    .navItem:nth-child(3) {
        border-radius: 0 0 0 0;
    }

    .navLink {
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        padding: 2.5% 0;
    }

    .SP_show{
        display: block;
    }
    .navConrtol_SP{
        background-color: var(--navBG);
        padding: 2.5% 0;
    }
    .logo{
        width: 45%;
        margin-left: 2%;
    }
    .SP_btn{
        position: absolute;
        width: 30px;
        height: 30px;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    .SP_btn span{
        position: absolute;
        width: 100%;
        height: 7.5%;
        background-color: #fff;
        border-radius: 5px;
        transition: all .3s;
    }
    .SP_btn span:nth-child(1){
        top: 19%;
    }
    .SP_btn span:nth-child(2){
        top: 46%;
    }
    .SP_btn span:nth-child(3){
        top: 76%;
    }
    .SP_btn--active span:nth-child(1){
        top: 50%;
        rotate: 225deg;
    }
    .SP_btn--active span:nth-child(2){
        opacity: 0;
    }
    .SP_btn--active span:nth-child(3){
        top: 50%;
        rotate: -225deg;
    }
}