@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

:root {
    --bg-color: #FF4E79;
    --hover-yellow: #fca6a6;
    --txt: #fff;
}

nav {
    position: sticky;
    margin: 0 auto;
    top: 0;
    /* 依照設計稿 1920 或 1000【兩者擇一】 */
    /* 不用的請【註解】  即可 */
    max-width: 1000px;
    font-family: "Noto Sans TC", sans-serif;
    z-index: 10;

}

.navControl {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
}

.navList {
    display: flex;
    width: 60%;
    justify-content: end;
}

.navItem {
    width: 33.33333%;
    position: relative;
}

.logo {
    width: 65%;
}

.navLink {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    display: block;
    text-align: center;
    padding: 5% 0;
    background-color: var(--bg-yellow);
    transition: all .3s;
    color: var(--txt);

}

.navLink:hover {
    opacity: .7;
    transform: translateY(2%);
}

.navItem:not(:last-child) .navLink::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 3px;
    height: 50%;
    background-color: var(--txt);
}




@media (max-width:768px) {
    .logo {
        width: 50%;
        display: block;
        object-fit: contain;
    }

    .navList {
        width: 70%;
        /* flex: 1 1 auto; */
        flex-shrink: 0;
    }

    .navItem {
        width: 100%;
        border: none;
    }

    .navLink::before {
        width: 0 !important;
    }

    .navLink {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        padding: 5% 0;
    }

    .navControl_SP {
        display: flex;
        justify-content: space-between;
    }


    .navList {
        flex-direction: column;
        clip-path: inset(0 0 100% 0);
        position: absolute;
        top: 100%;
        width: 100%;
        background: var(--bg-color);
        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;
        border: 0;
    }

    .navItem:nth-child(3) {
        border-radius: 0 0 0 0;
    } */

    .navLink {
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        padding: 4% 0;
    }

    .SP_show {
        display: block;
    }

    .SP_btn {
        position: relative;
        top: 1%;
        right: 5%;
        width: 50px;
        height: 50px;
        z-index: 1;
        border-radius: 5px;
        cursor: pointer;
    }

    .SP_btn span {
        position: absolute;
        width: 75%;
        left: 12.5%;
        height: 7.5%;
        background-color: #fff;
        border-radius: 5px;
        transition: all .3s;
    }

    .SP_btn span:nth-child(1) {
        top: 22%;
    }

    .SP_btn span:nth-child(2) {
        top: 46%;
    }

    .SP_btn span:nth-child(3) {
        top: 72%;
    }

    .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;
    }



}