/*選單區/////////////////////////////////////////////////////////////////////////////*/
.bg_headmenu {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
}
.headmenu {
  width: 100%;
  background: transparent;
  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;
  /* 這個display:block電腦版上方就會出現menu */
  display: none;
}

.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;
}
.lang-ch .menu li:nth-of-type(1) {
  background-image: url(../images/tt_btn_5_ov.webp);
}

.lang-ch .menu li:nth-of-type(1):hover,
.lang-ch .menu li:nth-of-type(1).active {
  background-image: url(../images/tt_btn_5_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;
}

/*上方選單*/
.menu_flex04 {
  width: 22%;
  height: fit-content;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  margin-top: 18px;
  margin-right: 2%;
}

.menu_flex04 .social {
  flex-direction: row;
  justify-content: flex-end;
}

/* 左側：PC版：社群 */
/* 左側選單 */
.menu_flex03 {
  width: 100%;
  max-width: 100px;
  display: flex;
  display: -ms-flexbox;
  align-items: center;
  -ms-flex-align: center;
  position: absolute;
  top: 25vh;
  right: 0;
  z-index: 9;
}

.social {
  display: flex;
  flex-direction: column;
}
.social li {
  width: 15%;
  margin: 0.2rem;
}

.social li:nth-of-type(1),
.social_mb li:nth-of-type(1) {
  background: url(../images/btn_top_01_yt.png) no-repeat;
  background-size: 100% auto;
}
.social li:nth-of-type(2),
.social_mb li:nth-of-type(2) {
  background: url(../images/btn_top_02_discord.png) no-repeat;
  background-size: 100% auto;
}
.social li:nth-of-type(3),
.social_mb li:nth-of-type(3) {
  background: url(../images/btn_top_03_fb.png) no-repeat;
  background-size: 100% auto;
}
.social li:nth-of-type(4),
.social_mb li:nth-of-type(4) {
  background: url(../images/btn_top_04_ba.png) no-repeat;
  background-size: 100% auto;
}
.social li:nth-of-type(5),
.social_mb li:nth-of-type(5) {
  background: url(../images/btn_top_05_line.png) no-repeat;
  background-size: 100% auto;
}
.social li:nth-of-type(6),
.social_mb li:nth-of-type(6) {
  background: url(../images/btn_top_06_en.png) 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 li:nth-of-type(6):hover,
.social li:nth-of-type(6).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,
.social_mb li:nth-of-type(6):hover,
.social_mb li:nth-of-type(6).active {
  animation: topbtn 1s infinite alternate;
}
@keyframes topbtn {
  from {
    filter: brightness(1) hue-rotate(0deg);
  }
  to {
    filter: brightness(1.5) hue-rotate(5deg);
  }
}

/* 右側選單-隨section跳動 */
.menu_flex05 {
  width: 100%;
  max-width: 100px;
  display: flex;
  display: -ms-flexbox;
  align-items: center;
  -ms-flex-align: center;
  position: absolute;
  top: 30vh;
  right: 0;
  z-index: 9;
  margin-right: 6%;
}

.menu_flex05 li a {
  width: 160px;
  height: 60px;
  list-style: none;
  background-color: transparent; /* 設置為透明 */
  border-radius: 0;
  opacity: 1;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fae68e;
  line-height: 40px;
  padding-right: 1rem;
  text-align: right;
  box-sizing: border-box;
  text-decoration: none;
  filter: drop-shadow(2px 3px 10px #020349);
}

.menu_flex05 li a.active {
  background: url(../images/btn_rmenu.png) no-repeat;
  background-size: 100% auto;
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 1px;
  font-weight: 800;
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
  filter: drop-shadow(0px 0px 0px #020349);
}

/* 讓文字本身做漸層 */
.menu_flex05 li a.active span {
  background: linear-gradient(to bottom, #4b1e10 40%, #882c07 60%, #8b0000 10%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block; /* 有時需要讓 span 是 block 才會正確套用 */
}

/*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: 1600px) {
  .menu_flex05 li a {
    width: 140px;
    height: 42px;
    font-size: 1rem;
    line-height: 38px;
    padding-right: 1rem;
    margin-top: 0.5rem;
  }

  .menu_flex05 li a.active {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transform: scale(1.1);
  }
}

@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;
  }

  .menu_flex04 .social {
    display: none;
  }
}

@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;
    height: 60px;
  }

  .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%;
  }

  .btn:active {
    transform: scale(0.85);
    transition: transform 0s ease-in-out;
  }

  /* 左側選單 */
  .menu_flex03 {
    display: none;
  }

  /* 右側選單-隨section滾動 */
  .menu_flex05 {
    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;
  }
}
