/*-----------------------------------------------
     scrollbar (彈窗用)
-----------------------------------------------*/

.box-text {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 3% 5% 3% 2%;
    box-sizing: border-box;
    border-radius: 5px;
    text-align: justify;

    scrollbar-width: none;
}

.box-text::-webkit-scrollbar {
    display: none;
}

.modal-scrollbar-track {
    position: fixed;
    top: 2%;
    right: 1%;
    width: 8px;
    height: 96%;
    background: transparent;
    border-radius: 5px;
    z-index: 10;
    overflow: hidden;
    pointer-events: auto;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.modal-scrollbar-track.hovering {
    background-color: #fff;
    transform: scaleX(1.3);
}

.modal-scrollbar-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(250, 125, 125, 1);
    pointer-events: none;
}

.modal-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgb(250, 125, 125);
    border-radius: 5px;
    cursor: default;
}

.modal-scrollbar-track.hidden {
    opacity: 0;
    pointer-events: none;
}


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

    .modal-scrollbar-track.hidden {
        opacity: 1;
        pointer-events: auto;
    }
}




/*-----------------------------------------------
   text
-----------------------------------------------*/

.box-tit {
    background: url(../images/box-tit-plan.png) 90% 0 /55% no-repeat;
    width: 100%;
}

.box-tit-contact {
    background: url(../images/box-tit-contact.png) 90% 0% /55% no-repeat;
    margin: 5% auto;
}

.box-tit>h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 2% 0 1% 0;
    color: #000;
}



.dayall-h tr:hover th,.dayall-h tr:hover td{
    transition: all .3s ease;
    color:  var(--red);
    background: rgba(159, 156, 156, 0.1);
    cursor: pointer;
}

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


    .box-tit>h1 {
        margin: 4% 0 1% 0;
    }

    .box-tit {
        background: url(../images/box-tit-plan.png) 90% 0% /70% no-repeat;
    }

    .box-tit-contact {
        background: url(../images/box-tit-contact.png) 90% 1% /70% no-repeat;
    }
}

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

    .box-tit>h1 {
        font-size: 2.2rem;

        line-height: 1.1;
        margin: 5% 0 1% 0;
        padding: 5% 0 0 0;
    }

.dayall-h tr:hover th,.dayall-h tr:hover td{
    background: #fff;
}

}

@media screen and (max-width: 378px) {
    .box-tit>h1 {
        font-size: 2rem;

    }

}

/*-----------------------------------------------
    box
-----------------------------------------------*/


.box-content {
    position: fixed;
    margin: 0;
    padding: 10px;
    z-index: 2;
    width: 95%;
    height: 80vh;
    max-width: 1600px;
    border-radius: 5px;
    transition: all .3s ease;
    background: var(--pale);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    pointer-events: auto;
}



.full-bg {
    opacity: 0;
    width: 100%;
    height: 100%;
    background: var(--pale);
    z-index: 0;
    position: absolute;
    transition: all .5s ease;
}

.full-bg-show {
    opacity: 1;

    transition: all .5s ease;
}

.full-bg-show2 {
    opacity: 1;

    transition: all .5s ease .3s;
}


/*-----------------------------------------------
    df-close
-----------------------------------------------*/


.df-close {
    display: inline-block;
    position: absolute;
    top: -75px;
    right: 0;
    z-index: 10;
    opacity: 1;
    width: 70px;
    height: 70px;
    cursor: pointer;
    overflow: hidden;
    transition: all .5s;
    transform-origin: 50% 50%;
}

.df-close:hover {
    transform: rotateZ(0deg);
}

.df-close::before,
.df-close::after {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 0.18rem;
    border-radius: 5px;
    content: '';
    background: rgb(250, 125, 125);
}



.df-close.active::before,
.df-close.active::after {

    content: '';
    background: var(--red);
}


@media screen and (max-width: 960px) {
    .df-close,.df-close:hover  {

        transform:rotateZ(0deg) scale(0.55) translate(40%, 55%);
    }


}





/*-----------------------------------------------
    plan
-----------------------------------------------*/


.nav-plan {
    width: 50%;
    /*! height: 50px; */
    position: relative;
    margin: 0 0 1% 0;

    max-width: 600px;
}

.nav-plan>ul {
    display: flex;

}


.nav-plan>ul>li {
    flex: 1;

    margin: 1%;
    background: #000;
    color: #fff;
    text-align: center;
    line-height: 2.2;
    border-radius: 23px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.1rem;
    transition: all .3s ease;
    /*! padding: 0 1px 0 0; */
    padding: 0 1%;
    min-width: 90px;
}


