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) 80% 50% no-repeat;
    background-size: cover;
    box-sizing: border-box;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: 0.2s;
}

p {
    margin: 0;
}

img {
    line-height: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
}

.container {
    margin: 0 0 0 auto;
    max-width: 1400px;
    width: 1400px;
    height: calc(100% - 100px);
    /* display: grid;
    grid-template-columns: 946px auto; */
    position: relative;
    padding: 30px 0 0 0;
    /* transition: 1s; */
}
/* 視覺 */
.main {
    background: #eee;
    display: inline-block;
    float: left;
    background: url(../img/main.png) 0% 35px no-repeat;
    background-size: contain;
    max-width: 942px;
    width: 942px;
    height: 100%;
    /* width: 49vw; */
    transition: 0.5s;
    position: relative;
}

/* menu */
.menu {
    text-align: center;
    display: inline-block;
    position: absolute;
    right: 0px;
    transition: 0.4s;
}
.logo {
    margin: 33px 0;
    height: 101px;
}
.logo_m {
    display: none;
    transition: 0.2s;
}
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu ul li a {
    width: 320px;
    height: 75px;
    display: inline-block;
    margin: 5px 0;
}
.menu ul li:nth-of-type(1) a {
    background: url(../img/btn1.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(1) a:hover {
    background: url(../img/btn1_hov.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(2) a {
    background: url(../img/btn2.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(2) a:hover {
    background: url(../img/btn2_hov.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(3) a {
    background: url(../img/btn3.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(3) a:hover {
    background: url(../img/btn3_hov.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(4) a {
    background: url(../img/btn4.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(4) a:hover {
    background: url(../img/btn4_hov.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(5) a {
    background: url(../img/btn5.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(5) a:hover {
    background: url(../img/btn5_hov.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.website {
    margin-top: 45px;
}

footer {
    text-align: center;
    color: #b2bdc6;
    line-height: 50px;
    font-size: 0.85rem;
    /* letter-spacing: .2px; */
    width: 100%;
    height: 50px;
    background: #374149;
    position: absolute;
    bottom: 0;
}

/* RWD */

@media screen and (min-width: 1650px) {
    .container {
        margin: 0 auto;
    }
}

@media screen and (max-width: 1500px) {
    .container {
        width: 85%;
        margin: 0 auto;
    }
    .main {
        margin: 0 0 0 25px;
        /* width: 67.2%; */
        width: 66vw;
    }
    .menu {
        right: 3vw;
        transform: scale(0.92);
        /* margin-top: 5%; */
        /* transform-origin: 50% 0%; */
    }
}

@media screen and (max-width: 1200px) {
    .container {
        width: 90%;
        padding: 50px 0 0 0;
    }
    .menu {
        transform: scale(0.85);
    }
}

@media screen and (max-height: 800px) {
    .container {
        width: 85%;
        padding: 30px 0 0 0;
        height: calc(100% - 30px);
    }
    .main {
        width: 62vw;
    }
    .menu {
        right: 0;
        transform: scale(0.85);
    }
    .website {
        margin-top: 2.5vh;
        margin-bottom: -6vh;
        transform: scale(0.9);
    }
}

@media screen and (max-width: 1024px) {
    html,
    body {
        background: url(../img/bg_m.jpg) 50% 50% no-repeat;
        background-size: cover;
    }
    .container {
        text-align: center;
        padding: 30px 0 0 0;
        height: auto;
    }
    .logo_m {
        display: block;
        margin: 2vh auto;
    }
    .main {
        width: 100%;
        height: 50vw;
        margin: 0 auto;
        background: url(../img/main_m.png) 50% 0 no-repeat;
        background-size: contain;
    }
    .logo {
        display: none;
    }
    .menu {
        position: initial;
        transform: scale(1.2);
        transition: 0s;
        padding: 1vh;
    }

    .menu ul li a {
        width: 317px;
        height: 68px;
        display: inline-block;
        margin: 5px 0;
    }
    .menu ul li:nth-of-type(1) a {
        background: url(../img/m-btn1.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(1) a:hover {
        background: url(../img/m-btn1_hov.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(2) a {
        background: url(../img/m-btn2.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(2) a:hover {
        background: url(../img/m-btn2_hov.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(3) a {
        background: url(../img/m-btn3.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(3) a:hover {
        background: url(../img/m-btn3_hov.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(4) a {
        background: url(../img/m-btn4.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(4) a:hover {
        background: url(../img/m-btn4_hov.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(5) a {
        background: url(../img/m-btn5.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }
    .menu ul li:nth-of-type(5) a:hover {
        background: url(../img/m-btn5_hov.png) 50% 50% no-repeat;
        background-size: 100% auto;
    }

    .website {
        margin-top: 3vh;
        padding-bottom: 5vh;
    }
    footer {
        position: relative;
        background: none;
        color: #01a0fb;
    }
}

@media screen and (max-width: 760px) {
    html,
    body {
        height: auto;
        background-position: 85% 50%;
    }
    .container {
        text-align: center;
        padding: 30px 0 0 0;
        height: auto;
    }
    .logo_m {
        display: block;
        margin: 0 auto;
        height: 80px;
        padding: 0.5vh 0 2.5vh;
    }
    .main {
        width: 100%;
        height: 50vw;
        max-height: 352px;
        margin: 0 auto;
        background: url(../img/main_m.png) 50% 0 no-repeat;
        background-size: contain;
    }
    .logo {
        display: none;
    }
    .menu {
        position: initial;
        transform: scale(0.8);
        transition: 0s;
        padding: 1vh;
        margin-top: -11vw;
    }
}

/*@media screen and (min-height: 800px){
    html, body{
        height: 100%;
    }
}*/

@media screen and (max-width: 450px) {
    html,
    body {
        background: url(../img/bg_m.jpg) 50% 50% no-repeat;
        background-size: cover;
    }
    .logo_m {
        height: 70px;
        transition: 0s;
        padding: 0.5vh 0 2.5vh;
    }
    .container {
        width: 100%;
        padding: 20px 0 0 0;
        transition: 0s;
    }
    .main {
        display: block;
        width: 100%;
        height: auto;
        padding-top: 54%;
        transition: 0s;
    }
    footer {
        font-size: 0.7rem;
    }
    .menu {
        transform: scale(0.9);
        margin-top: -9vw;
    }
    .website {
        margin-top: 3.5vh;
        padding: 0;
        margin-bottom: 1vh;
    }
}

@media screen and (max-width: 390px) {
    .menu {
        transform: scale(0.8);
        margin-top: -13vw;
    }
    .website {
        margin: 3vh 0 -7vh;
    }
}

@media screen and (max-width: 360px) {
    .logo_m {
        height: 62px;
    }
    .container {
        height: auto;
    }

    .menu {
        transform: scale(0.8);
    }
    footer {
        font-size: 0.75rem;
    }
}

/* IPAD_橫式 */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .container {
        width: 100%;
        transform: scale(0.9);
        padding: 60px 0 0 0;
    }
    .menu {
        transform: scale(0.75);
        right: -5%;
        top: 8vh;
        transform-origin: 0% 0%;
    }
}

@media screen and (min-width: 1201px) and (max-width: 1500px) {
    .container {
        width: 100%;
        transform: scale(0.9);
        padding: 30px 0 0 0;
    }
    .menu {
        transform: scale(0.9);
        right: 0;
        /* top: 8vh; */
        transform-origin: 0% 0%;
    }
}
