@charset "UTF-8";
/* ---------------------------------------- */
/*   layout.css                             */
/*    |- 01 global（全域設定）                */
/*    |- 02 header                          */
/*    |- 03 footer                          */
/*    |- 04 頁面共用 class                   */
/* ---------------------------------------- */
:root {
  --primary: #1ca652;
  --primary-light: #25c161;
  --primary-background: #eff5f0;
  --secondary: #ffe11f;
  --black: #3f3f3f;
  --dark: #4d4d4d;
  --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);
}

/* ---------------------------------------- */
/*  header                                  */
/* ---------------------------------------- */
.header {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  height: 150px;
  z-index: 200;
  transition: 0.3s;
}
@media (max-width: 1279px) {
  .header {
    padding: 10px 20px;
    height: 70px;
    background-color: var(--white);
  }
}
.header.hover {
  background-color: var(--white);
}
.header.hover .navigation-text {
  color: var(--black);
}
@media (max-width: 1279px) {
  .header.hover .navigation-text {
    width: fit-content;
  }
}
.header.hover .logo-not-scroll,
.header.hover .search-button > .not-scroll,
.header.hover .language-icon > .not-scroll,
.header.hover .menu-icon > .not-scroll {
  display: none;
}
.header.hover .logo-scroll,
.header.hover .search-button > .scroll,
.header.hover .language-icon > .scroll,
.header.hover .menu-icon > .scroll {
  display: block;
}
.header.hover .search-button {
  color: var(--black);
}
.header.hover .search-button:hover > .scroll {
  display: none;
}
@media (max-width: 1279px) {
  .header.hover .search-button:hover > .scroll {
    display: block;
  }
}
@media (max-width: 1279px) {
  .header.hover .search-button:hover > .hover {
    display: none;
  }
}
.header.hover .language .language-item:not(.active) {
  color: var(--black);
}
.header.hover .menu-hamburger > p {
  color: var(--black);
}
.header .logo-not-scroll {
  display: block;
}
@media (max-width: 1279px) {
  .header .logo-not-scroll {
    display: none;
  }
}
.header .logo-scroll {
  display: none;
}
@media (max-width: 1279px) {
  .header .logo-scroll {
    display: block;
    height: 100%;
  }
}
@media (min-width: 1280px) {
  .header:not(.fixed) .navigation {
    display: none;
  }
}
.header.fixed {
  padding: 0 30px;
  height: 100px;
  background-color: var(--white);
  border-bottom: 1px solid var(--light-grey);
}
@media (max-width: 1279px) {
  .header.fixed {
    height: 70px;
    padding: 10px 20px;
  }
}
@media (min-width: 1280px) {
  .header.fixed .menu-hamburger {
    display: none;
  }
}
.header.fixed .menu-hamburger > p {
  color: var(--black);
}
.header.fixed .menu-nav .language-item {
  color: var(--white);
}
@media (max-width: 1279px) {
  .header.fixed .menu-nav .language-item.active {
    color: var(--secondary);
  }
}
.header.fixed .language-item:not(.active) {
  color: var(--black);
}
@media (max-width: 1279px) {
  .header.fixed .language-item:not(.active) {
    color: var(--white);
  }
}
@media (min-width: 1280px) {
  .header.fixed .language-item.active {
    color: var(--primary);
  }
}
.header.fixed .navigation-text {
  color: var(--black);
}
.header.fixed .navigation-text:hover {
  color: var(--primary);
}
.header.fixed .search-box,
.header.fixed .navigation-sub-menu {
  top: 99px;
}
@media (max-width: 1279px) {
  .header.fixed .search-box {
    top: 50%;
  }
}
.header.fixed .logo-not-scroll,
.header.fixed .search-button > .not-scroll,
.header.fixed .language-icon > .not-scroll,
.header.fixed .menu-icon > .not-scroll {
  display: none;
}
.header.fixed .logo-scroll,
.header.fixed .search-button > .scroll,
.header.fixed .language-icon > .scroll,
.header.fixed .menu-icon > .scroll {
  display: block;
}
.header.fixed .search-button {
  color: var(--black);
}
.header.fixed .search-button:hover {
  color: var(--primary);
}
.header.fixed .search-button:hover > .scroll {
  display: none;
}
.header > .logo {
  display: block;
  max-width: 271px;
}
@media (max-width: 1279px) {
  .header > .logo {
    max-width: 250px;
  }
}
.header > .logo img {
  width: 100%;
}
.header .language-item {
  color: var(--white);
}
.header .language-item:not(.active):hover {
  color: var(--primary);
}

.navigation {
  display: flex;
  height: 100%;
  align-items: center;
}
@media (max-width: 1279px) {
  .navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    padding: 120px 35px 0;
    z-index: 10;
    overflow-y: scroll;
    background-color: var(--white);
  }
}
.navigation-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 24px;
  height: 100%;
  transition: 0.3s;
}
@media (max-width: 1279px) {
  .navigation-item {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0;
    padding: 0;
    height: initial;
  }
  .navigation-item + .navigation-item {
    border-top: 1px dotted var(--grey);
  }
}
@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-text {
  display: flex;
  align-items: flex-end;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}
