@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
html,body,header,footer,menu,aside,nav,main,div,article,span,h1,h2,h3,h4,p,a,ul,ol,li,img,table,tr,td,button{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    color: inherit;/*繼承父*/
    font-family:"Playfair Display", "Noto Sans TC","Noto Serif TC", sans-serif;
    
}
html{
    scroll-behavior: smooth;
}

img{
    width: 100%;
    vertical-align: bottom;
}
:root{
    --mainColor--: #ecb5b5;
    --mainAlphaColor--: #7e5d5d98;
    --darkGray--: #1D1E1F;
    --midGray--: #4e4242;
    --lightGray--: #797979;
    --alphaBlack--: #4141419c;
    --baseColor--:#ffebdd;
    --btnColor--:#6da52d;
    --textWhite--: #FFF;
    --transition--: all 600ms ease;
}
.flex{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-theme, .btn-line{
    display: inline-block;
    font-family: "Noto Sans TC";
    font-size: 1rem;
    font-weight: 350;
    letter-spacing: 1.5px;
    color: var(--textWhite--);
    padding: 0.45rem 1rem;
    margin: 0.25rem 0;
    border: none;
    background-color: var(--btnColor--);
    cursor: pointer;
}
.btn-theme:hover{
    filter: brightness(1.1);
}
.btn-theme:active, .btn-line:active{
    filter: brightness(0.8);
    box-shadow: 3px 3px 5px gray inset;
}
.btn-line:hover{
    filter: brightness(0.8);
}
.btn-line{
    background-color: transparent;
    border: 1.5px solid var(--textWhite--);
}


.grid-1{
    width: calc(100% / 12 * 1);
}
.grid-2{
    width: calc(100% / 12 * 2);
}
.grid-3{
    width: calc(100% / 12 * 3);
}
.grid-4{
    width: calc(100% / 12 * 4);
}
.grid-5{
    width: calc(100% / 12 * 5);
}
.grid-6{
    width: calc(100% / 12 * 6);
}
.grid-7{
    width: calc(100% / 12 * 7);
}
.grid-8{
    width: calc(100% / 12 * 8);
}
.grid-9{
    width: calc(100% / 12 * 9);
}
.grid-10{
    width: calc(100% / 12 * 10);
}
.grid-11{
    width: calc(100% / 12 * 11);
}
.grid-12{
    width: calc(100% / 12 * 12);
}
/*=============== hrader設計 ===============*/
header{
    width: 100%;
    height: 60px;
    line-height: 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
header #logo{
    color: var(--mainColor--);
    font-weight: 400;
}


header nav{
    width: 30px;
    height: 20px;
    position: absolute;
    top:20px;
    right: 20px;
}
header nav .bar{
    width: 100%;
    height: 2px;
    background-color: var(--alphaBlack--);
    transform-origin: 0 0;
    position: absolute;
    left: 0;
}

header nav .bar:nth-last-of-type(1){
    top: 0;
}
header nav .bar:nth-last-of-type(2){
    top: 9px;
}
header nav .bar:nth-last-of-type(3){
    bottom: 0;
}

header nav .bar:nth-last-of-type(1).none{
    transform: rotate(36deg);
}
header nav .bar:nth-last-of-type(2).none{
    opacity: 0;
}
header nav .bar:nth-last-of-type(3).none{
    transform: rotate(-36deg);
}
header menu{
    width: 100%;
    background-color: var(--alphaBlack--);
    color: var(--textWhite--);
    text-align: center;
    padding: 20px 0;
    overflow: hidden;
    transition: var(--transition--);
    
}
header menu.none{
    /* display: none; */
    padding: 0;
    height: 0;
}


header menu ul li a{
    font-family: "Noto sans TC";
    letter-spacing: 2px;
    font-weight: 380;
    display: block;
    transition: var(--transition--);
}
header menu ul li:hover a{
    color:var(--btnColor--);
}

/*================= Slide 設計 =================*/
#slide{
    width: 100%;
    height: 70vh;
    position: relative;
}
#slide .box{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
#slide .box .pic{
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform: translateX(100%);
    animation: sliding 25s linear infinite;
}
#slide .box .pic:nth-of-type(1){
    background-image: url(../images/S1.jpg);
}
#slide .box .pic:nth-of-type(2){
    background-image: url(../images/S6-1.jpg);
    animation-delay: 5s;
}
#slide .box .pic:nth-of-type(3){
    background-image: url(../images/S8-1.jpg);
    animation-delay: 10s;
}
#slide .box .pic:nth-of-type(4){
    background-image: url(../images/S2.jpg);
    animation-delay: 15s;
}
#slide .box .pic:nth-of-type(5){
    background-image: url(../images/S7.jpg);
    animation-delay: 20s;
}
#slide .theme{
    width: 100%;
    height: 100%;
    background-color: var(--alphaBlack--);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    align-items: center;
}
#slide .theme .item{
    width: 100%;
    max-width: 320px;
    padding: 0 15px;
    color: var(--textWhite--);
    line-height: 1.8em;
    letter-spacing: 3px;
}
#slide .theme .item h2{
    font-size: 40px;
    line-height: 2em;
    
}
#slide .theme .item p{
    text-align: justify;
    margin-bottom: 1em;
}
@keyframes sliding {
    0%{
        transform: translateX(100%);
        z-index: 1;
    }
    4%{
        transform: translateX(0%);
        z-index: 5;
    }
    20%{
        transform: translateX(0%);
        
    }
    24%{
        transform: translateX(-100%);
        z-index: 5;
    }
    25%{
        transform: translateX(-100%);
        z-index: 1;
    }
    26%{
        transform: translateX(100%);
        z-index: 5;
    }
}
/*=========== About 設計===============*/
#about{
    width: 100%;
    min-height: 75vh;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--midGray--);
    line-height: 1.7em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

