@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

:root {
    --bg: #006833;
    --hover: #02783b;
    --white: #fff;
}

nav {
    position: sticky;
    margin: 0 auto;
    top: 0;
    /* 依照設計稿 1920 或 1000【兩者擇一】 */
    /* 不用的請【註解】  即可 */
    max-width: 1000px;
    font-family: "Noto Sans TC", sans-serif;
    z-index: 12;
}

.navControl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg);

}

.navList {
    display: flex;
    width: 60%;
}

.navItem {
    width: 33.3333%;
    position: relative;
}


.navLink {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    text-align: center;
    padding: 10% 0;
    background-color: var(--bg);
    transition: all .3s;
    color: var(--white);
}

.navLink:hover {
    background-color: var(--hover);
}

.logo {
    width: 55%;
    margin-left: 2%;
}

.navItem:nth-child(1)::after,
.navItem:nth-child(2)::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 40%;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
}

@media (max-width:768px) {

    .navItem:nth-child(1)::after,
    .navItem:nth-child(2)::after {
        opacity: 0;

    }

    .navList {
        flex-direction: column;
        clip-path: inset(0 0 100% 0);
        position: absolute;
        top: 100%;
        width: 100%;
        background-color: var(--bg);
        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(--bg);
        padding: 4% 0;
    }

    .logo {
        width: 40%;
        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: var(--white);
        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;
    }
}