﻿/* 
@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Abel');
@import url('https://fonts.googleapis.com/css?family=Lato'); */
@import url('https://fonts.googleapis.com/css?family=Noto+Sans');
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC');
@import url('https://fonts.googleapis.com/css?family=Montserrat');

:root {
    --navbar-h-1: 47px;
    --navbar-h-chg-range: 0px;
    --now-navbar-h: calc(var(--navbar-h-1) + var(--navbar-h-chg-range));
    --default-ff: 'Noto Sans', 'Noto Sans TC', 'Microsoft JHengHei', 'STHeiti', 'Montserrat', Arial, sans-serif;
    --link-ff: 'Montserrat', 'Noto Sans', 'Noto Sans TC', 'Microsoft JHengHei', 'STHeiti', Arial, sans-serif;
    --normal-text-color: #6c4937;
    --gray-text-color: #5d5d5d;
    --light-text-color: rgb(246, 178, 31);
    --footer-text-color: #715242e1;
    --caramel-text-color: rgb(193 110 12);
    /*#373737*/

    --yellow-gradient: linear-gradient(135deg, hsl(38deg 100% 48%) 0%, hsl(39deg 93% 51%) 11%, hsl(40deg 95% 54%) 23%, hsl(41deg 96% 57%) 35%, hsl(43deg 98% 59%) 48%, hsl(45deg 100% 62%) 60%, hsl(45deg 100% 64%) 71%, hsl(44deg 100% 67%) 81%, hsl(44deg 100% 69%) 89%, hsl(44deg 100% 71%) 95%, hsl(44deg 100% 74%) 100%);
    --jop-gradient: linear-gradient(35deg, hsl(32deg 100% 89%) 0%, hsl(30deg 100% 76%) 47%, hsl(34deg 100% 72%) 73%, hsl(45deg 100% 78%) 100%);
}

.hide-forever{
    font-size:0;
    visibility:hidden;
    font-display:optional;
}
    .jop-hide,
    .hide-forever,
    i.xs-hide {
        display: none;
        z-index: -2;
        opacity: 0;
    }

.nav-menu-ul,
.sub-menu-ul,
.footer-group {
    list-style: none;
    padding-left: 0;
}
.backstage-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 200%;
    padding: 4px 10px;
    color: #6c4937;
    background-color: #fff;
    font-size: 14px;
    font-family: var(--link-ff);
    text-decoration: none;
    word-break: keep-all;
    border: 1px solid #6c493751;
    border-radius: 20px;
    /*box-shadow: -1px -1px 1px 0px rgb(184, 164, 142) inset;*/
    transform: translateY(-50%);
    transition: 0.3s border, 0.3s box-shadow;
}

.backstage-link span {
    margin-right: 0.5rem;
}

.backstage-link i {
    font-size: 14px;
}

.backstage-link:hover {
    color: #d77340;
    text-decoration: none;
    border: 1px solid #d77340;
    box-shadow: 1px 1px 3px 0px rgb(255 226 195);
}
/*#region*/
/*#endregion*/

/*#region HEADER*/
.layout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: var(--now-navbar-h);
    padding: 7px 5vw;
    font-family: var(--default-ff);
    background-color: #fff;
    box-shadow: 2px 2px 4px 1px rgb(155 110 50 / 21%);
    /* border-bottom: 1px solid #dedede; */
    position: fixed;
    top: 0;
    z-index: 5;
}
.header-logo{
    width:100%;
}
.header-logo,
.nav-burger {
    max-width:200px;
    /* width: 84px; */
    /* height: 32px; */
    height: calc(var(--now-navbar-h) - 14px - 1px);
}

/* 語係button */
.lang-choose-wrap {
    position: absolute;
    top: 0;
    left: -60px;
    height: 100%;
    font-size: 16px;
}

.lang-choose-label {
    display: flex;
    align-items: center;
    height: 100%;
    width:fit-content;
    margin:auto;
    padding: 0 10px;
    font-size: 14px;
    color: #bdb5ae;
    transition: 0.2s;
}

    .lang-choose-label:hover {
        color: #f9ae19;
        transform: scale(1.2);
    }

.lang-select-list-shadow {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 41, 41, 0.542);
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    opacity: 0;
    transform: scale(0);
    transition: 0.5s opacity;
}

    .lang-select-list-shadow.show {
        display:flex !important; /*vs版 有less的css設定 .show 還放了important..*/
        z-index: 6;
        opacity: 1;
        transform: scale(1);
    }

