/*選單區/////////////////////////////////////////////////////////////////////////////*/
.bg_headmenu {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
}
.headmenu {
  width: 100%;
  background: url(../images/nav_bg.webp) no-repeat top center;
  background-size: 105% auto;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  display: flex;
  display: -ms-flexbox;
  justify-content: space-between;
}

/*logo*/
.menu_flex01 {
  width: 20%;
  position: relative;
  z-index: 999;
}

.btn_logo {
  width: 100%;
  height: auto;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  image-rendering: -webkit-optimize-contrast;
  position: absolute;
  left: 0rem;
  top: 0.4rem;
}
.btn_logo a {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s;
}
.btn_logo a:hover {
  background-repeat: no-repeat;
  background-position: center top;
  opacity: 1;
  filter: brightness(110%);
}
.btn_logo img {
  opacity: 1;
}

/* 立即預約 */

.btn_toggle_sure {
  position: relative;
  max-width: 12rem;
  margin-top: 2%;
  margin-right: 2%;
  margin: 0.6rem 0.8rem 0.6rem 0;
  display: inline;
  animation: btntogglesure 1s infinite alternate;
}
@keyframes btntogglesure {
  from {
    filter: brightness(100%);
    transform: scale(1);
  }
  to {
    filter: brightness(130%);
    transform: scale(1.03);
  }
}
/*上方選單*/
.menu_flex02 {
  width: 75%;
  height: fit-content;
  display: flex;
  display: -ms-flexbox;
  justify-content: flex-end;
  -ms-flex-pack: end;
  position: relative;
  z-index: 1;
}

.menu {
  overflow: hidden;
  z-index: 990;
  display: flex;
  display: -ms-flexbox;
  justify-content: flex-end;
  padding: 3px 1.5rem 0 1.5rem;
}
.menu li {
  margin: 0 1.5rem;
}
.menu li,
.social li {
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center center;
  image-rendering: -webkit-optimize-contrast;
  flex-direction: row;
  -ms-flex-direction: row;
  justify-content: flex-end;
  -ms-flex-pack: end;
  position: relative;
}

.menu li img,
.social li img {
  opacity: 0.01;
}
/*上方*/
.menu li img .l {
  display: block;
}
.menu li img .s {
  display: none;
}
.ch .menu li:nth-of-type(1) {
  background-image: url(../images/tt_btn_1.webp);
}
.ch .menu li:nth-of-type(2) {
  background-image: url(../images/tt_btn_2.webp);
}
.ch .menu li:nth-of-type(3) {
  background-image: url(../images/tt_btn_3.webp);
}
.ch .menu li:nth-of-type(4) {
  background-image: url(../images/tt_btn_4.webp);
}
.ch .menu li:nth-of-type(5) {
  background-image: url(../images/tt_btn_5.webp);
}
.ch .menu li:nth-of-type(6) {
  background-image: url(../images/tt_btn_6.webp);
}

.ch .menu li:nth-of-type(1):hover,
.ch .menu li:nth-of-type(1).active {
  background-image: url(../images/tt_btn_1_ov.webp);
}
.ch .menu li:nth-of-type(2):hover,
.ch .menu li:nth-of-type(2).active {
  background-image: url(../images/tt_btn_2_ov.webp);
}
.ch .menu li:nth-of-type(3):hover,
.ch .menu li:nth-of-type(3).active {
  background-image: url(../images/tt_btn_3_ov.webp);
}
.ch .menu li:nth-of-type(4):hover,
.ch .menu li:nth-of-type(4).active {
  background-image: url(../images/tt_btn_4_ov.webp);
}
.ch .menu li:nth-of-type(5):hover,
.ch .menu li:nth-of-type(5).active {
  background-image: url(../images/tt_btn_5_ov.webp);
}
.ch .menu li:nth-of-type(6):hover,
.ch .menu li:nth-of-type(6).active {
  background-image: url(../images/tt_btn_6_ov.webp);
}
.menu li:hover .btn_ov,
.menu li.active .btn_ov,
.social li:hover .btn_ov,
.social li.active .btn_ov {
  opacity: 1;
}

/* MB版：社群 */
.social_mb {
  display: none;
}

/* 左側：PC版：社群 */
/* 左側選單 */
.menu_flex03 {
  width: 100%;
  max-width: 100px;
  display: flex;
  display: -ms-flexbox;
  align-items: center;
  -ms-flex-align: center;
  position: absolute;
  top: 25vh;
  z-index: 9;
}

.social {
  display: flex;
  flex-direction: column;
}
.social li {
  width: 75%;
  margin: 0.2rem;
}

