/* ----------------------------------------------
    frame
------------------------------------------------*/

.top-menu {
    --height: 80px;
    background: rgba(255, 255, 255, 1);
    margin: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: var(--height);
    padding: 0;
    max-width: 1920px;
    cursor: pointer;
    display: flex;


    margin: auto;
    left: 0;
    right: 0;
    /*! box-shadow: 1px 1px 1px #555; */
    box-shadow: 8px 2px 45px rgba(0, 0, 0, 0.2), 86px 10px 30px rgba(0, 0, 0, 0.08);
    transition: all .5s ease;
}


.top-menu a{
    width: 100%;
    height: 100%;
}


.top-menu.hidden{
   /* 使用 calc 乘以 -1 來達成負數效果 */
    top: calc(var(--height) * -1 - 25px ) ;
}

@media screen and (max-width: 768px) {

.top-menu {
    --height: 50px;
    background: transparent;
    margin: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: var(--height);
    padding: 0;
    max-width: 1920px;
    cursor: pointer;
    display: flex;


    margin: auto;
    left: 0;
    right: 0;
    flex-direction: column;
    box-shadow: none;
}
.top-menu.hidden {
  top: calc(var(--height) * -1 - 90px );
}

}


/*-----------------------------------------------
    left-menu
-----------------------------------------------*/
.left-menu {
    display: none;
    position: fixed;
    left: 1rem;
    top: 27%;
    z-index: 10;
    /* 增加動畫感 */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.left-menu.hidden,.left-menu.hidden2 {
    /* 移除 display: none，改用 visibility 配合 opacity */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(-20px); /* 隱藏時稍微往左移，出現時會有滑入感 */
}
/* 當距離頂部小於 300px 時套用 */
.left-menu.is-invisible {
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -99 !important;
}




.left-menu-tit{
    position: absolute;
    font-size: var(--fs-s3);
    top: -4rem;
    margin: auto;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 1.2;
     color: var(--black07);
}

.left-menu-tit:after{
    content: '';
    position: absolute;
    width: 1px;
    height: 1.5rem;
    background: var(--black07);
    margin: auto;
    left: 0;
    right: 0;
    top: 120%;
}


.left-menu-tit span{
    color: var(--black03);
    font-weight:600;
}

.left-menu ul{
    display: flex;
    flex-direction: column;
    /*! background:#000; */
    gap:1rem;
    width: 3rem;
    /*! height: 3rem; */
    display: flex;
    justify-content: center;
    align-items: center;
}
.left-menu ul li a{
    background:transparent;
    border-radius: 50%;
    cursor:pointer;
    text-align: center;
    flex: 1;
    width: 2rem;
    height: 2rem;
    /*! color: #fff; */
    border: 1px solid var(--black05);
    color: var(--black05);
    font-family: var(--font-family-eng2);
    transition: all .3s ease;
    transform: scale(1);
}

.left-menu ul li.active a{
    background: #000;
    color: #fff;
    border: 0;
}

.left-menu ul li:hover a{
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {

.left-menu {
  left: 0.5rem;
  top: 27%;
}
}


/*-----------------------------------------------
    go-feature
-----------------------------------------------*/

.go-feature {
    flex: 1;
    margin-left: auto;
    max-width: 200px;
    display: flex;
    /*! justify-content: center; */
    align-items: center;
    transform: scale(0.9);
    transition: all .3s ease;

}


.go-feature   span {
    color: #fff;
    background: var(--orange);
    font-size: var(--fs-s1);
    border-radius: 25px;
    padding: 0.05rem 1rem;


    letter-spacing: 0.2rem;
    position: relative;
    margin-top: 0.8rem;
    line-height: 2;
}


.go-feature:hover  span:before{
width: 60%;
}


.go-feature span:before {
    content: '';
    width: 40%;
    height: 1px;
    background: var(--text-color);
    position: absolute;
    left: 115%;
    top: 50%;
    transition: width .3s ease;
}



.go-feature span>div {
    color: var(--text-color);

    position: absolute;
    top: -1.3rem;
    font-size: var(--fs-s3);
    letter-spacing: 0.5rem;
    text-align: center;
    width: 100%;
    margin: auto;
    left: 0.2rem;
    right: 0;
}


@media screen and (max-width: 1080px) {

  .go-feature {
    position: absolute;
    top: 8px;
    right: 15px;
    width: 15%;
    min-width: 200px;
    text-align: right;
    justify-content: right;
    line-height: 1.5;
    transform: scale(0.95);
  }

.go-feature span>div {
    color: #000;


    top: -1.2rem;
}
.go-feature span:before {
    content: '';
    display: none;
}
}

@media screen and (max-width: 768px) {
.go-feature   span {

    margin-top: 0rem;
    line-height: 2;
    transform: scale(0.85) translate(10%,0);
}


}



/*-----------------------------------------------
    logo
-----------------------------------------------*/

.logo {
    flex: 1;
    position: relative;
    max-width: 200px;
    background: url(../images/logo.png) center /135px no-repeat;
}



.go-page,.go-home {
    flex: 1;
    max-width: 120px;
    margin-left: auto;


    display: flex;
    justify-content: center;
    align-items: center;
    transition:all .3s ease;
    position: relative;
}

.go-page a ,.go-home a{
    font-size: var(--fs-s2);
    padding: 0.1rem 0.8rem;
    border-radius: 5px;
    border: 1px solid var(--text-color);
    width: auto;
    height: auto;
}

.go-page:before{
    content: '';
    position: absolute;
        background: url(../images/icon-feather.png) center 0 /100% no-repeat;
        left: 0;
        top: 10px;
        right: 0;
        margin: auto;
        width: 30px;
        height: 30px;
        z-index: 0;


}

.go-page:hover:before{
 content: '';
        animation:feather 0.6s ease-out 0s infinite both;
}

@keyframes feather
{
0%,100%{top: 10px;}
50%{top: 6px;}
}


/*.go-page a:hover ,.go-home a:hover{
    border: 1px solid var(--orange);

    background:var(--orange);
    color: #fff;

}*/

.go-home {
    margin-left: initial;
    margin-right: 1.5rem;
}

.go-page-m{

    display: none;
}

@media screen and (max-width: 1800px) {
.logo {
    background: url(../images/logo.png) center 50% /55% no-repeat;
}


}

@media screen and (max-width: 768px) {

.go-page,.go-home{

    display: none;
}
.logo {
    /*! flex: 1; */
    background: #fff url(../images/logo-m.png) 15px 50% /150px no-repeat;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    width: 100%;
    height: 45px;
    max-width: initial;
    /*! box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.1); */
}


.go-page-m {
    max-width: 160px;
    margin: -4rem auto 4rem;


    display: flex;
    justify-content: center;
    align-items: center;
    transition:all .3s ease;
    position: relative;
}
.go-page-m a{
    font-size: var(--fs-h5);
    padding: 0.5rem 1.8rem;
    border-radius: 5px;
    border: 1px solid var(--text-color);
    width: auto;
    height: auto;
}

.go-page-m:before{
    content: '';
    position: absolute;
        background: url(../images/icon-feather.png) center 0 /100% no-repeat;
        left: 0;
        top: -8px;
        right: 0;
        margin: auto;
        width: 25px;
        height: 24px;
        z-index: 0;


}



}

/*-----------------------------------------------
    list
-----------------------------------------------*/
.menu-list {
    flex: 6;
    /* 自然靠左 */
    max-width: 550px;
    height: var(--height);
    /*! background: #d74f4fa3; */
}

.menu-list {
    display: flex;
    justify-content: left;
}

.menu-list li {
    flex: 1;

    gap: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

    max-width: 5rem;
}


.menu-list li a {
    letter-spacing: .03em;
    flex-direction: column;

    padding-top: 0.5rem;
    position: relative;
    font-size: var(--fs-s1);
    transition: all .3s ease;
}



.menu-list li a span {
    font-size: var(--fs-s4);
    color: var(--orange);
    font-weight: 400;
    display: block;
    line-height: 0.5;
    transition: all .3s ease;
}

.menu-list li a.active:before {
    content: '';
    position: absolute;
    width: 25%;
    height: 25%;
    bottom: -25%;
    left: 0;
    background: #fff;
    clip-path: polygon(0 0, 52% 100%, 100% 0);

    right: 0;
    margin: auto;

}
.menu-list li:hover a{
 color: var(--orange);
}

/*.menu-list li:hover  a span{
    color: var(--text-color);

}*/


@media screen and (max-width: 1280px) {
.menu-list {
    flex: 6;
    max-width: 450px;
}

}


@media screen and (max-width:768px) {
  .menu-list {
    background: var(--pale02);
    padding: 0 2%;
    max-width: initial;
  }
.menu-list li {

  height: 3rem;
}
    .menu-list li a {
    letter-spacing: .03em;

    font-size: var(--fs-s1);
    margin: 0;
    padding: 0;
}
.menu-list li a.active:before,.menu-list li:hover a:before {
    content: '';

    background: var(--pale02);

}


/*    .menu-list {
        position: absolute;
        top: -100vh;
        left: 0;
        z-index: 2;
        width: 100%;
        height: 100vh;
        background: rgba(250, 250, 250, 0.9);

    }

    .menu-list {
        z-index: 1;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .menu-list li a {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        width: 80vw;
    }

    .menu-list li:nth-child(1) a {
        border-top: 0px solid #555;
    }

    .menu-list li a:hover {
        color: #dc3545;
    }
*/
    /*! open & close */
    .menu-list-open {
        top: 0;
        transition: all .5s ease;
        z-index: 1;
    }

    .menu-list-close {
        top: -100vh;
        transition: all .8s ease;
        z-index: 0;
    }


}



/*-----------------------------------------------
    burger - m
-----------------------------------------------*/
.burger {
    display: none;
}

@media screen and (max-width:768px) {
    .burger {
        display: flex;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 99;
        width: 40px;
        height: 40px;
        cursor: pointer;
        border: 0;
        padding: 0;
        background: transparent;
        align-items: center;
        justify-content: center;
        transition: all .5s ease-in-out;
    }

    .burger span {
        position: relative;
        width: 22px;
        height: 3px;
        border-radius: 5px;
        background: #000;
        box-shadow: 0 2px 5px rgba(255, 101, 47, .2);
        transition: all .5s ease-in-out;
    }

    .burger span::before,
    .burger span::after {
        content: '';
        position: absolute;
        left: 0;
        width: 22px;
        height: 3px;
        border-radius: 5px;
        background: #000;
        box-shadow: 0 2px 5px rgba(255, 101, 47, .2);
        transition: all .5s ease-in-out;
    }

    .burger span::before {
        transform: translateY(-7px);
    }

    .burger span::after {
        transform: translateY(7px);
    }


    .burger.open span {
        transform: translateX(-20px);
        background: transparent;
        box-shadow: none;
    }

    .burger.open span::before {
        transform: rotate(45deg) translate(15px, -15px);
    }

    .burger.open span::after {
        transform: rotate(-45deg) translate(15px, 15px);
    }
}