@charset "UTF-8";
/* ---------------------------------------- */
/*   layout.css                             */
/*    |- 01 global（全域設定）                */
/*    |- 02 header                          */
/*    |- 03 footer                          */
/*    |- 04 頁面共用 class                   */
/* ---------------------------------------- */
:root {
  --primary: #0c2454;
  --primary-light: #01549e;
  --primary-background: #f6f7fb;
  --secondary: #7fc998;
  --secondary-light: #b8ebca;
  --secondary-dark-background: #def3e6;
  --secondary-background: #edf5ef;
  --tertiary: #fec30e;
  --black: #0f1015;
  --dark: #505050;
  --dark-grey: #7c7c7c;
  --sec-grey: #a7a7a7;
  --grey: #d3d3d3;
  --light-grey: #e9e9e9;
  --white-grey: #f3f3f3;
  --background: #f8f8f8;
  --white: #fff;
  --error: #fb4a4a;
}

/* ---------------------------------------- */
/*  全域設定                                 */
/* ---------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: "Microsoft JhengHei";
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
}
body.no-scroll {
  position: fixed;
  overflow-y: scroll;
}

a {
  text-decoration: none;
  color: var(--black);
  font-size: 16px;
  transition: 0.3s;
}
a:hover {
  color: var(--primary);
}

html {
  scroll-behavior: smooth;
}

/* ---------------------------------------- */
/*  header                                  */
/* ---------------------------------------- */
:root {
  scroll-padding-top: 130px;
}
@media (max-width: 1279px) {
  :root {
    height: 70px;
  }
}