.social li:nth-of-type(1),
.social_mb li:nth-of-type(1) {
  background: url(../images/btn_social_02_fb.webp) no-repeat;
  background-size: 100% auto;
}
.social li:nth-of-type(2),
.social_mb li:nth-of-type(2) {
  background: url(../images/btn_social_03_yt.webp) no-repeat;
  background-size: 100% auto;
}
.social li:nth-of-type(3),
.social_mb li:nth-of-type(3) {
  background: url(../images/btn_social_04_bh.webp) no-repeat;
  background-size: 100% auto;
}
.social li:nth-of-type(4),
.social_mb li:nth-of-type(4) {
  background: url(../images/btn_social_05_line.webp) no-repeat;
  background-size: 100% auto;
}
/* .social li:nth-of-type(5),
.social_mb li:nth-of-type(5) {
  background: url(../images/btn_sound_off.webp) no-repeat;
  background-size: 100% auto;
} */

.social li:nth-of-type(1):hover,
.social li:nth-of-type(1).active,
.social li:nth-of-type(2):hover,
.social li:nth-of-type(2).active,
.social li:nth-of-type(3):hover,
.social li:nth-of-type(3).active,
.social li:nth-of-type(4):hover,
.social li:nth-of-type(4).active,
.social li:nth-of-type(5):hover,
.social li:nth-of-type(5).active,
.social_mb li:nth-of-type(1):hover,
.social_mb li:nth-of-type(1).active,
.social_mb li:nth-of-type(2):hover,
.social_mb li:nth-of-type(2).active,
.social_mb li:nth-of-type(3):hover,
.social_mb li:nth-of-type(3).active,
.social_mb li:nth-of-type(4):hover,
.social_mb li:nth-of-type(4).active,
.social_mb li:nth-of-type(5):hover,
.social_mb li:nth-of-type(5).active {
  filter: brightness(1.3) hue-rotate(5deg);
}

