@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;
    background: linear-gradient(to right, rgb(209, 81, 172) 0%, rgb(211, 82, 174) 30%, rgb(211, 82, 174) 70%, rgb(209, 81, 172) 100%);

}

.navList {
    display: flex;
    max-width: 800px;
    align-items: center;
    margin: 0 auto;
}

.navItem {
    width: 33.3333%;
    text-align: center;
    border-right: 2px solid #fff;
}

.navItem:nth-child(1) {
    width: 30%;
}

.navItem:last-child {
    width: 27%;
    border: none;
}

.navLink {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all .3s;
    display: block;
    padding: 0 5px;
}

.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: #D352AE;
        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:nth-child(1) {
        width: 100%;
    }

    .navItem:last-child {
        width: 100%;
    }

    .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: #D352AE;
        ;
        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: #D352AE;

    }

    .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;
    }

}