html,
body {
  margin: 0;
  padding: 0;
}

ul,
li,
h1,
h2,
h3,
h4,
p {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

body {
  background-color: #FFF;
  font-size: 14px;
  color: #545454;
}

a {
  text-decoration: none;
}

* {
  outline: none;
}

li {
  list-style-type: none;
}

@keyframes ani-rotate360 {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

#loading {
  width: 100%;
  height: 100%;
  background-color: #FFF;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}

#loading::before {
  content: '';
  width: 36px;
  height: 36px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -18px 0 0 -18px;
  background-image: url(../image/loading.png?v=2);
  background-size: 100% 100%;
  animation: ani-rotate360 1s linear 0s infinite;
}

/* common */
.pc-br {
  display: block;
}

.mo-br {
  display: inline;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

/* header */
.top-logo {
  text-align: center;
  padding-top: 35px;
  padding-bottom: 20px;
}

.nav-wrap {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

ul.nav {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  list-style: none;
  margin: 0 auto;
  padding: 0;

}


li.nav-item>a {
  display: block;
  text-align: center;
  font-size: 15px;
  position: relative;
  height: 40px;
  line-height: 40px;
  color: #6c4b46;
  transition: color .5s;
}

li.nav-item>a::before {
  display: block;
  content: '';
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  border-top: 2px solid #FFF;
}

li.nav-item.active>a::before {
  border-color: #e4b974;
}

li.nav-item.active>a {
  color: #e4b974;
}

.open-submenu {
  display: none;
}


/* 二级菜单 */

.subMenu-wrap {
  max-width: 900px;
  margin: auto;
}

.nav-item.active .subMenu {
  display: block;
}

.subMenu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  background-color: #fff8f0;
  z-index: 10;
}

.subMenu.sub3 .sub-menu-flex {
  padding: 13px 0;
  margin-left: 31.55%;
}

.subMenu.sub3 dt a {
  color: #e3b774;
  font-size: 15px;
}

.subMenu.sub4 .sub-menu-flex {
  display: flex;
  flex-wrap: wrap;
  margin-left: 46.5%;
  padding-bottom: 30px;
}

.subMenu.sub4 dl {
  margin: 5px 0 0 0;
  padding: 0;
  width: 33.3333%;
}

.subMenu.sub4 dl dt {
  margin: 20px 0 10px;
  padding: 0;
}

.subMenu.sub4 dl dt span {
  color: #e3b774;
  font-size: 15px;
}

.subMenu.sub4 dl dd {
  margin: 0;
  padding: 0;
}

.subMenu.sub4 dl dd a {
  color: #6e4b47;
  font-size: 12px;
}

/* footer */
.footer {
  border-top: 2px solid #d8d8d8;
  color: #797a7c;
  /*
  font-family: sans-serif, "Microsoft JhengHei", "Microsoft YaHei";
  */
  margin-top: 50px;
}

.main-container {
  max-width: 1000px;
  margin: auto;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
}

.footer-nav-left ul {
  display: flex;
}

.footer-nav-left ul li {
  padding: 18px 30px 18px 0;
}

.footer-nav-left ul li a {
  color: #797a7c;
}

.footer-nav-left i {
  display: none;
}

.footer-select-language {
  position: relative;
}

.default-language {
  padding: 18px 0 18px;
}

.default-language a {
  color: #797a7c;
}

.default-language a::after {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  background-image: url(../image/icon-arrow-down.png);
  background-repeat: no-repeat;
  background-size: 11px 11px;
  margin-left: 10px;
  transition: transform .5s;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.footer-select-language .language-list {
  display: none;
  position: absolute;
  width: 240px;
  right: 0;
  bottom: 45px;
  background-color: #FFF;
  padding: 6px 0;
  border: 1px solid #CCC;
  z-index: 9;
}

.footer-select-language .language-list::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  right: 40px;
  bottom: -6px;
  border-left: 1px solid #CCC;
  border-top: 1px solid #CCC;
  background-color: #FFF;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.footer-select-language .language-list a {
  display: block;
  color: #797a7c;
  padding: 5px 0 5px 10px;
}

.footer-select-language .language-list a:hover {
  background-color: #eee;
}

.footer-select-language.active .language-list {
  display: block;
}

.footer-select-language.active .default-language a::after {
  -webkit-transform: rotate(0);
  transform: rotate(0);
}


.footer-copyright {
  border-top: 2px solid #d8d8d8;
  padding: 10px 0 50px;
  font-size: 12px;
}

/* tototop*/
#roll_top {
  display: none;
  height: 50px;
  width: 50px;
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.95);
  background-image: url(../image/btn_top.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 50% 50%;
  cursor: pointer;
}

/* by PQ */
.common-loading {
  position: fixed;
  z-index: 999999999;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: rgba(255, 255, 255, 0.5);
  display: none;
}

.common-loading-spinner {
  top: 50%;
  margin-top: -36px;
  width: 100%;
  text-align: center;
  position: absolute;
  color: #ffb618;
}

.common-loading-spinner .circular {
  height: 60px;
  width: 60px;
  animation: loading-rotate 2s linear infinite;
}

.common-loading-spinner .path {
  animation: loading-dash 1.5s ease-in-out infinite;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  stroke-width: 2;
  stroke: #ffb618;
  stroke-linecap: round;
}

@keyframes loading-rotate {
  to {
    transform: rotate(1turn)
  }
}

@keyframes loading-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -40px
  }

  to {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -120px
  }
}