.header {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc((100% - 1130px) / 2);
  width: 100%;
  height: 130px;
  z-index: 1000;
  transition: 0.3s;
}
@media (max-width: 1279px) {
  .header {
    padding: 10px 20px;
    height: 70px;
    background-color: var(--white);
  }
}
.header:hover, .header.hover {
  background-color: var(--white);
}
.header:hover .navigation-text, .header.hover .navigation-text {
  color: var(--primary);
}
@media (max-width: 1279px) {
  .header:hover .navigation-text, .header.hover .navigation-text {
    width: fit-content;
  }
}
.header:hover .logo-not-scroll,
.header:hover .search-button > .not-scroll,
.header:hover .arrow-not-scroll, .header.hover .logo-not-scroll,
.header.hover .search-button > .not-scroll,
.header.hover .arrow-not-scroll {
  display: none;
}
.header:hover .logo-scroll,
.header:hover .search-button > .scroll,
.header:hover .arrow-scroll, .header.hover .logo-scroll,
.header.hover .search-button > .scroll,
.header.hover .arrow-scroll {
  display: block;
}
@media (max-width: 1279px) {
  .header:hover .arrow-scroll, .header.hover .arrow-scroll {
    display: none;
  }
}
.header:hover .search-button:hover > .scroll, .header.hover .search-button:hover > .scroll {
  display: none;
}
.header-background {
  position: fixed;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 2;
  background: rgba(26, 26, 26, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.header-background.active {
  height: 100vh;
  opacity: 1;
}
.header .logo {
  z-index: 100;
}
.header .logo-not-scroll {
  display: block;
}
@media (max-width: 1279px) {
  .header .logo-not-scroll {
    display: none;
  }
}
.header .logo-scroll {
  display: none;
  width: 93px;
  height: 85px;
}
@media (max-width: 1279px) {
  .header .logo-scroll {
    display: block;
    height: 100%;
  }
}
.header.fixed {
  background-color: var(--white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 1279px) {
  .header.fixed {
    height: 70px;
  }
}
.header.fixed .navigation-text {
  color: var(--primary);
}
@media (max-width: 1279px) {
  .header.fixed .search-box {
    top: 50%;
  }
}
.header.fixed .logo-not-scroll,
.header.fixed .search-button > .not-scroll,
.header.fixed .arrow-not-scroll {
  display: none;
}
.header.fixed .logo-scroll,
.header.fixed .search-button > .scroll,
.header.fixed .arrow-scroll {
  display: block;
}
@media (max-width: 1279px) {
  .header.fixed .arrow-scroll {
    display: none;
  }
}
.header.fixed .search-button:hover > .scroll {
  display: none;
}
.header > a {
  display: block;
}
@media (max-width: 1279px) {
  .header > a {
    height: 100%;
  }
}

.navigation {
  display: flex;
  align-self: flex-end;
  margin-left: auto;
  text-transform: capitalize;
}
@media (max-width: 1279px) {
  .navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-self: flex-start;
    padding: 100px 35px 0;
    height: 100%;
    z-index: 10;
    overflow-y: scroll;
    background-color: var(--white);
  }
}
.navigation.hide {
  display: none;
}
.navigation-item {
  position: relative;
  margin-right: 45px;
  padding-bottom: 50px;
  transition: 0.3s;
}
@media (max-width: 1279px) {
  .navigation-item {
    margin-right: 0;
    padding: 0;
  }
  .navigation-item + .navigation-item {
    border-top: 1px dotted var(--grey);
  }
}
@media (min-width: 1280px) {
  .navigation-item:hover .navigation-text {
    color: var(--secondary);
  }
}
.navigation-item:hover .navigation-text .arrow-hover {
  display: block;
}
@media (max-width: 1279px) {
  .navigation-item:hover .navigation-text .arrow-hover {
    display: none;
  }
}
.navigation-item:hover .navigation-text .arrow-not-scroll,
.navigation-item:hover .navigation-text .arrow-scroll {
  display: none;
}
@media (min-width: 1280px) {
  .navigation-item:hover > .navigation-sub-menu {
    visibility: visible;
    display: block;
  }
}
@media (max-width: 1279px) {
  .navigation-item.accordion::before, .navigation-item.accordion::after {
    display: block;
    content: "";
    position: absolute;
    top: 30px;
    left: initial;
    right: 0;
    z-index: 1;
    width: 14px;
    height: 1px;
    background-color: var(--primary);
  }
  .navigation-item.accordion::after {
    transform: rotate(-90deg);
  }
}
.navigation-item .arrow-not-scroll,
.navigation-item .arrow-scroll,
.navigation-item .arrow-hover {
  margin: 0 0 8px 8px;
  width: 8px;
  height: 5px;
}
.navigation-item .arrow-scroll,
.navigation-item .arrow-hover {
  display: none;
}
.navigation-text {
  display: flex;
  align-items: flex-end;
  font-size: 17px;
  font-weight: bold;
  color: var(--white);
}
@media (max-width: 1279px) {
  .navigation-text {
    padding: 20px 0;
    color: var(--primary);
  }
}
.navigation-sub-menu {
  display: none;
  visibility: hidden;
  position: absolute;
  top: 75px;
  left: -50px;
  padding: 40px 35px;
  width: 290px;
  background-color: var(--white);
  transition: top 0.3s ease;
}
@media (max-width: 1279px) {
  .navigation-sub-menu {
    position: initial;
    top: initial;
    left: initial;
    padding: 0;
    width: 100%;
  }
  .navigation-sub-menu.active {
    display: block;
    visibility: visible;
  }
}
.navigation-sub-menu.single-column {
  width: 290px;
}
@media (max-width: 1279px) {
  .navigation-sub-menu.single-column {
    width: 100%;
  }
}
.navigation-sub-menu.single-column .category-item {
  width: 100%;
}
.navigation-sub-menu .category {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 50px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--black);
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category {
    padding: 10px 0 20px 0;
  }
}
.navigation-sub-menu .category-item {
  position: relative;
  padding-right: 25px;
  width: 100%;
  border-bottom: 1px solid var(--light-grey);
  transition: color 0.3s;
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category-item {
    width: 100%;
    border-bottom: none;
  }
}
.navigation-sub-menu .category-item:hover::before {
  width: 100%;
}
.navigation-sub-menu .category-item:hover::after {
  right: 0;
}
.navigation-sub-menu .category-item::before {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: width 0.4s ease;
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category-item::before {
    display: none;
  }
}
.navigation-sub-menu .category-item::after {
  position: absolute;
  content: "";
  background: url(../images/icon/read-more-arrow.svg) no-repeat center/12px 9px;
  top: 50%;
  right: 3px;
  transform: translateY(calc(-50% - 4px));
  width: 12px;
  height: 9px;
  display: block;
  transition: right 0.3s ease;
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category-item::after {
    display: none;
  }
}
.navigation-sub-menu .category-item > a, .navigation-sub-menu .category-item p {
  display: block;
  padding-bottom: 8px;
  cursor: pointer;
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category-item > a, .navigation-sub-menu .category-item p {
    color: var(--dark-grey);
  }
}
.navigation-sub-menu .category-item .desktop {
  display: block;
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category-item .desktop {
    display: none;
  }
}
.navigation-sub-menu .category-item .mobile {
  display: none;
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category-item .mobile {
    display: block;
  }
}
.navigation-third-menu {
  display: none;
  position: absolute;
  top: 75px;
  left: 240px;
  padding: 40px 35px;
  background-color: var(--background);
  transition: top 0.3s ease;
  min-height: 220px;
}
.navigation-third-menu.active {
  display: block;
}
@media (max-width: 1279px) {
  .navigation-third-menu.active {
    display: none;
  }
}
.navigation-third-menu .third-menu-category {
  display: flex;
  flex-direction: column;
  gap: 20px 50px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--black);
}
@media (max-width: 1279px) {
  .navigation-third-menu .third-menu-category {
    padding: 0 0 20px 0;
  }
}
.navigation-third-menu .third-menu-category .third-menu-category-item {
  position: relative;
  padding-right: 25px;
  width: 170px;
  border-bottom: 1px solid var(--light-grey);
  transition: color 0.3s;
}
@media (max-width: 1279px) {
  .navigation-third-menu .third-menu-category .third-menu-category-item {
    width: 100%;
    border-bottom: none;
  }
}
.navigation-third-menu .third-menu-category .third-menu-category-item:hover::before {
  width: 100%;
}
.navigation-third-menu .third-menu-category .third-menu-category-item:hover::after {
  right: 0;
}
.navigation-third-menu .third-menu-category .third-menu-category-item::before {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: width 0.4s ease;
}
.navigation-third-menu .third-menu-category .third-menu-category-item::after {
  position: absolute;
  content: "";
  background: url(../images/icon/read-more-arrow.svg) no-repeat center/12px 9px;
  top: 50%;
  right: 3px;
  transform: translateY(calc(-50% - 4px));
  width: 12px;
  height: 9px;
  display: block;
  transition: right 0.3s ease;
}
@media (max-width: 1279px) {
  .navigation-third-menu .third-menu-category .third-menu-category-item::after {
    display: none;
  }
}
.navigation-third-menu .third-menu-category .third-menu-category-item > a {
  display: block;
  padding-bottom: 8px;
}
@media (max-width: 1279px) {
  .navigation-third-menu .third-menu-category .third-menu-category-item > a {
    color: var(--dark-grey);
  }
}
@media (max-width: 1279px) {
  .navigation .search {
    display: none;
  }
}