#about .flex{
    width: 100%;
    padding: 30px 20px;
}

#about .flex h2,#about .flex h3{
    line-height: 42px;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: "noto sans tc";
}
#about .flex p{
    font-family: "noto sans tc";
    font-weight: 350;
}

#about .flex .grid-10{
    padding: 1em;
}

#about .flex .grid-10 p{
    padding: 0.5em 0;
}
#about .flex .grid-10 i{
    color: var(--mainColor--);
}
/* =================== Service 設計 ======================= */
#service{
    width: 100%;
    max-width: 1200px;
    margin: auto;
}
#service .flex .banner{
    text-align: center;
    padding: 60px 15px;
    background-color: var(--mainColor--);
    color: var(--textWhite--);
    letter-spacing: 2px;
}
#service .flex .banner h2{
    padding-bottom: 10px;
    font-size: 38px;
    letter-spacing: 2px;
    font-weight: 300;
}
#service .flex .grid-6{
    position: relative;
}
#service .flex .grid-6 h3{
    width: 100%;
    height: 2.5em;
    line-height: 2.5em;
    color: var(--textWhite--);
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    background-color: var(--mainAlphaColor--);
    position: absolute;
    left: 0;
    bottom: 0;
}
/* =============== Hot 設計==================== */
#hot{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    color: var(--midGray--);
}
#hot .flex{
    padding: 40px 20px;
}
#hot .flex .banner{
    padding: 40px 15px;
    
}
#hot .flex .banner h2{
    letter-spacing: 2px;
    font-weight: 500;
    padding-bottom: 5px;
}
#hot .flex a{
    display: block;
    padding: 15px;
    line-height: 1.5em;
}
#hot .flex a h3{
    line-height: 48px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* =========== Video 設計 =========== */