.nav-plan>ul>li:hover,
.nav-plan>ul>li.active {

    letter-spacing: 0.2rem;
    transition: all .3s ease;
    background: var(--red);
}



/*sub*/
/*sub*/
/*sub*/

.nav-plan>ul.nav-plan-sub {
    display: flex;
    flex-direction: column;

    margin: 3% auto;
}


.nav-plan>ul.nav-plan-sub>li {
    display: none;
    flex: 1;

    margin: 1%;
    background: #fff;
    color: #000;
    text-align: left;
    line-height: 2.2;
    border-radius: 23px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.01rem;
    padding: 0 3%;
    /*transition: all .3s ease;*/
}



.nav-plan>ul.nav-plan-sub>li.active {
    color: var(--red);
}

.nav-plan>ul.nav-plan-sub>li:hover {
    /*! letter-spacing: 0.1rem; */
    transition: all .3s ease;
    color: var(--red);
}



/*plan-group*/
/*plan-group*/
/*plan-group*/
/*plan-group*/

.plan-group {}

.plan_ {
    /*display: none;*/
    width: 100%;
    /*! height: 500px; */
    transition: all .5s ease;
}


.plan_>ul {
    display: flex;
}

.plan_>ul>li {
    margin: 1% 4% 1% 0;

}

.plan_>ul>li.table {
    flex: 2.5;

}

.plan_>ul>li.note {
    flex: 2;

    /*! padding: 0; */
}

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

    .plan_>ul>li.table {
        flex: 4;

    }
}

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

    .plan_>ul {
        flex-direction: column;
    }

    .plan_>ul>li {
        margin: 1% 0 1% 0;

    }

}

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


    .nav-plan {
        width: 100%;
        /*! margin: 0 0 1% 0; */

    }


    .nav-plan>ul>li {

        font-size: 0.9rem;
        min-width: 70px;

        margin: 0.5%;
        line-height: 2.1;
    }

}




/*-----------------------------------------------
    表格  fare
-----------------------------------------------*/


/* 容器與標題 */
.fare {
    max-width: 960px;
    margin: 24px auto;
    padding: 4% 5%;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.02), 9px 0px 5px rgba(0, 0, 0, 0.01);
    background: #fff;
    border-radius: 10px;
}

.fare-title {
    color: var(--red);
    font-size: 1.5rem;
    margin: 5px 0 5px;
    font-weight: 500;
    line-height: 1.2;
}

/* 表格基礎 */
.fare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.fare-table thead th {
    text-align: center;
    font-weight: 600;
    color: #666;
    background: #f4f6f8;
    padding: 12px 16px;
    font-size: 0.95rem;
    letter-spacing: .02em;
    border-radius: 5px;
}

.fare-table thead th.left {
    text-align: left;

}

.fare-table tbody th,
.fare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.fare-table tbody th {
    font-weight: 600;
    color: #222;
}

.fare-table .note {
    color: #999;
    font-weight: 400;
    font-size: .9em;
}

/* 對齊與數字樣式 */
.fare-table td {
    text-align: center;
    color: #222;
}

.fare-table td:not(:first-child) {
    font-variant-numeric: tabular-nums;
}

/* 行間距感覺接近設計稿 */
.fare-table tbody tr:last-child td,
.fare-table tbody tr:last-child th {
    border-bottom: 0;
}

.dep {
    display: block;
    /*! border: 1px solid #555; */
    border-radius: 20px;
    max-width: 90px;
    background: var(--red);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.05rem;
    line-height: 2;
    margin: 2px 0 4px;
}

