/* ----------------------------------------------
    frame
------------------------------------------------*/
nav {
    position: absolute;
    top: -100px;
    right: 0;
    padding: 0;
    z-index: 99;
    width: 100%;
    height: 80px;
    background-color: #fff;
    transition: all .8s ease;
}

@keyframes navEffect
{
0%{top: -100px;}

100%{top: 0;}
}
.nav-effect{animation:navEffect .4s ease-out 1.6s 1 both;}



/*nav.hidden {
    top: -100%;
    transition: all .8s ease;
}

*/

nav.for-page {
    display: none;
}

nav ul {
    margin: auto;
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: center;
    align-items: center;
}

nav ul li {
    display: flex;
    height: 100%;
    overflow: hidden;
    transition: all .3s ease;
}


nav ul li.logo {
    max-width: 300px;
    /*! min-width: 100px; */
    background: url(../images/logo.png) 15% 50% /75% no-repeat;
    margin: 0 0 0 0.5%;
}

nav ul li.blank {
    max-width: initial;
}

nav ul li.home {
    max-width: initial;
}

nav ul li.go-home span{
    max-width: initial;
    font-size:0.95rem;
    border:1px solid var(--gray);
    padding: 0 0.5em;
    letter-spacing: 0.01rem;
    border-radius: 2px;
}

nav ul li.go-top-ok {
    max-width: 28px;
    text-indent: -500%;
    background: url(../images/icon-home.png) center 50% /100% no-repeat;
    transition: all .3s ease;
}

nav ul li.link_ {
    min-width: 80px;

}

nav ul li.go-plan {
    max-width: initial;
    min-width: 150px;

    justify-content: center;
    align-items: center;
}
.go-plan a> span{
/*    position: absolute;
    height: 100%;
    top: 0px;
    left: -11px;
    background: #b90606;
    line-height: 1.1;
    color: #fff;
    font-size: 0.95rem;
    padding: 3px 10px 0px 13px;
    border-radius: 20px 0px 0px 20px;
    font-weight: 500;*/
        position: absolute;
    height: 42px;
    top: -7px;
    left: -15px;
    background: #b90606;
    line-height: 1;
    color: #fff;
    font-size: 0.95rem;
    padding: 7px 0 0 0;
    border-radius: 35px;
    font-weight: 500;
width: 42px;
z-index: 10;
letter-spacing: 0;
}


.go-plan a> span::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgb(185, 6, 6);
  top: 28px;
  left: 33px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: -1;
  transform: rotate(124deg);
}


/*字特效*/
.animated-text >span {

  display: inline-block;
}
.animated-text >span:nth-child(1){animation:animatedText .8s ease-out 0s infinite both;}
.animated-text >span:nth-child(2){animation:animatedText .8s ease-out 0.1s infinite both;}
.animated-text >span:nth-child(3){animation:animatedText .8s ease-out 0.2s infinite both;}
.animated-text >span:nth-child(4){animation:animatedText .8s ease-out 0.3s infinite both;}
.animated-text >span:nth-child(5){animation:animatedText .8s ease-out 0.4s infinite both;}
.animated-text >span:nth-child(6){animation:animatedText .8s ease-out 0.5s infinite both;}

@keyframes animatedText
{
0%,100%{transform:translateY(-2px);}
50%{transform:translateY(8px);}
}
/*  a */
/*  a */
/*  a */
nav ul li.go-top-ok a:after,
nav ul li.go-contact a:after,
nav ul li.go-plan a:after {
    content: '';
    display: none;
}

nav ul li.go-plan a {
    background: var(--gray);
    border-radius: 50px;
    color: #fff;
    width: 70%;
    height: 70%;
    flex: initial;
    transition: all .3s ease;
    letter-spacing: 0.05rem;
    /*padding: 0 0 0 15%;*/
    font-size: 1.2rem;
}



nav ul li a {
    color: var(--gray);
    text-align: center;

    display: flex;
    letter-spacing: 0.2rem;
    transition: all .3s ease;
    justify-content: center;
    align-items: center;
    /*flex置中*/
    justify-content: center;
    align-items: center;

    height: 100%;
    position: relative;
    font-weight: 500;
}



nav ul li a:after {
    content: '';
    position: absolute;
    right: 0;
    top: 40%;
    width: 1px;
    height: 25%;
    /*! background: rgba(0, 0, 0, 0.4); */
}


nav.for-index ul li.go-plan a:before {
    content: '';
    position: absolute;
    left: -18%;
    top: 30%;
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.4);
}



/*flex*/
/*flex*/
/*flex*/
nav ul li {
    flex: 1;
}

nav ul li.logo {
    flex: 1.8;
}

nav ul li.blank {
    flex: 10;
}

nav ul li.go-contact {
    flex: 1;
}

nav ul li.go-top-ok {
    flex: 0.5;
}

nav ul li.go-plan {
    flex: 1.6;
}

nav ul li a {
    flex: 1;
    font-size: 1.1rem;
}