#video{
    width: 100%;
    height: 30vh;
    background-image: url(../images/SS1.jpg);
    background-size: cover;
    background-position: center;
}
#video .grid-12{
    align-items: center;
    background-color: var(--mainAlphaColor--);
    color: var(--textWhite--);
    padding: 0 30px;
    line-height: 1.5em;
}
#video .grid-12 h2{
    font-size: 26px;
    line-height: 40px;
    letter-spacing: 3px;
    font-weight: 450;
    letter-spacing: 5px;
}
#video .grid-12 p{
    letter-spacing: 1px;
    padding-bottom: 10px;
    font-family: "noto sans tc";
    font-weight: 400;
}

/*=========== Link 設計===============*/
#link{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 50px;
    color: var(--midGray--);
}
#link .flex .banner{
    text-align: center;
    padding: 60px 20px;
}
#link .flex .banner h2{
    font-size: 33px;
    font-weight: 350;
    line-height: 50px;
    letter-spacing: 3px;
    padding-bottom: 10px;
}
#link .flex .item{
    position: relative;
    overflow: hidden;
}
#link .flex .item .box{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    padding: 15px;
    background-color: var(--mainAlphaColor--);
    color: var(--textWhite--);
}
#link .flex .item .box h3,#link .flex .item .box p{
    width: 100%;
    padding: 10px 0;
    
}
#link .flex .item .box h3{
    letter-spacing: 3px;
    font-weight: 450;
    font-size: 20px;
}
#link .flex .item .box p{
    letter-spacing: 1px;
    font-weight: 380;
}

/*=========== Contact 設計===============*/
#contact{
    width: 100%;
    color: var(--midGray--);
    background-color:var(--baseColor--);
}

#contact .flex{
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    line-height: 1.9em;
}
#contact .flex .item{
    padding: 20px;
    letter-spacing: 0.5px;
}
#contact .flex .item h3{
    line-height: 5em;
    letter-spacing: 2.5px;
    font-weight: 460;
}
#contact .flex .item p{
    text-align: justify;
    margin-bottom: 0.8em;
    font-family: "noto sans tc";
    font-weight: 400;
}
#contact .flex .item table td{
    font-size: 15px;
    font-family: "noto sans tc";
    font-weight: 380;
}
#contact .flex .item a{
    color: var(--btnColor--);
    
    font-family: "noto sans tc";
    font-weight: 380;
}
#contact .flex .item a:hover{
color: var(--mainColor--);
}
#contact .flex .item i{
    padding: 0 1em;
}
#contact .flex .item hr{
    margin: 10px 0;
    border: 1px solid #9b733250;

}

/*=========== footer 設計===============*/
footer{
    width: 100%;
    padding: 1em;
    color: var(--textWhite--);
    background-color: var(--mainColor--);
    font-family: "noto sans tc";
    
}
footer p{
    text-align: center;
    font-family: "noto sans tc";
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 14px;
}
footer span{
    font-family: "noto sans tc";
    font-weight: 400;
}
@media only screen and (min-width:480px) {
    .grid-sm-1{
        width: calc(100% / 12 * 1);
    }
    .grid-sm-2{
        width: calc(100% / 12 * 2);
    }
    .grid-sm-3{
        width: calc(100% / 12 * 3);
    }
    .grid-sm-4{
        width: calc(100% / 12 * 4);
    }
    .grid-sm-5{
        width: calc(100% / 12 * 5);
    }
    .grid-sm-6{
        width: calc(100% / 12 * 6);
    }
    .grid-sm-7{
        width: calc(100% / 12 * 7);
    }
    .grid-sm-8{
        width: calc(100% / 12 * 8);
    }
    .grid-sm-9{
        width: calc(100% / 12 * 9);
    }
    .grid-sm-10{
        width: calc(100% / 12 * 10);
    }
    .grid-sm-11{
        width: calc(100% / 12 * 11);
    }
    .grid-sm-12{
        width: calc(100% / 12 * 12);
    }
}

