@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

:root {
    --bg-yellow: #FF969A;
    --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: space-between;
    align-items: center;
    background-color: var(--bg-yellow);
}

.navList {
    display: flex;
    width: 60%;
    justify-content: end;
}

.navItem {
    width: 33.33333%;
    position: relative;
}

.logo {
    width: 50%;

}

.navItem:nth-child(1)::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 1.5px;
    height: 40%;
    background-color: var(--txt);
}

.navItem:last-child::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 90%;
    border-radius: 0 0 0 20px;
    background: linear-gradient(90deg,
            rgba(254, 122, 136, 1) 0%,
            rgba(255, 191, 179, 1) 30%,
            rgba(255, 191, 179, 1) 70%,
            rgba(254, 122, 136, 1) 100%);

    filter: drop-shadow(0px 3px 1px rgb(0, 0, 0, 0.1));
}

.navLink {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    display: block;
    text-align: center;
    padding: 5% 0 10% 0;
    background-color: var(--bg-yellow);
    transition: all .3s;
    color: var(--txt);

}

.navLink:hover {
    opacity: .7;
    /* transform: translateY(2%); */
}

.navItem:nth-child(3) .navLink {
    font-weight: bold;
    background: transparent;
}





@media (max-width:768px) {
    .logo {
        width: 100%;

    }

    .navList {
        width: 70%;
        /* flex: 1 1 auto; */
        flex-shrink: 0;
    }

    .navItem {
        width: 100%;
        border: none;
    }

    .navLink {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        padding: 5% 0;
    }

    .navItem:nth-child(3) .navLink {
        padding: 5% 0 10% 10%;
    }

    .navItem:last-child::after {
        height: 85%;
        border-radius: 0 0 0 15px;
    }
}