/* 手機版：卡片化（≤ 640px） */
@media (max-width: 640px) {
    .fare-table thead {
        display: none;
    }

    .fare-table,
    .fare-table tbody,
    .fare-table tr,
    .fare-table th,
    .fare-table td {
        display: block;
        width: 100%;
    }

    .fare-table tbody tr {
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 5px 0;
        margin-bottom: 12px;
    }

    .fare-table tbody th {
        border: 0;
        padding: 5px 15px 0px;
    }

    .fare-table td {
        border: 0;
        padding: 1px 15px;
        display: flex;
        justify-content: space-between;
    }

    .fare-table td::before {
        content: attr(data-label);
        color: #666;
        margin-right: 12px;
        font-size: .95rem;
    }

    /* 以 data-label 補標題（用 JS 也可自動加） */
    .fare-table tbody tr td:nth-child(5) {
        --label: '第4人';
    }

    .fare-table tbody tr td:nth-child(2) {
        --label: '2人1室(每人價格)';
    }

    .fare-table tbody tr td:nth-child(3) {
        --label: '第3人價格';
    }

    .fare-table tbody tr td:nth-child(4) {
        --label: '第4人價格';
    }

    .fare-table td::before {
        content: var(--label);
    }

        /* 以 data-label 補標題（用 JS 也可自動加） */
    .fare-table tbody.dayall-h tr td:nth-child(5) {
        --label: '';
    }

    .fare-table tbody.dayall-h tr td:nth-child(2) {
        --label: '出發日期';
    }

    .fare-table tbody.dayall-h tr td:nth-child(3) {
        --label: '天數';
    }

    .fare-table tbody.dayall-h tr td:nth-child(4) {
        --label: '';
    }

    .fare-table td::before {
        content: var(--label);
    }
}


ol li {
    margin: 0.5em 0 0 20px;
    padding: 0 0 0 5px;
    font-weight: 500;
    color: #4f4f4f;
}

/*注意事項*/
.note {}


/*-----------------------------------------------
    df-hr
-----------------------------------------------*/

hr {
    display: block;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 81%;
    height: 5px;
    border: 0;
    border-top: 1px solid #ecd3d3;
    /*border-bottom:5px dotted #fff;*/
    margin: 5% auto;
}



/*-----------------------------------------------
    contact
-----------------------------------------------*/

.contact-group {
    width: 100%;
    margin: 2% auto;
}

.contact-group ul {
    display: flex;
    flex-wrap: wrap;
}

.contact-group ul li {
    flex: 0 0 19%;
    text-align: center;
    background: #000;
    transition: all .3s ease;
    color: #fff;
    margin: 0.5% 0.5%;
    border-radius: 5px;
    cursor: pointer;
    padding: 1.2% 1%;

    background: #000 url(../images/icon-link.png) 97% -50% /4.5% no-repeat;
}


.contact-group ul li:hover {
    transition: all .3s ease;
    background: var(--red) url(../images/icon-link.png) 97% 10% /4.5% no-repeat;
}


.contact-name {
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid var(--silver);
    color: #fff;
}

.contact-phone {
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    color: #fff;
}

.contact-phone span {
    background: url(../images/icon-phone.png) center 100% /100% no-repeat;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 3px 5px -2px 0;
}

@media screen and (max-width: 1600px) {
    .contact-group ul li {
        flex: 0 0 24%;

        padding: 2% 1%;
    }
}

@media screen and (max-width: 1280px) {
    .contact-group ul li {
        flex: 0 0 32%;

        padding: 2.2% 1%;
    }

}

@media screen and (max-width: 768px) {
    .contact-group ul li {
        flex: 0 0 48%;

        padding: 3.2% 1%;
        margin: 2% 1%;
    }

    .contact-phone {
        font-size: 0.9rem;
        margin: 8px auto 0;
    }

    .contact-phone span {
        margin: 3px 5px -4px 0;
    }

}



