nav, ul, li, a  {margin: 0; padding: 0;}
a {text-decoration: none;}
.home_linklist {
  /* 取消ul預設的內縮及樣式 */
  margin: 0;
  padding: 0;
  list-style: none;
}
.home_linklist li img:hover{
  border-color: #e3df06;
  border-width: auto;
}
.toggleMenu {
    display:  none;
    background: #666;
    padding: 4px 4px;
    color: #fff;
}

.navmenu {
    list-style: none;
     *zoom: 1;
     background:#175b96; /* menucoloar3主選單顏色 */
     font-size: 1.2em; /*選單文字大小 */
}
.navmenu:before,
.navmenu:after {
    content: " "; 
    display: table; 
}
.navmenu:after {
    clear: both;
}
.navmenu ul {
    list-style: none;
    width: 15em;    /* 在PC大螢幕上的 item width */
}
.navmenu a {
    padding: 10px 15px;
    color:#fff;
}
/*  --- */
ul.navmenu li:hover>a {
  /* 滑鼠移入次選單上層按鈕保持變色*/
  background-color: #0693e3; /* menucoloar4滑鼠移入次選單顏色 */
  color: yellow  ; 
}

.navmenu li {
    position: relative;
}
.navmenu > li {
    float: left;
    border-top: 1px solid #104336;
}
.navmenu > li > .parent {
    background-image: url("/knimg/downArrow.png");
    background-repeat: no-repeat;
    background-position: right;
}
.navmenu > li > a {
    display: block;
}
.navmenu li  ul {
    position: absolute;
    left: -9999px;
}
.navmenu > li.hover > ul {
    left: 0;
}
.navmenu li li.hover ul {
    left: 100%;
    top: 0;	
}
.navmenu li li a {
    display: block;
    background: #176796; /* menucoloar5主選單第一層選項背景顏色 */
    position: relative;
    z-index:100;
    border-bottom-style: dashed ;
    border-width: thin;
    border-color:papayawhip;
}
.navmenu li li li a {
    background:#177296; /* menucoloar6主選單第二層選項背景顏色 */
    z-index:200;
    border-top: 1px solid #1d7a62;
}
ul.navmenu li:focus-within>a {
  /* 滑鼠移入次選單上層按鈕保持變色*/
  background-color: #7f9617; /* 滑鼠點選之後項目變色 */
  color: #fff;
}

/*Desktop*/
@media screen and (min-width: 750px) {
  /* important */
  ul.navmenu li:focus-within>ul {
    display: block;
    left: 0;
  }
  ul.navmenu ul li:focus-within>ul {
    /*第三層以後的選單出現位置與第二層不同*/
    top: 0px;
    left: 100%;
  }
  .navmenu li li .parent {
    background-image: url("/knimg/downArrow.png");
    background-repeat: no-repeat;
    background-position: 95% 50%;
  }

  .container_topmobile, .mobile_menuguide, .searchbox_mobile, 
  .home_section_wrap1, .home_section_wrap2,
  .home_section_wrap3, .home_section_wrap4  {
    display: none;
  }
}
/* End media screen Desktop */

/*mobile phone*/
@media screen and (max-width: 750px) {
    .active {
        display: block;
    }
    .container_top {
      display: none;
    }    
    .navmenu > li {
	      float: none;
    }	
    .container_mainmenu {
      /* 每個選單選項才會橫向排滿 */
      flex-direction: column;
    }
    .container_3colum_flex{
      flex-direction: column;
    }
    .left_area, .right_area, 
    .left_flexblank, .right_flexblank,
    .linkpage_left, .linkpage_right {
      display: none;
    }
    .linkpage_center{
      max-width: 100%; 
    } 

    .navmenu > li > .parent {
        background-position: 95% 50%;
    }
    .navmenu li li .parent {
        background-image: url("/knimg/downArrow.png");
        background-repeat: no-repeat;
        background-position: 95% 50%;
    }
    .navmenu ul {
        display: block;
        width: 100%;
    }
   .navmenu > li.hover > ul , .navmenu li li.hover ul {
        position: static;
    }
}
/* End media screen mobile phone */

/***********************************************************/
.ham {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: rgba(0,0,0,.3);
  display: block;
  position: relative;
}

.ham-origin {
  position: absolute;
  top: 50%;
  left: 50%;
}

.ham-bar {
  height: 2px;
  width: 26px;
  position: absolute;
  background: white;
  margin: -1px 0 0 -13px;
  transition: all .5s;
}

.ham-bar--top {
  transform: translateY(-6px);
}

.ham-bar--bottom {
  transform: translateY(6px);
}

#nav-toggle {
  display: none;
}

#nav-toggle:checked ~ .ham .ham-bar--middle {
  opacity: 0;
}

#nav-toggle:checked ~ .ham .ham-bar--top {
  transform: rotate(-45deg);
}

#nav-toggle:checked ~ .ham .ham-bar--bottom {
  transform: rotate(45deg);
}

/****/
#nav-toggle:checked ~ .navmenu {
	//display: inline-block;
  //transform: none;
  display: block;
}
/* Nav Style */
/* no use */
.menu {    
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 30px;
  background: rgba(0, 0, 0, .3);
  /* 用 translate 把選單藏到畫面右邊去 */
  transform: translateX(100%);
  transition: transform .5s;
}

#nav-toggle:checked ~ .menu {
  transform: none;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item + .menu-item {
  margin-top: 20px;
}

.menu-link {
  text-decoration: none;
  color: white;
}