@import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700);
#cssmenu {
/* 	background: rgba(100%,100%,100%,0.8);   最底層背景色*/
	width: 1000px;
	padding: 0;
	/*	line-height: 1;  */
	font-family: 'PT Sans', sans-serif;
	margin-top: 0;
	margin-bottom: 0;
	position: relative;
	display: block;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	text-align: center;
	margin-right: auto;
	margin-left: auto;
	z-index: 999;
	
}

.sticky-nav {
	background: rgba(234,229,218,0.8);

	
}

#cssmenu ul {
	list-style: none;
    padding: 0;
    display: inline-block;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0px;
    text-align: center;
		
}


#cssmenu ul:after {
	content: ' ';
	display: block;
	font-size: 0;
	height: 0;
	clear: both;
	visibility: hidden;
	

}
#cssmenu ul li {
	padding: 0;
	display: block;
	position: relative;
 /*	width: 140px;     指定選單寬度*/
	text-align: center;
	margin-top: 0;
	margin-right: 4px;
	margin-bottom: 0;
	margin-left: 4px;
	z-index: 99;     /*讓選單不被網頁覆蓋*/
	

}
#cssmenu ul li a {
  text-decoration: none;
  display: block;
  margin: 0;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
  	position: relative;
	z-index: 99;     /*讓選單不被網頁覆蓋*/
	

}



#cssmenu ul li ul {     
  position: absolute;
  left: -9999px;
  top: auto;
  
  
  
width:140px;    /*  指定下拉選單roll 界線*/
  
}
#cssmenu ul li ul li {
  max-height: 0;
  position: absolute;
  -webkit-transition: max-height 0.4s ease-out;
  -moz-transition: max-height 0.4s ease-out;
  -ms-transition: max-height 0.4s ease-out;
  -o-transition: max-height 0.4s ease-out;
  transition: max-height 0.4s ease-out;
  background: #f1ebdb;  


  
}
#cssmenu ul li ul li.has-sub:after {
  display: block;
  position: absolute;
  content: '';
  height: 10px;
  width: 10px;
  border-radius: 5px;
  background: #000; /*箭頭right背景顏色*/
  z-index: 1;
  top: 13px;
  right: 15px;
  
}
#cssmenu ul li ul li.has-sub:before {
	display: block;
	position: absolute;
	content: '';
	height: 0;
	width: 0;
	border: 3px solid transparent;
	border-left-color: #5992ab;     /*箭頭right顏色*/
	z-index: 2;
	top: 15px;
	right: 15px;
}
#cssmenu ul li ul li a {  /* 下拉第一層list*/
	font-size: 16px;
	font-weight: 400;
	text-transform: none;
	color: #242424;
	letter-spacing: 0;
	display: block;
	padding: 11px 10px 11px 20px;
	font-family: "微軟正黑體";

}
#cssmenu ul li ul li:hover > a,
#cssmenu ul li ul li.active > a { /* 第一層選單字體顏色、背景*/
	color: #ffffff;
	background-color: #6ac9c6;

}
#cssmenu ul li ul li:hover:after,
#cssmenu ul li ul li.active:after {  /* 箭頭roll*/
  background: #ffffff;
  
}


