@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

nav {
    position: sticky;
    margin: 0 auto;
    top: 0;
    font-family: "Noto Sans TC", sans-serif;
    /* 依照設計稿 1920 或 1000【兩者擇一】 */
    /* 不用的請【註解】  即可 */
    max-width: 1920px;
    background-color: #CC3D72;
    padding: 1% 0;
    z-index: 10;
}

.navList {
    display: flex;
    max-width: 800px;
    align-items: center;
    margin-left: auto;
}

.navItem {
    width: 25%;
    text-align: center;
    border-right: 2px solid #fff;
}

.navItem:last-child {
    border: none;
}

.navLink {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all .3s;
    display: block;
}

.txt-yellow {
    color: #F9F30D;
}

.navLink:hover {
    opacity: 0.8;
    transform: translateY(2.5px);
}



@media (max-width:768px) {

    nav {
        padding: 0;
        background-color: transparent;
    }

    .navList {
        flex-direction: column;
        background-color: #CC3D72;
        clip-path: inset(0 0 100% 0);
        max-height: 0px;
        transition: all .3s;
        position: absolute;
        top: 0;
        width: 100%;
    }

    .navList--active {
        clip-path: inset(0 0 0 0);
        max-height: 500px;
    }

    .navItem {
        width: 100%;
        text-align: center;
        border-right: none;
        border-bottom: 2px dashed #fff;
    }

    .navLink {
        padding: 2.5% 0;
        font-size: 1.15rem;
    }

    .SPicon {
        display: block;
        position: fixed;
        width: 30px;
        height: 30px;
        top: 1%;
        right: 4%;
        z-index: 12;
        background-color: #CC3D72;;
        border-radius: 3px;
    }

    .SPicon span {
        position: absolute;
        width: 80%;
        left: 10%;
        height: 7%;
        border-radius: 3px;
        background-color: #fff;
        transition: all .3s;
    }

    .SPicon span:nth-child(1) {
        top: 21.5%;
    }

    .SPicon span:nth-child(2) {
        top: 49%;
    }

    .SPicon span:nth-child(3) {
        top: 75.5%;
    }

    .SPicon--active{
        background-color: #CC3D72;
      
    }
    .SPicon--active span{
        background-color: #fff;
    }
    .SPicon--active span:nth-child(1) {
        top: 50%;
        rotate: -225deg;
    }

    .SPicon--active span:nth-child(2) {
        top: 50%;
        opacity: 0;
    }

    .SPicon--active span:nth-child(3) {
        top: 50%;
        rotate: 225deg;
    }

}