/*-----------------------------------------------
    nav-box
-----------------------------------------------*/
.nav-box {
    position: fixed;
    width: 100%;
    height: 100%;
    /*background: #0f1922;*/
    top: 0;
    left: 0;
    /*display: none;*/

  --pink2: rgb(180, 180, 181);
  --orange2: rgb(82, 87, 94);
  --yellow2: #162935;
  --green2: rgb(8, 45, 62);


  width: 100%;
  height: 100%;

   background: linear-gradient( -45deg, rgb(32, 65, 106), var(--orange2), var(--yellow2), var(--green2) );
  background-size: 1700% 1700%;   /* ⭐ 讓背景大一點，才能動起來 */
  animation: gradientMove 15s ease infinite;
    /*! z-index: 99; */
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.nav-box.show{
    opacity: 1;
    z-index: 98;
    pointer-events: auto;
}
.nav-box.hidden{
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.burger:hover {

    transition: all .3s ease;
}


.nav-box>ul {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nav-box>ul>li {
    width: 30%;
    padding: 0;
}

.banner {
    order: 1;
}
.list-group{
     order: 2;

}
.nav-box>ul>li.list-group {
    flex: 2.13;


    /*background: rgb(35, 76, 104);*/
    position: relative;
}

.list {
    /*! background: #4fd1d7a3; */

    display: flex;
    flex-direction: column;
    width: 80%;
    height: 50%;
    margin: 18% 5% 5% 5%;
    /*! background: #eee; */


    max-height: 55vh;
}


.list>li {
    flex: 1;
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.nav-box .list li a {
    color: #fff;
     transition: all .3s ease;
    /*! opacity: 0.2; */
}

.nav-box .list li a>div,
.nav-box .list li a>span {
    display: inline-block;
}

.nav-box .list li.active a,
.nav-box .list li:hover a {
    color: #ff4a7d;
    font-weight: bold;
    transition: all .3s ease;
    opacity: 1;
}
.nav-box .list li.go-top:hover a { color: #ff4a7d;}
.nav-box .list li.go-joy:hover a { color: var(--blue); }
.nav-box .list li.go-food:hover a { color: var(--orange); }
.nav-box .list li.go-family:hover a { color: var(--green); }
.nav-box .list li.go-room:hover a { color: var(--pink); }
.nav-box .list li.go-contact:hover a { color: #ff4a7d; }
.nav-box .list li.go-plan:hover a { color: #ff4a7d; }


/*texr*/
.list_ {
    font-size: 4.2rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1rem;
}

.list_ span {
    display: inline-block;
    font-size: 2rem;
}



/*color-bar*/
.color-bar{
    width: 12%;
    max-width: 300px;
    height: 10px;
    /*! position: absolute; */
    left: 5%;
    top: 85%;

    margin: 0 0 0 5%;
}

.color-bar ul{
    display: flex;
}
.color-bar ul li{
    flex:1;
}
.color-bar ul li:nth-child(1){background: var(--blue)}
.color-bar ul li:nth-child(2){background: var(--orange)}
.color-bar ul li:nth-child(3){background: var(--green)}
.color-bar ul li:nth-child(4){background: var(--pink)}

.logo-w-box {
    width: 4vw;
    height: 4vw;
    background: url(../images/logo-w.png) center 0 /100% no-repeat;
    left: 2vw;
    top: 2vw;
    z-index: 10;

    position: absolute;
    max-width: 80px;
    max-height: 80px;
}

.logo-w-box a{
    display: block;
    width: 100%;
    height: 100%;
}






















@media screen and (max-width: 1440px) {
/*    .logo-w-box {
    width: 11vw;
    height: 11vw;
    left: 5vw;
    top: 5vw;

}
*/
.list_ {
    font-size: 3rem;
    letter-spacing: 0.1rem;
}
}


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

.logo-w-box {
    width: 10vw;
    height: 10vw;
    left: 4vw;
    top: 4vw;

    max-width: 80px;
    max-height: 80px;
}

.nav-box>ul {
    display: flex;
    flex-direction:column;
}
.banner {
    order: 2;
}
.list-group{
     order:1;

}
.list {

    display: flex;
    flex-direction: column;
    width: 100%;
    height: 60%;
    margin: 40% 5% 5% 5%;


    max-height: 45vh;
}

.nav-box>ul>li {
    width: 100%;
    padding: 0;
    margin: auto;
}

.list_ {
    font-size: 2rem;
    letter-spacing: 0.05rem;
}

.list_ span {
    display: inline-block;
    font-size: 1.2rem;
    padding: 0 5px;
    font-weight: 400;
}

.color-bar{
    width: 25%;

}
}



/*-----------------------------------------------
    banner
-----------------------------------------------*/


/* 讓 flex 容器與子項能收縮、不被內容撐爆 */
.nav-box > ul,
.nav-box > ul > li,
.banner {
  min-width: 0;   /* ★ 關鍵：防止內容把 li 撐爆 */
  min-height: 0;
}

/* banner 本身再保險收住內容 */
.banner {
  position: relative;
  overflow: hidden; /* ★ 超出裁掉 */
}

/* 只顯示對應裝置那套 swiper */
.swiper-father.pc { display: block; }
.swiper-father.tablet { display: none; }

@media (max-width: 960px){
  .swiper-father.pc { display: none; }
  .swiper-father.tablet { display: block; }
}

/* 圖片不要撐開容器 */
.swiper-slide img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  object-fit: cover; /* 視需要：保框不變形 */
}

/* Swiper 自己也給最小寬度 0，避免 wrapper 撐爆 */
.swiper-container,
.swiper-wrapper,
.swiper-slide{
  box-sizing: border-box;
  min-width: 0; /* ★ */
}
