html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Microsoft YaHei", 微软雅黑, sans-serif;
    height: 100%;
    max-height: 100%;
    width: 100%;
    background: url(../img/bg.jpg) 50% 0% no-repeat;
    background-size: cover;
    box-sizing: border-box;
    overflow: hidden;
}

a {
    text-decoration: none;
    transition: 0.2s;
}

p {
    margin: 0;
}

img {
    line-height: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
}

.container {
    margin: 0 auto;
    max-width: 1400px;
    width: 1400px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: .2s;
}


/* 視覺 */
.main {
    text-align: center;
    animation: fadeDown_In 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -20px;
    object-fit: contain;
    /* transition: .2s; */
}

.main_m {
    display: none;
    width: min(750px, 100%);
}



@keyframes fadeDown_In {
    0% {
        margin-top: -40px;
        opacity: 0;
    }

    100% {
        margin-top: 0;
        opacity: 1;
    }
}


.logo {
    width: min(60vw, 707px);
    transition: .2s;
}

.logo_m {
    width: 100%;
    transition: .2s;
    display: none;
}

/* 選單 */
.menuBox {
    width: min(100%, 1250px);
    border: 2px solid #fe8e11;
    border-radius: min(2.8vw, 45px);
    padding: min(3vw, 30px) 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background: rgba(0, 0, 0, .5);
}

.menu {
    color: #fff;
    width: min(20vw, 283px);
    height: min(7vw, 100px);
    background: url(../img/menubg.png) 50% 50% no-repeat;
    background-size: 100% auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: min(1.3vw, 1.1rem);
    transition: 0s;
    position: relative;
    cursor: pointer;
}

.menu_flex {
    display: flex;
    align-items: center;
}

.menuIcon {
    margin-right: 8px;
    filter: contrast(0);
    width: min(2vw, 31px);
}

.menuText01 {
    color: #fff;
    margin-bottom: -3px;
}

.menu:hover {
    background: url(../img/menubg_h.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu:hover .menuText01 {
    color: #fe8e11;
}

.menu:hover .menuIcon {
    filter: initial;
}

.menuPop {
    /* display: none; */
    border: 2px solid #fe8e11;
    border-radius: 25px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, .9);
    position: absolute;
    bottom: 108%;
    margin-bottom: -15px;
    pointer-events: none;
    opacity: 0;
    width: auto;
}

.menuPop:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
    bottom: -14px;
    background: url(../img/poparrow.png) 50% 0% no-repeat;
    background-size: auto 100%;
}

/* .menu:hover .menuPop {
    opacity: 1;
    transition: .2s;
    margin-bottom: 0;
    pointer-events: initial;
} */
@media screen and (min-width: 750px) {
    .menu:hover .menuPop {
        opacity: 1;
        transition: .2s;
        margin-bottom: 0;
        pointer-events: initial;
    }
}

.menuPop_m {
    display: none;
}

.menuPop.active {
    opacity: 1;
    transition: .2s;
    margin-bottom: 0;
    pointer-events: initial;
}


/* menu彈窗01_跳轉彈窗 */

.webTitle {
    font-weight: normal;
    font-size: 1rem;
    text-align: center;
    display: block;
}

.webTitleImg {
    margin: 8px 0;
    width: min(37vw, 509px);
}

