@charset "utf-8";

/* CSS Document */


/*【default】*/


/*-----------------------------------------------------整體預設架構-------------------------------------------------------------*/

header,
main,
footer {
    text-align: center;
}

header img,
main img,
footer img {
    display: block;
    width: 100%;
}

body { user-select: none }

/*------------------------------------------------------------wrapper--------------------------------------------------*/

#wrapper {
    width: 100%;
}


/*---------------------------------------------------header---------------------------------------*/

header {
    position: relative;
    z-index: 9;
}


/*----------------------------nav-----------------------------------*/

nav {
    /* position: absolute; */
    display: none;
    position: relative;
    z-index: 12;
    width: 100%;
    height: 40px;
    background-color: #524a4a;
}

.nav_bgcolor {
    background-color: #524a4a;
}


/*----------------nav_bottom------------------*/

#nav_bottom {
    width: 200px;
    height: 40px;
    position: absolute;
    right: 0;
    cursor: pointer;
}

#nav_bottom:hover h3 {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
}

#nav_bottom:hover .line {
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8);
}

#nav_bottom h3 {
    width: 50%;
    float: left;
    line-height: 40px;
    margin-left: 20%;
    color: #fff;
}

#line_box {
    width: 30%;
    float: left;
    height: 40px;
    position: relative;
}

#nav_bottom #line_box .line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    position: absolute;
}

#line_box .line#line1 {
    top: 13px;
    transition: all 0.3s ease;
}

#line_box .line#line1.line1Change {
    transform: rotate(45deg);
    top: 19px;
}

#line_box .line#line2 {
    top: 23px;
    transition: all 0.6s ease;
}

#line_box .line#line2.line2Change {
    transform: rotate(315deg);
    top: 19px;
}


/*------------------nav_menu-----------------------*/

#nav_menu {
    width: 300px;
    background: #fff;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    position: absolute;
    right: 0;
    z-index: 11;
    top: 0;
    padding: 30px 0;
    display: none;
    opacity: 0;
}

#nav_menu h3 {
    height: 80px;
    line-height: 80px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

#nav_menu h3:hover {
    color: #fff;
    background-color: #5DA0A2;
}

.navH3_active {
    color: #fff;
    background-color: #5DA0A2;
}


/*子項目*/

nav .sNav {
    display: none;
    opacity: 0;
    margin-top: 30px;
    margin-left: -100px;
}

nav .sNav li {
    display: table;
    height: 50px;
    margin: 0 auto;
}

nav .sNav p {
    line-height: 30px;
    color: #34495E;
}

nav .sNav li .under_line {
    margin-bottom: 20px;
}

nav .sNav li:hover .under_line {
    width: 100%;
    margin: 0 auto;
}

/*----------------------------normal_menu--------------------------------*/
#normal_menu{
	position: absolute;
    right: 30px;
    top: 1.3vw;
}

#normal_menu >	 li{
	display: inline-block;
	margin-left: 15px;
}

#normal_menu .navItem{
	position: relative;
}

#normal_menu .sNav{
	position: absolute;
	top: 35px;
	left: -50%;
	width: 200%;
	display: none;
	z-index: 11;
	background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
#normal_menu .sNav li{
    border-bottom: solid 1px rgba(0,0,0,0.1);
}
#normal_menu .sNav li:last-child{
    border: none;
}
#normal_menu .sNav li:hover p{
	color: #5DA0A2;
}
#normal_menu .sNav p{
	padding: 7px 0;
}

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

#banner {
    position: relative;
    z-index: 10;
}


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

#logo {
    z-index: 10;
    width: 22vw;
    /* transition: top 0.3s ease; */
}

/*---------------------------------------------------footer---------------------------------------*/

footer {
    position: relative;
    padding: 50px 0;
}

footer small p {
    margin-top: 30px;
}

footer p span {
    margin-left: 30px;
}

#buttonTop {
    position: fixed;
    z-index: 2000;
    width: 50px;
    bottom: 89px;
    right: 9px;
    cursor: pointer;
    display: none;
}

#buttonTop:hover .under_line {
    width: 100%;
    margin: 0 auto;
}


/* contact links */

#fixed-links {
    position: fixed;
    right: 0;
    top: 41%;
    z-index: 999;
    overflow: hidden;
    width: 45px;
    white-space: nowrap;
    transition: .3s;
}
#fixed-links:hover {
    width: 310px;
    background-color: rgba(255,255,255,.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
#fixed-links a {
    display: block;
    height: 45px;
    font-family: arial;
	-ms-transition: .3s;
	transition: .3s;
}
#fixed-links a:before {
    content: " ";
    display: inline-block;
    background: url(../img/link_icons.png) no-repeat;
    width: 45px;
    height: 45px;
    vertical-align: middle;
}
#fixed-links a:hover {
    filter: brightness(120%);
    background: #9E9E9E;
    color: #fff;
}
#fixed-links .fb:before {
    background-position-y: 0px;
}
#fixed-links .line:before {
    background-position-y: -45px;
}
#fixed-links .email:before {
    background-position-y: -90px;
}
#fixed-links .tel:before {
    background-position-y: -135px;
}

/*熒幕尺寸【小於】1025時頁面顯示---平板*/

@media (max-width: 1024px) {
    /*---------------------------------------------------header---------------------------------------*/
    /*----------------------------nav-----------------------------------*/
    nav {
        display: block;
    }
    /*------------------nav_menu-----------------------*/
    /*子項目*/
    nav .sNav li {
        display: block;
    }
    nav .sNav li .under_line {
        display: none;
    }

    /*----------------------------normal_menu--------------------------------*/
    #normal_menu{
    	display: none;
    }
    /*----------------------------logo----------------------------------*/
    #logo {
        width: 70vw;
        margin-left: auto;
        margin-right: auto;
    }
    /*---------------------------------------------------footer---------------------------------------*/
    footer {
        padding: 30px 0;
    }
    footer p {
        display: table;
        margin: 0 auto 20px auto;
    }
    footer small p {
        margin: 0 auto;
    }
    footer p span {
        display: table;
        margin: 20px auto 0 auto;
    }
    #buttonTop .under_line {
        width: 100%;
    }
}

/*熒幕尺寸【小於】481時頁面顯示---手機*/

@media (max-width: 480px) {
    /*---------------------------------------------------header---------------------------------------*/
    /*----------------------------nav-----------------------------------*/
    /*------------------nav_menu-----------------------*/
    #nav_menu {
        /* width: 200px; */
        width: 100%;
    }
    #nav_menu h3 {
        height: 50px;
        line-height: 50px;
    }
    nav .sNav {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    nav .sNav li {
        height: auto;
        padding: 8px 5px;
        width: 49%;
        display: inline-block;
        vertical-align: top;
        /* float: left; */
        box-sizing: border-box;
    }
    nav .sNav p {
        line-height: 20px;
    }
    nav .sNav:before
    nav .sNav:after {
        content: '';
        display: block;
    }
    nav .sNav:after {
        clear: both;
    }
    /*----------------------------logo----------------------------------*/
    #logo {
        width: 80vw;
    }
}
