@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC:100,300,400,500,700,900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 16px;
}

header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px #0033A0 solid;
    z-index: 999;
    position: fixed;
    z-index: 999;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-sizing: border-box;
}

.logo {
    height: 70px;
}

.logo>img {
    max-height: 100%;
}

.menu-btn {
    position: absolute;
    right: 0;
    top: 35px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    width: 40px;
    height: 32px;
    display: none;
    border: #0033A0 1px solid;
    border-radius: 3px;
}

.menu-btn-line {
    width: 30px;
    height: 2px;
    background: #0033A0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: .5s;
}

.menu-btn-line::before,
.menu-btn-line::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background: #0033A0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: .5s;
    left: 0;
    right: 0;
}

.menu-btn-line::before {
    top: 5px;
}

.menu-btn-line::after {
    top: -5px;
}

.menu-btn-action .menu-btn-line {
    background-color: rgba(0, 0, 0, 0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
}

.menu-btn-action .menu-btn-line::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-btn-action .menu-btn-line::after {
    top: 0;
    transform: rotate(135deg);
}

nav {
    display: flex;
    align-items: center;
    font-size: 18px;
    transition: all 1s ease;
}

nav>ul {
    margin: 0;
    padding: 0;
    margin-right: 50px;
}

nav>ul>li {
    display: inline-block;
    list-style: none;
    margin: 0 30px;
}

nav>ul>li>a {
    text-decoration: none;
    color: inherit;
}

nav>a {
    text-decoration: none;
    width: 70px;
    text-align: center;
    background-color: #0033A0;
    height: 100%;
    color: #ffffff;
    line-height: 70px;
    font-weight: bold;
}

main {
    margin-top: 72px;
}


/*  */

.swiper img {
    width: 100%;
    vertical-align: middle;
}


/*  */

.about>.block {
    width: 1140px;
    margin: 0 auto;
    padding: 100px 0;
    display: flex;
    color: #131C30;
}

.about .left {
    width: 40%;
    margin: 0 25px;
    display: flex;
    align-items: flex-end;
}

.about .right {
    width: 60%;
    margin: 0 25px;
    display: flex;
    align-items: center;
}

.about h1 {
    display: initial;
    border-bottom: 3px #ff4713 solid;
}

.about img {
    max-width: 100%;
    vertical-align: middle;
}


/*  */

.service {
    background-color: #e2e2e2;
    position: relative;
}

.service>.block {
    width: 1140px;
    margin: 0 auto;
    display: flex;
    color: #131C30;
    padding: 100px 0;
}

.service>.block>div {
    width: 50%;
}

.service>.block>div:first-child {
    padding-top: 30px;
    position: relative;
}

.service>.block>div:first-child>div {
    text-align: center;
}

.service h1 {
    display: initial;
    border-bottom: 3px #ff4713 solid;
}

.service P {
    background-color: #0033A0;
    color: #ffffff;
    padding: 20px 50px;
    border-radius: 5px;
}

.service ul {
    list-style: none;
    margin: 0;
}

.service li {
    color: #0033A0;
    border-bottom: 2px #131C30 solid;
    font-size: 30px;
    padding: 15px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.service li>i {
    width: 65px;
    height: 56px;
    display: inline-block;
    margin-right: 10px;
}

.icon-1 {
    background-image: url("../images/icon-1.png");
}

.icon-2 {
    background-image: url("../images/icon-2.png");
}

.icon-3 {
    background-image: url("../images/icon-3.png");
}

.icon-4 {
    background-image: url("../images/icon-4.png");
}

.roles-1 {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 25%;
}

.roles-1 img {
    vertical-align: middle;
    max-width: 100%;
}

.roles-2 {
    position: absolute;
    bottom: 0px;
    left: -170px;
}

.roles-2 img {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
}


/*  */

.game>.block {
    width: 1140px;
    padding: 100px 0;
    margin: 0 auto;
}

.game>.block>div:first-child {
    text-align: center;
}

.game h1 {
    display: initial;
    border-bottom: 3px #ff4713 solid;
}

.game .group {
    margin: 50px 0;
}

.game .title {
    height: 50px;
    background-color: #0033A0;
    color: #fff;
    border-radius: 3px;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    font-weight: bold;
}

.game .group>ul {
    margin: 50px 0;
    padding: 0;
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.game .group>ul>li {
    width: 30%;
    margin-bottom: 50px;
}

.game .group>ul>li:last-child:nth-child(3n - 1) {
    margin-right: calc(30% + 15% / 3);
}

.game .group .img {
    border-radius: 5px;
    overflow: hidden;
}

.game .group img {
    max-width: 100%;
    vertical-align: middle;
}

.game .group .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.game .group .item-header>h4 {
    font-size: 20px;
    margin: 0;
}

.play-btn {
    margin: 5px 0;
    text-align: center;
}

.play-btn a {
    display: inline-block;
    text-decoration: none;
    border: 1px #0033A0 solid;
    color: #0033A0;
    padding: 3px 15px;
    transition: 0.8s;
    font-size: 16px;
}

.play-btn a:hover {
    background-color: #0033A0;
    color: #fff;
    border-radius: 30px;
}

.game .group>ul>li>ul {
    list-style: none;
    padding: 0;
}

.game .group>ul>li>ul>li {
    margin: 5px 0;
}


/*  */

.contact {
    background-color: #F5F5F5;
}

.contact .block {
    width: 1140px;
    padding: 100px 0;
    margin: 0 auto;
}

.contact>.block>div:first-child {
    text-align: center;
}

.contact h1 {
    display: initial;
    border-bottom: 3px #ff4713 solid;
}

.contact ul {
    list-style: none;
    margin: 0px 200px;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.contact ul>li {
    width: 30%;
    text-align: center;
    margin-top: 100px;
}

.contact ul>li div {
    width: 100px;
    display: inline-block;
    border: 3px #000 solid;
    border-radius: 50px;
}

.contact ul>li img {
    max-width: 100%;
    vertical-align: middle;
    padding: 20px;
}

.contact ul>li p {
    font-weight: bold;
}

footer {
    background-color: #0033A0;
    text-align: center;
    color: #fff;
    font-size: 12px;
}

footer>p {
    margin: 0;
    padding: 10px 0;
}

.headroom {
    will-change: transform;
    transition: transform 200ms linear;
}

.headroom--pinned {
    transform: translateY(0%);
}

.headroom--unpinned {
    transform: translateY(-100%);
}

@media (max-width: 575.98px) {
    header {
        flex-wrap: wrap;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        max-height: 0;
        overflow: hidden;
    }

    .menu-btn {
        display: block;
    }

    .navshow {
        max-height: 600px;
    }

    nav>ul,
    nav>ul>li,
    nav>a {
        width: 100%;
        margin: 0;
    }

    nav>ul>li {
        text-align: center;
        line-height: 70px;
    }

    nav>a {
        height: auto;
    }

    .about>.block,
    .service>.block,
    .game>.block,
    .contact .block {
        width: 90%;
    }

    .game .group>ul>li {
        width: 45%;
        margin-bottom: 50px;
    }

    .about>.block {
        padding: 50px 0;
    }

    .about .left {
        margin: 0;
        align-items: center;
    }

    .roles-1,
    .roles-2 {
        display: none;
    }

    .service>.block {
        flex-wrap: wrap;
        padding: 50px 0;
    }

    .service>.block>div {
        width: 100%;
    }

    .service ul {
        padding: 0;
        display: flex;
    }

    .service li {
        border-bottom: none;
        width: 45%;
        flex-wrap: wrap;
        font-size: 20px;
        justify-content: center;
    }

    .service li>i {
        margin-right: 0;
    }

    .service li>div {
        width: 100%;
        text-align: center;
    }

    .game>.block {
        padding: 50px 0;
    }

    .game .group {
        margin: 25px 0;
    }

    .contact>.block {
        padding: 50px 0;
    }

    .contact ul {
        flex-wrap: wrap;
    }

    .contact ul>li {
        width: 100%;
        margin-top: 30px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    /* html {
        background-color: turquoise;
    } */
    header {
        flex-wrap: wrap;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        max-height: 0;
        overflow: hidden;
    }

    .menu-btn {
        display: block;
    }

    .navshow {
        max-height: 600px;
    }

    nav>ul,
    nav>ul>li,
    nav>a {
        width: 100%;
        margin: 0;
    }

    nav>ul>li {
        text-align: center;
        line-height: 70px;
    }

    nav>a {
        height: auto;
    }

    .about>.block,
    .service>.block,
    .game>.block,
    .contact .block {
        width: 90%;
    }

    .game .group>ul>li {
        width: 45%;
        margin-bottom: 50px;
    }

    .about>.block {
        padding: 50px 0;
    }

    .about .left {
        margin: 0;
        align-items: center;
    }

    .roles-1,
    .roles-2 {
        display: none;
    }

    .service>.block {
        flex-wrap: wrap;
        padding: 50px 0;
    }

    .service>.block>div {
        width: 100%;
    }

    .service ul {
        padding: 0;
        display: flex;
    }

    .service li {
        border-bottom: none;
        width: 45%;
        flex-wrap: wrap;
        font-size: 20px;
        justify-content: center;
    }

    .service li>i {
        margin-right: 0;
    }

    .service li>div {
        width: 100%;
        text-align: center;
    }

    .game>.block {
        padding: 50px 0;
    }

    .game .group {
        margin: 25px 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    /* html {
        background-color: yellow;
    } */
    nav {
        display: flex !important;
    }

    nav>ul {
        margin-right: 10px;
    }

    nav>ul>li {
        margin: 0 7px;
    }

    .about>.block,
    .service>.block,
    .game>.block,
    .contact .block {
        width: 700px;
    }

    .game .group>ul>li {
        width: 40%;
        margin-bottom: 50px;
    }

    .roles-1,
    .roles-2 {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    /* html {
        background-color: red;
    } */
    /* nav {
        display: flex !important;
    } */
    .about>.block,
    .service>.block,
    .game>.block,
    .contact .block {
        width: 900px;
    }

    .roles-2 {
        bottom: -60px;
        left: -45px;
    }
}

@media (min-width: 1200px) {
    /* nav {
        display: flex !important;
    } */
}