.mobile-menu {
  display: flex;
  align-items: center;
  z-index: 100;
}
@media (min-width: 1280px) {
  .mobile-menu {
    display: none;
  }
}

.search-button {
  transform: translateY(2px);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.search-button:hover .not-scroll {
  display: none;
}
.search-button:hover .hover {
  display: block;
}
.search-button img {
  transition: 0.3s;
  width: 100%;
}
.search-button .hover,
.search-button .scroll {
  display: none;
}
.search-box {
  display: none;
  position: absolute;
  top: 130px;
  left: 0;
  right: 0;
  background: var(--white);
  transition: top 0.3s ease;
}
@media (max-width: 1279px) {
  .search-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
  }
}
.search-box > .container {
  margin: 0 auto;
  padding: 80px 30px;
  max-width: 768px;
}
@media (max-width: 1279px) {
  .search-box > .container {
    padding: 30px;
  }
}
.search-box .close {
  margin-left: auto;
  width: 25px;
  height: 25px;
}
.search-box .title {
  line-height: 1.5;
  font-size: 40px;
  font-weight: bold;
  color: var(--primary-light);
}
@media (max-width: 1279px) {
  .search-box .title {
    font-size: 28px;
  }
}
.search-close {
  width: 18px;
}
.search-form {
  margin-top: 15px;
  display: flex;
  align-items: center;
}
.search-form .search-input,
.search-form .submit {
  border: none;
  outline: none;
}
.search-form .search-input {
  padding: 0 20px;
  width: calc(100% - 52px);
  height: 52px;
  background: var(--white);
  font-size: 16px;
  border: 1px var(--grey) solid;
  border-radius: 5px 0 0 5px;
  transition: 0.3s;
}
.search-form .search-input::placeholder {
  color: var(--grey);
}
.search-form .search-input:hover, .search-form .search-input:focus {
  border: 1px var(--sec-grey) solid;
}
.search-form .submit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}
.search-form .submit:hover {
  background: var(--primary);
}
.search-form .submit img {
  display: block;
  width: 18px;
  height: 18px;
}
.search.desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 1279px) {
  .search.desktop {
    display: none;
  }
}
.search.desktop .search-form {
  margin-top: 0;
  width: calc(100% - 50px);
}
.search.desktop.active {
  width: 50%;
}
.search.desktop.active .search-button {
  display: none;
}
.search.desktop.active .search-form {
  display: flex;
}
.search.desktop.active .search-close {
  display: block;
  cursor: pointer;
}
.search.desktop .search-form {
  display: none;
}
.search.desktop .search-close {
  display: none;
}

