/* .templateux-navbarlogo-box {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  z-index: 999999;
  width: 100%;
} */
#header {
  position: absolute;
  display: inline-block;
  width: 50px;
  height: 50px;
  right: 10px;
  /* border:1px solid red; */
  top: 22px;
}

@media(max-width:520px) {
  #header {
    top: 10px;
    right: 0;
  }

  .templateux-marginbox {
    height: 92;
  }
}

#header #menu-trigger {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 999999;
  /* border:1px solid yellow; */
}

.bg_box {
  background-color: #f1f1f1;
}

@media(max-width:480px) {
  #header #menu-trigger {
    top: 5px;
  }
}

#header #menu-trigger span:nth-child(2) {
  background-color: #3567be;
  width: 25px;
  height: 2px;
  transition: all .2s ease-out;
  display: block;
  position: relative;
  left: 12px;
  top: 18px;
}

#header #menu-trigger span:nth-child(1) {
  background-color: #3567be;
  width: 25px;
  height: 2px;
  position: relative;
  transition: all .2s ease-out;
  display: block;
  left: 12px;
  top: 12px;
}

#header #menu-trigger span:nth-child(3) {
  background-color: #3567be;
  width: 25px;
  height: 2px;
  position: relative;
  transition: all .2s ease-out;
  display: block;
  left: 12px;
  top: 24px;
}

#header #menu-trigger .menu_title {
  color: #5a5a5a;
  font-size: 0.8em;
  position: absolute;
  left: 3px;
  bottom: -5px;
}

/*---彈出選單---*/
.spmenu {
  height: 100%;
  width: 100%;
  z-index: 99999;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  background: #ffe31a;
  overflow-y: scroll;
}

@media(max-width:415px) {
  .spmenu {
    width: 100%;
    right: -100%;
  }
}

/* .open-menu {
  right: 0px;
} */
#close-trigger {
  position: relative;
  display: block;
  background-color: #f1f1f1;
  text-align: center;
  border-bottom: 1px solid #678db0;
  color: #FFFFFF;
  height: 90px;
}

#spmenu .search-box {
  border-bottom: 1px solid #984040;
  padding: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-align-items: stretch;
  align-items: stretch;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  /* min-width: inherit; */
  width: 100%;
}

.search-box button {
  padding: 0.3em 1em;
  font-size: 14px;
  font-size: 1.4rem;
  color: #fff;
  background: #FF4C6B;
  display: inline-block;
  margin-bottom: 0;
  line-height: 1;
  height: 2em;
  text-align: center;
  white-space: nowrap;
  vertical-align: top;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: none;
}

#spmenu .search-box button {
  flex-grow: 1;
  width: 50px;
  border-radius: 0;
}

.search-box input {
  width: 70%;
  font-size: 14px;
  font-size: 0.93rem;
  border-radius: 0;
  width: 200px;
  height: 2em;
  padding: 0.3em 0.5em;
  line-height: 1;
  color: #555;
  background-color: #E9E8E8;
  background-image: none;
  border: none;
}

#spmenu .search-box input {
  width: 80%;
  flex-grow: 2;
}

#spmenu .btn-outline-search {
  flex-grow: 1;
}

#spmenu .form-inline {
  top: 0 !important;
  margin-block-end: 0;
}

#sp-navi, #sp-navi ul li, #sp-navi ul li a {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#sp-navi ul li a {
  line-height: 1.4;
  padding: 1em 1em;
  cursor: pointer;
  z-index: 2;
  font-size: 14px;
  font-size: 1.4rem;
  text-decoration: none;
  color: #ffffff;
}

.droppable-menu {
  background-color: black;
}

/* #sp-navi ---------------------*/
#sp-navi, #sp-navi ul li, #sp-navi ul li a {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#sp-navi ul ul {
  display: none;
}

#sp-navi>ul>li.active>ul {
  display: block;
}

.align-right {
  float: right;
}

#sp-navi>ul>li {
  border-bottom: 1px solid #5481d0;
}

#sp-navi ul li a {
  line-height: 1.4;
  /* padding: 1em 1em; */
  padding: 20px 30px;
  cursor: pointer;
  z-index: 2;
  font-size: 14px !important;
  font-size: 1.4rem;
  text-decoration: none;
  color: #ffffff;
  background: #3567be;
}

#sp-navi ul ul li {
  border-bottom: 1px solid #4771ce;
}