/*音樂開關*/
.music_playbox {
  width: 100%;
  max-width: 118px;
  position: absolute;
  top: 38.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.music_playbox i {
  display: none;
  transition: all 0.5s ease-out;
}
.music_playbox i:hover {
  filter: brightness(1.15);
  cursor: pointer;
}
i.active {
  display: block !important;
}
.bgmusic i {
  display: none;
  transition: all 0.8s;
}
.social li:nth-of-type(5) a,
.social_mb li:nth-of-type(5) a {
  opacity: 1;
}
.social li:nth-of-type(5) a i,
.social_mb li:nth-of-type(5) a i {
  width: 100%;
  height: 100%;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  position: relative;
  left: 0;
  top: 0;
  z-index: 99;
}
.social li:nth-of-type(5) a i:nth-of-type(1),
.social_mb li:nth-of-type(5) a i:nth-of-type(1) {
  background-image: url(../images/btn_sound_off.webp);
  background-position-y: 0.4vw;
}
.social li:nth-of-type(5) a i:nth-of-type(2),
.social_mb li:nth-of-type(5) a i:nth-of-type(2) {
  background-image: url(../images/btn_sound_on.webp);
  background-position-y: 0.4vw;
}

/*select_menu 語系*/
/*.select_menu.lang {
  width: 8.5rem;
  height: 2.5rem;
  background-image: url("../images/btn_arrow.webp"),
    url("../images/btn_lang.webp");
  background-repeat: no-repeat;
  background-position: right center, left center;
  background-size: 2.5rem auto, 2.5rem auto;
  margin-top: 1vw;
  font-size: 0.9rem;
  padding-left: 0.5rem;
  border-radius: 5rem;
  border: #73653f solid 2px;
  vertical-align: middle;
  position: relative;
}

.select_menu.lang select {
  width: 100%;
  height: 100%;
  outline: 0;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border-style: none;
  font-family: "微軟正黑體", sans-serif;
  vertical-align: middle;
  text-align: center;
  color: #dcc484;
  display: inline-block;
  cursor: pointer;
  border-color: transparent;
}*/

/*for ie10 、 ie11*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .select_menu.lang select {
    position: absolute;
    left: 2.25rem;
    top: 0%;
  }
}

/*IE隱藏箭頭樣式*/
.select_menu.lang select::-ms-expand {
  display: none;
}
.select_menu.lang option {
  margin: 0;
  padding: 0;
  border: #73653f solid 1px;
  background-color: #e7d49c7a;
  color: #504118;
}
.select_menu.lang:hover {
  background-image: url('../images/btn_arrow_ov.webp'), url('../images/btn_lang_ov.webp');
  border: #ebcf83 solid 2px;
}

/*-------在PC上隱藏選單--------*/
.btn_toggle_sure {
  display: none;
}

.btn_toggle {
  margin: 0;
  position: relative;
  display: none;
  z-index: 100;
}
.btn_toggle a {
  white-space: nowrap;
  overflow: hidden;
  display: block;
  float: right;
  margin: 0.6rem 0.8rem 0.6rem 0;
  background-repeat: no-repeat;
  background-image: url(../images/btn_toggle.webp);
  background-size: 100% auto;
  background-position: right center;
}

.btn_toggle a:hover {
  filter: brightness(120%);
}

.close a {
  white-space: nowrap;
  overflow: hidden;
  display: block;
  float: right;
  margin: 0.6rem 0.8rem 0.6rem 0;
  background-repeat: no-repeat;
  background-image: url(../images/btn_toggle_ov.webp);
  background-size: 100% auto;
  background-position: right center;
}

.close a:hover {
  filter: brightness(120%);
}

@media screen and (max-width: 1000px) {
  .btn_toggle_sure,
  .btn_toggle {
    display: block;
  }

  /*jQuery點擊後動態在 body 加上 class */
  .menu_show .menu_flex02 {
    display: block;
    animation: 1s fat;
    transition: all 1s;
  }
  .menu_close .menu_flex02 {
    display: block;
    animation: 1s close;
  }
  .headmenu {
    width: 100%;
    /* background-image: inherit; */
    box-shadow: inherit;
    background: rgba(114, 53, 27, 0.89);
    background-color: #000000c9;
  }
}

@keyframes fat {
  0% {
    opacity: 0;
    transform: translateX(20%);
  }
  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}
@keyframes close {
  0% {
    opacity: 1;
    transform: translateX(0%);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 1550px) {
  .select_menu.lang {
    width: 8rem;
    height: 2.2rem;
    margin-top: 1.3vw;
    background-size: 1.8rem auto, 1.8rem auto;
  }
  .menu {
    padding: 0 1.5rem;
  }
  .menu li {
    margin: 0 0.5rem;
  }
  .menu_flex03 {
    width: 35%;
  }
}

@media screen and (max-width: 1280px) {
  .menu {
    padding: 0 !important;
  }
}

@media screen and (max-width: 1040px) {
  .menu_flex01 {
    width: 286px;
  }
}

@media screen and (max-width: 1000px) {
  .headmenu {
    width: 100%;
    display: block;
  }

  .headmenu::after {
    height: 100px;
  }

  /*logo*/
  .menu_flex01 {
    width: 100%;
    display: flex;
    vertical-align: middle;
    justify-content: flex-end;
    align-items: center;
  }

  /* 上方選單 */
  .menu_flex02 {
    width: 22%;
    height: auto;
    position: absolute;
    right: 0;
    top: 0;
    padding-top: 3.5rem;
    flex-direction: column;
    -ms-flex-direction: column;
    justify-content: flex-start;
    -ms-flex-pack: flex-start;
    align-items: center;
    -ms-flex-align: center;
    display: none;
  }
  .menu_flex02::after {
    content: ' ';
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    /* background-color: rgba(238, 236, 236, 0.8); */
    background: linear-gradient(to bottom, #232323 0%, #262626c2 50%, #2626262e 100%);
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    z-index: -2;
  }
  .menu {
    flex-direction: column;
    width: 90%;
    margin: auto;
  }
  .menu li {
    padding: 0 0.5rem;
    margin: 0 0.5rem;
  }

  .btn_click {
    display: block;
  }

  /*logo*/
  .btn_logo {
    width: 10rem;
  }

  /*RWD：右側Menu*/
  .btn_toggle {
    width: 3rem;
    float: right;
    min-width: 45px;
  }
  .btn_toggle a,
  .close a {
    margin: 0.6rem 0.8rem 0.6rem 0;
  }
  .social_mb {
    padding: 0 1rem !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .social_mb li {
    margin: 10px 0;
    width: 40%;
  }

  /* 左側選單 */
  .menu_flex03 {
    display: none;
  }

  .select_menu.lang {
    width: 8.5rem;
    height: 2.5rem;
    margin-top: 0;
    background-size: 2.5rem auto, 2.5rem auto;
    margin: 0 auto;
  }
}

@media screen and (max-width: 769px) {
  .menu_flex02 {
    width: 30%;
  }
  .menu li {
    margin: 0.5rem;
  }
}

@media screen and (max-width: 640px) {
  .btn_toggle {
    right: 1vw;
  }
  .btn_toggle a,
  .close a {
    margin: 0.5rem 0.6rem 0.5rem 0;
  }
  .select_menu.lang {
    padding-left: 2rem;
  }
}

@media screen and (max-width: 550px) {
  .menu_flex02 {
    width: 37%;
  }

  .select_menu {
    padding: 0.35rem 1rem 0.5rem 2rem;
  } /* 控制手機語系選單文字居中 */
}

@media screen and (max-width: 400px) {
  .btn_logo {
    top: 0.3rem;
  }
  .btn_logo,
  .btn_toggle_sure {
    max-width: 10.5rem;
  }
}

@media screen and (max-width: 370px) {
  .btn_logo {
    width: 9.5rem;
  }
  .btn_toggle_sure {
    max-width: 9.5rem;
  }
}
