/* 全站共用樣式 */

:root {
    --brand: #FFA723;
    --brand-dark: #FF8A00;
    --text-gray: #414141;
    --text-light: #6D6D6D;
    --bg-gray: #E7E7E7;
    --line-gray: #D9D9D9;
    --btn-gray: #cccccc;
}

body {
    margin: 0;
    font-family: 'Noto Serif TC', serif;
    overflow-x: hidden;
}

/* 表單元件繼承字型 */
button,
input,
select,
textarea {
    font: inherit;
}

::selection {
    background-color: black;
    color: white;
}

#mask {
    position: fixed;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    transition: 0.5s;
    pointer-events: none;
}

#copyright {
    letter-spacing: .2em;
    font-size: 0.6em;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 2vh;
    color: var(--bg-gray);
}

/* Logo 與頁首 */

.top_div {
    position: fixed;
    width: 100%;
    height: 0;
    left: 0px;
    top: 0px;
    transition: 1s;
    background: #FFFFFF;
}

.main_logo {
    display: block;
    position: fixed;

    width: calc(min(40vh, 204px) / 2.8732);
    height: min(40vh, 204px);

    cursor: pointer;
    background-size: cover;
    background-image: url(/imgs/logo_V.svg);

    margin: 0;
    margin-top: 10vh;
    margin-left: min(8vw, 100px);
    pointer-events: fill;
    -webkit-tap-highlight-color: transparent;
}

#home_logo {
    background-image: url(/imgs/logo_VW.svg);
}

#page_name {
    letter-spacing: .15em;
    font-size: min(5vh, 1.2em);
    position: absolute;
    left: min(8vw, 100px);
    margin-top: calc(15vh + min(40vh, 204px));
    line-height: calc(min(40vh, 204px) / 2.8732);
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    text-overflow: ellipsis;
    white-space: nowrap;
    writing-mode: vertical-lr;
}

.logo_div {
    display: block;
    position: fixed;
    width: 100%;
    height: min(20vh, 116px);
    pointer-events: none;
    top: 0;
}

/* 按鈕 */

.navBtn {
    position: absolute;
    background: #000000;
    color: #FFFFFF;
    font-size: larger;
    text-decoration: none;

    border: 0;

    width: 50px;
    height: 50px;
    right: min(8vw, 45px);
    top: min(6vh, 50px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 10px;
    transition: .5s;
}

.navBtn:hover {
    background: #000000;
    transition: .5s;
}

.navBtn:active {
    border-radius: 5px;
    transform: scale(0.92);
    transition: 0;
}

.lineTop {
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
    background: #FFFFFF;
    margin: 7px 0 7px 0;
}

.iconButton {
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;
}

.iconButton:hover {
    filter: brightness(0);
    transition: .5s;
}

/* 導覽列 */

#navbar {
    display: none;
    position: fixed;

    margin: 0;

    width: 480px;
    height: 100%;
    right: 0;
    top: 0;

    background-color: var(--bg-gray);
    transition-duration: 1.4s;
    box-shadow: 0px 20px 0px rgba(0, 0, 0, 0.25);
}

.navbar_list {
    display: grid;
    row-gap: 4vh;
    margin-top: 2vh;
    transition-duration: 1.0s;
}

.navbar_top {
    height: min(20vh, 116px);
}

.navbar_item {
    letter-spacing: .2em;
    font-size: max(2.4vh, 0.9em);
    position: relative;
    left: 60px;
    width: calc(100% - 120px);
    -webkit-tap-highlight-color: transparent;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.navbar_item :hover {
    color: var(--text-gray);
    padding-left: 10px;
    transition: 0.4s;
}

.navbar_item a {
    color: black;
    text-decoration: none;
}

.navbar_item a::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    background-color: var(--brand);
    transition: 0.2s;
}

.navbar_item a:hover::after {
    transition: 1.0s;
    width: 100px;
    left: 0;
}

.navbar_item a:active::after {
    transition: 1.0s;
    width: 100px;
    left: 0;
}

.select_item {
    letter-spacing: .2em;
    font-size: max(2.4vh, 0.9em);
    position: relative;
    left: 60px;
    width: calc(100% - 120px);
    -webkit-tap-highlight-color: transparent;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.select_item::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--brand);
    transition: 0.2s;
}

.select_item a {
    color: var(--text-gray);
    text-decoration: none;
    padding-left: 10px;
}

.nav_btn_container {
    display: grid;
    position: absolute;
    padding: 5px 60px 5px 60px;
    top: min(6vh, 50px);
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
}

.navbar_bottom {
    position: absolute;
    bottom: 10px;
    height: 15vh;
    margin: 0;
    width: calc(100% - 120px);
    padding: 0 60px 0 60px;
}

.navbar_bottom button {
    background-color: var(--brand);
    border: 0px;
    width: 100%;
    height: 8vh;

    font-size: max(2.8vh, 1em);
    letter-spacing: .2em;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: black;
    -webkit-tap-highlight-color: transparent;
}

