
/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100%;
  font-family: sans-serif;
} */


/* ----------------------------------------------- */


header {
    position: fixed;
    z-index: 100;
    width: 100%;
    background: #ffffff;
    /* border-bottom: 1px solid #e9ecef; */
    /* border-top: 3px solid #ccc; */
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

header .wrapper{
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 1200px;
  height: 70px;
  position: relative;
  margin: 0 auto;  /* 置中 */
  padding: 0 15px;

}

header .wrapper a {
  text-decoration: none;
  /* color: black; */
}

header .wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;

}


/* ----------------------------------------------- */

/* ■■ Logo ■■ */
header .logo{
  flex: 1;    /* 間距  */
}
header .logo img{
  /* font-size: 30px;
  font-weight: bold; */
  max-width: 90%;
  /* margin-left: 20px; */
  /* flex-grow: 1; */

}

@media (max-width:400px){


  header .logo img{
    max-width: 80%;
  }


}

/* ----------------------------------------------- */


/* 父選單 */
#nav-box > ul > li{
    display: inline-block; /* 選單方向(直向) */
    line-height: 70px;
    /* position: relative; */
}


#nav-box li a{
    text-decoration: none;
    padding:0 9px;
    display: block;
    color:#333;
    font-weight: 700;
}

#nav-box ul li a:hover{
    text-decoration: none;
    background: #F44336;
    color: #fff;
   
}

#nav-box > ul > li.has-sub > ul > li > a {
  text-decoration: none;
  padding: 3px 9px;
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 100;

}
#nav-box > ul > li.has-sub > ul > li > a:hover{
  text-decoration: none;
  background: #F44336;
  color: #fff;
}

/* ------------------子選單------------------------ */


/* 滑過展開 */
#nav-box li:hover ul{ 
    display:block;

}


/* 子選單(隱藏) */
#nav-box ul ul{
    display:none;
    position: absolute;
    top:70px;
    min-width:200px;
    box-shadow: 0px 2px 10px rgba(0,0,0,.09);

}

/* 子選單(外觀) */
#nav-box ul ul li{
    line-height:45px;
    border-top: 1px solid #ccc;
    background-color: #fff;
}

/* 漢堡圖示 */
.nav-toggle{
  display: none;
}



#nav-box ul li a:has(+ul)::after{

  display: inline-block;
  content: " ";
  margin: 0 0 3px 5px;

  width: 7px;
  height: 7px;
  border-top: 2px solid #929292;
  border-right: 2px solid #929292;

  transform: rotate(135deg);
  transition: all 0.6s;   

}

#nav-box ul li a:hover:after {
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}














@media (max-width:992px){

  /* ------------------ 漢堡------------- */
  .nav-toggle{
    /* flex-grow: 0; */
    display: block;
    font-size: 30px;
    cursor: pointer;
  }



  /* ------------------父選單------------------------ */
  /* ------------------父選單------------------------ */
  /* ------------------父選單------------------------ */

  /* 先關閉父選單 */
  #nav-box ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 100;
  }

  /* 當點擊時顯示 */
  #nav-box ul.active{
    display: block;
  }

  /* 選單排列方向(垂直向下) */
  #nav-box ul li {
    display: block;
  }

  #nav-box ul li a {
    display: block;
    padding: 4px 20px;
    line-height: 30px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    position: relative;
  }





  /* ------------------子選單------------------------ */
  /* ------------------子選單------------------------ */
  /* ------------------子選單------------------------ */
  #nav-box li:hover ul {
      display: none;   /* 關閉滑過展開(電腦版) */
  }

  #nav-box ul ul.active {
    display: block;   /* 點擊觸發 */
    padding: 0 22px 0 22px;
  }

  #nav-box ul ul {
      position: initial;  /* 取消電腦版的設定 */
  }

  /* 子選單(外觀) */
  #nav-box ul ul li{
      line-height:50px;
      border-top: 0px solid #ccc;
  }

  #nav-box ul ul li a {
    padding: 2px 40px;
  }





  /* ------------------子選單(箭頭)------------------------ */

  #nav-box ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  #nav-box ul li.active a:has(+ul)::after{

    transform: rotate(315deg);

  }


  #nav-box > ul > li.has-sub > ul > li > a {

    padding: 6px 9px;

    border-bottom: 1px solid #e2e2e2;
  }

/* 
      nav ul li a .fa-angle-down {
        transform: rotate(0deg);
        transition: all 0.6s;
 

      } */

      /* nav ul.active li.active  {
        transform: rotate(180deg);
      } 
     */

}






@media (max-width: 992px){

  .nav-toggle {
    /* position: fixed; */
    right: 15px;
    cursor: pointer;
    order:3;
    z-index: 200;
  }
  
   .nav-toggle .bar1,   .nav-toggle .bar2,   .nav-toggle .bar3 {
    width: 26px;
    height: 2px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 4px;
  }
  
  .nav-toggle.active .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  .nav-toggle.active .bar2 {opacity: 0;}
  
  .nav-toggle.active .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -6px);
    transform: rotate(45deg) translate(-6px, -6px);
  }




}




/*  */

.headr-icon{
  display: flex;
  margin-left: 20px;
  margin-top: 0px;
}


.headr-icon .box-0 a{
    background: #ee4145;
    padding: 4px 15px;
    border-radius: 29px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;

} 
.headr-icon .box-0 a:hover{
  background: #c93c3e;
  color: #fff;
} 
@media (max-width: 992px){
  .headr-icon .box-0{
    margin: 2px 20px 0;
  } 

  .headr-icon .box-0 a{
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 22px;
  } 

}