@charset "utf-8";
@import url("reset.css");
@font-face {
    font-family: 'Colfax-Regular';
    src: url('../webfonts/Colfax-Regular.otf') format('OpenType'), url('../webfonts/Colfax-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Colfax-Bold';
    src: url('../webfonts/Colfax-Bold.otf') format('OpenType'), url('../webfonts/Colfax-Bold.woff') format('woff');
}


/*-- font --*/

.Colfax-Bold {
    font-family: "Colfax-Bold", "微軟正黑體", sans-serif;
}


/*-- common --*/

a {
    color: #004990;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: none;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

:active,
:focus {
    outline: 0;
    outline: none;
}


/*-------font effect-----------*/

.clear {
    clear: both;
    height: 0px;
    line-height: 0px;
}

.bold {
    font-weight: bold;
}

.red {
    color: #9C182F;
}

.blue {
    color: #004990;
}

.darkblue {
    color: #002554;
}

.green {
    color: #00A6B6;
}

.align_r {
    text-align: right;
}

.align_c {
    text-align: center;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.nowrap {
    width: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.divider {
    height: 10px;
    line-height: 10px;
}


/*-------img effect-----------*/

.addShadow {
    border: 1px solid #f1f1f1;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}


/*-------btn effect-----------*/

.btnStyle {
    -webkit-appearance: none;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    color: #FFF;
    background-color: #004990;
    border: none;
    border-radius: 50px;
}

.btnStyle:hover {
    background-color: #002554;
}

.btnRed {
    background-color: #C91C43;
}


/*-------------footer--------------------*/

footer a {
    color: #A1A0A4;
}

footer h5 {
    width: 90px;
    height: 45px;
    background-image: url(../images/logoFooter.svg);
    background-repeat: no-repeat;
    background-size: cover;
    text-indent: -9999px;
}

footer dl dd:first-child a {
    background-image: url(../images/Facebook.png);
}

footer dl dd:nth-child(2) a {
    background-image: url(../images/Instagram.png);
}

footer dl dd:nth-child(3) a {
    background-image: url(../images/Linkedin.png);
}

footer dl dd {
    float: left;
    margin-right: 10px;
}

footer dl dd a {
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    width: 30px;
    height: 30px;
    text-indent: -9999px;
}


/*---------------------- toTop ------------------------*/

#toTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    display: none;
    z-index: 123;
    text-indent: -9999px;
    background-image: url(../images/top.svg);
    background-color: #004990;
    background-position: no-repeat;
    background-position: center center;
    opacity: 0.3;
}

#toTop:hover {
    opacity: 1;
}

@media screen and (min-width:801px) {
    /*-----------------------body-----------------------*/
    html,
    body {
        margin: 0;
        padding: 0;
        color: #333;
        font-size: 15px;
        line-height: 160%;
        font-family: "Colfax-Regular", "微軟正黑體", sans-serif;
    }
    p {
        line-height: 160%;
    }
    h1,
    h2,
    h3,
    h4 {
        line-height: 130%;
    }
    .btnStyle {
        padding: 15px 30px;
        font-size: 25px;
        line-height: 100%;
    }
    .NoShowInPC {
        display: none;
    }
    .largeFont {
        font-size: 19px;
    }
    /*-- header --*/
    header {
        background-color: #002554;
        width: 100%;
        padding: 15px 0;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        /*75px height*/
    }
    header h1 a {
        display: block;
        width: 90px;
        height: 45px;
        background-image: url(../images/logo.svg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        margin-left: 10%;
        text-indent: -9999px;
    }
    /*-- menu --*/
    #menuWrapper {
        position: absolute;
        right: 10%;
        top: 0;
    }
    h4.openMenu {
        display: none;
    }
    #menu {
        position: relative;
        width: auto;
        height: 75px;
    }
    #menu li {
        float: left;
    }
    #menu li a {
        display: block;
        font-size: 17px;
        line-height: 75px;
        width: auto;
        height: auto;
        color: #FFF;
        padding: 0 15px;
        cursor: pointer;
    }
    /*---------------------article-------------------*/
    article {
        width: 75%;
        max-width: 1360px;
        margin: 0 auto;
        padding: 70px 0;
    }
    article h1 {
        font-size: 51px;
    }
    article h2 {
        font-size: 33px;
    }
    article h3 {
        font-size: 21px;
    }
    .left {
        float: left;
        width: 48%;
    }
    .right {
        float: right;
        width: 48%;
    }
    /*-------------footer--------------------*/
    footer {
        background: #f1f1f1;
        width: 100%;
        padding: 30px 10%;
    }
    footer h5 {
        width: 90px;
        height: 45px;
        background-image: url(../images/logoFooter.svg);
        background-repeat: no-repeat;
        background-size: cover;
        text-indent: -9999px;
    }
    footer ul {
        width: 100%;
    }
    footer ul li {
        float: left;
        width: 25%;
    }
    footer ul li h3 {
        margin-bottom: 20px;
    }
    footer ul li p {
        line-height: 200%;
    }
}


