/*選單區/////////////////////////////////////////////////////////////////////////////*/
.bg_headmenu {
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
}

.headmenu {
    width: 100%;
    background-color: #000;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
}

.headmenu_in {
    width: 100%;
    max-width: 930px;
    margin: 0 auto;
    display: flex;
    display: -ms-flexbox;
}

/*logo*/
.menu_flex01 {
    width: 420px;
    position: relative;
    z-index: 2;
}

.btn_logo {
    width: 100%;
    height: auto;
    background: url(../../images/home/btn_logo.png) no-repeat center top;
    background-size: 100% auto;
    position: absolute;
    left: .2rem;
    top: .2rem;
}

.btn_logo a {
    width: 100%;
    height: auto;
    display: block;
    background: url(../../images/home/btn_logo.png) no-repeat center top;
    background-size: 100% auto;
    transition: opacity 0.5s;
}

.btn_logo a:hover {
    background: url(../../images/home/btn_logo_ov.png) no-repeat center top;
    background-size: 100% auto;
    opacity: 1;
}

.btn_logo img {
    opacity: 0.01;
}

.menu_flex02 {
    width: 93%;
    display: flex;
    display: -ms-flexbox;
    justify-content: flex-end;
    -ms-flex-pack: end;
    align-items: center;
    -ms-flex-align: center;
    position: relative;
    z-index: 1;
}

.menu {
    padding-left: .5rem;
    overflow: hidden;
    z-index: 990;
}

.btn_ov {
    width: 100%;
    height: 100%;
    opacity: 0.01;
    transition: opacity 0.7s;
    position: absolute;
    top: 0;
    left: 0;
}

/*-------簡中選單--------*/
.menu li {
    width: 110px;
    margin-right: 1rem;
    padding: .7rem 0;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center center;
    float: left;
    position: relative;
}

.menu li img {
    opacity: 0.01;
}

.menu li:nth-of-type(1) {
    background-image: url(../../images/home/btn_sec00.png);
}

.menu li:nth-of-type(2) {
    background-image: url(../../images/home/btn_sec01.png);
}

.menu li:nth-of-type(3) {
    background-image: url(../../images/home/btn_sec02.png);
}

.menu li .btn_ov {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center center;
}

.menu li:nth-of-type(1):hover .btn_ov, .menu li:nth-of-type(1).active .btn_ov {
    background-image: url(../../images/home/btn_sec00_ov.png);
}

.menu li:nth-of-type(2):hover .btn_ov, .menu li:nth-of-type(2).active .btn_ov {
    background-image: url(../../images/home/btn_sec01_ov.png);
}

.menu li:nth-of-type(3):hover .btn_ov, .menu li:nth-of-type(3).active .btn_ov {
    background-image: url(../../images/home/btn_sec02_ov.png);
}

.menu li:hover .btn_ov,
.menu li.active .btn_ov {
    opacity: 1;
}

/*-------英文選單--------*/
.menu_en li {
    width: 110px;
    margin-right: 1rem;
    padding: .7rem 0;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center center;
    float: left;
    position: relative;
}

.menu_en li img {
    opacity: 0.01;
}

.menu_en li:nth-of-type(1) {
    margin-right: -.3rem;
    background-image: url(../../images/home/btn_sec00_en.html);
}

.menu_en li:nth-of-type(2) {
    background-image: url(../../images/home/btn_sec01_en.html);
}

.menu_en li:nth-of-type(3) {
    background-image: url(../../images/home/btn_sec02_en.html);
}

.menu_en li .btn_ov {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center center;
}

.menu_en li:nth-of-type(1):hover .btn_ov, .menu li:nth-of-type(1).active .btn_ov {
    background-image: url(../../images/home/btn_sec00_ov_en.html);
}

.menu_en li:nth-of-type(2):hover .btn_ov, .menu li:nth-of-type(2).active .btn_ov {
    background-image: url(../../images/home/btn_sec01_ov_en.html);
}

.menu_en li:nth-of-type(3):hover .btn_ov, .menu li:nth-of-type(3).active .btn_ov {
    background-image: url(../../images/home/btn_sec02_ov_en.html);
}

.menu_en li:hover .btn_ov,
.menu_en li.active .btn_ov {
    opacity: 1;
}

/*-------印尼選單--------*/
.menu_in li {
    width: 110px;
    margin-right: 1rem;
    padding: .7rem 0;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center center;
    float: left;
    position: relative;
}

.menu_in li img {
    opacity: 0.01;
}

.menu_in li:nth-of-type(1) {
    margin-right: -.3rem;
    background-image: url(../../images/home/btn_sec00_en.html);
}

