:root {
    --viewport-height: var(--vh, 100vh);
    --main-color: #bc9b5d;
    --main-dark-color: #8a6d31;
    --minor-color: #e29898;
}

html {
    font-size: 16px;
}

body {
    font-size: 1.125rem;
    font-family: 'Poppins', 'Microsoft JhengHei', Arial;
    letter-spacing: 0.5px;
    color: #222;
}

.scroll::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.scroll::-webkit-scrollbar-thumb {
    border: 1px solid;
}

.scroll::-webkit-scrollbar-thumb {
    border-color: #f1f1f1;
    background-color: #c1c1c1;
    transition: all 0.25s;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}

.scroll::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-left: none;
}

* { 
    touch-action: pan-y;  
}

a, button, input, select {
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.25s linear;
}

a {
    word-break: break-all;
    color: #222;
}

a:hover,
a:focus,
a:active {
    color: var(--main-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', 'Noto Serif TC';
    font-weight: 600;
    letter-spacing: 1px;
}

main {
    min-height: 858px;
}

.en {
    letter-spacing: 0 !important;
    line-height: 1.6;
    word-break: break-word;
}

header {
    min-height: 177px;
}

.sticky-header .text {
    font-family: 'Playfair Display', 'Noto Serif TC';
    font-weight: 400;
    color: var(--minor-color);
}

.header-top .logo-mobile img {
    max-width: 100%;
    width: 150px;
}

.header-top .navbar-nav {
    margin: 0 -15px;
}

.header-top .navbar-toggle {
    font-size: 1.4rem;
}

.topbar .navbar-nav>li.level1.active {
    position: relative;
}

.header-top .navbar-nav>li.level1.active>a span,
.topbar .navbar-nav>li.level1.active>a span {
    color: var(--main-dark-color);
}

.header-top .menu-level-1>li>a,
.topbar .menu-level-1>li>a {
    padding: 5px 0;
    font: unset;
    transition: all 0.2s linear;
}

.header-top .navbar-nav>li>a,
.header-top .menu-level-1>li>a {
    font-size: 0.95rem;
}

.header-top .menu-level-1>li>a span,
.topbar .menu-level-1>li>a span {
    position: relative;
    z-index: 1;
}

.header-top .menu-level-1>li>a span small,
.topbar .menu-level-1>li>a span small {
    margin-left: 8px;
    font-size: 75%;
    font-weight: 300;
    letter-spacing: 0;
    opacity: 0.6;
}

.header-top .navbar-nav>li>a .en {
    font-weight: 300;
}

.header-top .menu-level-1>li>a:hover,
.topbar .menu-level-1>li>a:hover {
    color: #fff;
}

.header-top .menu-level-1>li>a:after,
.topbar .menu-level-1>li>a:after {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 0;
    height: 100%;
    background-color: var(--main-color);
    transition: all 0.25s linear 0.1s;
    z-index: 0;
}

.header-top .menu-level-1>li>a:hover:after,
.topbar .menu-level-1>li>a:hover:after {
    width: calc(100% + 40px);
}

.topbar .navbar-nav>li>a,
.topbar .menu-level-1>li>a {
    font-size: 1.05rem;
}

.topbar .nav>li>a>img {
    max-width: 100%;
    width: 230px;
}

.topbar .navbar-nav>li>a:hover,
.topbar .navbar-nav>li>a:hover span {
    color: #000;
}

.topbar .navbar-nav>li>a span {
    display: inline-block;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.topbar .navbar-nav>li>a .en {
    padding: 10px 15px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0;
    opacity: 0;
}

.topbar .navbar-nav>li>a:hover .en {
    opacity: 1;
}

.topbar .navbar-nav>li>a:hover .ch {
    opacity: 0;
}

.js-menubar li.dropdown.hassub {
    cursor: pointer;
}

.scroll-top {
    text-shadow: -30px 13px rgb(255 255 255 / 50%);
    opacity: 0;
    transition: all 0.25s linear;
}

footer {
    position: relative;
    background-color: #141414;
    border-top: none;
    z-index: 5;
}

footer .social a {
    margin: 0 3px;
    width: 35px;
    height: 35px;
    display: inline-block;
    line-height: 37px;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 50%;
    background-color: #f3f3f3;
}

footer .social a.facebook {
    font-size: 1rem;
}

footer .social a:hover {
    color: #fff;
    background-color: var(--main-color);
}

footer .menu-footer p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0;
    color: rgb(255 255 255 / 60%);
}

footer .menu-footer .ouorange {
    color: rgb(255 158 0 / 80%);
    border-bottom: 1px solid transparent;
    transition: all 0.25s;
}

footer .menu-footer .ouorange:hover {
    border-bottom-color: rgb(255 158 0 / 80%);
}

footer .footer-right {
    display: flex;
    justify-content: flex-end;
}

footer .footer-contact {
    padding: 5px 0;
    margin-right: 20px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0;
    color: #fff;
}

footer .footer-contact a {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0;
    color: rgb(255 255 255 / 60%);
}

footer .footer-contact a:hover {
    color: rgb(255 211 131 / 80%);
}

.media-overlay,
.media-overlay .media-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-overlay {
    padding: 30px;
    color: #fff;
    -webkit-transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.media-overlay .media-bg {
    background-color: rgba(0, 0, 0, 0.4);
}

.media-overlay .media-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.media-overlay .media-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    padding-left: 6px;
    border-radius: 50%;
    border: 2px solid #fff;
    -webkit-transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.media-link:hover .media-overlay .media-icon {
    border-width: 1px;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.fancybox-caption__body {
    font-size: 1.05rem;
    font-weight: 500;
}

.hero-section {
    position: relative;
    min-height: 220px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-section .page-title {
    position: relative;
    padding-bottom: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-indent: 3px;
    text-transform: uppercase;
    color: #fff;
}

.hero-section .page-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 35px;
    border-bottom: 2px solid #fff;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.hero-section .breadcrumb {
    margin: 0;
    line-height: 1.8;
    text-align: center;
}

.hero-section .breadcrumb>li,
.hero-section .breadcrumb>li>a {
    font-size: 1rem;
    font-weight: normal;
    color: #fff;
    transition: 0.2s;
}

.hero-section .breadcrumb>li>a {
    border-bottom: 1px solid transparent;
}

.hero-section .breadcrumb>li>a i {
    font-size: 0.95rem;
}

.hero-section .breadcrumb>li>a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.hero-section .breadcrumb>li+li:before {
    padding: 0 7px 0 4px;
    color: #fff;
}

.main-container {
    padding: 80px 0;
}

.desc h1,
.desc h2,
.desc h3,
.desc h4,
.desc h5,
.desc h6 {
    position: relative;
    margin-top: 30px;
    margin-bottom: 25px;
    padding-left: 15px;
    line-height: 1.45;
    color: var(--main-dark-color);
}

.desc h1::before,
.desc h2::before,
.desc h3::before,
.desc h4::before,
.desc h5::before,
.desc h6::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 5px;
    height: calc(100% - 8px);
    background-color: var( --main-dark-color);
}

.desc p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

.desc img {
    margin-bottom: 25px;
    max-width: 100%;
}

.load-block {
    text-align: center;
}

.page-load-status {
    display: none;
}

.page-load-status p {
    padding-bottom: 0;
    text-align: center;
}

.loader-ellips {
    font-size: 1.25rem;
    position: relative;
    width: 4em;
    height: 1em;
    margin: 10px auto 40px;
}

.loader-ellips-dot {
    display: block;
    width: 1em;
    height: 1em;
    border-radius: 0.5em;
    background: #555;
    position: absolute;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}

.loader-ellips-dot:nth-child(1),
.loader-ellips-dot:nth-child(2) {
    left: 0;
}

.loader-ellips-dot:nth-child(3) {
    left: 1.5em;
}

.loader-ellips-dot:nth-child(4) {
    left: 3em;
}

@keyframes reveal {
    from {
        transform: scale(0.001);
    }

    to {
        transform: scale(1);
    }
}

@keyframes slide {
    to {
        transform: translateX(1.5em)
    }
}

.loader-ellips-dot:nth-child(1) {
    animation-name: reveal;
}

.loader-ellips-dot:nth-child(2),
.loader-ellips-dot:nth-child(3) {
    animation-name: slide;
}

.loader-ellips-dot:nth-child(4) {
    animation-name: reveal;
    animation-direction: reverse;
}

.share-block {
    display: flex;
    align-items: center;
}

.share-block>span {
    margin-top: 5px;
    margin-right: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

#share .jssocials-shares {
    margin: 0;
}

#share .jssocials-share-link {
    display: flex !important;
    align-items: center;
    height: 30px;
    padding: 6px 10px !important;
    font-size: 1rem;
    border-radius: 20px;
}

#share .jssocials-share-logo {
    font-size: 1.1rem !important;
}