@media (max-width: 1279px) {
  .navigation-text {
    padding: 20px 0;
    color: var(--primary);
  }
}
.navigation-text:hover {
  color: var(--white);
}
.navigation-sub-menu {
  display: none;
  visibility: hidden;
  position: absolute;
  top: 120px;
  left: -50px;
  padding: 30px;
  background-color: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 0 0 3px 3px;
  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 .category {
  display: flex;
  flex-direction: column;
  gap: 25px 60px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--black);
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category {
    padding: 0 0 20px 0;
  }
}
.navigation-sub-menu .category-item {
  padding-right: 25px;
  width: 170px;
  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 > a {
  display: block;
  padding-bottom: 8px;
}
@media (max-width: 1279px) {
  .navigation-sub-menu .category-item > a {
    color: var(--dark-grey);
  }
}
@media (max-width: 1279px) {
  .navigation .search {
    display: none;
  }
}

.menu-hamburger {
  display: flex;
  align-items: center;
  font-family: "Oswald", sans-serif;
  cursor: pointer;
}
.menu-hamburger .menu-icon {
  margin-right: 20px;
  width: 20px;
  height: 20px;
}
@media (max-width: 1279px) {
  .menu-hamburger .menu-icon {
    margin-right: 0;
  }
}
.menu-hamburger .menu-icon img {
  width: 20px;
  height: 20px;
}
.menu-hamburger .menu-icon .hover,
.menu-hamburger .menu-icon .scroll {
  display: none;
}
@media (max-width: 1279px) {
  .menu-hamburger .menu-icon .not-scroll {
    display: none;
  }
  .menu-hamburger .menu-icon .scroll {
    display: block;
  }
}
.menu-hamburger > p {
  color: var(--white);
}
@media (max-width: 1279px) {
  .menu-hamburger > p {
    display: none;
  }
}

.menu-nav {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 100px 0;
  width: 100%;
  max-width: 450px;
  background-color: var(--primary);
  transition: right 0.5s ease;
}
.menu-nav.active {
  right: 0;
}
.menu-nav a,
.menu-nav p {
  font-size: 22px;
  color: var(--white);
}
.menu-nav .close {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.menu-nav .nav-item {
  padding: 25px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.menu-nav .language {
  margin: 30px 0 0 0;
  width: 100%;
}
@media (max-width: 1279px) {
  .menu-nav .language {
    display: flex;
  }
}

.nav-wrapper {
  display: flex;
  height: 100%;
}

.search {
  display: flex;
  margin-left: 35px;
}
@media (max-width: 1279px) {
  .search {
    margin: 0 20px 0 0;
  }
  .search-background {
    display: none;
    position: fixed;
    content: "";
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }
  .search-background.active {
    display: block;
  }
}
.search-button {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
}
.search-button:hover .not-scroll {
  display: none;
}
.search-button:hover .hover {
  display: block;
}
@media (max-width: 1279px) {
  .search-button:hover .hover {
    display: none;
  }
}
.search-button img {
  width: 18px;
  height: 18px;
  transition: 0.3s;
  width: 100%;
}
.search-button p {
  margin-left: 15px;
}
@media (max-width: 1279px) {
  .search-button p {
    display: none;
  }
}
.search-button .hover,
.search-button .scroll {
  display: none;
}
@media (max-width: 1279px) {
  .search-button .scroll {
    display: block;
  }
  .search-button .hover {
    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.active::after {
    display: block;
  }
}
.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);
}
@media (max-width: 1279px) {
  .search-box .title {
    font-size: 28px;
  }
}
.search .close {
  position: absolute;
  top: 50px;
  right: 100px;
}
@media (max-width: 1279px) {
  .search .close {
    top: 20px;
    right: 20px;
  }
}

.language {
  display: flex;
  align-items: center;
  margin: 0 50px;
}
@media (max-width: 1279px) {
  .language {
    display: none;
  }
}
.language-icon {
  display: flex;
  align-items: center;
  margin-right: 20px;
}
.language-icon img {
  width: 18px;
  height: 18px;
  transition: 0.3s;
  width: 100%;
}
.language-icon .hover,
.language-icon .scroll {
  display: none;
}
.language-content {
  display: flex;
  gap: 20px;
}
.language-item {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}
.language-item.active {
  color: var(--secondary);
}

.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 {
  padding: 120px 0;
  background-color: #2d2d2d;
  color: var(--white);
  font-family: "Oswald", "Microsoft JhengHei", sans-serif;
}
@media (max-width: 1279px) {
  .footer {
    padding: 60px 0;
  }
}
.footer a {
  color: var(--white);
  transition: 0.3s;
}
.footer a:hover {
  opacity: 0.8;
}
.footer > .wrapper {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 1279px) {
  .footer > .wrapper {
    flex-direction: column;
  }
}
.footer-content .nav {
  display: flex;
  gap: 35px;
  font-weight: bold;
  font-family: "Microsoft JhengHei";
}
@media (max-width: 1279px) {
  .footer-content .nav {
    flex-wrap: wrap;
    gap: 15px 35px;
  }
}
.footer-content .social-media {
  display: flex;
  gap: 18px;
}
.footer-content .social-media > a {
  display: block;
  width: 28px;
  height: 28px;
}
.footer-content .social-media img {
  width: 100%;
}
.footer-content .copyright {
  margin: 32px 0 60px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}
@media (max-width: 1279px) {
  .footer-content .copyright {
    margin: 30px 0;
  }
}
.footer-content .copyright a {
  color: rgba(255, 255, 255, 0.3);
}
.footer-content .copyright a:hover {
  color: var(--white);
}
.footer-content .copyright span {
  margin: 0 10px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1279px) {
  .footer-contact {
    margin-top: 30px;
  }
}
.footer-contact .contact-item {
  display: flex;
}
.footer-contact .contact-item .title {
  margin-right: 5px;
  font-weight: bold;
}

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

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

/* ---------------- 按鈕 ---------------- */
.button--back, .button--white, .button--solid, .button {
  display: inline-block;
  padding: 15px 60px;
  border: 1px solid var(--primary);
  border-radius: 100px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  font-family: "Oswald", "Microsoft JhengHei", sans-serif;
  transition: all 0.3s;
}
.button--back:hover, .button--white:hover, .button--solid:hover, .button:hover {
  color: var(--primary);
  background-color: var(--white);
}

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

.button--white {
  background-color: var(--white);
  color: var(--primary);
}
.button--white:hover {
  border: 1px solid var(--white);
  background-color: var(--primary);
  color: var(--white);
}

.button--back {
  display: block;
  position: relative;
  margin: 50px auto 0;
  padding: 0 30px;
  width: 140px;
  height: 45px;
  line-height: 45px;
  color: var(--primary);
  font-size: 15px;
  text-align: right;
  background-color: var(--white);
}
.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);
}
.button--back:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ---------------- 隱私權提醒 ---------------- */
.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: 1px solid var(--light-grey);
  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(--primary);
  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);
  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);
}