.hamburger {
  display: none;
  position: relative;
  margin-left: 25px;
  width: 28px;
  height: 18px;
  background-color: var(--white);
  z-index: 10;
  cursor: pointer;
}
@media (max-width: 1279px) {
  .hamburger {
    display: block;
  }
}
.hamburger-line {
  display: block;
  position: absolute;
  height: 1.5px;
  width: 28px;
  background: var(--black);
  border-radius: 1px;
  opacity: 1;
  left: 0;
  transform: rotate(0);
  transition: all 0.25s ease-in-out;
}
.hamburger-line:first-child {
  top: 0;
}
.hamburger-line:first-child.active {
  opacity: 0;
}
.hamburger-line:nth-child(2), .hamburger-line:nth-child(3) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-line:nth-child(2).active {
  opacity: 1;
  transform: rotate(45deg);
}
.hamburger-line:nth-child(3).active {
  transform: rotate(-45deg);
}
.hamburger-line:last-child {
  bottom: 0;
}
.hamburger-line:last-child.active {
  opacity: 0;
}

/* ---------------------------------------- */
/*  footer                                  */
/* ---------------------------------------- */
.footer {
  background-color: var(--primary);
}
.footer a {
  color: var(--white);
}
.footer a:hover {
  color: var(--secondary);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 40px;
  padding: 50px 0 0 0;
}
@media (max-width: 767px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 20px;
  }
}
.footer-link {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 18px;
  font-weight: bold;
}
@media (max-width: 767px) {
  .footer-link {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px 0px;
    margin: 15px 0 0 0;
  }
}
@media (max-width: 767px) {
  .footer-link-item {
    width: 50%;
  }
}
.footer-link-item:not(:first-child) {
  margin-top: 20px;
}
@media (max-width: 767px) {
  .footer-link-item:not(:first-child) {
    margin: 0;
  }
}
.footer-info {
  width: 42%;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 767px) {
  .footer-info {
    margin-bottom: 15px;
    width: 100%;
  }
}
.footer-info .title {
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: bold;
  color: var(--white);
}
@media (max-width: 767px) {
  .footer-info .title {
    display: none;
  }
}
.footer-info .text {
  margin-top: 15px;
}
.footer-social {
  display: flex;
  align-items: center;
}
.footer-social a {
  display: block;
  margin-left: 18px;
}
@media (max-width: 767px) {
  .footer-social a:first-child {
    margin-left: 0;
  }
}
.footer-social img {
  display: block;
}
.footer-bottom {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid rgba(127, 201, 152, 0.4);
  color: var(--white);
  font-size: 14px;
}
@media (max-width: 767px) {
  .footer-bottom {
    display: block;
  }
}
.footer-bottom a {
  font-size: 14px;
}
.footer-bottom a:last-child {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------- */
/*  共用 class                               */
/* ---------------------------------------- */
main {
  min-height: calc(100vh - 350px); /* 減去 footer + header 高度 */
}
main:not(.homepage, .product-introduction) {
  padding-top: 130px;
}
@media (max-width: 1279px) {
  main:not(.homepage, .product-introduction) {
    padding-top: 70px;
  }
}

.wrapper {
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
  max-width: 1190px;
}

/* ---------------- 按鈕 ---------------- */
.button--back, .button--white, .button {
  display: inline-block;
  padding: 15px 22px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  color: var(--primary);
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}
.button--back:hover, .button--white:hover, .button:hover {
  background-color: var(--primary);
  color: var(--white);
}

.button--white {
  border-color: var(--white);
  color: var(--white);
}

.button--back {
  display: block;
  position: relative;
  margin: 50px auto 0;
  padding: 0 30px;
  width: 140px;
  height: 45px;
  line-height: 45px;
  font-size: 15px;
  text-align: right;
}
.button--back:hover::before {
  border-left: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
}
.button--back::before {
  display: block;
  position: absolute;
  top: calc(50% - 5px);
  transform: rotate(45deg);
  left: 25px;
  content: "";
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
}

/* ---------------- 隱私權提醒 ---------------- */
.privacy-box {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  align-items: center;
  margin: 0 auto;
  padding: 30px;
  width: 88vw;
  background-color: var(--white);
  line-height: 1.5;
  font-size: 15px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.privacy-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
}
@media (max-width: 767px) {
  .privacy-wrapper {
    flex-direction: column;
  }
}
.privacy-wrapper a {
  color: var(--secondary);
  font-weight: bold;
  transition: opacity 0.3s ease;
}
.privacy-wrapper a:hover {
  opacity: 0.7;
}
.privacy-button {
  margin: 0 0 0 50px;
  padding: 10px;
  width: 200px;
  border: 1px solid var(--primary);
  color: var(--white);
  background-color: var(--primary);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.5s ease-out;
}
@media (max-width: 767px) {
  .privacy-button {
    margin: 15px 0 0 0;
  }
}
.privacy-button:hover {
  background-color: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* ----------------- 置頂按鈕 ----------------- */
.scroll-top {
  display: none;
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border: none;
  border-radius: 5px;
  z-index: 10;
  transition: 0.3s;
  cursor: pointer;
}
.scroll-top:hover {
  background-color: #e0e3ea;
}
.scroll-top:hover > .not-hover {
  display: none;
}
.scroll-top:hover > .hover {
  display: block;
}
.scroll-top > .not-hover,
.scroll-top > .hover {
  margin: 0 auto;
  width: 18px;
}
.scroll-top > .not-hover {
  display: block;
}
.scroll-top > .hover {
  display: none;
}

/* ---------------- 麵包屑 ---------------- */
.breadcrumbs {
  display: flex;
  padding: 50px 0 10px;
  margin: 0 0 35px;
  list-style: none;
  font-size: 14px;
  color: var(--dark);
  border-bottom: 1px solid var(--light-grey);
}
@media (max-width: 767px) {
  .breadcrumbs {
    display: none;
  }
}
.breadcrumbs-item {
  position: relative;
}
.breadcrumbs-item:not(:first-child):after {
  position: absolute;
  content: "/ ";
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  color: var(--sec-grey);
  font-size: 13px;
}
.breadcrumbs-item + .breadcrumbs-item {
  margin-left: 20px;
  padding-left: 20px;
}
.breadcrumbs-item a {
  font-size: 14px;
  color: var(--sec-grey);
}
.breadcrumbs-item a:hover {
  color: var(--primary);
}

.product-introduction .breadcrumbs {
  margin: 0;
  padding: 50px 0 0 0;
  border-bottom: none;
}

/* ---------------- 網站架構 ---------------- */
.content {
  display: flex;
  width: 100%;
  max-width: 100%;
  /* ---------------- 側邊欄 ---------------- */
  /* -------------- 內容（有側邊欄） -------------- */
}
@media (max-width: 767px) {
  .content {
    flex-direction: column;
  }
}
.content-sub {
  margin-right: 50px;
  padding: 100px 35px 100px 0;
  border-right: 1px solid var(--light-grey);
  width: 300px;
  min-height: 500px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .content-sub {
    position: relative;
    margin: 0 0 30px;
    padding: 0;
    width: 100%;
    min-height: initial;
    border: none;
  }
}
.content-sub > .title {
  position: relative;
  margin-bottom: 30px;
  padding: 0 0 8px 0;
  font-size: 28px;
  font-weight: bold;
}
@media (max-width: 767px) {
  .content-sub > .title {
    margin-bottom: 0;
    padding: 15px 55px 15px 20px;
    height: 55px;
    border: 1px solid var(--grey);
    font-size: 16px;
  }
  .content-sub > .title::after {
    display: none;
  }
}
.content-sub > .title::before, .content-sub > .title::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  height: 1px;
}
.content-sub > .title::before {
  width: 100%;
  background-color: var(--light-grey);
}
@media (max-width: 767px) {
  .content-sub > .title::before {
    transform: translateY(-50%);
    top: 50%;
    left: initial;
    right: 20px;
    background: no-repeat url(../images/icon/arrow-down-primary.svg);
    width: 14px;
    height: 8px;
  }
}
.content-sub > .title::after {
  width: 20%;
  background-color: var(--primary);
}
.content-sub .nav {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  .content-sub .nav {
    display: none;
    position: absolute;
    top: 55px;
    width: 100%;
    border: 1px solid var(--grey);
    border-top: none;
  }
}
.content-sub .nav-item {
  position: relative;
  line-height: 1.5;
  text-transform: capitalize;
}
@media (max-width: 767px) {
  .content-sub .nav-item {
    background-color: var(--white);
  }
  .content-sub .nav-item:not(:last-child) {
    border-bottom: 1px solid var(--grey);
  }
}
.content-sub .nav-item .plus,
.content-sub .nav-item .minus {
  width: 20px;
  height: 20px;
}
.content-sub .nav-item.active p {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background-color: var(--primary-background);
  font-weight: bold;
}
@media (max-width: 767px) {
  .content-sub .nav-item.active p {
    padding: 15px;
    background-color: none;
    font-weight: normal;
    background-color: var(--primary-light);
    color: var(--white);
  }
}
.content-sub .nav-item.active p.category-active .plus {
  display: none;
}
.content-sub .nav-item.active p.category-active .minus {
  display: block;
}
.content-sub .nav-item.active .accordion-menu {
  display: block;
}
.content-sub .nav-item .minus {
  display: none;
}
.content-sub .nav-item .category-title {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  transition: 0.3s;
}
@media (max-width: 767px) {
  .content-sub .nav-item .category-title {
    padding: 15px;
  }
}
.content-sub .nav-item .category-title .plus {
  display: block;
}
.content-sub .nav-item .category-title .minus {
  display: none;
}
.content-sub .nav-item .category-title.category-active .plus {
  display: none;
}
.content-sub .nav-item .category-title.category-active .minus {
  display: block;
}
@media (min-width: 1280px) {
  .content-sub .nav-item .category-title:hover {
    background-color: var(--primary-background);
  }
}
.content-sub .nav-item .accordion-menu {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--light-grey);
}
.content-sub .nav-item .accordion-menu a {
  display: block;
  color: var(--dark-grey);
}
.content-sub .nav-item .accordion-item {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  border-top: 1px dotted var(--light-grey);
  line-height: 1.7;
}
.content-sub .nav-item .accordion-item:hover a {
  color: var(--secondary);
}
.content-main {
  padding-bottom: 100px;
  width: calc(100% - 350px);
}
@media (max-width: 767px) {
  .content-main {
    padding-bottom: 60px;
    width: 100%;
  }
}
.content-main .breadcrumbs {
  justify-content: flex-end;
}