#share .jssocials-share-twitter .jssocials-share-logo {
    font-size: 1.1rem !important;
}

#share .jssocials-share-facebook .jssocials-share-logo {
    font-size: 1.05rem !important;
}

#share .jssocials-share-count {
    display: none;
}

@media (max-width: 1500px) and (min-width: 1200px) {
    .header-v4 .topbar-center {
        width: auto;
    }

    .topbar .nav>li>a {
        padding: 10px;
    }
}

@media (min-width: 1200px) {
    .topbar-left,
    .topbar-right {
        padding: 5px 0;
    }
}

@media (min-width: 1025px) {
    .topbar .navbar-nav>li>a .en {
        padding: 8px 15px 10px;
    }
    
    .topbar .menu-level-1 {
        padding: 15px 20px;
    }

    .topbar .level1:hover .menu-level-1 {
        display: unset;
        visibility: visible;
        opacity: 1;
        -webkit-transform: translate(0,0) rotate(0) scale(1);
        transform: translate(0,0) rotate(0) scale(1);
        overflow: hidden;
    }

    .plus:after {
        display: none;
    }

    footer .menu-footer {
        padding: 25px 0;
    }

    footer .menu-footer p {
        white-space: nowrap;
    }

    footer .social {
        padding: 19px 0 15px;
        text-align: right;
    }

    .sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 145px;
    }
}

