@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

:root {
    --bg-color: #EF6D8F;
    --hover-yellow: #fca6a6;
    --txt: #fff;
    --yellow: #FFE133;
}

nav {
    position: sticky;
    margin: 0 auto;
    top: 0;
    /* 依照設計稿 1920 或 1000【兩者擇一】 */
    /* 不用的請【註解】  即可 */
    max-width: 1000px;
    font-family: "Noto Sans TC", sans-serif;
    z-index: 100;

}

.navControl {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    padding: 1% 0;
}

.navList {
    display: flex;
    width: 60%;
    justify-content: end;
    z-index: 1;
}

.navItem {
    width: 33.33333%;
    position: relative;
}

.logo {
    width: 35%;
    padding-left: 15%;
}

.navLink {
    position: relative;
    z-index: 1;
    font-size: 2.25rem;
    display: block;
    text-align: center;
    padding: 2.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);
}

.txt-yellow {
    color: var(--yellow);
}

.SP_show {
    display: block;
}

.SP_btn {
    position: relative;
    top: 1%;
    right: 5%;
    width: 70px;
    height: 70px;
    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;
}

.navList {
    width: 70%;
    /* flex: 1 1 auto; */
    flex-shrink: 0;
}

.navItem {
    width: 100%;
    border: none;
}

.navLink::before {
    width: 0 !important;
}


.navControl_SP {
    position: absolute;
    right: 5%;
    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;
} */


@media (max-width:768px) {
    .logo {
        width: 20%;
        display: block;
        object-fit: contain;
        padding-left: 5%;
    }

    .navLink {
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        padding: 4% 0;
    }

    .SP_btn {

        width: 50px;
        height: 50px;

    }





}