@charset "UTF-8";
/* CSS Document */
/* 若有想寫新的 css 寫在此 */


/* variables */
:root {
    --menu-item-color-active: #990b33;
    --menu-item-count: 12;
    --menu-item-margin: 5px;
    --menu-item-border-width: 1px;
  
}



:target:before {
  content: "";
  display: block;
  height: 80px; /* fixed header height*/
  margin: -80px 0 0; /* negative fixed header height */
}

/* overwrite */
.main-menu a:active,
.main-menu a:hover,
.main-menu a:link,
.main-menu a:visited {
  color: unset;
}

/*** Main menu - 當畫面往下滾動時, 選單置頂 *********************/
/* main menu */
.main-menu-wrap {
  width: 100%;
  background: var(--body-background-color);
}

.main-menu {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  z-index: 99;
}

.main-menu-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: calc((100% - (var(--menu-item-margin) + var(--menu-item-border-width)) * 2 * var(--menu-item-count)) / var(--menu-item-count));
  aspect-ratio: 1 / 1;
  margin: var(--menu-item-margin);
  border: var(--menu-item-border-width) solid var(--menu-item-color-active);
  box-shadow: 0 0 0 2px #fff;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  z-index: 99;
  transition: all 0.5s ease-out;
}



.main-menu-item-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.main-menu-item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.main-menu-item-title {
  display: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--menu-item-color-active);
}



/* hover effect */
.main-menu-item:hover {
  background: var(--menu-item-color-active);
}



.main-menu-item:hover,
.main-menu-item:hover .main-menu-item-link,
.main-menu-item:hover .main-menu-item-title {
  color: #fff;
}

.main-menu-item:hover .main-menu-item-image {
  display: none;
  opacity: 0;
}

.main-menu-item:hover .main-menu-item-title {
  display: block;
}

/* sticky */
.main-menu-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1041;
  transition: transform 1s ease-in;
}

.main-menu-sticky.main-menu-wrap {
  padding: 8px 0;
/*   box-shadow: 0 2px 2px rgba(0, 0, 0, .08),
              0 5px 5px rgba(0, 0, 0, .05),
              0 8px 8px rgba(0, 0, 0, .005); */
  box-shadow: 0 2px 2px rgba(0, 0, 0, .08),
              0 6px 4px rgba(0, 0, 0, .03);
}

.main-menu-sticky .main-menu-item {
  aspect-ratio: auto;
  border-color: rgba(137, 112, 101, .18);
  border-radius: 6px;
  box-shadow: none;
}

.main-menu-sticky .main-menu-item-link {
  padding: 12px 8px;
}

.main-menu-sticky .main-menu-item-image {
  display: none;
}

.main-menu-sticky .main-menu-item-title {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #897065;
}

/*** other & overwrite *********************/
/* header */
.header-hidden {
  transform: translateY(-70px);
}

@media screen and (max-width: 767px) {
  /* overwrite M 版下方menu */
  .bbbar {
    display: none;
  }

  /** menu **/
  .main-menu-sticky.main-menu-wrap {
    padding: 6px 0;
  }
  .main-menu {
    overflow-x: scroll;
  }

  .main-menu-item {
    flex: none;
    width: auto;
    aspect-ratio: auto;
    border-color: rgba(137, 112, 101, .18);
    border-radius: 6px;
    box-shadow: none;
  }

  .main-menu-sticky .main-menu-item-link,
  .main-menu-item-link {
    padding: 8px;
  }

  .main-menu-item-image {
    display: none;
  }

  .main-menu-item-title {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #897065;
  }
}

/* back to top */
.back-to-top-wrap {
  display: none;
}

.back-to-top {
  right: 0;
}

.back-to-top-text {
  margin-bottom: 0;
  font-weight: bold;
}

.back-to-top-text,
.back-to-top-text a:active,
.back-to-top-text a:hover,
.back-to-top-text a:link,
.back-to-top-text a:visited {
  color: #fff;
}

.back-to-top-show {
  display: block !important;
}









