@charset "UTF-8";
/* header-custom 頁首-自定義css */

.header-custom {
    width:100%;
	position: fixed !important;
	background: #fff;
    z-index:10;
    /*-webkit-box-shadow: 0 0 10px #000;
    -moz-box-shadow: 0 0 10px #000;
    box-shadow: 0 0 10px #000;*/
}
.header-custom .area {
	width:100%;
	z-index:1000;
	padding:0;
	/*background:#fff;*/
	/*border-bottom:1px solid #bfbfbf;*/
}

/* 上方連結 ------------------------------------------------------------------*/
.header-custom .skybar {
	background: none;
    display:none;
	min-height: 0;
    margin-bottom: 0;
    border: 0;
	border-radius:0;
	padding:0 8%;
}
.header-custom .skybar ul li {
	position:relative;
	list-style-type: none;
	display: inline-block;
	padding: 0 8px;
	line-height: 28px;
	color:#eee;
}
.header-custom .skybar a {
	color: #eee;
	text-decoration: none;
}
.header-custom .skybar a:hover {
	color: #fff;
}
.header-custom .skybar .open .dropdown-menu {
	border: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	padding:0;
	border-radius:0;
}
.header-custom .skybar .nav-fit {
    float: right;
}
/* 搜尋 */
.header-custom .search {
	display: block;
	position: relative;
	width: 100%;
	margin: 0 auto;
}
/* 搜尋框 */
.header-custom .search .stylish-input-group {
	position: absolute;
	right:0;
	top:-23px;
}
.header-custom .search input.form-control {
	border: none;
	padding: 0px;
	width: 25px;
	box-shadow: none !important;
	height:28px;
	background-color: #fff;
    color: #000 !important;
	opacity:0;
}
/* 搜尋框內文字 */
.header-custom .search .input-group.stylish-input-group input::placeholder {
 color: #bbb !important;
}
/* 搜尋框開啟 */
.header-custom .search .input-group:hover.stylish-input-group input.form-control {
	padding:0 10px;
	width: 150px;
	opacity:1;
}
.header-custom .search input.form-control,
.header-custom .search .search-icon-btn {
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-ms-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
}
/* 搜尋按鈕 */
.header-custom .search-submit {
    position: absolute;
	border:none;
	background: transparent;
    right: 0;
    outline: none;
    z-index: 100;
	font-size:0.9em;
	padding: 0 5px;
}
.header-custom .search-submit svg {
	position: relative;
	bottom:-2px;
}
.header-custom .search-submit:hover svg,
.header-custom .search-submit:focus svg,
.header-custom .input-group:hover svg,
.header-custom .input-group:focus svg {
	color:#333;
}
@media (max-width: 1040px) {
	.header-custom .skybar {
		display:none;
	}
}

/* logo ------------------------------------------------------------------*/
.header-custom .logo {
	min-height: 0px;
	text-align:left;
	/*height:100px;*/
	padding: 10px 8% 10px 8%;
}
.header-custom .logo a {
	position:relative;
	display:inline-block;
	padding: 0;
	margin: 0;
	line-height: 0 !important;
}
.header-custom .logo img {
	max-height:50px;
    height: 5.3vmin;
}
.index .header-custom .logo img.l2 {
    display: none;
}
.header-custom.scroll .logo img.l1 {
    display: none;
}
.header-custom.scroll .logo img.l2 {
    display: block;
}
.header-custom .logo .title {
    display: none;
    color: #000;
    font-size: 1rem;
    line-height: 1;
    margin-top: 8px;
}
@media (max-width: 1040px) {
    .header-custom,
    .index .header-custom.scroll {
        background: transparent;
    }
	.header-custom .logo {
		height: auto;
		padding:10px 20px;
        background-color: #fff;
	}
	.header-custom .logo a {
	}
    .header-custom .logo img {
        height: 35px;
    }
}

