:root {
  --color-main: #612d71;
  --color-sub: #cfa7cd;
  --color-accent: #e5dacf;
  --color-green: #00a040;
  --color-yellow: #f6ab00;
  --color-red: #e83632;
  --color-blue: #0068b7;
  --color-nav-text: #fff100;
  --max-width-container: 1000px;
  --max-width-container2: 1100px;
}

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  outline: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
img[src*=".svg"] {
  width: 100%;
}
html {
  width: 100%;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
body {
  width: 100%;
  min-height: 100%;
  max-width: 1920px;
  color: #000;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  font-family: "Noto Sans TC", Helvetica;
}

h2 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 4px;
}
h3 {
  font-size: 35px;
  font-weight: 700;
}
h4 {
  font-size: 26px;
  font-weight: 700;
}
h5 {
  font-size: 22px;
  font-weight: 700;
}
h6 {
  font-size: 20px;
  font-weight: 700;
}
h7 {
  font-size: 18px;
  font-weight: 700;
  display: block;
}

.none {
  display: none !important;
}
.container {
  width: 100%;
  position: relative;
  margin: 0 auto;
  padding: 0;
}

#loader {
  width: 100%;
  height: 100vh;
  top: 0;
  background: var(--color-main);
  position: fixed;
  z-index: 99999;
  overflow: hidden;
  pointer-events: none;
}
#loader.loaded {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

#wrap {
  width: 100%;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
#main {
  width: 100%;
}

#header {
  width: 100%;
  max-width: 1920px;
  height: 70px;
  position: fixed;
  top: 0;
  z-index: 999;
  background-color: var(--color-main);
  display: flex;
  align-items: center;
  padding: 0 1%;
}
#header .logo {
  width: 194px;
  height: 50px;
  background: url("../img/logo.png") 50% 50% no-repeat;
  background-size: 100% auto;
  z-index: 1001;
  position: relative;
  margin-right: auto;
}
#header .btn-go {
  width: 180px;
  height: 50px;
  line-height: 48px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 0;
}
#header #btn-menu-toggle {
  display: none;
}

#header a.cta-header {
  background-color: #fff;
  color: var(--color-red) !important;
  padding: 0 1em;
  transition: all ease-out 0.2s;
  font-size: 1.2em;
  border: 1px solid var(--color-red);
  border-radius: 1em;
  line-height: 1.8em;
  font-weight: 700;
  margin-left: 1em;
}

#nav {
  transition: all ease-in-out 0.4s;
  display: flex;
  justify-content: flex-end;
  z-index: 1000;
}
#nav .menu {
  display: flex;
  text-align: center;
  align-items: center;
}
#nav .menu > li {
  padding: 0 10px;
  position: relative;
  border: #000 solid 0px;
}
#nav .menu > li > a {
  height: 2em;
  color: var(--color-nav-text);
  display: block;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 2em;
  transition: all ease-out 0.2s;
  user-select: none;
  border-radius: 1em;
}
.desktop #nav .menu > li > a.actived,
.desktop #nav .menu > li > a:hover {
  background-color: var(--color-nav-text);
  color: var(--color-main);
  padding: 0 1em;
  transition: all ease-out 0.2s;
}
.desktop #nav .menu > li > a.actived,
.desktop #nav .menu > li > a:hover {
  transition: all ease-out 0.32s;
}

#nav .menu li .m-dropmenu {
  background: url("../img/ic_arr_down.png") 100% 60% no-repeat;
  background-size: 20px auto;
  padding-right: 25px;
}
#nav .menu li .m-dropmenu::before {
  display: none;
}

#nav .menu > li .submenu {
  display: none;
}
#nav .menu > li:hover .submenu {
  display: block;
  position: absolute;
  top: 50px;
  left: 0px;
  width: 250px;
}
#nav .menu > li:hover .submenu li {
  text-align: left;
  border: #333 solid 1px;
}
#nav .menu > li:hover .submenu li a {
  padding: 10px 10px 10px 15px;
  color: #fff;
  display: block;
  background-color: #cecece;
}
#nav .menu > li:hover .submenu li a:hover {
  background-color: #000;
}

#footer {
  background-color: var(--color-main);
  padding: 50px 0 30px;
}
#footer .container {
}
#footer h3 {
  color: var(--color-sub);
  text-align: center;
  margin-bottom: 30px;
}
#footer .list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
#footer .list li {
  margin: 0 15px 20px;
}
#footer .list img {
  height: 30px;
}
#footer .list.list-1 img {
  height: 60px;
}
#footer .list.list-3 img {
  height: 40px;
}

#btn-gotop {
  display: none;
  position: fixed;
  right: 10px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  z-index: 998;
  background-color: var(--color-nav-text);
  background-image: url(../img/gotop.png);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 90% auto;
  border-radius: 100%;
  cursor: pointer;
  transition: opacity ease-out 0.2s;
}
.desktop #btn-gotop:hover {
  opacity: 0.75;
  transition: opacity ease-out 0.2s;
}

