@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DFHeiStd7", 'Noto Sans TC', "Font Awesome 5 Free", "Font Awesome 6 Pro", sans-serif !important;
}

a {
    cursor: pointer;
}

a,
a:hover {
    text-decoration: none !important;
}

ul,
li {
    list-style-type: none;
    padding: 0px;
}

p {
    margin: 0px !important;
    padding: 0px !important;
}


body {
    position: relative;
    --box-width: 85%;
}

@media all and (max-width:768px) {
    body {
        --box-width: 90%;
    }
}

.maxline {
    padding: 2em 0em;
    max-width: 1000px;
    margin: 0 auto;
    /* overflow: hidden; */
}

/*--------------header---------------*/
.bg_banner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: url(../img/header-1.jpg) center bottom/cover no-repeat;
    overflow: hidden;
}


.bg_banner .headerimg {
    width: 50%;
}

@media all and (max-width:1200px) {
    .bg_banner .headerimg {
        width: 70%;
    }
}

@media all and (max-width:768px) {
    .bg_banner .headerimg {
        width: 90%;
    }
}

@media all and (max-width:576px) {}

@media all and (max-width:425px) {}

@media all and (max-width:375px) {}

/*--------------#header---------------*/

/*-----------------------nav-------------------------------------*/

/*固定導覽列*/
.menu {
    background: url(../img/navbg.png) center top/cover no-repeat;
    overflow: hidden;
}

.menu .maxline {
    padding: .8em 0 !important;
}

.menu .nav-item {
    width: calc((90% - 3em)/3);
    margin: .5em;
    text-align: center;
    font-weight: 600;
}