.menu_in li:nth-of-type(2) {
    background-image: url(../../images/home/btn_sec01_in.html);
}

.menu_in li:nth-of-type(3) {
    background-image: url(../../images/home/btn_sec02_in.html);
}

.menu_in li .btn_ov {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center center;
}

.menu_in li:nth-of-type(1):hover .btn_ov, .menu li:nth-of-type(1).active .btn_ov {
    background-image: url(../../images/home/btn_sec00_ov_en.html);
}

.menu_in li:nth-of-type(2):hover .btn_ov, .menu li:nth-of-type(2).active .btn_ov {
    background-image: url(../../images/home/btn_sec01_ov_in.html);
}

.menu_in li:nth-of-type(3):hover .btn_ov, .menu li:nth-of-type(3).active .btn_ov {
    background-image: url(../../images/home/btn_sec02_ov_in.html);
}

.menu_in li:hover .btn_ov,
.menu_in li.active .btn_ov {
    opacity: 1;
}

/*-------泰文選單--------*/
.menu_ta li {
    width: 110px;
    margin-right: 1rem;
    padding: .7rem 0;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center center;
    float: left;
    position: relative;
}

.menu_ta li img {
    opacity: 0.01;
}

.menu_ta li:nth-of-type(1) {
    background-image: url(../../images/home/btn_sec00_ta.html);
    margin-right: 1.7rem;
}

.menu_ta li:nth-of-type(2) {
    background-image: url(../../images/home/btn_sec01_ta.html);
}

.menu_ta li:nth-of-type(3) {
    background-image: url(../../images/home/btn_sec02_ta.html);
}

.menu_ta li .btn_ov {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center center;
}

.menu_ta li:nth-of-type(1):hover .btn_ov, .menu li:nth-of-type(1).active .btn_ov {
    background-image: url(../../images/home/btn_sec00_ov_ta.html);
}

.menu_ta li:nth-of-type(2):hover .btn_ov, .menu li:nth-of-type(2).active .btn_ov {
    background-image: url(../../images/home/btn_sec01_ov_ta.html);
}

.menu_ta li:nth-of-type(3):hover .btn_ov, .menu li:nth-of-type(3).active .btn_ov {
    background-image: url(../../images/home/btn_sec02_ov_ta.html);
}

.menu_ta li:hover .btn_ov,
.menu_ta li.active .btn_ov {
    opacity: 1;
}

.btn_click {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

/*-------在PC上隱藏選單--------*/
.btn_toggle {
    margin: 0;
    position: relative;
    display: none;
    z-index: 100;
}

.btn_toggle a {
    white-space: nowrap;
    overflow: hidden;
    display: block;
    float: right;
    margin: .6rem .8rem .6rem 0;
    background-repeat: no-repeat;
    background-image: url(../../images/home/btn_toggle.png);
    background-size: 100% auto;
    background-position: right center;
}

.btn_toggle a:hover {
    filter: brightness(120%);
}

.close a {
    white-space: nowrap;
    overflow: hidden;
    display: block;
    float: right;
    margin: .6rem .8rem .6rem 0;
    background-repeat: no-repeat;
    background-image: url(../../images/home/btn_toggle_ov.png);
    background-size: 100% auto;
    background-position: right center;
}

.close a:hover {
    filter: brightness(120%);
}

/*語系*/
.language {
    margin: 0 0
}

.language_box select {
    padding-left: 1rem;
    padding-bottom: 0.3rem;
    text-align: right;
    color: #fef5b7;
    background-color: rgba(0, 0, 0, 0);
    border: 0;
    font-size: 1.1rem;
    height: 2.3rem;
    line-height: 2.3rem;
    font-weight: bold;
    position: relative; /*top:50%; transform:translateY(-50%)/*垂直置中*/;
}

.language_bg {
    background-color: #000;
    border: 0;
    text-align: right;
}

/*top_menu社群*/
.top_menu {
    width: 100%;
    max-width: 930px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) /*置中*/;
    padding-right: 1%;
}

ul.top_menu {
    margin-top: 10px;
}

ul.top_menu::after {
    content: "";
    display: block;
    clear: both;
}

ul.top_menu > li {
    width: 42px;
    margin-right:.5rem;
    cursor: pointer;
    float: right;
    position: relative;
}

ul.top_menu > li > a:hover {
    filter: brightness(120%);
}