/*	RESPONSIVE:  */
@media only screen and (max-width: 1540px) {
}

/*	RESPONSIVE:  */
@media only screen and (max-width: 1440px) {
  body.has-active-menu {
    overflow: hidden;
  }

  #header .btn-go {
    position: absolute;
    top: 10px;
    right: 70px;
    z-index: 1000;
  }
  #header #btn-menu-toggle {
    background-color: #000;
    background-image: url(../img/btn-menu-toggle.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 60px auto;
    width: 50px;
    height: 50px;
    top: 10px;
    right: 10px;
    position: fixed;
    z-index: 1001;
    cursor: pointer;
    transition: all ease-out 0.2s;
    border-radius: 100%;
    display: block;
  }
  #header #btn-menu-toggle.active {
    background-color: #000;
    background-image: url(../img/btn-menu-toggle_actived.png);
    background-size: 60px auto;
    transition: all ease-out 0.2s;
  }

  .has-active-menu #nav {
    right: 0;
    transition: all ease-in-out 0.4s;
  }

  #nav {
    position: fixed;
    z-index: 1000;
    top: 0; /*width:300px;*/
    width: 100%;
    height: 100vh;
    right: -100%;
    padding: 80px 0 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--color-main);
    transition: all ease-in-out 0.4s;
    display: block;
  }
  #nav .menu {
    width: 90%;
    max-width: 270px;
    text-align: center;
    display: block;
    margin: 0 auto 50px;
  }
  #nav .menu > li {
    padding: 0px 0;
  }
  #nav .menu > li a {
    display: inline-block;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.9em;
    height: auto;
    letter-spacing: 2px;
    padding: 0 25px;
    margin-bottom: 0.5em;
  }
  #header a.cta-header {
    position: absolute;
    top: 16px;
    right: 70px;
    z-index: 1000;
  }

  #nav .menu > li > a::before {
    display: none;
  }

  #nav .menu li .m-dropmenu {
    display: inline-block;
  }

  #nav .menu > li:hover .submenu,
  #nav .menu > li .submenu {
    display: block;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
  }
  #nav .menu > li:hover .submenu li,
  #nav .menu > li .submenu li {
    padding: 0;
    text-align: left;
    border: 0;
  }
  #nav .menu > li:hover .submenu li a,
  #nav .menu > li .submenu li a {
    padding: 0;
    color: #000;
    display: block;
    background-color: transparent;
  }
  #nav .menu > li:hover .submenu li a:hover,
  #nav .menu > li .submenu li a:hover {
    background-color: transparent;
  }
}

/*	RESPONSIVE:  */
@media only screen and (max-width: 1279px) {
  #header {
    display: block;
    height: 50px;
  }
  #header .logo {
    width: 155px;
    height: 50px;
  }

  #header .btn-go {
    width: 120px;
    height: 40px;
    line-height: 38px;
    font-size: 18px;
    letter-spacing: 0;
    position: absolute;
    top: 5px;
    right: 60px;
    z-index: 1000;
  }
  #header .btn-go span {
    padding-right: 15px;
  }
  #header .btn-go span::after {
    top: calc(50% - 5px);
  }

  #header #btn-menu-toggle {
    background-size: 50px auto;
    width: 40px;
    height: 40px;
    top: 5px;
  }

  #header a.cta-header {
    top: 5px;
    right: 55px;
  }

  /*#nav .menu>li:hover .submenu,
#nav .menu>li .submenu{ display: none; } */
}

/*	RESPONSIVE:  */
@media only screen and (max-width: 820px) {
  h2 {
    font-size: 34px;
    letter-spacing: 2px;
  }
  h3 {
    font-size: 30px;
  }
  h4 {
    font-size: 24px;
  }
  h5 {
    font-size: 22px;
  }
  h6 {
    font-size: 20px;
  }
  h7 {
    font-size: 18px;
  }

  /*#nav{ width:100%;}*/

  #btn-gotop {
    bottom: 20px;
    right: 10px;
    width: 50px;
    height: 50px;
  }
}

/*	RESPONSIVE:  */
@media only screen and (max-width: 767px) {
  #footer .container {
    width: 90%;
  }
  #footer .list img {
    margin: 0 auto;
    height: 30px;
  }
  #footer .list.list-1 img {
    height: 40px;
  }
  #footer .list {
  }
  #footer .list li {
    width: 50%;
    padding: 3px 1%;
    margin: 0 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #footer .list.list-1 li {
    width: 100%;
  }
}

/*	RESPONSIVE:  */
@media only screen and (max-width: 375px) {
  body {
    font-size: 16px;
  }
}