.menu .nav-link {
    position: relative;
    padding: 0px !important;
    border: 3px solid;
    border-image: linear-gradient(315deg, #c1761e 0%, #231d1d 100%) 1;
    z-index: 0;
}

.menu .nav-item:hover .nav-link,
.menu .nav-item .nav-link.active {
    animation: bordercolo 2s infinite;
    transform: scale(0.9);
    transition: all .15s ease-out;
}

@keyframes bordercolo {
    0% {
        border-image: linear-gradient(135deg, #c1761e 0%, #231d1d 100%) 1;
    }

    50% {
        border-image: linear-gradient(315deg, #c1761e 0%, #231d1d 100%) 1;
    }

    100% {
        border-image: linear-gradient(135deg, #c1761e 0%, #231d1d 100%) 1;
    }
}

.menu .nav-link span {
    display: block;
    font-family: 'LongTeMing' !important;
    background-image: linear-gradient(to bottom, #c1761e 0%, #231d1d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255, .3);
    z-index: -1;
}

/* 置頂導覽列 */
.ttittle .maxline {
    padding: .5em 0 !important;
}

.ttittle {
    transform: translateY(-100%);
    transition: all .15s ease-in-out;
}

.ttittlehide {
    transform: translateY(0%);
}

.ttittle .nav-item {
    width: calc((100% - 2.5em)/6);
    margin: .2em;
    overflow: hidden;
}

.ttittle .nav-link {
    line-height: 1;
    padding: .2em 0 !important;
}

.ttittle .nav-link::before {
    background: rgb(255 255 255 / 90%);
}

.ttittle .nav-link span::before,
.ttittle .nav-link span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -56px;
    width: 35%;
    height: 54%;
    background: url(../img/nav-1.png) center/100% no-repeat;
}

.ttittle .nav-link span::after {
    bottom: unset;
    left: unset;
    top: -5px;
    right: -56px;
    background: url(../img/nav-2.png) center/100% no-repeat;
}



.ttittle .nav-item:hover .nav-link span::before,
.ttittle .nav-item .nav-link.active span::before {
    left: -6px;
    transition: all .15s ease-in-out;
}

.ttittle .nav-item:hover .nav-link span::after,
.ttittle .nav-item .nav-link.active span::after {
    left: unset;
    right: -6px;
    transition: all .15s ease-in-out;
}

@media all and (max-width:768px) {}

@media all and (max-width:575px) {
    .menu .nav-item {
        width: calc((100% - 30px)/3);
        margin: 5px;
    }

    .ttittle .nav-item {
        width: calc((100% - 2.5em)/6);
        margin: 0.2em;
    }

    .menu .nav-link span {
        font-family: 'wt005' !important;
    }

    .ttittle .nav-link {
        font-size: 1.2em !important;
    }

    .ttittle .nav-link span::before,
    .ttittle .nav-link span::after {
        display: none;
    }
}


/*-----------------------nav-------------------------------------*/



/*--------------------------------------title-------------------------------------------------*/
.title1 {
    width: fit-content;
    margin: 1em auto;
}

.titletext {
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    color: #000;
}

.titletext h2::before,
.titletext h2::after,
.titletext .h3bef::before,
.titletext .h3bef::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: calc(100% + 15px);
    width: 100%;
    max-width: 290px;
    height: 20px;
    background: url(../img/title-1.png) center/100% no-repeat;
}

.titletext .h3bef::before,
.titletext .h3bef::after {
    background: url(../img/title-1.png) center/100% no-repeat;
    background: linear-gradient(to left, #ffffff 0%, #f4db8c 50%, rgba(200, 146, 64, 0) 100%)bottom/102% 1em;
    height: 3px;
}

.titletext h2::after,
.titletext .h3bef::after {
    transform: translateY(-50%) scaleX(-1);
    right: unset;
    left: calc(100% + 15px);
}

.titletext h2,
.titletext h3,
.titletext h4,
.titletext .h3bef {
    position: relative;
    width: fit-content;
    margin: 0 auto .2em;
}

.titletext h2 span,
.titletext h3 span {
    font-family: "wt005" !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 2px black);
}

.titletext h3 span strong,
.titletext h4 span strong {
    font-family: "wt005" !important;
    font-weight: unset;
}

.h2span {
    background-image: linear-gradient(to right, #ffffff 0%, #f4db8c 50%, #c89240 100%);
}

.h3span {
    background-image: linear-gradient(to bottom, #ffffff 0%, #f4db8c 80%, #c89240 100%);
}

.titletext h4 .h4span {
    font-family: "LongTeMing" !important;
    color: #fff;
    filter: drop-shadow(2px 2px 2px black);
}

@media all and (max-width:768px) {}

@media all and (max-width:576px) {}



/*--------------------------------------#title-------------------------------------------------*/


/* ----------------------------- */

.linebut {
    width: fit-content;
    margin: 3em auto;
}

.linebut:hover {
    animation: forwards;
}

.linebut:hover a {
    transform: scale(.9);
    transition: all .15s ease-in-out;
}


/* .linebut a {
    position: relative;
    display: block;
    padding: 0.4em 3em;
    border: 3px solid transparent;
    border-radius: 40px;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(to right, var(--linec1), var(--linec1)), linear-gradient(to right, #ffffff 0%, #cf9f57 50%, #ffffff 100%);
    background-size: 200%;
    background-position: 200%;
} */

.linebut a {
    position: relative;
    display: block;
    --border-radius: 40px;
    --border-width: 3px;
    --m-i: linear-gradient(#000, #000);
    --m-o: content-box, padding-box;
    background-color: #021f2500;
}

.linebut a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 20%);
    border-radius: var(--border-radius);
    z-index: -2;
}

.linebut a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    padding: var(--border-width);
    border-radius: var(--border-radius);
    background-image: linear-gradient(to right, #ffffff 0%, #cf9f57 50%, #ffffff 100%);
    background-size: 200%;
    background-position: 200%;
    -webkit-mask-image: var(--m-i), var(--m-i);
    mask-image: var(--m-i), var(--m-i);
    -webkit-mask-origin: var(--m-o);
    mask-origin: var(--m-o);
    -webkit-mask-clip: var(--m-o);
    mask-clip: var(--m-o);
    -webkit-mask-composite: destination-out;
    mask-composite: destination-out;

}


.linebut:hover a::after {
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        background-position: 200%;
    }

    100% {
        background-position: 0%;
    }
}


.linebut a span {
    display: block;
    padding: 0.4em 3em;
    font-family: 'SourceHanSansTCH' !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 2px black);
    background-image: linear-gradient(to bottom, #ffffff 0%, #f4db8c 80%, #c89240 100%);
}

.linebut a span::before {
    content: '';
    position: absolute;
    bottom: -0.5em;
    right: 0;
    width: 2em;
    height: 2em;
    background: url(../img/point.png) center/100% no-repeat;
    animation: point 1s linear infinite;
}

.linebut:hover a span::before {
    animation: forwards;
}

@keyframes point {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}




/*--------------------------------------footer-------------------------------------------------*/
footer {
    background-color: #1d1413;
    color: #fff;
    padding: 2em;
}

.footerline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex !important;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    line-height: 2em;
}

footer h2 {
    text-align: center;
    width: 100%;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: #ffbf6c;
}

/* ------------- */
.me {
    width: 35%;
}

.me h3,
.me h4 {
    border-bottom: 2px solid #fff;
    line-height: 2em;
}

.me .fab {
    font-size: 1.5em;
    margin: 0.5em;
}

/* ----------- */
.add {
    width: 42%;
    /*  max-width: 400px; */
}

.add-1 {
    display: flex;
}

.add-1 span {
    width: 25%;
    text-align: left;
}

.add-1 a {
    width: 50%;
}

@media all and (max-width:768px) {
    .add {
        width: 46%;
    }
}

@media all and (max-width:576px) {

    .me,
    .add {
        width: 100%;
    }
}

@media all and (max-width:375px) {}

/*--------------------------------------#footer-------------------------------------------------*/

/*------------------talk--------------------------*/
#talk {
    position: fixed;
    top: 10vh;
    left: 2px;
    z-index: 999;
    display: flex;
    flex-direction: column;
}


.talk-1 {
    cursor: pointer;
    font-size: 2em;
    text-align: center;
    padding: 2px !important;
    font-weight: 600;
    color: #00a1ff;
}

.talk-1:hover {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
    -webkit-transition: .5s;
    -moz-transition: .5s;
    transition: .5s;
}

.fab {
    font-family: "Font Awesome 5 Brands" !important;
}


.talk-1:nth-child(1):hover {
    color: #00ff0d;
}

.talk-1:nth-child(2):hover {
    color: #00e1ff;
}

.talk-1:nth-child(3):hover {
    color: #f700ff;
}

.talk-1:nth-child(4):hover {
    color: #ff0000;
}

@media all and (max-width:575px) {
    #talk {
        width: 100%;
        background-color: rgb(26 26 26 / 80%);
        bottom: 0px;
        left: 0px;
        top: auto;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .talk-1 {
        width: 23%;
        text-align: center;
        padding: 0em !important;
        display: inline-block;
        font-size: 1.8em;
    }

    .talk-1:hover {
        transform: none;
    }
}

/*------------------#talk--------------------------*/

/*-----------TOP按鈕------------------*/
#goTop {
    position: fixed;
    bottom: 1em;
    right: 1em;
    width: 3em;
    height: 3em;
    z-index: 999;
    color: #fff;
    border-radius: 50%;
    background-color: #be9a69;
    line-height: 2;
}

#goTop .fas {
    font-family: "Font Awesome 5 Free" !important;
}

@media all and (max-width: 575px) {}

/*-----------TOP按鈕------------------*/