/* Start Navigation Bar */
.h-navbar {
  display: none;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 99;
  background-color: #fff;
  border-bottom: 5px solid #214a9d;
}

.h-navbar .menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
  text-transform: uppercase;
  margin: 0;
}

.h-navbar .menu li {
  display: inline-block;
  transition: background-color .5s ease;
  text-align: center;
  transition: ease .3s;
}

.h-navbar .menu a {
  position: relative;
  display: inline-flex;
  padding: 20px;
  width: 140px;
  text-decoration: none;
  color: #000;
  font-size: 18px;
  flex: 1;
  justify-content: center;
}

.h-navbar .menu li:hover a{
  color: #ffba1f;
  transition: ease .3s;
}

/*額外header設定*/

.h-lag{
  display: block;
  background: #214a9d; 
  text-align:  right;
}

.h-navbar ul.h-lag li a {
  color: #fff;
  font-size: 15px;
  padding: 10px;
}

.h-navbar ul.h-lag li:after{
  content: '/';
  display: inline-block;
  padding: 10px;
}

.h-navbar ul.h-lag li:after{
  color: #fff;
}

.h-logo{
  float: left;
  
}

.h-navbar .menu li:after{
  padding: 15px;
}

.h-navbar .menu li:last-child:after{
  display: none;
}

.navbox{
  display: block;
}

.navbox a.h-logo{
  display: inline-block;
}


/*dropdown*/

ul.dropdown{ 
  position: relative; 
  margin: 0;
  display: flex;
  justify-content: flex-end;
  text-transform: uppercase; 
}

ul.dropdown li{ 
  font-weight: bold; 
  float: left; 
  text-align: center;
  position: relative;
  width: 150px;
}

ul.sub_menu li{
  width: 250px;
}

ul.dropdown li:after{
  content: '/';
  display: inline-block;
  position: absolute;
  right: 0;
  bottom: 23px;
  color: #000;
}

ul.dropdown li:last-child:after{
  display: none;
}

ul.dropdown a:hover{ 
  color: #000; 
}

ul.dropdown li a { 
  display: inline-block; 
  padding: 20px 8px;
  color: #000; 
  position: relative; 
  z-index: 2000; 
  text-align: center;
  text-decoration: none;
  font-weight: 300;
  font-size: 16px;
}

ul.dropdown li a:hover,
ul.dropdown li a.hover{ 
  position: relative;
  color: #ffba1f;
}


ul.dropdown ul{ 
  display: none;
  position: absolute; 
  top: 2px!important; 
  left: -50px; 
  width: 250px; 
  z-index: 1000;
}

ul.dropdown ul li { 
  font-weight: normal; 
  background: #f6f6f6; 
  color: #000; 
  border-bottom: 1px solid #036eb8;
  text-align: left; 
}

ul.dropdown i#sm-line{
  display: inline-block;
  color: #000;
  padding: 20px;
  text-align: center;
  line-height: 3;
}

ul.dropdown ul li a{ 
  display: block; 
  color: #fff !important;
  background: #214a9d !important;
} 

ul.dropdown ul li a:hover{
  display: block; 
  color: #ffba1f !important;
} 

.drop > a{
  position: relative;
}

.drop > ul.sub_menu:after{
  content:"";
  position: absolute;
  z-index: 2;
  top: 51px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #ffba1f;
}

/* End Navigation Bar */

/*手機版MENU*/
.mobile-menu{display: none;}

.mo-logo-set {
    display: block;
}

h1.header-logo-box{
    display: none;
}