/* mainMenu主選單 ------------------------------------------------------------------*/
.navbar-collapse {
    padding-left: 0px !important;
    padding-right: 0px !important;
}
.header-custom .mainMenu {
	margin-bottom:0;
	padding:0 8%;
	border:none;
	border-radius: 0px;
	width: 100%;
	min-height: 0px;
}
.header-custom .mainMenu>nav {
	position: relative;
	margin-top: 0px;
}
.header-custom .mainMenu .menulist {
	position:absolute;
	display:block;
	top: -60px;
	right:0;
}
.header-custom .menulist > li {
	display: inline-block;
	text-align: center;
	font-size:1.3rem
}
.header-custom .menulist > li:before {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0px;
	height: 5px;
	-webkit-transition-property: right;
	transition-property: right;
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
	background: #c79159;
}
.header-custom .menulist > li:hover:before,
.header-custom .menulist > li.open:before {
	right: 0;
}
.header-custom .mainMenu .menulist>li a {
	display: inline-block;
	padding:20px 23px;
	width:100%;
	z-index:900;
	color: #333;
}
.header-custom .menulist.nav>li>a:focus,
.header-custom .menulist.nav>li>a:hover {
    background-color: transparent;;
}
.header-custom .mainMenu .menulist>li:hover a,
.header-custom .mainMenu .menulist>li.open a {
	color: #333;
}
.header-custom .mainMenu .menulist>li.open>a {
	background: transparent;
}
.header-custom .mainMenu .menulist>li .dropdown-submenu > a:hover:after,
.header-custom .mainMenu .menulist>li.open .dropdown-submenu > a:hover:after {
    border-left-color: #fff;
}

/*展開按鈕*/
.header-custom .mainMenu .menulist>li a.caret {
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    padding: 0;
    border: none;
    font-family: FontAwesome;
    color: #333;
    background-color: transparent;
    cursor: pointer;
    text-align: right;
    z-index: 1010;
}

.header-custom .mainMenu .menulist>li a.caret[aria-expanded="true"] i.fa-angle-down:before {
    content: "\f106";
}

.header-custom .mainMenu .menulist>li:hover>a:first-child,
.header-custom .mainMenu .menulist>li.open>a:first-child {
    background-color: none;
}
.header-custom .mainMenu .menulist>li:hover > a,
.header-custom .mainMenu .menulist>li.open  > a {
	/*color: #ffce94;*/
}
/* 主選單第二層 ------------------------------------------------------------------*/
.header-custom .menulist .dropdown-menu {
	min-width:130px;
	text-align:center;
	font-size: 1.1rem;
	border-radius: 0px;
	box-shadow: none;
	padding: 0;
}
.header-custom .menulist .dropdown-menu li {
	position:relative;
	min-width:100%;
	text-align:center;
}
.header-custom .menulist>li:hover>.dropdown-menu,
.header-custom .menulist>li.open>.dropdown-menu {
	margin-top: 0px;
}
.header-custom .mainMenu > li {
	padding: 20px 10px;
}
.header-custom .mainMenu > li > a {
	padding: 20px 10px;
}
/* 主選單第二層以後顏色 */
.header-custom .dropdown-menu {
	color: #333;
	background-color: #f2f3f5;
	border: none;
}
.header-custom .dropdown-menu li a {
	/*color: #333!important;*/
}
.header-custom .dropdown-menu li a:hover {
	background: #c79159;
	color: #fff !important;
}
.header-custom .dropdown-menu > .active > a,
.header-custom .dropdown-menu > .active > a:focus,
.header-custom .dropdown-menu > .active > a:hover {
	background: #c79159 !important;
	color: #fff !important;
}


@media (max-width: 1040px) {
	.header-custom .menulist > li {
       background: #000000ad;
		border-right: none;
	}
    .header-custom .mainMenu .menulist>li>a {
        color: #fff;
    }
    .header-custom .mainMenu .menulist>li a.caret {
        padding: 0 20px 0 0;
        color: #fff;
    }
	/* 主選單第二層以後 */
	.header-custom .menulist .dropdown-menu {
		font-size: 1.05rem;
		margin: 0;
		background-color: #000;
		border: 0px solid transparent;
	}
    .header-custom .dropdown-menu li a:hover {
        background: #5a5a5a;
        color: #fff !important;
    }
}

/* 主選單第三層以後 */
.header-custom .menulist>li.dropdown>ul .dropdown-menu {
	position:absolute;
	top:0;
    margin-top:0;
	left:100%;
}
.header-custom .menulist>li li:hover>.dropdown-menu {
	display:block;
}



