@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

:root {
    --bg-light: #fff;
    --dark: #070707;
    --hover-title: #ffb330;
    --red: #AF0108;
}

nav {
    position: sticky;
    margin: 0 auto;
    top: 0;
    /* 依照設計稿 1920 或 1000【兩者擇一】 */
    /* 不用的請【註解】  即可 */
    max-width: 1000px;
    font-family: "Noto Sans TC", sans-serif;
    z-index: 10;
}

.navList {
    display: flex;

}

.navLink {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    text-align: center;
    padding: 2% 0 3% 0;
    transition: all .3s;
    color: var(--red);
}

.navLink:hover {
    color: var(--hover-title);
}


.navList {
    flex-direction: column;
    clip-path: inset(0 0 100% 0);
    position: absolute;
    top: 100%;
    width: 100%;
    background-color: rgb(255, 255, 255, .9);
    transition: all .3s;

}

.navList--active {
    clip-path: inset(0 0 0% 0);
}

.navItem {
    width: 100%;
    border: none;
    border-top: 2px dashed var(--red);
}

.navItem:nth-child(1) {
    border-radius: 0 0 0 0;
}

.navItem:nth-child(3) {
    border-radius: 0 0 0 0;
}



.SP_show {
    display: block;
}

.navConrtol_SP {
    background-color: var(--bg-light);
}

.logo {
    width: 20%;
    margin-left: 5%;
}

.SP_btn {
    position: absolute;
    width: 50px;
    height: 50px;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.SP_btn span {
    position: absolute;
    width: 100%;
    height: 7.5%;
    background-color: var(--red);
    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;
}

@media (max-width:768px) {
    .navConrtol_SP {
        padding: 2.5% 0;
    }
    .logo {
        width: 32.5%;
        margin-left: 2.5%;
    }
    
    .navLink {
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 1.5px;
    }

    .SP_btn {
        width: 35px;
        height: 35px;

    }
}