@media (max-width: 1300px) {
.mo-logo-b-set{
  display: block;
}

.mobile-menu{
    display: block;
    position: fixed;
    z-index: 999;
    background-color: #ffff;
    border: 0px solid #ffff;
    padding: 15px;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
}

.button_container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: block;
    text-align: center;
    -o-background-image: linear-gradient(to bottom, #214A9C 30%, #0087c7 100%);
    -ms-background-image: linear-gradient(to bottom, #214A9C 30%, #0087c7 100%);
    -webkit-background-image: linear-gradient(to bottom, #214A9C 30%, #0087c7 100%);
    background-image: linear-gradient(to bottom, #214A9C 30%, #0087c7 100%);
    cursor: pointer;
    z-index: 100;
    transition: opacity .25s ease;
}

.mo-img-ctr{
  display: inline-block;
  width: 28%;
}

.button_container.active {
      background-image: none;
}
.button_container.active .top {
  -webkit-transform: translateY(11px) translateX(0) rotate(45deg);
          transform: translateY(11px) translateX(0) rotate(45deg);
  background: #FFF;
}
.button_container.active .middle {
  opacity: 0;
  background: #FFF;
}
.button_container.active .bottom {
  -webkit-transform: translateY(-11px) translateX(0) rotate(-45deg);
          transform: translateY(-11px) translateX(0) rotate(-45deg);
  background: #FFF;
}
.button_container span {
    background: #fff;
    border: none;
    height: 2px;
    width: 30px;
    display: block;
    position: absolute;
    top: -20px;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    transition: all .35s ease;
    cursor: pointer;
}
.button_container span:nth-of-type(2) {
  top: 2px;
}
.button_container span:nth-of-type(3) {
  top: 23px;
}

.overlay {
  position: fixed;
  -o-background-image: linear-gradient(to bottom, #214A9C 55%, #0087c7 100%);
  -ms-background-image: linear-gradient(to bottom, #214A9C 55%, #0087c7 100%);
  -webkit-background-image: linear-gradient(to bottom, #214A9C 55%, #0087c7 100%);
  background-image: linear-gradient(to bottom, #214A9C 55%, #0087c7 100%);
  top: 0;
  right: 0;
  width: 0%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s, width .35s;
  overflow: hidden;
}

.overlay .bg-box{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.overlay img{
  position: absolute;
  bottom: -5%;
  left: 0;
  width: 100%;
}

/*float*/
.float
{
    -webkit-animation: float 1.6s;
            animation: float 1.6s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}
@keyframes float
{
    0%, 100%
    {
        transform: translateY(0);
    }
    50%
    {
        transform: translateY(-20px);
    }
}
@-webkit-keyframes float
{
    0%, 100%
    {
        -webkit-transform: translateY(0);
    }
    50%
    {
        -webkit-transform: translateY(-20px);
    }
}




.overlay.open {
  opacity: .95;
  visibility: visible;
  width: 25%;
}
.overlay.open li {
  -webkit-animation: fadeInRight .5s ease forwards;
          animation: fadeInRight .5s ease forwards;
  -webkit-animation-delay: .35s;
          animation-delay: .35s;
}
.overlay.open li:nth-of-type(2) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.overlay.open li:nth-of-type(3) {
  -webkit-animation-delay: .45s;
          animation-delay: .45s;
}
.overlay.open li:nth-of-type(4) {
  -webkit-animation-delay: .50s;
          animation-delay: .50s;
}

.overlay.open li:nth-of-type(5) {
  -webkit-animation-delay: .60s;
          animation-delay: .60s;
}

.overlay.open li:nth-of-type(6) {
  -webkit-animation-delay: .65s;
          animation-delay: .65s;
}

.overlay.open li:nth-of-type(7) {
  -webkit-animation-delay: .70s;
          animation-delay: .70s;
}

.overlay.open li.overlay-a:nth-of-type(1) {
  -webkit-animation-delay: .70s;
          animation-delay: .70s;
}

.overlay.open li.overlay-a:nth-of-type(2) {
  -webkit-animation-delay: .80s;
          animation-delay: .80s;
}

.overlay.open li.overlay-a:nth-of-type(3) {
  -webkit-animation-delay: .90s;
          animation-delay: .90s;
}

.overlay.open li.overlay-a:nth-of-type(4) {
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}

.overlay.open li.overlay-a:nth-of-type(5) {
  -webkit-animation-delay: 1.2s;
          animation-delay: 1.2s;
}

.overlay.open li.overlay-a:nth-of-type(6) {
  -webkit-animation-delay: 1.4s;
          animation-delay: 1.4s;
}

.overlay.open li.overlay-a:nth-of-type(7) {
  -webkit-animation-delay: 1.6s;
          animation-delay: 1.6s;
}
/*scrollbar*/

.overlay nav {
  position: absolute;
  height: 75%;
  top: 50%;
  left: 0;
  bottom: 0;
  right: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 1em;
}

.overlay nav::-webkit-scrollbar {
    -webkit-appearance: none;
}

.overlay nav::-webkit-scrollbar:vertical {
    width: 11px;
}

.overlay nav::-webkit-scrollbar:horizontal {
    height: 11px;
}

.overlay nav::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 1px solid #fff; /* should match background, can't be transparent */
    background-color: rgba(255,255,255,.8);
    padding-right: 20px;
}

/*scrollbar*/

.overlay ul {
  list-style: none;
  padding-right: 0;
  margin: 0 auto;
  display: inline-block;
  vertical-align: top;
  position: relative;
  height: auto;
}

.overlay ul:last-child {
  padding-right: 0;
}
.overlay ul li {
    display: block;
    height: calc(100% / 8);
    min-height: 30px;
    position: relative;
    opacity: 0;
    padding-bottom: 15px;
    text-align: left;
    color: #FFF;
}
.overlay ul li a {
  display: inline-block;
  position: relative;
  color: #FFF;
  text-decoration: none;
  text-align: left;
  font-size: 18px;
  padding-bottom: 10px;
}

.overlay  ul.drop-list{
  display: block;
}

.overlay ul li a.lag-mo{
    display: inline-block;
}


.overlay ul li a:hover{
  color: #ffe200;
}


.overlay ul li a svg:hover path{
  fill: #ffe200;
}

.logo-mobile{
  display: block;
  padding-bottom: 2em;
}

@-webkit-keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

.overlay ul li a.s__item{
  padding: 0 0 10px 15px;
  line-height: 1.5;
  font-size: 16px;
  width: 100%;
}

.overlay ul li a.s__item:before{
  content: '';
  display: inline-block;
  width: 10px;
  height: 1px;
  background: #fff;
  position: absolute;
  top: 15px;
  left: 0;
}

.overlay-menu .drop-list li{
  padding: 5px 0;
}

a.dropdown-menu-m:not(:last-child):before {
  content: "\f078";
  font-family: Font Awesome\ 5 Free;
  font-weight: 900;
  font-size: 0.75em;
  line-height: 30px;
  position: absolute;
  right: -20px;
  top: 0;
  bottom: 0;
  margin: auto;
  transition: 0.5s;
  transform: rotate(0deg);
}

a.dropdown-menu-m.active:before {
    transform: rotate(-180deg);
    line-height: 48px;
}

h1.header-logo-box{
    display: block;
    height: 60px;
    width: 70%;
    text-indent: 101%;
    white-space: nowrap;
    overflow: hidden;
    margin: 5px;
    line-height: 2;
    text-align: left;
}

}

@media (max-width: 768px){

.overlay.open {
    width: 40%;
}

.overlay nav {
    margin: 0 2em;
}

.overlay ul li a.s__item{
  width: 80%;
}

}

@media (max-width: 425px){
.mo-img-ctr{
  width: 51%;
}

.overlay.open {
    width: 70%;
}

}


@media (max-width: 375px){

.overlay nav {
    margin: 0 1em;
}

}


@media (min-width: 500px) {
    .overlay ul {
    padding-right: 1em;
  }

  .logo-mobile{
    padding-bottom: 3em;
  }
  
}


/*responsive*/

@media (min-width: 1300px) {
  .h-navbar{
    display: block;
  }

  #masthead {
    display: none;
  }
  
}
