/* 字體 */

@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: "Futura-Std-Book";
    src: url(../fonts/Futura-Std-Book.otf);
}

.Futura-Std-Book {
    font-family: "Futura-Std-Book";
}

.pointer {
    cursor: pointer;
}

.click {
    width: 100%;
    height: 100%;
}

img {
    width: 100%;
    display: block;
}


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

.logo {
    width: 10.8vw;
    height: auto;
    position: absolute;
    display: block;
    left: 2vw;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 1000;
}


#header {
    position: fixed;
    display: block;
    top: 0;
    left: 0px;
    z-index: 999;
    width: 100%;
    height: 6vw;
    box-sizing: border-box;
    font-family: "Futura-Std-Book";
}

.triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0.8vw 0.8vw 0;
    border-color: transparent #ff6012 transparent transparent;
    position: absolute;
    right: 0;
    top: 0;
}

.nav-line {
    width: 0;
    height: 2.9vw;
    position: absolute;
    right: 0;
    top: 0;
    overflow: hidden;
}


/* nav:hover .nav-line {
    animation: nav-line 1s ease;
    animation-fill-mode: forwards;
    animation-delay: 0.2s;
} */

.nav-line-hover {
    animation: nav-line 1s ease;
    animation-fill-mode: forwards;
}

.nav-line-hover-back {
    animation: nav-line2 1s ease;
    animation-fill-mode: forwards;
}

@keyframes nav-line {
    0% {
        width: 0;
    }
    100% {
        width: 39vw;
    }
}

@keyframes nav-line2 {
    0% {
        width: 39vw;
    }
    100% {
        width: 0;
    }
}

.nav-line-li {
    width: 39vw;
    height: 2.9vw;
    position: absolute;
    right: 0;
    top: 0;
    border: 1px solid #ff6012;
    box-sizing: border-box;
    border-radius: 3vw 0 3vw 3vw;
}

nav {
    width: 35vw;
    height: auto;
    position: absolute;
    right: 3vw;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0 2vw;
    border-radius: 3vw 0 3vw 3vw;
}

nav ul {
    height: 2.9vw;
    padding: 0;
    margin: 0;
}

nav li {
    width: 20%;
    height: 2.9vw;
    line-height: 2.9vw;
    vertical-align: middle;
    display: block;
    list-style-type: none;
    position: relative;
    text-align: center;
    float: left;
}

nav li>a {
    width: 100%;
    color: #3e3a3a;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.8vw;
    letter-spacing: 0.04vw;
    z-index: 9;
    overflow: hidden;
    cursor: pointer;
}

nav li>a:hover .en {
    margin: -2.9vw 0 0 0;
}

.en {
    width: 100%;
    position: relative;
    margin: 0;
    transition: all 0.3s ease;
}

.chi {
    width: 100%;
    position: relative;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.1vw;
    transition: all 0.3s ease;
}

.chi::after {
    content: "";
    position: absolute;
    left: 1.7vw;
    bottom: 0.7vw;
    background-color: #3e3a3a;
    width: 0;
    height: 1px;
}

nav li>a:hover .chi::after {
    animation: chi 1s ease;
    animation-fill-mode: forwards;
    animation-delay: 0.2s;
}

@keyframes chi {
    0% {
        width: 0;
    }
    100% {
        width: 50.5%;
    }
}