.webBox {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: grid;
    grid-template-columns: 15% auto calc(65% - 29px) 20%;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.ms {
    border: 2px solid #fe8e11;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-size: min(3.5vw, 1.1rem);
    font-weight: normal;
}

.sign {
    width: min(1.5vw, 7px);
    height: min(1.5vw, 7px);
    border-radius: 50px;
    background: #6bf63a;
    margin-right: 2px;

}

.webArrow {
    margin: 0 5px;
}

.webArrow img {
    width: min(4vw, 19px);
}

.website {
    background: rgba(92, 92, 92, .43);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: normal;
    padding: 0 8px;
    box-sizing: border-box;
    text-align: center;
}

.webBtn {
    color: #000;
    background: #fe8e11;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: min(3.8vw, 1.1rem);
}

.webBtn:hover {
    color: #fff;
    background: #e9500c;
}


/* menu彈窗03_跳轉彈窗 */
.menu03,
.menu04 {
    display: flex;
    align-items: center;
}

.menu03.wap{
    display: none;
}

.menu03 .menuArrow {
    transform: rotate(-90deg);
    width: 10px;
    margin: 0 3px;
}

.menu03 a {
    color: #000;
    background: #fe8e11;
    padding: 5px 8px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    font-size: .95rem;
    white-space: nowrap;
}

.menu03 a:hover {
    color: #fff;
    background: #e9500c;
}

footer {
    text-align: center;
    color: #a4acb4;
    line-height: 50px;
    font-size: .85rem;
    width: 100%;
    height: 50px;
    background: #353f4b;
    position: absolute;
    bottom: 0;
}

/* RWD */

@media screen and (min-width: 1650px) {
    .container {
        margin: 0 auto;
    }
}

@media screen and (max-height: 850px) {
    .container {
        width: 85%;
        margin: 0 auto;
    }

    .main {
        height: 55vh;
        max-width: 100%;
    }

    .menu {
        width: min(38vh, 283px);
        height: min(12vh, 100px);
    }

    .menuPop01 {
        transform: scale(.85) translateY(30px);
    }

}

@media screen and (max-width: 1500px) {
    .container {
        width: 85%;
        margin: 0 auto;
    }

    .main {
        height: 52vh;
        max-width: 100%;
    }

    .menuBox {
        padding: min(2.5vh, 30px) 0;
    }


    .menuPop01 {
        transform: scale(.85) translateY(30px);
    }

}

@media screen and (max-width: 750px) {

    html,
    body {
        background: url(../img/bg_m.jpg) 50% 50% no-repeat;
        background-size: cover;
        height: 100dvh;
    }

    .container {
        height: 100%;
        height: calc(100% - 9vh);
        width: 90vw;
    }

    .logo,
    .main {
        display: none;
    }

    .logo_m,
    .main_m {
        display: block;
    }

    .menuBox {
        flex-direction: column;
        padding: min(1.5vh, 30px) 3vw;
        width: auto;
        background: rgba(0, 0, 0, .7);
        border-radius: min(5.8vw, 45px);
        border: none;
        box-shadow: inset 0 3px 3px #fe8e11, inset 0 -3px 3px #fe8e11;
        max-width: 450px;
    }

    .menu {
        font-size: min(4vw, 1.1rem);
        letter-spacing: -0.3px;
        background: url(../img/menubg_m.png) 50% 50% no-repeat;
        background-size: 100% auto;
        width: min(62vw, 437px);
        height: min(14vw, 102px);
        margin: .4vh 0;
    }

    .menu:hover {
        background: url(../img/menubg_m_h.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu_flex {
        width: 90%;
        display: flex;
        align-items: center;
        margin-left: 13%;
    }
    #menu02 .menuPop {
        display: none;
    }

    .menuIcon {
        width: min(5vw, 31px);
    }

    .menuPop {
        border: 1px solid #fe8e11;
    }

    .menuPop.active {
        bottom: 120%;
    }

    .menuPop01 {
        transform: initial;
        width: 95vw;
        box-sizing: border-box;
        padding: min(3vw, 15px) min(2vw, 20px);
    }

    .menuPop_m {
        display: block;
    }

    .ms {
        border: 1px solid #fe8e11;
    }

    .webTitleImg {
        width: 100%;
    }

    .website span {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        width: 100%;
    }

    .webBox {
        height: min(3.8vh, 35px);
    }


    .menu03 {
        margin: 8px 0;
    }
    .menu03.pc{
        display: none;
    }
    .menu03.wap{
        display: flex;
    }

    .menu04>img {
        display: initial;
    }

    .menu03 a {
        font-size: min(4vw, 1.1rem);
    }



}