@media (min-width: 1041px) {
	.header-custom .dropdown:hover>.dropdown-menu {display: block;}
}
@media (max-width: 1040px) {
    /*主選單*/
	.header-custom .mainMenu {
		padding: 0;
		border: none;
	}
	.header-custom .mainMenu .menulist {
		position: relative;
		float:none;
		top: 0px;
		text-align: center;
		margin: 0;
       max-height: 100vh;
       height:100vh;
       overflow-x: hidden;
       overflow-y: auto;
       padding-bottom: 80px;
       background-color: #000000b3;
    }
	.header-custom .menulist > li:before {
		content: "";
		position: absolute;
		left: 0;
		right: 100%;
		bottom:0;
		height:0;
		background: none;
	}
	.header-custom .mainMenu .menulist>li a {
        padding: 20px 10px 20px 20px ;
        text-align: left;
	}
	.header-custom .mainMenu .menulist>li a.caret {
        padding: 0 20px 0 0;
        text-align: right;
	}

	/*主選單第二層*/
    .header-custom .menulist>li.dropdown>ul a {
        padding: 20px 0px 20px 30px;
        font-size: 1.1rem;
        white-space: nowrap;
    }
    /*取消hover打開第三層*/
   .header-custom .menulist li.dropdown-menu a:hover ul  {
        display:none;
	}
    /*打開第三層的按鈕(偽元素)*/
   /* .header-custom .menulist>li.dropdown>ul.dropdown-menu>li::before {
        position: absolute;
        top: 0;
        right: 0;
        display:block;
        width: 70%;
        height:60px;
        line-height:60px;
        font-family: FontAwesome;
        /*content: "\f107";*/
        /*content: "我是偽元素";
        text-align: right;
        padding: 0 20px 0 0;
        z-index:100000;
    }*/
    /*偽元素hover似乎無效*/
    .header-custom .menulist>li.dropdown>ul.dropdown-menu>li:hover::before {
        background:#000;
        color:red;
    }
    
	/*主選單第三層以後*/
    .header-custom .menulist>li.dropdown>ul .dropdown-menu {
		position: relative;
       display:block !important;
		left:0;
        text-align: left;
        width:100%;
        padding: 10px;
        background:#fff;
	}
     .header-custom .menulist>li.dropdown>ul .dropdown-menu li {
		width: auto !important;
        min-width: auto !important;
         display: inline-block;
         border-top: none;
	}
	.header-custom .menulist>li.dropdown>ul .dropdown-menu a {
        width: auto;
        font-size: 1rem;
		padding: 10px !important;
        font-weight: 400;
	}
    .header-custom .mainMenu .menulist>li:hover a,
    .header-custom .mainMenu .menulist>li.open a {
        color: #fff;
    }
    .header-custom .menulist>li.dropdown>ul .dropdown-menu a:hover {
        background:#fff;
        color:#266ce9;
	}
    /*其他連結*/
    .header-link {
        display: none;
    }
    
    /*漢堡選單*/
    .mainMenu .navbar-header {
		height: inherit ;
		position: absolute;
		top: 5px;
		right: 0;
	}
	.mainMenu .navbar-toggle {
		display: block;
		z-index: 3000;
       padding: 12px 12px;
       margin-top: 0;
       margin-right: 8px;
       margin-bottom: 0;
       border-radius: 4px;
	}
    .mainMenu .navbar-toggle .icon-bar {
		width: 30px;
		height: 2px;
		background-color: #333 !important;
	}
	.navbar-toggle .icon-bar+.icon-bar {
		margin-top: 7px;
	}
	.mainMenu .navbar-toggle:hover .icon-bar,
    .mainMenu .navbar-toggle:focus .icon-bar {
		background-color: 6 !important;
	}
	.mainMenu .navbar-toggle:focus,
    .mainMenu .navbar-toggle:hover {
		background-color: transparent;
		border-color: transparent;
	}
	
	/* dropdown-menu (第二層以後的選單) */
    .header-custom .menulist > li > a:hover, 
    .header-custom .menulist > .open > a, 
    .header-custom .menulist > .open > a:focus, 
    .header-custom .menulist > .open > a:hover {
		color: ;
		background-color: ;
	}
	.header-custom .menulist > li > a:before {
		background: #d75d07;
	}
	.header-custom .menulist > li > a:hover:before {
		background: #d75d07;
		-webkit-transition-property: right;
		transition-property: right;
		-webkit-transition-duration: 0.3s;
		transition-duration: 0.3s;
		-webkit-transition-timing-function: ease-out;
		transition-timing-function: ease-out;
	}
	.header-custom .menulist > li > a:focus,
	.header-custom .menulist > li > a:hover {
		color: ;
		background-color: transparent;
	}
	.header-custom .menulist > .active > a,
	.header-custom .menulist > .active > a:focus,
	.header-custom .menulist > .active > a:hover {
		background-color: transparent;
	}
	  /* ff only */
	  @-moz-document url-prefix() {
		 .dropdown-submenu > a:after {
		 margin-top: -10px;
		}
	}
}