/* ---------------- 麵包屑 ---------------- */
.breadcrumbs {
  display: flex;
  justify-content: flex-end;
  padding: 50px 0 10px;
  margin: 0 0 35px;
  list-style: none;
  font-size: 14px;
  color: var(--dark);
}
@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);
}

/* ---------------- 各頁面上的 banner ---------------- */
.page-banner {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
@media (max-width: 1279px) {
  .page-banner {
    height: 150px;
  }
}
@media (max-width: 767px) {
  .page-banner {
    margin-bottom: 60px;
  }
}
.page-banner > .text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 15px var(--black);
}
.page-banner > .text > h2 {
  position: relative;
  font-size: 48px;
  letter-spacing: 0.3px;
  font-weight: bold;
}
@media (max-width: 767px) {
  .page-banner > .text > h2 {
    font-size: 30px;
  }
}
.page-banner > .text > h2::before {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  content: " ";
  background-color: rgba(255, 255, 255, 0.5);
  height: 1px;
  width: 40px;
}
@media (max-width: 767px) {
  .page-banner > .text > h2::before {
    bottom: -10px;
  }
}
.page-banner > .text > p {
  margin: 30px 0 0 0;
  font-size: 26px;
  font-family: "Oswald", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .page-banner > .text > p {
    margin: 20px 0 0 0;
    font-size: 20px;
  }
}

/* ---------------- 網站架構 ---------------- */
.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;
  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;
  }
}
@media (max-width: 767px) {
  .content-sub a.title {
    display: none;
  }
}
.content-sub > .title {
  display: block;
  position: relative;
  margin-bottom: 30px;
  padding: 0 0 8px 0;
  width: 100%;
  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 0 30px 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 .category-active {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background-color: var(--primary-background);
}
@media (max-width: 767px) {
  .content-sub .nav-item.active .category-active {
    padding: 15px;
    background-color: none;
    font-weight: normal;
    background-color: var(--primary-light);
    color: var(--white);
  }
}
.content-sub .nav-item.active .category-active.category-active .plus {
  display: none;
}
.content-sub .nav-item.active .category-active.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;
  cursor: pointer;
}
@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);
    color: var(--black);
  }
}
.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(--primary);
}
.content-main {
  padding-bottom: 100px;
  width: calc(100% - 350px);
}
@media (max-width: 767px) {
  .content-main {
    padding-bottom: 60px;
    width: 100%;
  }
}

/* ---------------- 文字編輯器 ---------------- */
.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;
}

/* ------------------- 頁碼 ------------------- */
.pagination {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 50px 0 0 0;
  list-style: none;
  font-family: "Oswald", 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);
}

/* ---------------- 搜尋欄 ---------------- */
.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);
  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;
}

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