.navbar_bottom button:hover {
    translate: 0px -5px;
    transition-duration: 0.4s;
    box-shadow: 0px 5px 0px rgba(0, 0, 0, 0.4);
}

/* 英文版 */
:where([lang="en"]) .navbar_item,
:where([lang="en"]) .navbar_bottom button {
    letter-spacing: .1em;
}

.navbar_lan_sel {
    display: grid;
    grid-template-columns: 8fr 1fr 8fr;
    column-gap: 15px;
    width: min(100%, 300px);
    line-height: 3vh;
    margin: auto;
    -webkit-tap-highlight-color: transparent;
}

.navbar_lan_sel div {
    text-align: center;
    padding: 1vh;
}

.navbar_lan_sel a {
    text-decoration: none;
    color: black;
    font-size: max(2vh, 1em);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav_lan_center {
    display: block;
    text-align: center;
    padding: 0.8vh;
    font-size: max(2.2vh, 1.2em);
}

/* 導覽列動畫 */

.to_nav_in {
    animation: nav_in 0.8s cubic-bezier(.21, .17, .6, 1.01);
    animation-fill-mode: forwards;
}

.to_nav_out {
    animation: nav_out 0.5s cubic-bezier(.21, .17, .6, 1.01);
    animation-fill-mode: forwards;
}

@keyframes nav_in {
    from {
        opacity: 0;
        width: 360px;
        border-bottom-left-radius: 300px;
    }

    to {
        opacity: 1;
        width: 480px;
        border-bottom-left-radius: 0px;
    }
}

@keyframes nav_out {
    from {
        opacity: 1;
        width: 480px;
    }

    to {
        opacity: 0;
        width: 360px;
    }
}

/* 內頁共用版面 */

.flex_div {
    position: absolute;
    display: flex;
    justify-content: center;
    top: 50px;
    left: min(220px, 20vw);
    right: 95px;
}

.container {
    position: absolute;
    display: block;
    width: min(95%, 1000px);
}

.button_container {
    width: min(100%, 400px);
    margin: 0 auto;
}

.deco_image {
    display: block;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.reservation_btn {
    display: block;
    background-color: #858585;
    width: 100%;
    height: 60px;
    margin: 20px auto;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.reservation_btn:hover {
    translate: 0px -5px;
    transition-duration: 0.4s;
    box-shadow: 0px 5px 0px rgba(0, 0, 0, 0.4);
    background-color: var(--brand);
}

.reservation_btn p {
    position: relative;
    display: inline-block;

    letter-spacing: .15em;
    font-size: min(1.1em, 5vw);
    line-height: 60px;
    margin: 0;
    left: 10px;
    top: 0;
}

.reservation_icon {
    display: inline-block;
    position: relative;
    top: 8px;
    left: 0px;
    width: 30px;
    height: 30px;
    fill: white;
}

.content_p {
    margin: 15px 0 5px 0;
    color: var(--text-light);
    font-size: 0.9em;
    letter-spacing: .1em;
    line-height: 1.5em;
    -webkit-tap-highlight-color: transparent;
}

.content_p.bold {
    margin-top: 30px;
    color: black;
    font-weight: 900;
    font-size: 1em;
}

.hline {
    width: 90%;
    height: 1px;
    background-color: var(--line-gray);
}

.hline::after {
    content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 2px;
    background-color: var(--brand);
}

/* 響應式 */

@media screen and (max-width: 1024px) {
    .hline {
        width: 100%;
    }
}

@media only screen and (max-width: 652px) {
    #copyright {
        color: var(--text-light);
    }

    .top_div {
        height: min(20vh, 116px);
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
        transition: 1.2s ease;
    }

    .top_div.hide {
        height: 0;
        transition: 0.6s ease;
    }

    .main_logo {
        position: absolute;
        margin: auto 0 auto 20px;
        height: min(12vw, 71px);
        width: calc(min(12vw, 71px) * 2.8732);
        background-image: url(/imgs/logo_H.svg);
        bottom: min(2.8vh, 23px);
    }

    #home_logo {
        background-image: url(/imgs/logo_H.svg);
    }

    #page_name {
        letter-spacing: .15em;
        font-size: min(4vw, 1.1em);
        position: absolute;
        left: min(44vw, 250px);
        margin-top: 0;
        bottom: min(3vh, 25px);
        line-height: normal;
        writing-mode: horizontal-tb;
    }

    .btn_menu {
        width: 45px;
        height: 45px;
    }

    .lineTop {
        margin: 6px 0 6px 0;
    }

    #navbar {
        width: 100%;
    }

    @keyframes nav_in {
        from {
            opacity: 0;
            width: 75%;
            border-bottom-left-radius: 300px;
        }

        to {
            opacity: 1;
            width: 100%;
            border-bottom-left-radius: 0px;
        }
    }

    @keyframes nav_out {
        from {
            opacity: 1;
            width: 100%;
        }

        to {
            opacity: 0;
            width: 75%;
        }
    }

    .flex_div {
        top: 140px;
        left: 0px;
        right: 0px;
    }

    .container {
        width: 100%;
    }
}
