/* 字體 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap");

@font-face {
    font-family: "EBGaramond-VariableFont_wght";
    src: url(../fonts/EBGaramond-VariableFont_wght.ttf);
}

@font-face {
    font-family: "Cinzel-Regular";
    src: url(../fonts/Cinzel-Regular.ttf);
}

.EBGaramond {
    font-family: "EBGaramond-VariableFont_wght";
}

.pointer {
    cursor: pointer;
}


/*svg 在IE兼容問題*/

.ie9 img[src$=".svg"] {
    width: 100%;
}


/*============nav===============*/

.logo {
    width: 35%;
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1vw;
    letter-spacing: 0.2vw;
    z-index: 998;
}

#header {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 3.8vw;
    color: #fff;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
    background-color: transparent;
    font-size: 1vw;
    letter-spacing: 0.25vw;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

nav {
    width: 75%;
    height: auto;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    height: 2.5vw;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

nav li {
    width: 12%;
    height: 2.5vw;
    display: block;
    list-style-type: none;
    position: relative;
    text-align: center;
    float: left;
}

.index {
    width: 28%;
    font-size: 1.25vw;
    font-family: "Noto Serif TC", serif;
    font-weight: bold;
    letter-spacing: 0.1vw;
}

nav li::after {
    content: "";
    width: 1px;
    height: 1vw;
    position: absolute;
    right: 0;
    top: 0.78vw;
    background-color: #fff;
}

nav li:nth-child(3)::after,
nav li:nth-child(4)::after,
nav li:nth-child(8)::after {
    background-color: transparent;
}

nav li>a {
    width: 100%;
    color: #fff;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    line-height: 2.5vw;
    transition: all 0.5s;
    font-family: "Noto Serif TC", serif;
    font-weight: 500;
    text-shadow: 0.1em 0.1em 0.1em #333;
}

.menu-en {
    width: 100%;
    font-family: "EBGaramond-VariableFont_wght";
    color: #f3d5ae;
    letter-spacing: 0.1vw;
    font-size: 0.9vw;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    transition: all 0.5s;
}

.line {
    width: 27%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    bottom: -0.5vw;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    transition: all 0.5s;
}

nav li>a:hover .line {
    display: block !important;
}

nav li>a:hover .menu-en {
    display: block !important;
}

nav li>a:hover .menu-chi {
    display: none !important;
}

.sub {
    width: 100%;
    height: auto;
    line-height: 2.5vw;
    display: block;
    position: absolute;
    text-align: center;
    top: 3.8vw;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    left: 0;
}

.sub-li {
    width: 75%;
    height: auto;
    position: relative;
    margin: 0 auto;
}

#nav-li4 {
    margin: 0 auto 0 60.5%;
}

.sub a {
    width: 12%;
    color: #fff;
    height: 100%;
    display: block;
    font-family: "Noto Serif TC", serif;
    font-weight: 500;
    font-size: 1vw;
    letter-spacing: 0.25vw;
    position: relative;
    float: left;
    transition: all 0.5s;
}

.sub a::after {
    content: "";
    width: 1px;
    height: 1vw;
    position: absolute;
    right: 0;
    top: 0.78vw;
    background-color: #fff;
}

.sub a:hover {
    color: #f3d5ae;
    text-shadow: 0.1em 0.1em 0.1em #333;
}

.sub a:last-child::after {
    background-color: transparent !important;
}

.subHover:hover {
    color: #f3d5ae !important;
    text-shadow: 0.1em 0.1em 0.1em #333 !important;
}

.subHover2:hover {
    color: #8a7363 !important;
    text-shadow: none !important;
}

.change::after {
    background-color: #003f57 !important;
}

.pageIndex .sub {
    background-color: rgba(4, 46, 62, 0.4);
}

.page02 .nav-li2 .line {
    display: block !important;
}

.page03 .nav-li3 .line {
    display: block !important;
}

.page04 .nav-li4 .line {
    display: block !important;
}

.page05 .nav-li5 .line {
    display: block !important;
}

.page06 .nav-li6 .line {
    display: block !important;
}

.staff-link {
    position: absolute;
    top: 0;
    left: 100%;
}