/*hover*/
/*hover*/
/*hover*/
nav ul li.link_:hover,
nav ul li.link_ a:hover {
    letter-spacing: 0.4rem;
    transition: all .3s ease;
    color: var(--red);


}

nav ul li.go-contact:hover,
nav ul li.go-contact a:hover {
    border-radius: 0px;
    /*color: #fff;*/
    width: 100%;
    height: 100%;
    transition: all .3s ease;
    letter-spacing: 0.4rem;
}

/*nav ul li.go-plan:hover,*/
nav ul li.go-plan a:hover {
    border-radius: 0px;
    color: #fff;
    width: 100%;
    height: 100%;
    transition: all .3s ease;
    letter-spacing: 0.4rem;
}



nav ul li.go-plan a:hover span{
    top: 4px;
    left: 4px;

     transition: all .3s ease;
}


/*nav ul li.link_:hover,
nav ul li.link_ a:hover {
    flex: 1.2;
}
nav ul li.go-contact:hover,
nav ul li.go-contact a:hover {
    flex: 1.5;
}
*/

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

    nav ul li.blank {
        flex: 8;
    }

    nav ul li a {
        flex: 1;
    }



    nav {
        height: 60px;
    }

    nav ul li.logo {
    }

    nav ul li.go-plan {
        flex: 1.5;
    }



.go-plan a > span {

  position: absolute;
  height: 35px;
  top: -7px;
  left: -15px;
  background: #b90606;
  line-height: 1;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 0 0 0;
  border-radius: 35px;
  font-weight: 500;
  width: 35px;
  z-index: 10;
  letter-spacing: 0;
}

.go-plan a > span::after {
  content: '';
  width: 14px;
  height: 14px;
  background: rgb(185, 6, 6);
  top: 20px;
  left: 26px;
  transform: rotate(124deg);
}

}

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

    nav ul li.blank {
        flex: 5;
    }

    nav ul li a {
        flex: 1;
        /*! font-size: 0.9rem; */
    }


}


@media screen and (max-width: 960px) {
    nav {
        top: initial;
        bottom: 0;
        width: 100%;
        height: 65px;
        display: none;
    }

.nav-effect{animation:none;}



    nav.for-page {
        position: fixed;
        top: 0;
        bottom: initial;
        width: 100%;
        height: 55px;
        z-index: 99;
        transition: all .3s ease;
        opacity: 0;
        transform: translateY(-100%);
    }

    nav.for-page.show {
        display: block;
        /* 滾動到一定高度才顯示 */
        opacity: 1;
        transform: translateY(0);
    }


    nav.for-page ul {
        width: 95%;
        margin: auto;
    }
    nav.for-index ul{
        width: 70%;
    }

    nav.hidden {
        top: initial;
        bottom: -65px;
        transition: all .5s ease;
    }

    nav ul li.blank {
        flex: 0;
    }

    nav ul li.link_ {
        min-width: 40px;

    }

    nav ul li.go-plan {
        min-width: 95px;

        flex: 1.5;
    }

    nav ul li.go-contact {
        flex: 1.7;
        justify-content: center;
        align-items: center;
    }

    nav ul li.go-home span{
    opacity: 0;
    pointer-events: none;

}

    /*nav ul li.link_:hover,
nav ul li.link_ a:hover {
    flex: 1;
}
nav ul li.go-contact:hover,
nav ul li.go-contact a:hover {
    flex:2;
}
*/
    nav ul li a {
        font-size: 1rem;
    }

    nav.for-page ul li a {
        font-size: 0.8rem;
        height: 100%;
        width: 80%;
    }

nav.for-page ul li.go-plan a{
        height: 50%;
        width: 80%;
}

    nav.for-index ul li a {
        height: 55%;
        width: 80%;
         letter-spacing: 0.2rem;
    }

    li.link_ {
        font-size: 0.8rem;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

nav ul li.go-plan a:hover {
    border-radius: 50px;
    color: #fff;
    width: 80%;
    height: 55%;
    transition: all .3s ease;
    letter-spacing: 0.4rem;
}

    nav ul li a:after {
        content: '';
        position: absolute;
        right: 0;
        top: 40%;
        width: 1px;
        height: 25%;
        /*! background: rgba(0, 0, 0, 0.4); */
    }


    nav.for-index ul li.go-contact a:before {
    content: '';
    position: absolute;
    right: 10%;
    top: 23%;
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.4);
}


    nav.for-index ul li.go-contact a:hover  {
          height: 55%;
        width: 80%;
        letter-spacing: 0.4rem;
}

}


/*-----------------------------------------------
    blank
-----------------------------------------------*/
.blank{
    display: flex;
        /*! justify-content: center; */
    align-items: center;
}

.blank > .name{
    /*! background: red; */

    padding: 0.6% 0 0 39px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray);
}
.e-name{
display: block;
  line-height: 0.5;
  font-size: 0.6rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  line-height: 0.5;
}

/*.small-tag{
     display: inline-block;
     padding: 0;
     margin: 0 0 0 0;
     line-height: 1;
     position: relative;
}
*/
.small-tag{
     display: inline-block;
     padding: 0;
     margin: 0 0 0 0;
     line-height: 1;
     position: relative;
}