@media only screen and (min-width:744px) {
    .grid-md-1{
        width: calc(100% / 12 * 1);
    }
    .grid-md-2{
        width: calc(100% / 12 * 2);
    }
    .grid-md-3{
        width: calc(100% / 12 * 3);
    }
    .grid-md-4{
        width: calc(100% / 12 * 4);
    }
    .grid-md-5{
        width: calc(100% / 12 * 5);
    }
    .grid-md-6{
        width: calc(100% / 12 * 6);
    }
    .grid-md-7{
        width: calc(100% / 12 * 7);
    }
    .grid-md-8{
        width: calc(100% / 12 * 8);
    }
    .grid-md-9{
        width: calc(100% / 12 * 9);
    }
    .grid-md-10{
        width: calc(100% / 12 * 10);
    }
    .grid-md-11{
        width: calc(100% / 12 * 11);
    }
    .grid-md-12{
        width: calc(100% / 12 * 12);
    }
    /*========== hrader設計 ==========*/
    header{
        max-width: 1200px;
        margin: auto;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        
    }
    header #logo{
        width: 255px;
    }
    header menu{
        width: calc(100%-255px);
        background-color: transparent; /*因sm版有底色，故在此要轉成透明色*/
        color: var(--midGray--);
        padding: 0;
        height: auto!important;
        display: block!important;/*因sm版關掉，這邊強制出現D*/
        
    }
    header menu ul{
        display: flex;
        justify-content: flex-end;
    }
    header menu ul li a{
        padding: 0 0.3em;
    }
    header nav{
        display: none;
    }

    /*================= Slide 設計 =================*/
    #slide .theme .item{
        max-width: 1200px;
        padding: 0 20px;
    }
    #slide .theme .item h2{
        font-size: 50px;
    }
    #slide .theme .item p{
        width: 420px;
        font-size: 18px;
    }
    /* =========== Video 設計 =========== */
    #video{
        height: 40vh;
        justify-content: flex-end;
    }
    /*=========== Link 設計===============*/
    #link .flex .item .box{
        opacity: 0;
        top:70px;
        transition: var(--transition--);
    }
    #link .flex .item:hover .box{
        opacity: 1;
        top: 0;
    }

}
@media only screen and (min-width:1200px) {
    .grid-lg-1{
        width: calc(100% / 12 * 1);
    }
    .grid-lg-2{
        width: calc(100% / 12 * 2);
    }
    .grid-lg-3{
        width: calc(100% / 12 * 3);
    }
    .grid-lg-4{
        width: calc(100% / 12 * 4);
    }
    .grid-lg-5{
        width: calc(100% / 12 * 5);
    }
    .grid-lg-6{
        width: calc(100% / 12 * 6);
    }
    .grid-lg-7{
        width: calc(100% / 12 * 7);
    }
    .grid-lg-8{
        width: calc(100% / 12 * 8);
    }
    .grid-lg-9{
        width: calc(100% / 12 * 9);
    }
    .grid-lg-10{
        width: calc(100% / 12 * 10);
    }
    .grid-lg-11{
        width: calc(100% / 12 * 11);
    }
    .grid-lg-12{
        width: calc(100% / 12 * 12);
    }
    /*============= header 設計 ===================*/
    header menu ul li a{
        padding: 0 1em;
    }

    /* ============= Setvice 設計 =================== */
    #service .flex .grid-6{
        overflow: hidden;
        cursor: pointer;
    }
    #service .flex .grid-6 img{
        filter: brightness(0.6);
        transition: var(--transition--);
    }
    #service .flex .grid-6 h3{
        bottom: -2.5em;
        transition: var(--transition--);
    }
    #service .flex .grid-6:hover img{
        filter: brightness(1);
        transform: scale(1.2);
    }
    #service .flex .grid-6:hover h3{
        bottom: 0;
    }
    /* ========== HOT 設計 ============ */
    #hot .flex{
        justify-content: space-between;
    }
}