.btn_lang {
    width: 100%;
    background-image: url(../../images/home/btn_social_lang.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    margin-right: 0;
}

.btn_lang a {
    background-image: url(../../images/home/btn_social_lang_ov.png);
}

.btn_lang a {
    background-repeat: no-repeat;
    background-size: 100% auto;
    opacity: 0.001;
    transition: opacity 0.5s;
    display: block;
}

.btn_lang a:hover, ul.top_menu > li:nth-of-type(3):hover .btn_lang a {
    opacity: 1;
}

.btn_lang img {
    width: 100%;
    max-width: 100%;
    opacity: 0.01;
}

@media screen and (max-width: 1600px) {

    .menu_flex01 {
        width: 380px;
    }
}

@media screen and (max-width: 1440px) {

    .menu_flex01 {
        width: 340px;
    }

}

@media screen and (max-width: 1350px) {

    ul.top_menu {
        right: .6rem;
    }

}

@media screen and (max-width: 990px) {
    .btn_toggle {
        display: block;
    }

    /*jQuery點擊後動態在 body 加上 class */
    .menu_show .menu_flex02 {
        display: block;
        animation: 1s fat;
    }

}

@keyframes fat {
    0% {
        opacity: 0;
        transform: translateX(50%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

@media screen and (max-width: 990px) {

    .headmenu {
        width: 100%;
        display: block;
    }

    .headmenu::after {
        height: 100px;
    }

    /*logo*/
    .menu_flex01 {
        width: 100%;
        display: table;
        vertical-align: middle;
    }

    .btn_click {
        display: block;
    }

    .btn_logo {
        width: 15rem;
    }

    .btn_toggle {
        width: 3rem;
        float: right;
    }

    .btn_toggle a, .close a {
        margin: 0.6rem .8rem .6rem 0;
    }

    .menu_flex02 {
        width: 25%;
        height: auto;
        position: absolute;
        right: 0;
        top: 0;
        padding-top: 3.5rem;
        flex-direction: column;
        -ms-flex-direction: column;
        justify-content: flex-start;
        -ms-flex-pack: flex-start;
        align-items: center;
        -ms-flex-align: center;
        display: none;
    }

    .menu_flex02::after {
        content: " ";
        width: 100%;
        height: 100vh;
        margin: 0;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.7);
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        z-index: -2;
    }

    .menu {
        padding: 0 .5rem 0 .5rem;
    }

    .menu > li {
        width: 100%;
    }

}

@media screen and (max-width: 980px) {

    .headmenu::after {
        height: 100%;
    }

    .menu > li {
        padding: 1rem 0rem 1rem 0;
    }

    .btn_logo {
        width: 27vw;
    }

    /*logo*/
    .btn_toggle a, .close a {
        width: 100%;
    }

}

@media screen and (max-width: 900px) {

    ul.top_menu {
        right: .4rem;
    }

    ul.top_menu > li {
        width: 3.5rem;
    }

    nav.lang_menu {
        width: 6rem;
        margin-left: -2.9rem;
    }

    nav.lang_menu ul > li:nth-of-type(1) {
        background-position: 80% bottom;

    }

}

@media screen and (max-width: 800px) {

    .btn_logo {
        width: 38vw;
    }

    .menu > li {
        padding: .8rem 0 .8rem 0;
    }

}

@media screen and (max-width: 750px) {

    nav.lang_menu {
        width: 7rem;
        margin-left: -3.9rem;
    }
}

@media screen and (max-width: 700px) {

    .btn_logo {
        width: 46vw;
    }

    .menu_flex02 {
        width: 40%;
    }

    .menu > li {
        padding: .85rem 0 .85rem 0;
    }

}

@media screen and (max-width: 640px) {

    .menu_flex02 {
        width: 40%;
    }

    .menu > li {
        padding: .85rem 0 .85rem 0;
    }

}

@media screen and (max-width: 550px) {

    .menu_flex02 {
        width: 40%;
    }

    .btn_toggle a, .close a {
        margin: 0.5rem .6rem .5rem 0;
    }

}

@media screen and (max-width: 500px) {

    ul.top_menu > li {
        width: 10.5vw;
    }

    nav.lang_menu {
        margin-left: -4.2rem;
    }

}

@media screen and (max-width: 400px) {

    nav.lang_menu {
        width: 6rem;
        margin-left: -3.3rem;
    }

}

@media screen and (max-width: 420px) {

    .btn_toggle {
        width: 2.7rem;
    }

    .btn_toggle a, .close a {
        margin: 0.45rem .55rem .45rem 0;
    }

}

@media screen and (max-width: 400px) {

    .menu_flex02 {
        width: 50%;
    }

}

@media screen and (max-width: 370px) {

    .btn_toggle {
        width: 2.7rem;

    }

    .btn_toggle a, .close a {
        margin: 0.4rem .5rem .4rem 0;
    }

}