.lang-select-list {
    /* position: absolute;
    opacity: 1;
    top: 100%;
    left: 0;
    transform: translateX(-50%); */
    display: none;
    width: max-content;
    min-width: 180px;
    margin: auto;
    padding: 10px 0;
    background-color: #fff;
    list-style: none;
    border-radius: 4px;
    box-shadow: 2px 2px 4px 1px rgb(155 110 50 / 21%);
    /* z-index: 1; */
}

/* .lang-select-list:before {
    content: 'X';
    position: absolute;
    right: 1px;
    top: -34px;
    font-size: 16px;
    width: 30px;
    text-align: center;
    display: block;
    height: 30px;
    line-height: 30px;
    color: var(--normal-text-color);
    border-radius: 8%;
    font-weight: 900;
    font-family: 'Montserrat';
    background-color: #fff;
} */

.lang-select-list-shadow.show .lang-select-list {
    display: block;
}

.lang-item {
    padding: 10px 20px;
    font-size: 15px;
    color: #6c4937;
    transition: 0.2s color;
}

    .lang-item:hover {
        font-weight: bold;
        color: var(--caramel-text-color);
    }

    .lang-item.choose {
        color: var(--light-text-color);
    }

    .lang-item .lang-choose-icon {
        display: none;
        padding-left: 10px;
    }

    .lang-item.choose .lang-choose-icon {
        display: inline-block;
    }

/* nav menu 頂端導覽列 */
.nav-menu {
    position: relative;
}


.nav-burger {
    display: inline-block;
}

/* .nav-burger-icon {
    font-size: 18px;
    color: #6c4937;
    transform: translateY(20%);
    transition: 0.5s;
} */
.nav-burger-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: calc(var(--now-navbar-h) - 14px - 1px);
}

    .nav-burger-icon::before {
        content: "";
        position: absolute;
        top: calc(12.5px + var(--navbar-h-chg-range));
        /* top: 12.5px; */
        display: block;
        width: 16px;
        height: 2.5px;
        background-color: var(--normal-text-color);
        border-radius: 1.5px;
        box-shadow: 0px 5px 0px 0px var(--normal-text-color);
        /*, 0px 10px 0px 0px var(--normal-text-color);*/
        transition: 0.5s;
    }

    .nav-burger-icon::after {
        content: "";
        position: absolute;
        top: calc(22.6px + var(--navbar-h-chg-range));
        /*用剛剛好的22.5px反而讓 after的bar看起來很粗 WHY?*/
        display: block;
        width: 16px;
        height: 2.5px;
        background-color: var(--normal-text-color);
        border-radius: 1.5px;
        transition: 0.5s;
    }

#nav-menu-control:checked + .nav-menu .nav-burger-icon::before {
    transform: rotate(-45deg);
    box-shadow: none;
}

#nav-menu-control:checked + .nav-menu .nav-burger-icon::after {
    transform: rotate(45deg);
}

#nav-menu-control:checked + .nav-menu .nav-burger-icon::before,
#nav-menu-control:checked + .nav-menu .nav-burger-icon::after {
    top: 18px;
    width: 20px;
}

#nav-menu-control:checked + .nav-menu .nav-burger-icon {
    color: var(--light-text-color);
}

.nav-menu-ul {
    display: none;
    overflow-y: auto;
    opacity: 0;
}

#nav-menu-control:checked + .nav-menu .nav-menu-ul {
    display: block;
    height: 100%;
    width: 100vw;
    background-color: rgb(249, 249, 249);
    position: fixed;
    top: var(--now-navbar-h);
    left: 0;
    right: 0;
    z-index: 5;
    opacity: 1;
}

.item-link,
.sub-menu-text,
.sub-item-link {
    display: block;
    padding: 10px 5vw 10px;
    font-size: 16px;
    color: #6c4937;
    text-decoration: none;
    transition: 0.2s;
    will-change: font-size;
}

    .item-link:hover {
        background-color: #fff;
        font-size: 17px;
    }

    .item-link:hover,
    .sub-item-link:hover {
        color: var(--light-text-color);
        text-decoration: underline;
    }