/*------------------for mobile------------------------*/

@media screen and (max-width:800px) {
    /*-----------------------body-----------------------*/
    html {
        width: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0;
        -webkit-text-size-adjust: none;
    }
    body {
        color: #333;
        line-height: 150%;
        font-size: 15px;
        font-family: "Colfax-Regular", "微軟正黑體", sans-serif;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        width: 100%;
        min-height: 100%;
    }
    p {
        line-height: 150%;
    }
    h1,
    h2,
    h3,
    h4 {
        line-height: 130%;
    }
    .btnStyle {
        font-size: 21px;
        padding: 12px 15px;
        line-height: 100%;
        -webkit-appearance: none;
        /*取消手機預設樣式*/
    }
    .alignLeftMobile {
        text-align: left;
    }
    .alignCenterMobile {
        text-align: center;
    }
     ::-webkit-scrollbar {
        display: none;
        /*隱藏手機scroll*/
    }
    /*-- header --*/
    header {
        background-color: #002554;
        width: 100%;
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
    }
    header h1 a {
        display: block;
        width: 80px;
        height: 40px;
        background-image: url(../images/logo.svg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        margin-left: 15px;
        text-indent: -9999px;
    }
    /*-- menu --*/
    h4.openMenu {
        display: block;
        position: fixed;
        width: 60px;
        height: 60px;
        top: 0;
        right: 0;
        background-image: url(../images/bars.svg);
        background-size: auto 50%;
        background-repeat: no-repeat;
        background-position: center center;
        text-indent: -9999px;
        z-index: 200;
        transition: all 0.3s ease-out;
    }
    h4.changColor {
        background-color: #f1f1f1;
        background-image: url(../images/close.svg);
        transition: all 0.3s ease-out;
    }
    #menu {
        width: 100%;
        background: #f1f1f1;
        position: fixed;
        top: 60px;
        right: 0;
        display: none;
        z-index: 9999;
        height: 100%;
        overflow: auto;
        padding-bottom: 100px;
        /**重要!!*/
    }
    #menu li {
        border-bottom: 1px solid #ddd;
    }
    #menu li a {
        color: #333;
        display: block;
        text-decoration: none;
        padding: 15px 20px;
    }
    /*-----------------article---------------*/
    article {
        padding: 40px 15px;
    }
    article h2 {
        font-size: 27px;
    }
    article h3 {
        font-size: 19px;
    }
    /*-------------footer--------------------*/
    footer {
        background: #f1f1f1;
        width: 100%;
        padding: 30px 15px;
    }
    footer ul {
        width: 100%;
    }
    footer ul li {
        float: left;
        width: 50%;
        margin-bottom: 20px;
    }
    footer ul li h3 {
        margin-bottom: 15px;
    }
    footer ul li p {
        line-height: 200%;
    }
}