@media screen and (max-width: 750px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .pc-br {
    display: inline;
  }

  .mo-br {
    display: block;
  }

  /* header */
  .top-logo {
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    z-index: 11;
    background-color: #FFF;
  }

  .open-nav {
    width: 40px;
    height: 40px;
    background-image: url(../image/menu-open.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70%;
    position: absolute;
    left: 15px;
    top: 23px;
    z-index: 11;
  }

  .open-nav.active {
    background-image: url(../image/menu-close.png);
  }

  .top-logo img {
    height: 60px;
  }

  .show-nav-mask {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
  }

  .nav-wrap {
    display: none;
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    position: absolute;
    z-index: 11;
    top: 80px;
    left: auto;
    right: auto;
    background-color: #FFF;
    border-top: 2px solid #e1c093;
    border-bottom: 1px solid #EEE;
  }

  .nav-wrap.active {
    display: block;
  }

  ul.nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
  }

  li.nav-item {
    position: relative;
  }

  li.nav-item>a {
    text-align: left;
    padding-left: 20px;
    font-size: 16px;
  }

  li.nav-item>a:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  li.nav-item.active>a::before {
    display: none;
  }

  li.nav-item.no-hover>a {
    background-color: #FFF;
  }

  .open-submenu {
    display: block;
    position: absolute;
    width: 18px;
    height: 18px;
    background-image: url(../image/show-submenu-btn.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    top: 10px;
    right: 15px;
  }

  li.nav-item.active2 .open-submenu {
    background-image: url(../image/hide-submenu-btn.png);
  }


  /* 二级菜单 */
  .subMenu {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
  }

  li.nav-item.active .subMenu {
    display: none;
  }

  li.nav-item.active2 .subMenu {
    display: block;
  }

  .subMenu.sub3 dl {
    padding: 0;
    margin: 0;
  }

  .subMenu.sub3 .sub-menu-flex {
    padding: 15px 0;
    margin-left: 10%;
  }

  .subMenu.sub3 dt a {
    color: #e3b774;
    font-size: 14px;
    display: block;
  }

  .subMenu.sub4 .sub-menu-flex {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    padding: 10px 0;
  }

  .subMenu.sub4 dl {
    margin: 5px 0 5px 0;
    padding: 0;
    width: 100%;
    position: relative;
  }

  .subMenu.sub4 dl dt {
    margin: 0 0 0 10%;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    z-index: 1;
  }

  .subMenu.sub4 dl dt span {
    color: #e3b774;
    font-size: 14px;
    display: inline-block;
    padding: 3px 0;
  }

  .subMenu.sub4 dl dd {
    margin: 0;
    padding: 0;
    margin-left: 40%;
    position: relative;
    z-index: 2;
  }

  .subMenu.sub4 dl dd a {
    color: #6e4b47;
    font-size: 14px;
    display: block;
    padding: 3px 0;
  }

  .top-language {
    border-top: 2px solid #e1c093;
    margin: 0 20px;
    padding: 20px 0;
  }

  .top-language .top-language-selected {
    font-size: 13px;
    color: #6d6e70;
    padding: 5px 0;
    position: relative;
  }

  .top-language .top-language-selected::after {
    content: '＋';
    font-family: Helvetica, sans-serif;
    font-size: 20px;
    position: absolute;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: right;
    top: 0;
    right: 0;
  }

  .top-language.active .top-language-selected::after {
    content: '－';
    font-size: 20px;
  }

  .top-language ul {
    display: none;
  }

  .top-language.active ul {
    display: block;
  }

  .top-language li a {
    font-size: 13px;
    color: #6d6e70;
    display: block;
    padding: 5px 0;
  }

  .top-language li a:hover {
    background-color: #EEE;
  }

  /* footer */
  .footer {
    margin-top: 30px;
  }

  .footer-select-language {
    display: none;
  }

  .footer-nav-left {
    width: 100%;
  }

  .footer-nav-left ul {
    justify-content: center;
  }

  .footer-nav-left ul li {
    padding: 20px 0;
  }

  .footer-nav-left ul li a {
    color: #554143;
  }

  .footer-nav-left i {
    display: inline-block;
    margin: 0 20px;
    opacity: 0.5;
  }

  .footer-copyright {
    border-top: none;
    padding: 0px 0 40px;
    text-align: center;
    color: #554143;
  }

  #roll_top {
    height: 40px;
    width: 40px;
    bottom: 0;
    right: 0;
  }

}

/* ------------------------------ PAD ------------------------------------*/
@media screen and (min-width:750px) and (max-width:1000px){
  /* header*/
  ul.nav{ padding: 0 15px;}
  /* footer */
  .main-container{ margin: 0 15px; }
}