@media (max-width: 1199px) and (min-width: 1025px) {
    .topbar .container-40 {
        padding-right: 20px;
        padding-left: 20px;
    }

    .topbar .nav>li>a>img {
        padding: 0 15px;
        width: 220px;
    }

    .topbar .navbar-nav {
        float: none;
    }

    .topbar .navbar-nav>li.level1 {
        border: 0;
        float: none;
        display: inline-block;
        padding: 0; 
    }

    .topbar .nav>li>a {
        padding: 12px 15px;
    }

    .topbar .topbar-option>* {
        padding: 0 15px;
    }
}

@media (max-width: 1199px) {
    header {
        min-height: 162px;
    }
}

@media (max-width: 1125px) and (min-width: 1025px) {
    .topbar .nav>li>a {
        padding: 12px 10px 8px;
    }
}

@media (max-width: 1024px) {
    header {
        min-height: 140px;
    }

    .topbar {
        line-height: 30px;
    }

    .header-top .menu-level-1>li>a,
    .topbar .menu-level-1>li>a {
        padding: 3px 0;
    }

    .header-top.fixed-header {
        margin: 0;
        padding: 20px 0 0 !important;
        height: 68px;
    }

    .header-top.navbar-collapse-in {
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .header-top.navbar-collapse-in .logo-mobile {
        max-height: 50px;
        margin-bottom: 20px;
        transition: all 0.25s;
    }

    .header-top .logo-mobile {
        max-height: auto;
        transition: all 0.25s 0.3s;
    }

    .header-top .navbar {
        margin-top: 0;
        margin-left: -15px;
        padding: 0 15px;
        width: calc(100% + 30px);
        max-height: calc(var(--viewport-height) - 126px);
        background-color: #fff;
        -webkit-box-shadow: 0 5px 5px rgb(0 0 0 / 10%);
        box-shadow: 0 5px 5px rgb(0 0 0 / 10%);
        overflow-y: scroll;
        pointer-events: all;
    }

    .header-top.fixed-header .navbar {
        max-height: calc(var(--viewport-height) - 65px);
    }

    .header-top .navbar .navbar-collapse {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .header-top .menu-level-1 {
        padding: 5px 30px;
        background-color: #f8f8f8;
        border-top: 1px solid #ddd;
    }

    .header-top .menu-level-1>li>a:hover:after, .topbar .menu-level-1>li>a:hover:after {
        width: calc(100% + 60px);
    }

    .header-top .menu-level-1>li>a:after, .topbar .menu-level-1>li>a:after {
        left: -30px;
    }

    footer {
        padding: 20px 0;
    }

    footer .menu-footer {
        margin-bottom: 15px;
    }

    footer .social a:last-child {
        margin-right: 3px;
    }

    footer .footer-right {
        justify-content: center;
        flex-direction: column;
    }

    footer .footer-contact {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .main-container {
        padding: 40px 0;
    }
}

@media (max-width: 1023px) {
    #share .jssocials-share-link {
        justify-content: center;
        width: 30px;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .navbar-nav>li>a {
        font-size: 1rem;
    }

    .hero-section {
        min-height: 180px;
    }

    .hero-section .page-title {
        margin-bottom: 15px;
        font-size: 2rem;
    }

    .hero-section .breadcrumb>li>a i {
        font-size: 0.8rem;
    }

    .hero-section .breadcrumb>li, .hero-section .breadcrumb>li>a {
        font-size: 0.9rem;
    }

    .hero-section .breadcrumb>li+li:before {
        padding: 0;
        padding-right: 5px;
    }
}
