@charset "UTF-8";
.right-box {
  position: fixed;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  right: 0;
  width: 276px;
  height: 557px;
  background: url(../images/right-box.png) no-repeat center top;
  border-radius: 12px 0 0 8px;
  z-index: 99;
  padding: 20px 0 0 22px;
  -webkit-transition: 0.3s ease-out;
  transition: 0.3s ease-out;
}
.right-box.active {
  right: -240px;
}

.fb-widget {
  position: absolute;
  top: 221px;
  left: 58px;
  width: 200px;
  height: 300px;
  outline: 5px solid #dec2b0;
}

.right-box-btn {
  position: absolute;
  top: 301px;
  left: 4px;
  width: 31px;
  height: 55px;
  cursor: pointer;
  background: url(../images/right-box-arrow.png) no-repeat center;
}
.right-box-btn.active {
  background: url(../images/right-box-arrow-open.png) no-repeat center;
}

.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 1280px;
  height: 80px;
  z-index: 600;
  background: url(../images/top-menu-pat.png) repeat center;
}
.top-menu .logo-m {
  display: none;
}

.top-menu .logo-m {
  margin: 0 0 0 10px;
}

.logo-s {
  position: absolute;
  display: block;
  width: 214px;
  height: 83px;
  top: 0px;
  left: 10px;
  z-index: 10;
}

#menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-left: 265px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.menu-btn {
  position: relative;
  width: 124px;
  display: block;
  height: 80px;
  text-decoration: none;
  line-height: 80px;
  margin-right: 20px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  text-align: center;
  cursor: pointer;
  color: #fff;
}
.menu-btn:hover {
  background-position: center bottom;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  color: #fffadc;
}
.menu-btn:hover::before {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}
.menu-btn::before {
  content: "";
  position: absolute;
  width: 95px;
  height: 12px;
  bottom: 18px;
  left: 14px;
  background: url(../images/menu-btn-deco.png) no-repeat center top;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
}

.menu-group {
  position: relative;
}

.submenu {
  position: absolute;
  top: 99%;
  left: 0;
  display: none;
  background: #222222;
  border-radius: 6px;
  width: 124px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.submenu:before {
  position: absolute;
  top: -10px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #222;
}

.submenu a {
  display: block;
  padding: 10px 16px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

.submenu a:hover {
  color: #fffadc;
}

.menu-group:hover .submenu {
  display: block;
}

.social-btns {
  width: 150px;
  position: absolute;
  right: 42px;
  top: 136px;
  z-index: 100;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.social-btns a {
  display: block;
  width: 64px;
  height: 64px;
  margin-right: 5px;
  outline: 5px solid #dec2b0;
  border-radius: 50%;
}

.m-social-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.m-social-btns a {
  display: block;
  width: 50px;
  height: 50px;
  margin-right: 5px;
  border-radius: 5px;
}
.m-social-btns a img {
  max-width: 100%;
  position: relative;
  top: -1px;
  left: -1px;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: white;
  position: relative;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  top: 18px;
  left: 7px;
  border-radius: 10px;
}

.hamburger div::before,
.hamburger div::after {
  content: "";
  width: 25px;
  height: 3px;
  background: white;
  position: absolute;
  left: 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.hamburger div::before {
  top: -8px;
}

.hamburger div::after {
  top: 8px;
}

/* 漢堡選單開啟時變叉叉 */
.hamburger.active div {
  background: transparent;
}

.hamburger.active div::before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  top: 0;
}

.hamburger.active div::after {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  top: 0;
}

.logo-m {
  width: 157px;
  height: 65px;
  margin: 0 auto 20px auto;
}

/* 手機選單 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding-top: 90px;
  z-index: 500;
  -webkit-transform: translateX(100%);
          transform: translateX(100%); /* 藏在右邊 */
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.mobile-menu.active {
  -webkit-transform: translateX(0);
          transform: translateX(0); /* 滑出來 */
}

.scroll-btn {
  width: 100%;
  display: block;
  position: relative;
  height: 50px;
  text-align: left;
  line-height: 50px;
  color: #fff;
  background: #b69c72;
  margin-bottom: 0px;
  padding-left: 20px;
  border-bottom: 3px solid #d2b587;
}

.m-menu-group {
  position: relative;
}
.m-menu-group.has-submenu .scroll-btn {
  padding-right: 38px;
}
.m-menu-group.has-submenu .scroll-btn::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff7e8;
  border-bottom: 2px solid #fff7e8;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
  pointer-events: none;
}
.m-menu-group.has-submenu.open .scroll-btn::after {
  top: 22px;
  -webkit-transform: rotate(-135deg);
          transform: rotate(-135deg);
}

.menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px;
  font-size: 18px;
  border-bottom: 1px solid #555;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}

.m-submenu {
  position: relative;
  top: 0;
  display: none;
  padding: 0 0 10px 0;
  background: rgba(16, 11, 8, 0.9);
}
.m-submenu a {
  display: block;
  width: 100%;
  min-height: 40px;
  line-height: 40px;
  color: #f4ead7;
  margin: 0 auto;
  font-size: 16px;
  text-align: left;
  padding-left: 30px;
  background: transparent;
}

.m-menu-group.open .m-submenu a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1921px) {
  .top-menu {
    height: 95px;
  }
  .top-menu .inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .logo {
    top: 10px;
  }
  #menu a {
    -webkit-transition: 0s;
    transition: 0s;
  }
  #menu a:hover {
    -webkit-transition: 0s;
    transition: 0s;
  }
  .social-btns {
    top: 27px;
  }
}
@media (max-width: 768px) {
  .right-box {
    display: none;
  }
  .logo-s {
    display: none;
  }
  .top-menu {
    background: rgba(0, 0, 0, 0.75);
    height: 60px;
    min-width: 0;
  }
  .top-menu .logo-m {
    display: block;
  }
  .page-home .top-menu {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .page-home .top-menu .logo-m {
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
  }
  .page-home .top-menu.is-scrolled {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .page-home .top-menu.is-scrolled .logo-m {
    opacity: 1;
    visibility: visible;
  }
  .logo {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: auto;
    top: 8px;
    left: 0;
  }
  .logo img {
    max-width: 100%;
  }
  .hamburger {
    display: block;
    opacity: 1;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  #menu {
    display: none;
  }
  .social-btns {
    display: none;
  }
}