.sub-menu-text {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

    .sub-menu-text:hover {
        color: var(--light-text-color);
        background-color: rgb(255, 255, 255);
    }

    .sub-menu-text.open {
        font-weight: bold;
        color: var(--light-text-color);
    }

    .sub-menu-text.open,
    .sub-menu-ul {
        background-color: #fff;
    }

.sub-menu-text-icon {
    font-size: 16px;
    transition: 0.2s;
}

.sub-menu-text.open .sub-menu-text-icon {
    transform: rotate(-180deg);
}

.sub-menu-ul {
    display: none;
    z-index: -2;
    opacity: 0;
}

.sub-menu-control:checked + .sub-menu-ul,
.sub-menu-text.open ~ .sub-menu-ul {
    display: block;
    padding-left: 2vw;
    border-width: 0px 0 2px 0;
    border-style: dotted;
    border-color: rgb(255 193 61);
    height: unset;
    /* box-shadow: inset 0px -3px 3px 2px hsl(29deg 2% 71% / 17%); */
    z-index: unset;
    opacity: 1;
}

/*#endregion*/
/*#region 關於我們*/
.about-us {
    padding: 50px 20px 80px;
    background-color: #fffaf2;
    border-bottom: 0px solid #e1e1e1;
}

.about-us-title {
    width: fit-content;
    padding: 10px 20px;
    margin: 0px auto 10px;
    font-family: var(--link-ff);
    font-size: 22px;
    letter-spacing: 10px;
    text-align: center;
    /* color: #f8ab37; */
    color: #6c4937;
    border-bottom: 1px solid;
    position: relative;
    /* background-color: #f8ab37; */
    /* border-radius: 50px; */
    /* background-color: #e0d2bb; */
    /* background-color: #73d06c; */
    /* border-bottom: 0px solid #f8ab37; */
}

    .about-us-title::before,.about-us-title::after {
        content: "";
        display: block;
        background-color: transparent;
        border-radius: 9px;
        position: absolute;
        top: calc(50%);
        transform: translateY(-50%);
    }

    .about-us-title::before {
        border-left: 14px dotted #d98d31bd;
        border-right: 14px dotted #8a725d45;
        border-top: 14px dotted #8a725d45;
        border-bottom: 14px dotted #d98d31bd;
        /* border-left: 14px dotted #d98d31bd;
    border-right: 14px dotted #816f4b96;
    border-top: 14px dotted #8a725d45;
    border-bottom: 14px dotted #faa839ab; */
        left: -51px;
        /* animation: dotborder_spin 10s infinite; */
        /* dotborder_w 7s infinite,
            dotborder_h 7s 3s infinite, */
    }

    .about-us-title::after {
        border-left: 14px dotted #8a725d45;
        border-right: 14px dotted #d98d31bd;
        border-top: 14px dotted #8a725d45;
        border-bottom: 14px dotted #d98d31bd;
        right: -51px;
        /* animation: dotborder_w 7s infinite,
        dotborder_h 7s 3s infinite,
        dotborder_spin 10s infinite; */
    }

@keyframes dotborder_w {
    0% {
        width: 60px;
    }

    100% {
        width: 0px;
    }
}

@keyframes dotborder_h {
    0% {
        height: 60px;
    }

    100% {
        height: 0px;
    }
}

@keyframes dotborder_spin {
    0% {
        transform: rotate(180deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(-247deg);
    }
}

.about-us-text {
    max-width: 800px;
    width: fit-content;
    padding: 20px;
    text-align: left;
    line-height: 2;
    font-size: 16px;
    font-family: var(--link-ff);
    color: #d8914a;
    /* color: var(--normal-text-color); */
    /* background-color: #fff; */
    border-radius: 20px;
    /* box-shadow: 2px 3px 5px #8383832b; */
}

/*#endregion*/
/*#region FOOTER*/
.layout-footer {
    /* margin-top: 80px; */
    padding: 50px 20px;
    color: var(--footer-text-color);
    font-family: Montserrat;
    background-color: rgb(245, 245, 245);
}

.footer-logo-wrap {
    width: 100%;
    margin: auto;
}

.footer-logo {
    width: 160px;
    margin: 2.5em auto;
}

.copyright {
    margin-top: 3em;
    font-size: 14px;
    text-align: center;
}

.footer-part {
    margin: 0 0 30px;
}

.footer-part-title {
    padding-bottom: 10px;
    color: #6c4937;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', 'Noto Sans', 'Noto Sans TC', 'Microsoft JHengHei', 'STHeiti', Arial, sans-serif;
    position: relative;
}

    .footer-part-title::after {
        content: "";
        width: 30px;
        height: 3px;
        background-color: rgb(255 193 61);
        border-radius: 3px;
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
    }

.footer-item {
    padding: 5px 0;
    text-align: center;
}

.footer-item-icon {
    margin-right: 5px;
    font-size: 14px;
}

    .footer-item-icon.fa-facebook {
        margin-right: 0;
        font-size: 24px;
        color: #4267B2
    }

.footer-item,
.footer-link {
    font-size: 16px;
    color: var(--footer-text-color);
}

.footer-link {
    font-family: Montserrat;
    text-decoration: none;
}

    .footer-link:hover {
        color: var(--caramel-text-color);
        text-decoration: underline;
    }

        .footer-link:hover .footer-item-icon {
            text-decoration: none;
        }

/* footer的語係切換 */
.footer-part .lang-choose-label {
    justify-content: center;
}

.footer-part .lang-choose-wrap {
    position: relative;
    top: 0;
    left: 0;
    height: unset;
}

.footer-part .lang-icon {
    font-size: 30px;
    padding: 10px;
    border-radius: 25px;
    background-color: #fff;
    box-shadow: 0px 1px 1px #afafaf;
}



/*#endregion*/

/* #region 共用 */
.main-content {
    margin-top: var(--now-navbar-h);
    overflow: hidden;
}
.hover-no-underline:hover {
    text-decoration: none !important;
}
.hov-foc-clear:hover,
.hov-foc-clear:focus,
.hov-foc-clear:focus-visible {
    outline: none !important;
    text-decoration: none !important;
}
.little-bottom-border {
    position: relative;
    padding-bottom: 10px;
}

    .little-bottom-border::after {
        content: '';
        width: 60px;
        height: 3px;
        background-color: rgb(255 193 61);
        border-radius: 3px;
        position: absolute;
        bottom: 5px;
        left: 0%;
    }

.title-with-bar {
    position: relative;
    color: var(--normal-text-color);
    text-align: center;
    font-size: 24px;
    /* font-weight: bold; */
    font-family: var(--default-ff);
}

    .title-with-bar.left {
        width: fit-content;
        text-align: left;
    }

    .title-with-bar::after {
        content: "";
        width: 80px;
        height: 3px;
        /* background-color: rgb(255 193 61); */
        background: linear-gradient(217deg, #ffbb2a52, #ffffff6b 70%), linear-gradient(127deg, #fff9ea, #ffffff6b 70%), linear-gradient(336deg, #ffe9bb, #ff700c);
        border-radius: 3px;
        position: absolute;
        bottom: -7px;
        left: 50%;
        transform: translateX(-50%);
    }

/* #endregion */

/* #region RWD-------------------- */
@media screen and (min-width:768px) {
    :root {
        --navbar-h-chg-range: 10px;
        /*增加10px的意思*/
    }
    .backstage-link {
        margin-top: 3px;
        padding: 4px 14px;
        font-size: 16px;
    }

    .backstage-link i {
        font-size: 16px;
    }
    /* #region header */
    /* lang 語係按鈕 */
    .lang-choose-label {
        padding-top: 10px;
    }

    /* nav menu 頂端導覽列 */
    .nav-burger-icon,
    .nav-burger-icon::before,
    .nav-burger-icon::after {
        width: 20px;
    }

    #nav-menu-control:checked + .nav-menu .nav-burger-icon::before,
    #nav-menu-control:checked + .nav-menu .nav-burger-icon::after {
        top: 28px;
        width: 20px;
    }

    /* #endregion */
    /* #region about-us */
    .about-us {
        padding: 50px 50px 80px;
        /* display: flex;
        justify-content: center;
        align-items: center; */
    }

    .about-us-title {
        /* margin: 0 100px 0 0; */
        margin: 0 auto;
        font-size: 26px;
        white-space: pre;
        position: relative;
    }

        .about-us-title::after {
            display: block;
        }

    .about-us-text {
        margin: 0 auto;
        font-size: 18px;
        text-align: center;
    }

    /* #endregion */
    /* #region footer */
    .footer-part {
        margin: 0 20vw 30px;
    }

    /* #endregion */
}

@media screen and (min-width:1024px) {
    i.xs-hide {
        display: inline-block;
        z-index: 1;
        opacity: 1;
    }

    .md-hide {
        display: none;
        z-index: -2;
        opacity: 0;
    }
    .backstage-link {
        right: -60px;
        margin-top: 0;
        padding: 10px 16px;
    }

    .backstage-link span {
        display: none;
    }

    .backstage-link i {
        font-size: 20px;
    }
    /* #region HEADER */
    .layout-header {
        height: 57px;
        padding: 0 10vw 0 5vw;
    }

    .header-logo {
        height: 49px;
    }

    /* 語係button */
    .lang-choose-wrap {
        left: 100%;
        font-size: 20px;
    }

    .lang-choose-label {
        padding-top: 0px;
        font-size: 16px;
    }

    .lang-select-list {
        min-width: 220px;
        padding: 16px 0;
    }

    .lang-item {
        font-size: 18px;
    }

    /* nav menu 頂端導覽列 */
    .nav-menu-ul,
    #nav-menu-control:checked + .nav-menu .nav-menu-ul {
        display: flex;
        height: 57px;
        width: max-content;
        position: static;
        z-index: 1;
        overflow-y: unset;
        opacity: 1;
    }

    .item-link,
    .sub-menu-text {
        max-width: 150px;
        min-width: 82px;
        padding: 0;
        margin: 0 10px;
        text-align: center;
        line-height: 57px;
    }

    .item-link,
    .sub-menu-text,
    .sub-item-link {
        transition: none;
    }

        .item-link:hover::after,
        .sub-menu-text:hover::after {
            content: "";
            display: block;
            /* width: 8px;
        height: 8px; */
            width: 100%;
            height: 4px;
            background: radial-gradient(#ffc400b0, #ffd44559);
            box-shadow: 0px 0px 14px 0px #ffb5069e;
            /* background-color: var(--light-text-color); */
            /* border-radius: 50%; */
            position: absolute;
            left: 50%;
            /* bottom: 10%; */
            bottom: 0;
            transform: translate(-50%);
        }

        .item-link:hover,
        .sub-menu-text:hover {
            color: #6c4937;
            background-color: transparent;
            font-size: unset;
            font-weight: bold;
            text-decoration: none;
        }

    .sub-menu-text {
        justify-content: center;
    }

    .sub-menu-text-icon {
        padding: 0 6px;
    }

    .menu-item {
        margin: 0 0px;
        position: relative;
    }

    .sub-menu-ul {
        width: 100%;
        /* width: max-content; */
    }

    .sub-item-link {
        padding: 10px 20px;
        width: max-content;
        max-width: 230px;
    }

    .sub-menu-control:checked + .sub-menu-ul,
    .sub-menu-text.open ~ .sub-menu-ul {
        width: max-content;
        position: absolute;
        top: 56px;
        left: 0;
        padding-left: 0;
        border-width: 0;
        box-shadow: 2px 2px 4px 1px rgb(155 110 50 / 21%);
        transition: 0.5s;
    }

    /* #endregion HEADER */
    /* #region about-us */
    .about-us-text {
        padding: 20px 50px;
    }

    /* #endregion */
    /* #region FOOTER */
    .layout-footer {
        padding: 50px 100px;
    }

    .footer-content {
        display: flex;
        justify-content: center;
    }

    .copyright {
        text-align: left;
    }

    .footer-logo-wrap {
        order: -3;
        /* flex-grow: 2; */
        width: 38%;
    }

    .footer-logo {
        max-width: 200px;
        width: 100%;
        margin: 0 auto 0 0;
    }

    .footer-part {
        margin: 0;
    }

        .footer-part.web-content {
            /* flex-grow: 1; */
            width: 17%;
        }

        .footer-part.contact {
            width: 27%;
        }

        .footer-part.web-content,
        .footer-part.contact {
            margin-right: 3%;
        }

        .footer-part.follow {
            order: 1;
            width: 12%;
        }

    .footer-part-title,
    .footer-item {
        text-align: left;
    }

        .footer-part-title::after {
            left: 0;
            transform: translateX(0);
        }
    /* 語係切換 */
    .footer-part.lang {
        order: 2;
        margin-left: 30px;
    }

    .footer-part .lang-choose-wrap {
        position: relative;
        height: unset;
        left: 0;
        top: 0;
    }

    .footer-part .lang-choose-label {
        align-items: flex-start;
        height: unset;
        /* font-size: 18px;
        font-family: var(--link-ff);
        line-height: 1.5;
        word-break: keep-all; */
    }

    .footer-part .lang-icon {
        font-size: 30px;
    }
    /* #endregion */

    .main-content {
        margin-top: 57px;
    }
}
@media screen and (min-width:1200px) {
    .layout-header {
        padding: 0 14vw 0 5vw;
    }

    .backstage-link {
        left: 100%;
        right: unset;
        margin-top: 0;
        padding: 10px 16px;
        align-items: flex-start;
    }

    .backstage-link span {
        display: inline-block;
    }
    .about-us-text{
        max-width:1000px;
    }
}
@media screen and (min-width:1366px) {

    /* #region FOOTER */
    .layout-footer {
        padding: 50px 100px;
    }

    /* #endregion */
}

    /* #endregion */
