nav {
    position: sticky;
    margin: 0 auto;
    top: 0;
    /* 依照設計稿 1920 或 1000【兩者擇一】 */
    /* 不用的請【註解】  即可 */
    max-width: 1000px;
    z-index: 999;
    background-color: #FF3BAC;
    height: 10vw;
}

.navbar {
    position: relative;
    display: flex;
    height: 100%;
    justify-content: flex-end;
}

.logo {
    width: 25%;
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
}

.navItems {
    width: 55%;
    display: flex;

    li {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3.5vw;
        font-weight: 600;
        transition: opacity 0.3s;

        a {
            color: yellow;
        }
    }

    li:hover {
        opacity: 0.7;
    }
}

@media screen and (min-width: 768px) {
    nav {
        max-height: 70px;
    }

    .navItems {
        li {
            font-size: 2rem;
        }
    }
}