/* ---------------- 文字編輯器 ---------------- */
.user_editor {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: static !important;
  overflow-x: auto;
  line-height: 1.5;
}
.user_editor table {
  width: 100% !important;
}
.user_editor img {
  margin: 10px 0;
  max-width: 100% !important;
}
.user_editor iframe {
  margin: 16px 0;
  width: 100%;
  aspect-ratio: 16/9;
}

/* ------------------- 頁碼 ------------------- */
.pagination {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 50px 0 0 0;
  list-style: none;
  font-family: "Poppins", sans-serif;
}
.pagination-item {
  display: flex;
  margin: 0 4px;
  border: 1px solid var(--grey);
  border-radius: 50%;
  transition: all 0.5s;
}
.pagination-item img {
  width: 7px;
  height: auto;
}
.pagination-item .link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  transition: all 0.5s;
  color: var(--dark-grey);
}
.pagination-item .icon-next {
  transform: rotate(180deg);
}
.pagination-item.active {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}
.pagination-item.active .link {
  color: var(--white);
}
.pagination-item:hover {
  border: 1px solid var(--black);
}
.pagination-item:hover .link {
  color: var(--dark-grey);
}
.pagination-item:hover.active {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}
.pagination-item:hover.active .link {
  color: var(--white);
}

/* ------------------- loading ------------------- */
@keyframes colorFade {
  0% {
    color: var(--primary-background);
  }
  50% {
    color: var(--primary);
  }
  100% {
    color: var(--primary-background);
  }
}
#loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: inherit;
  background-color: var(--white);
  z-index: 1001;
}
#loading img {
  width: 82px;
}
#loading p {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.57;
  letter-spacing: 0.8px;
  text-align: center;
  color: var(--sec-grey);
  animation: colorFade 1.5s infinite;
}

/*# sourceMappingURL=layout.css.map */