#sp-navi ul ul ul li {
  border-bottom: 1px solid #4771ce;
}

#sp-navi>ul>li>a:hover {
  color: #d8f3f0;
  background: #4b77c3;
}

#sp-navi>ul>li>ul>li>a:hover {
  color: #FFFFFF;
  background: #2b4298;
}

#sp-navi ul li.has-sub>a {
  /* padding: 1em 2em 1em 1em; */
  padding: 20px 30px;
}

#sp-navi ul li.has-sub>a:after {
  position: absolute;
  right: 22px;
  top: 50%;
  margin-top: -0.5em;
  z-index: 5;
  display: block;
  line-height: 1;
  font-weight: 100;
  content: "\f067";
  font-family: "FontAwesome";
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

#sp-navi ul>li.has-sub.open>a:after {
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#sp-navi ul ul li a {
  background: #2c4a9e;
}

#sp-navi ul ul ul li a {
  background: #192654;
}

#sp-navi ul ul li.none {
  line-height: 1.4;
  padding: 1em 1em;
  z-index: 2;
  font-size: 14px;
  font-size: 1.4rem;
  text-decoration: none;
  color: #ffffff;
  background: #aa4556;
}

/* #sp-sns ---------------------*/
@media(min-width:1141px) {
  #header #menu-trigger {
    display: none;
  }
}

@media(max-width:1140px) {
  .templateux-section-menu-bar {
    display: none;
  }

  .templateux-navright {
    display: none;
  }
}

/* 手機板漢堡的icon_list區塊----*/
#sp-targetNavi,
#sp-targetNavi>li>ul,
#sp-gnavi,
#sp-gnavi>li>ul,
#sp-gnavi>li>ul>li>ul {
  padding-inline-start: 0;
  margin-bottom: 0
}
#sp-targetNavi,
#sp-targetNavi ul,
#sp-gnavi,
#sp-gnavi ul{
  padding:0;
}


.spmenu .icon_list2 {
  position: relative;
  display: block;
  list-style: none;
  height: 76px;
  width: 100%;
  padding-inline-start: 0;
  /* padding: 10px 0; */
  border-bottom: 1px solid #94b9db;
  margin-bottom: 0;
  background-color: #419fbe;
}

.spmenu .icon_list2 li {
  width: 25%;
  float: left;
  text-align: center;
}

.spmenu .icon_list2 li a {
  position: relative;
  display: block;
  color: #FFFFFF;
  padding: 8px 0;
  border-right: 1px solid #94b9db;
}

.spmenu .icon_list2 li a:hover {
  background-color: #3872a7;
}

.spmenu .icon_list2 li .word {
  font-size: 0.85em;
}

.spmenu .login_box {
  position: relative;
  display: block;
  list-style: none;
  height: 44px;
  width: 100%;
  padding-inline-start: 0;
  /* padding: 10px 0; */
  /* border-bottom: 1px solid #984040; */
  margin-bottom: 0;
}

.spmenu .login_box li {
  width: 50%;
  float: left;
  text-align: center;
}

.spmenu .login_box li a {
  position: relative;
  display: block;
  color: #2d2d2d;
  padding: 8px 0;
  border: 1px solid #b59f00;
}

.spmenu .login_box li a:hover {
  background-color: #ffc113;
}

#header #menu-trigger.isopen span:nth-child(1) {
  transform: rotate(45deg);
  top: 20px;
}

#header #menu-trigger.isopen span:nth-child(3) {
  transform: rotate(-45deg);
  top: 16px;
}

#header #menu-trigger.isopen span:nth-child(2) {
  opacity: 0;
}

body.locked {
  width: 100%;
  position: fixed;
}

.scrollTop {
  position: fixed;
  width: 50px;
  height: 50px;
  right: 10px;
  bottom: 50px;
  background-image: url(../images/top_icon.png);
  background-size: contain;
  background-repeat: no-repeat;
  padding: 20px;
  opacity: 1;
  transition: all 0.4s ease-in-out 0s;
  z-index: 9999;
}

.spmenu .glyphicon {
  top: 6px;
}

@media(max-width:1140px) {
  .spmenu .glyphicon {
    top: 0;
  }
}

#spmenu .login_out {
  text-align: center;
  color: #FFF;
  font-size: 1rem!important;
  background: #0e357b;
  letter-spacing: 2px;
}
#spmenu .login_out:hover{
  background: #2255b1;
}
