/*********** 電腦版本 *********/
/* 導覽列 */
nav {
  height: 60px;
  display: flex;
  background-color: black;
  position: fixed;
  z-index: 100;
}

#logo {
  width: 100px;
  height: 60px;
  padding-top: 10px;
  margin-left: 8%;
}

#logo > img {
  width: 100%;
}

#main_menu {
  display: flex;
  width: 40%;
  justify-content: space-around;
  margin-left: 100px;
}

#main_menu_en {
  display: flex;
  width: 40%;
  justify-content: space-around;
  margin-left: 100px;
}

#main_menu li {
  width: 100px;
  height: 60px;
  padding-top: 18px;
}

#main_menu_en li {
  width: 100px;
  height: 60px;
  padding-top: 18px;
}

#main_menu_en li > a {
  display: block;
  width: 100%;
  height: 70%;
  color: #f5f5f5;
  text-decoration: none;
  padding-top: 4px;
  text-align: center;
  letter-spacing: 0.1em !important;
  border-top: 0px solid #e70012;
  border-bottom: 0px solid #e70012;
}

#main_menu li > a {
  display: block;
  width: 100%;
  height: 70%;
  color: #f5f5f5;
  text-decoration: none;
  padding-top: 4px;
  text-align: center;
  letter-spacing: 0.2em !important;
  border-top: 0px solid #e70012;
  border-bottom: 0px solid #e70012;
}

#main_menu li > a:hover {
  transition-duration: 1s;
  border-top: 2px solid #e70012;
  border-bottom: 2px solid #e70012;
  transition-timing-function: ease-in-out;
}

#main_menu_en li > a:hover {
  transition-duration: 1s;
  border-top: 2px solid #e70012;
  border-bottom: 2px solid #e70012;
  transition-timing-function: ease-in-out;
}

/* 搜尋欄 */
#st_search {
  position: relative;
  left: 15%;
  top: 15px;
  z-index: 99;
}

#st_search .search-field {
  display: block;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 35px;
  width: 200px;
  border-radius: 15px;
  border: 0px solid white;
  padding-left: 10px;
}

#st_search_btn_1 {
  position: absolute;
  top: 3px !important;
  padding: 0px !important;
  right: 10px;
  display: block;
  width: 25px !important;
  height: 25px !important;
  background-color: rgba(0, 0, 0, 0) !important;
  border: none !important;
}

#st_search_btn > img {
  width: 100%;
}

/* 語言轉換 */
#lang {
  margin-left: 15%;
  position: relative;
  top: 4px;
}

#lang_list {
  display: none;
  width: 300%;
  height: 100px;
  background-color: goldenrod;
  position: absolute;
  left: -50px;
  padding-left: 0px;
}

#lang_list li {
  width: 100%;
  height: 50px;
  text-align: center;
  border-bottom: 1px solid blanchedalmond;
}

#lang_list li > a {
  display: block;
  width: 100%;
  height: 100%;
  color: white;
  text-decoration: none;
  padding-top: 10px;
}

#lang_list li > a:hover {
  background-color: black;
}

#ham {
  width: 40px;
  height: 40px;
  border: 1px solid white;
  padding-top: 6px;
  position: relative;
  top: 10px;
  left: 50px;
  border-radius: 10%;
  display: none;
}

#ham > hr {
  width: 80%;
  height: 0px;
  border-bottom: 5px solid white;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  margin-top: 0px;
  margin-bottom: 5px;
}

.ham_change {
  box-shadow: 0px 0px 7px rgb(125, 207, 251);
  border: 2px solid white !important;
}

/************ 桌機 ********/
@media screen and (max-width: 1400px) {
  #main_menu {
    display: flex;
    width: 40%;
    justify-content: space-around;
    margin-left: 50px;
  }

  #main_menu li {
    width: 90px;
    height: 60px;
    padding-top: 18px;
  }

  #main_menu_en {
    display: flex;
    width: 40%;
    justify-content: space-around;
    margin-left: 50px;
  }

  #main_menu_en li {
    width: 90px;
    height: 60px;
    padding-top: 18px;
  }

  #lang {
    margin-left: 15%;
    position: relative;
  }
}

@media screen and (max-width: 1200px) {
  #logo {
    width: 100px;
    height: 60px;
    padding-top: 10px;
    margin-left: 1%;
  }

  #main_menu {
    width: 50%;
    margin-left: 0px;
  }

  #main_menu_en {
    width: 50%;
    margin-left: 0px;
  }

  #st_search {
    left: 10%;
  }

  #lang {
    margin-left: 10%;
  }
}

