/* Start Navigation Bar */
.h-navbar {
  display: none;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 99;
  background-color: #fff;
  box-shadow: 0px 2px 3px 0 rgba(0, 0, 0, 0.3);
}

.h-navbar .menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
  text-transform: uppercase;
  margin: 0;
}

.h-navbar .menu li {
  display: inline-block;
  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: #ffeda2;
  transition: ease .3s;
}

/*額外header設定*/

.h-lag{
  display: block;
  background: #EA5514;
  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;
  margin-left: 3em;
  padding: 6px;
  padding-top: 12px;
}

.dropdown-btwn{
  display: flex;
  justify-content: flex-end;
}

.dropdown-btwn .lag-btwn{
  background-image: linear-gradient(to left, #e20000 10%, #d00000 100%);
  border-radius: 45px;
  height: 50px;
  margin-top: 16px;
  margin-right: 30px;
}

.dropdown-btwn .lag-btwn li a{
  color: #fff;
  padding: 13px 8px;
  transition: .3s ease;
}

.dropdown-btwn .lag-btwn li:after{
  color: #fff;
  bottom: 47px;
}

.dropdown-btwn .lag-btwn li a:hover{
  color: #ffd112;
  transition: .3s ease;
}

/*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: 120px;
  overflow: inherit!important;
  height: 84px!important;
}

ul.sub_menu li{
  width: 250px;
}

ul.dropdown li:after{
  content: '/';
  display: inline-block;
  position: absolute;
  right: -6px;
  bottom: 30px;
  color: #000;
}

ul.dropdown li:last-child:after{
  display: none;
}

ul.dropdown a:hover{ 
  color: #000; 
}

ul.dropdown li a { 
  display: inline-block; 
  padding: 30px 8px;
  color: #000; 
  position: relative; 
  z-index: 2000; 
  text-align: center;
  text-decoration: none;
  font-weight: 300;
  font-size: 16px;
  transition: .3s ease;
}

ul.dropdown li a:hover,
ul.dropdown li a.hover{ 
  position: relative;
  color:  #B50014;
  transition: .3s ease;
}

ul.dropdown li ul.sub_menu{ 
  display: none;
  position: absolute; 
  left: -65px; 
  width: 250px; 
  z-index: 1000;
}

ul.dropdown li ul.sub_menu li { 
  font-weight: normal; 
  color: #000; 
  border-bottom: 1px solid #727272;
  text-align: left; 
}

ul.dropdown li ul.sub_menu li:after{
  display: none;
}

ul.dropdown i#sm-line{
  display: inline-block;
  color: #000;
  padding: 20px;
  text-align: center;
  line-height: 3;
}

ul.dropdown li ul.sub_menu li a{ 
  display: block; 
  color: #fff !important;
  background: #303030!important;
} 

ul.dropdown li ul.sub_menu li a:hover{
  display: block; 
  background: #B50014!important;
} 

.drop > a{
  position: relative;
}

ul.dropdown li.drop a.hold:after{
  content:"";
  display: block;
  position: absolute;
  z-index: 2;
  opacity: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #D40000;
  transition: .3s ease;
}


ul.dropdown li.drop a.hold:hover:after,
ul.dropdown li.drop a.hold.hover:after{
  opacity: 1;
  transition: .3s ease;
}

/* End Navigation Bar */

/*手機版MENU*/
.mobile-menu{display: none;}

.mo-logo-set {
    display: block;
}

h1.header-logo-box{
    display: none;
}

@media (max-width: 1230px) {

.dropdown-btwn{
  display: none;
}

.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: 71px;
    height: 71px;
}

.button_container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: block;
    text-align: center;
    background-image: linear-gradient(to left, #e20000 10%, #d00000 100%);
    cursor: pointer;
    z-index: 100;
    transition: opacity .25s ease;
}

.mo-img-ctr{
  display: inline-block;
  width: 28%;
}

.button_container.active {
      background: transparent;
}
.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;
  background-image: linear-gradient(to left, #e20000 10%, #d00000 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: 1;
  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: left;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 1em;
}

.overlay nav::-webkit-scrollbar {
    -webkit-appearance: none;
}

.overlay nav::-webkit-scrollbar:vertical {
    width: 5px;
}

.overlay nav::-webkit-scrollbar:horizontal {
    height: 5px;
}

.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: 16px;
  padding-bottom: 10px;
}

.overlay  ul.drop-list{
  display: block;
}

.overlay ul li a.lag-mo{
    display: inline-block;
}


.overlay ul li a:hover{
  color: #000;
}


.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: 14px;
  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 ul li a.s__item:hover:before{
  background: #000;
}

.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: inline-block;
    height: 60px;
    width: 70%;
    text-indent: 101%;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 10px;
    margin-top: 5px;
    line-height: 2;
    text-align: left;
}

h1.header-logo-box a:nth-child(1){
    display: block;
}

h1.header-logo-box a:nth-child(2){
    display: none;
}

}

@media (max-width: 1230px) {

  .navbox a.h-logo{
    padding: 5.5px 0;
  }
  
}

@media (max-width: 768px){

.overlay.open {
    width: 40%;
}

.overlay nav {
    margin: 0 .5em 0 1em;
}

.overlay ul li a.s__item{
  width: 100%;
}

}



@media (max-width: 658px) {
  h1.header-logo-box a:nth-child(1){
    display: none;
  }

  h1.header-logo-box a:nth-child(2){
      display: block;
  }
  
}

@media (max-width: 425px){
.mo-img-ctr{
  width: 51%;
}

.overlay.open {
    width: 55%;
}


.mobile-menu{
  width: 61px;
  height: 61px;
}

h1.header-logo-box{
  height: 51px;
}

}


@media (max-width: 375px){


}


@media (min-width: 500px) {
    .overlay ul {
    padding-right: 1em;
  }

  .logo-mobile{
    padding-bottom: 3em;
  }
  
}


/*responsive*/

@media (min-width: 1023px) {
  .h-navbar{
    display: block;
  }

  #masthead {
    display: none;

  }
  
}