@media screen and (min-width: 992px) and (max-width: 1040px) {
	.navbar-default .navbar-header {
		height: 80px !important;
		position: absolute;
		top: -60px !important;
		right: 0;
	}
	.nav-fit {
		position: absolute;
		padding: 0px;
		z-index: 600;
	}
	.navbar-collapse > .nav-menu {
		margin-top: 0px !important;
	}
}

@media only screen and (max-width: 1040px) {
	/* menu settings (行動版選單設定) */
	 .nav-fit .hidden-sm {
		display: none;
	}
	 .navbar-form {
		padding: 0 15px;
		width: auto;
	}
	 .navbar-nav > li:first-child {
	}
	 .navbar-nav > li > a {
		line-height: 20px;
	}
	 .nav > li > a {
		position: relative;
		display: block;
		padding: 10px;
	}
	 .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
		color: #fff;
	}
	 .navbar-collapse > .nav-menu {
		margin-top: 0px;
	}
	 .navbar-collapse > .nav-fit {
		display: block;
		width: 100%;
	}
	 .navbar-collapse.collapse {
		display: none !important;
	}
	 .navbar-collapse.collapse.in {
		display: block !important;
	}
	 .collapsing {
		overflow: hidden !important;
	}
	 .navbar-right {
		float: none !important;
	}
	 .navbar-top .nav-fit .navbar-form {
		margin-left: -15px !important;
		margin-right: -15px !important;
	}
	 .nav-menu li {
		display: block;
		width: 100% !important;
		text-align: left !important;
	}
	 .dropdown.open > .dropdown-menu {
		width: 100% !important;
		position: static;
		float: none;
		border: none;
	}
}

/* 漢堡選單變化用 Burgur---------------------------------------------------*/
.icon-bar{
    transition:0.3s;
}
.rotate-top {
  transform-origin: top left;
  transform: translate(10px, 0px) rotate(45deg);
  transition: 0.5s;
  margin-bottom: 10px;
}
.rotate-btm {
  transform-origin: bottom left;
  transform: translate(10px, 0px) rotate(-45deg);
  transition: 0.5s;
}
.slash-hide {
  opacity: 0;
  transition: 0.2s;
  transform: translateX(50%); 
}
/*.top-slash,.mid-slash,.btm-slash{
   opacity:1;
   animation:slash-fade-in 1s ease-in-out;
}
.mid-slash{
    transition-delay:0.3s;
}
.btm-slash{
    transition-delay:0.6s;
}
@keyframes slash-fade-in{
    0%{
        opacity:0;
        transform: translate(-50px, 0px) ;
    }
    100%{
        opacity:1;
        transform: translate(0px, 0px) ;
    }
}*/

/* 首頁下拉 ---------------------*/
.index .header-custom {
	background: #00000000;
}
.index .header-custom .mainMenu .menulist>li>a {
	color: #fff;
}
/*展開按鈕*/
.index .header-custom .mainMenu .menulist>li a.caret {
    color: #fff;
}
.index .header-custom.scroll {
    width: 100%;
    position: fixed !important;
    background: #fff;
}
.index .header-custom .mainMenu .menulist>li>a {
    color: #fff;
}
.index .header-custom.scroll .mainMenu .menulist>li>a {
    color: #333;
}
.header-custom.scroll .menulist > li:before {
    background: #c79159;
}
@media (max-width: 1040px) {
    .index .header-custom,
    .index .header-custom.scroll{
        background: transparent;
    }
    .index .header-custom .logo {
        background: #0000004d;
        background: #00000000;
    }
    .index .header-custom.scroll .logo {
        background-color: #fff;
    }
    
     .index  .mainMenu .navbar-toggle .icon-bar {
        width: 30px;
        height: 2px;
        background-color: #fff !important;
    }
    .index   .header-custom.scroll  .mainMenu .navbar-toggle .icon-bar {
        width: 30px;
        height: 2px;
        background-color: #333 !important;
    }
    
    /*主選單*/
    .index .header-custom.scroll .mainMenu .menulist>li a {
        color: #fff;
    }
    .header-custom .mainMenu .menulist>li:hover>a:first-child, .header-custom .mainMenu .menulist>li.open>a:first-child {
        background-color: #272727;
    }
    .index .header-custom.scroll .mainMenu .menulist>li>a {
        color: #fff;
    }
}

