/* 導覽 以下才有使用到的*/

.header {
    position: sticky;
    left: 0%;
    top: 0%;
    margin: 0 auto;
    /* 依據開版寬度 */
    max-width: 1000px;
    z-index: 999;
}

.w-100 {
    width: 100%;
}

.nav {
    /* 自行修改 */
    background-color: #AE90CC;
}

.navControl {
    display: flex;
    margin: 0 auto;
    /* 可自行修改寬度 */
    max-width: 800px;
    padding: 15px 0;
}

.navControl a {
    display: block;
    text-align: center;
    width: 100%;
    cursor: pointer;
    /* 自行修改文字大小 顏色 */
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 6px;
    font-weight: 400;
    color: #fff;
}

.navControl li:nth-child(2) {
    border-left: 2px solid #fff;
}

.navControl li:nth-child(3) {
    border-left: 2px solid #fff;
}

.navControl li:nth-child(4) {
    border-left: 2px solid #fff;
}


/* 漢堡選單 */

.openbtn {
    position: fixed;
    z-index: 9999;
    /* 調整位置 【盡量使用 % ，RWD比較操作 】 */
    top: 10%;
    right: 3%;
    cursor: pointer;
    background-color: #AE90CC;
    box-shadow: 0px 0px 5px rgb(0, 0, 0, 0.5);
    border-radius: 15%;
    /* 改變大小 */
    width: 50px;
    height: 50px;
    display: none;
}

@media (max-width:768px) {
    .openbtn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 0;
        opacity: 0;
        visibility: hidden;
        z-index: -1;
        transition: all 0.8s;
    }

    .navControl {
        flex-direction: column;
        justify-content: center;
        height: 100vh;
        width: 100vw;
    }

    .navControl a {
        font-size: 1.8rem;
        margin-bottom: 3%;
    }

    .navControl li:nth-child(2),
    .navControl li:nth-child(3),
    .navControl li:nth-child(4) {
        border-left: none;
    }
}

.show {
    visibility: visible;
    opacity: 1;
    z-index: 2;
}


/*漢堡選單變化*/

.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 15%;
    height: 3px;
    border-radius: 2px;
    background-color: #ffffff;
    width: 70%;
}

.openbtn span:nth-of-type(1) {
    top: 25%;
}

.openbtn span:nth-of-type(2) {
    top: 48%;
}

.openbtn span:nth-of-type(3) {
    top: 70%;
}

.openbtn.active span:nth-of-type(1) {
    top: 35%;
    left: 5%;
    transform: translateY(6px) rotate(-45deg);
    width: 90%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 60%;
    left: 5%;
    transform: translateY(-6px) rotate(45deg);
    width: 90%;
}