

#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button
 {
	margin: 0;
	border: 0;
	list-style: none;
	line-height: 1;
	display: block;
	position: relative;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	float: none;
	font-weight: normal;
	padding: 0;
	color: #069;
	z-index: 999;
}

#cssmenu:after,
#cssmenu > ul:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
#cssmenu #menu-button {
  display: none;
}
#cssmenu {
	font-family: "Times New Roman", "新細明體",Times, serif;
	border-bottom: 1px solid #af9d5f;
}
#cssmenu > ul {
	text-align: center;
	margin-top: 0px;
	padding-top: 0px;
}
#cssmenu > ul > li {
	display: inline-block;
	float: none;
	margin-right: 15px;
	margin-left: 15px;
}

#cssmenu > ul > li > a {
	font-size: 17px;
	width: 100%;
	font-weight: bold;
}

#cssmenu > ul > li > a ,.sg:hover span {
	text-align: center;
	letter-spacing: 1px;
	text-decoration: none;
	font-weight: lighter;
	border-bottom: 3px  solid  rgba(175, 157, 95, 0);
	color: #af9d5f;
	padding: 15px;
}

#cssmenu > ul > li:hover > a,#cssmenu > ul > li.active > a {
	border-bottom-color: rgba(175, 157, 95, 100);}
#cssmenu > ul > li:hover > a{color: rgba(175, 157, 95, 0);}
.sg,.active {position:relative; z-index: 0; } 
.sg:hover { z-index:99; } 
.sg span {
	position: absolute;
	visibility: hidden;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	font-size: 12pt;
} 
.sg:hover span {
	visibility: visible;
	position: absolute;
	top:0;
	left: 0;
	cursor: pointer;
	text-align: center;
	margin-right: -15px;
	margin-left: -15px;
} 




#cssmenu > ul > li.has-sub > a {
}

#cssmenu > ul > li.has-sub:hover > a:before {
  top: 23px;
  height: 0;
}
#cssmenu ul ul {
  position: absolute;
  left: -9999px;
}
#cssmenu ul ul li {
  height: 0;
  -webkit-transition: all .25s ease;
  -moz-transition: all .25s ease;
  -ms-transition: all .25s ease;
  -o-transition: all .25s ease;
  transition: all .25s ease;
}
#cssmenu li:hover > ul {
  left: auto;
}

#cssmenu li:hover > ul > li {
  height: 35px;
}
#cssmenu ul ul ul {
  margin-left: 100%;
  top: 0;
}

#cssmenu ul ul li a {
	border-bottom: 1px solid rgba(150, 150, 150, 0.15);
	min-width: 110px;
	text-decoration: none;
	color: #FFFFFF;
	font-weight: 100;
	background-color: #58B530;
	text-align: center;
	padding-top: 12px;
	padding-right: 5px;
	padding-bottom: 12px;
	padding-left: 5px;
}
#cssmenu ul ul li:last-child > a,
#cssmenu ul ul li.last-item > a {
  border-bottom: 0;
}
#cssmenu ul ul li:hover > a,
#cssmenu ul ul li a:hover {
	color: #ffffff;
	background-color: #609;
}
#cssmenu ul ul li.has-sub > a:after {
	top: 16px;
	display: block;
	}
#cssmenu ul ul li.has-sub > a:before {
	position: absolute;
	top: 13px;
	display: block;
	width: 2px;
	height: 8px;
	content: '';
	-webkit-transition: all .25s ease;
	-moz-transition: all .25s ease;
	-ms-transition: all .25s ease;
	-o-transition: all .25s ease;
	transition: all .25s ease;
	background-color: #0066CC;
}

#cssmenu ul ul > li.has-sub:hover > a:before {
	top: 17px;
	height: 0;
	background-color: rgba(40%,60%,100%,1);
	
}

@media screen and (max-width: 901px) {
	#cssmenu > ul > li {margin-right: 10px;margin-left: 10px;}
	#cssmenu > ul > li > a {font-size: 18pt;}
	
}


@media all and (max-width: 900px), 
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 #menu-button  {
	width: 80px;
	height: 50px;
	background-color: rgba(255, 255, 255, 0);
	float: none;
  }
#cssmenu {
	width: 100%;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	z-index: 998;
	top: -70px;
		  }
#cssmenu ul {
	display: none;
	width: 80%;
	margin-right: 10%;
	margin-left: 10%;
	margin-top: 70px;
	  }
#cssmenu ul li {
	margin-right: 0px;
	margin-left: 0px;
	width: 100%;
	border-bottom: 1px solid rgba(175, 157, 95, 0.3);
	background-color: rgba(249,249,246,0);
  }

#cssmenu > ul > li > a{
	font-size: 18pt;
	color: rgba(175, 157, 95, 0);
	margin-right: -10%;
	padding-right: 10%;
	border-bottom: 3px solid rgba(175, 157, 95, 0);
	text-align: center;
	left: 15px;
	}
#cssmenu > ul > li > a,.sg:hover span{
	font-size: 16pt;
	padding-top: 30px;
	padding-bottom: 30px;}
#cssmenu > ul > li:hover > a ,#cssmenu > ul > li.active > a{
	color: rgba(175, 157, 95, 0);
	border-bottom: 3px solid rgba(175, 157, 95, 0.5);
	width: 80%;
	right: 10%;
	left: 10%;
}	
#cssmenu > ul > li.active span{
	left: 15px;
}	
#cssmenu > ul > li.sg.active:hover span{
	left: 0px;
}
.sg:hover span{
	text-shadow: 1px 1px 1px #000,0px 0px 9px rgba(175, 157, 95, 1);
	text-align: center;
	margin-right: -10px;
	margin-left: -10px;
}
.sg span{
	font-size: 16pt;
	visibility: visible;
	color: rgba(175, 157, 95, 100);
	margin-left: -10px;
	border-bottom: 3px solid rgba(175, 157, 95, 0);
	position: absolute;
	left: 0px;
}

#cssmenu #menu-button {
    display: block;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
  }
  /*三條線設定*/
  #cssmenu #menu-button:after {
    position: absolute;
    top: 22px;
    right: 17px;
    display: block;
    height: 8px;
    width: 33px;
    border-top: 2px solid  #af9d5f;
    border-bottom: 2px solid  #af9d5f;
    content: '';
  }
  #cssmenu #menu-button:before {
    position: absolute;
    top: 12px;
    right: 17px;
    display: block;
    height: 2px;
    width: 33px;
    background:  #af9d5f;
    content: '';
  }
  /*X條線設定*/
  #cssmenu #menu-button.menu-opened:after {
    top: 23px;
    border: 0;
    height: 2px;
    width: 33px;
    background:  #af9d5f;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  #cssmenu #menu-button.menu-opened:before {
    top: 23px;
    background:   #af9d5f;
    width: 33px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
 
 
 
  }
  
  