/************ 大--平板電腦 ********/
@media screen and (max-width: 992px) {
  /* 導覽 */
  #main_menu {
    width: 50%;
    padding-left: 0px;
    margin-left: 10px;
  }

  #main_menu_en {
    width: 50%;
    padding-left: 0px;
    margin-left: 10px;
  }

  #logo {
    position: relative;
    margin-left: 1%;
  }

  #st_search {
    left: 4%;
  }

  #lang {
    margin-left: 6%;
  }

  #lang_list {
    position: absolute;
    right: 20px;
  }
}

@media screen and (max-width: 870px) {
  #main_menu {
    width: 55%;
    padding-left: 0px;
    margin-left: 5px;
  }

  #main_menu_en {
    width: 55%;
    padding-left: 0px;
    margin-left: 5px;
  }

  #logo {
    position: relative;
    margin-left: 0.5%;
  }

  #st_search {
    left: 1%;
  }

  #lang {
    margin-left: 1%;
  }

  #lang_list {
    position: absolute;
    right: 20px;
  }
}

/************ 平板電腦 ********/
@media screen and (max-width: 785px) {
}

/*********** 手機版本 *********/
@media screen and (max-width: 768px) {
  /* 導覽 */
  #main_menu {
    display: none;
    position: absolute;
    width: 100%;
    left: 0px;
    top: 60px;
    /* background-color: #0D0D0D; */
    background: linear-gradient(
      to bottom,
      rgba(76, 76, 76, 1) 0%,
      rgba(44, 44, 44, 1) 0%,
      rgba(17, 17, 17, 1) 29%,
      rgba(17, 17, 17, 1) 29%,
      rgba(43, 43, 43, 1) 55%,
      rgba(28, 28, 28, 1) 79%,
      rgba(19, 19, 19, 1) 100%
    );
    margin-left: 0px;
    padding-right: 0px;
    padding-bottom: 1px;
  }

  #main_menu_en {
    display: none;
    position: absolute;
    width: 100%;
    left: 0px;
    top: 60px;
    /* background-color: #0D0D0D; */
    background: linear-gradient(
      to bottom,
      rgba(76, 76, 76, 1) 0%,
      rgba(44, 44, 44, 1) 0%,
      rgba(17, 17, 17, 1) 29%,
      rgba(17, 17, 17, 1) 29%,
      rgba(43, 43, 43, 1) 55%,
      rgba(28, 28, 28, 1) 79%,
      rgba(19, 19, 19, 1) 100%
    );
    margin-left: 0px;
    padding-right: 0px;
    padding-bottom: 1px;
  }

  #logo {
    margin-left: 5%;
  }

  #main_menu li {
    width: 100%;
    padding-top: 0px;
  }

  #main_menu li > a {
    width: 100%;
    height: 100%;
    border-top: 1px solid gray;
    border-bottom: 1px solid #2d2d2d;
    padding-top: 20px;
  }

  #main_menu li > a:hover {
    transition-duration: 0.5s;
    border-top: 0px solid white !important;
    border-bottom: 0px solid white;
    box-shadow: 0px 0px 7px rgb(125, 207, 251) !important;
    transition-timing-function: ease-in-out;
  }

  #main_menu_en li {
    width: 100%;
    padding-top: 0px;
  }

  #main_menu_en li > a {
    width: 100%;
    height: 100%;
    border-top: 1px solid gray;
    border-bottom: 1px solid #2d2d2d;
    padding-top: 20px;
  }

  #main_menu_en li > a:hover {
    transition-duration: 0.5s;
    border-top: 0px solid white !important;
    border-bottom: 0px solid white;
    box-shadow: 0px 0px 7px rgb(125, 207, 251) !important;
    transition-timing-function: ease-in-out;
  }

  #st_search {
    left: 12%;
  }

  #lang {
    right: 1%;
    left: 15%;
    position: relative;
  }

  #ham {
    position: relative;
    display: block;
    left: 22%;
    right: 2%;
  }
}

/* ***小手機 */
@media screen and (max-width: 570px) {
  #logo {
    margin-left: 1%;
  }

  #ham {
    display: block;
    right: 3%;
    left: 9%;
  }

  #st_search {
    left: 2%;
  }

  #lang {
    left: 2%;
    position: relative;
  }
}

@media screen and (max-width: 472px) {
  #logo {
    width: 20%;
    margin-left: 1%;
    padding-top: 15px;
  }

  #lang {
    margin-left: 5%;
    position: relative;
  }

  #st_search {
    width: 150px;
    left: 8%;
  }

  #woocommerce-product-search-field-0 {
    display: block !important;
    width: 150px !important;
  }

  #st_search_btn_1 {
    left: 80%;
    right: 1%;
  }

  #ham {
    display: block;
    right: 2%;
    left: 6%;
  }
}

@media screen and (max-width: 370px) {
}