.s-tag{
    display: inline-block;

    line-height: 1.3;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
     text-transform: uppercase;
    background: var(--gray);
    border-radius: 20px;
    margin: 0 5px 0 0;
    color: #fff;
    padding: 1px 10px;
    transform: translate(0,-15%);
/*       display: inline-block;

    line-height: 0;
    font-size: 0.8rem;
    letter-spacing: 0.4rem;
     text-transform: uppercase;
    background: rgb(255, 255, 255);
    color: #7d7d7d;
    transform: translate(0,-15%);*/
}

.name-m{
    display: none;
    opacity: 0;
    height: 0;
    width: 0;
}

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

.name-m{
       display: block;
    opacity: 1;
    height: initial;
    width:initial;
    font-size: 1rem;

    position: absolute;
    left: -5%;
    letter-spacing: 0.1rem;
}
}




/*-----------------------------------------------
    list
-----------------------------------------------*/

.menu-list ul {
    display: flex;
}


.menu-list ul li {
    width: 100%;
    max-width: 160px;
}

.menu-list ul li a {
    padding: 0 10px;
    height: 4rem;
    line-height: 4rem;
    color: #000;
    font-size: 1rem;
    text-align: center;
    letter-spacing: .03rem;
}


.menu-list ul>li>a:hover {
    color: #dc3545;
}

@media screen and (max-width:768px) {
    .menu-list {
        position: absolute;
        top: -100vh;
        left: 0;
        z-index: 1;
        width: 100%;
        height: 100vh;
        background: #111;

    }

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

    .menu-list ul li a {
        color: #fff;
        border-top: 1px solid #2b2a2a;
    }

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

    .menu-list ul li a:hover {
        width: 100%;
        color: #dc3545;

        text-align: center;
    }

    /*! open & close */
    .menu-list-open {
        top: 0;
        transition: all .5s ease;
    }

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


}





/*-----------------------------------------------
    menu-btn
-----------------------------------------------*/
.menu-btn {
    display: none;
}

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

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

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

    .menu-btn_burger::before {
        transform: translateY(-9px);
    }

    .menu-btn_burger::after {
        transform: translateY(9px);
    }

    /* ANIMATION */
    .menu-btn.open .menu-btn_burger {
        transform: translateX(-20px);
        background: transparent;
        box-shadow: none;
    }

    .menu-btn.open .menu-btn_burger::before {
        transform: rotate(45deg) translate(15px, -15px);
    }

    .menu-btn.open .menu-btn_burger::after {
        transform: rotate(-45deg) translate(15px, 15px);
    }
}


/*-----------------------------------------------
    burger
-----------------------------------------------*/
.burger {
    position: fixed;
    top: 5%;
    right: 5%;
    background: #151515;
    color: #fff;
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.6%;
    /* 字與線分開一點 */
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    user-select: none;
    transition: color .3s ease;
    z-index: 103;
    width: 75px;
    height: 75px;
    pointer-events: auto;
    opacity: 1;
    font-weight: 500;
}

.burger.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ⭐ 新增：文字容器 */
.burger .label {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
    white-space: nowrap;
}

/* 三條線：上、下用偽元素，中間線用 .mid */
.burger::before,
.burger::after,
.burger .mid {
    content: "";
    position: absolute;
    left: 30%;
    height: 0.2rem;
    background: #fff;
    transition: all .3s ease;
    border-radius: 5px;
}

/* 上線 */
.burger::before {
    top: 50%;
    width: 23%;
    /* 最短 */
}

/* 中線 */
.burger .mid {
    top: 63%;
    width: 41%;
    /* 中等 */
    border-radius: 5px;
}

/* 下線 */
.burger::after {
    top: 75%;
    width: 33%;
    /* 最長 */
}

/* 開啟 (CLOSE) 狀態 */
.burger.is-open {
    color: #fff;
}

/* 中線消失 */
.burger.is-open .mid {
    width: 0;
    opacity: 0;
    transform: translateX(50px);
}

/* 上下線移到中間，旋轉成交叉 */
.burger.is-open::before,
.burger.is-open::after {
    top: 59%;
    width: 52%;
    margin: auto;
    left: 50%;
    border-radius: 5px;
}

.burger.is-open::before {
    transform: translateX(-50%) rotate(45deg);
}

.burger.is-open::after {
    transform: translateX(-50%) rotate(-45deg);
}

@media screen and (max-width: 1440px) {
    .burger {
        top: 5%;
        right: 5%;
        color: #fff;
        font-size: 0.6rem;
        letter-spacing: 0.1rem;
        padding-top: 0.4%;
        cursor: pointer;
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 960px) {
    .burger {
        transform: scale(0.7) translate(15%, -70%);
    }

    /* ★ 新增：手機時，即使有 .hidden 也要可見且可點擊 */
    .burger.hidden {
        opacity: 0;
        /* ★ */
        pointer-events: auto;
        /* ★ */
    }
}