#cssmenu ul li ul li:hover > ul {   /* 第二層選單位置*/
  left: 141px;
  top: 0;

}
#cssmenu ul li ul li:hover > ul > li {  
	max-height: 72px;
	position: relative;

}
#cssmenu > ul > li {
  float: left;
}
#cssmenu > ul > li:after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  z-index: 0;
  background: ##55a19b;       /*first選單roll顏色*/
  -webkit-transition: height .2s;
  -moz-transition: height .2s;
  -ms-transition: height .2s;
  -o-transition: height .2s;
  transition: height .2s;
  
}
#cssmenu > ul > li.has-sub > a {
  padding-right: 40px;
  
}
#cssmenu > ul > li.has-sub > a:after {
  display: block;
  content: '';
  background: #ffffff;      /*first箭頭背景顏色*/
  height: 12px;
  width: 12px;
  position: absolute;
  border-radius: 13px;
  right: 14px;
  top: 28px;
  
}
#cssmenu > ul > li.has-sub > a:before {
  display: block;
  content: '';
  border: 4px solid transparent;
  border-top-color: #55a19b;          /*first箭頭顏色*/
  z-index: 2;
  height: 0;
  width: 0;
  position: absolute;
  right: 16px;
  top: 33px;
  
}
#cssmenu > ul > li > a {    /*first選單控製*/
	color: #3d3936;
	padding: 12px 16px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 16px;
	z-index: 2;
	position: relative;
	font-family: "微軟正黑體";  
	line-height: 30px;
	
}
#cssmenu > ul > li:hover:after,
#cssmenu > ul > li.active:after {
  height: 100%;

}
#cssmenu > ul > li:hover > a,
#cssmenu > ul > li.active > a {
  color: #fff;   /*first選單roll字體顏色*/
    	background-color: #55a19b;
}
#cssmenu > ul > li:hover > a:after,
#cssmenu > ul > li.active > a:after {
  background: #4b4b4b;      /*first箭頭背景顏色*/
}
#cssmenu > ul > li:hover > a:before,
#cssmenu > ul > li.active > a:before {
  border-top-color: #5992ab;     /*first箭頭顏色*/
}  
#cssmenu > ul > li:hover > ul {
  left: 0;
}
#cssmenu > ul > li:hover > ul > li {
  max-height: 72px;
  position: relative;
}
#cssmenu #menu-button {
  display: none;
}

@media all and (max-width: 990px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
    #cssmenu  {
    width: 100%;
	
	
  }
  
  #cssmenu > ul {
    max-height: 0;
    overflow: hidden;
	margin-left: -20px;
	margin-right: -20px;
	padding-left: 20px;
	padding-right: 20px;
    -webkit-transition: max-height 0.35s ease-out;
    -moz-transition: max-height 0.35s ease-out;
    -ms-transition: max-height 0.35s ease-out;
    -o-transition: max-height 0.35s ease-out;
    transition: max-height 0.35s ease-out;
  }
  #cssmenu > ul.open {
	background: rgba(234,229,218,0.9);
    max-height: 1200px;
    border-top: 1px solid rgba(110, 110, 110, 0.25);
/*	background: rgba(100%,100%,100%,0.8); */
    
	}
	
  #cssmenu ul {
    width: 100%;
  }
  #cssmenu ul > li {
    float: none;
	      /*指定選單寬度*/
	text-align: center;
  }
  #cssmenu ul li a {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 20px;
  }
  #cssmenu ul > li:after {
    display: none;
	  background: #5992ab;
  }
  #cssmenu ul li.has-sub > a:after,
  #cssmenu ul li.has-sub > a:before,
  #cssmenu ul li ul li.has-sub:after,
  #cssmenu ul li ul li.has-sub:before {
    display: none;
  }
  #cssmenu ul li ul,
  #cssmenu ul li ul li ul,
  #cssmenu ul li ul li:hover > ul {
	  
    left: 0;
    position: relative;
  }
  #cssmenu ul li ul li,
  #cssmenu ul li:hover > ul > li {
	  
    max-height: 999px;
    position: relative;
    background: none;
  }
  #cssmenu ul li ul li a {
    padding: 8px 20px 8px 35px;
    color: #ffffff;
	
  }
  #cssmenu ul li ul ul li a {
    padding: 8px 20px 8px 50px;
  }
  #cssmenu ul li ul li:hover > a {
    color: #ffffff;
	background: #55a19b;
	
	
  }
  #cssmenu #menu-button {
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding: 15px 20px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;

    cursor: pointer;
  }
  #cssmenu #menu-button:after {
    display: block;
    content: '';
    position: absolute;
    height: 3px;
    width: 22px;
    border-top: 2px solid #4b4b4b;
    border-bottom: 2px solid #4b4b4b;
    right: 20px;
    top: 16px;
  }
  #cssmenu #menu-button:before {
    display: block;
    content: '';
    position: absolute;
    height: 3px;
    width: 22px;
    border-top: 2px solid #4b4b4b;
    right: 20px;
    top: 26px;
  }
  
  #cssmenu > ul > li > a {    /*first選單控製*/

	line-height: 10px;
	
}
  
@media (max-width: 767px) {
    #cssmenu  {
    width: 100%;
	margin-left: -20px;
	margin-right: -20px;
	padding-left: 20px;
	padding-right: 20px;
  }
}
