/*********** 前後台編輯器區塊共用的CSS設定 ***********/
img {
    max-width: 100%;
    max-height: 100%;
    height: auto !important;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}
.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
}
/* start commented backslash hack \*/
* html .clearfix { 
    height: 1%;
}
.clearfix {
    display: block;
}
.col {
    box-sizing: border-box;
}
.content.about {
    max-width: 1280px;
    margin: 0 5%;
    padding: 60px 65px 0;
    position: relative;
}
.content.in{
    position: relative;
    min-height: 300px;
    background: #fff;
    box-sizing: border-box;
}
.banner.in{
    margin-bottom: -8%;
}
/* ----------- about ----------- */
.a_layout {
    position: relative;
    box-sizing: border-box;
}
.a_layout .a_col {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}
.a_layout .a_col .a_txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}
.a_layout h4{
    position: relative;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1.2;
    margin: 15px 0 0;
    text-shadow: 7px 7px 20px rgba(0,0,0,0.41);
}
.a_layout span{
    position: relative;
    font-size: 35px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
    line-height: 1.2;
    font-family: 'Poppins',serif;
    text-shadow: 7px 7px 20px rgba(0,0,0,0.41);
}
.a_layout .a_col:last-of-type {
    position: relative;
    background: #fff;
    border: 1px solid #ECECEC;
    padding: 50px;
    margin: -100px auto 0;
    max-width: 1280px;
}
.a_layout h3{
    position: relative;
    font-size: 40px;
    font-weight: 600;
    color: #101D3D;
    letter-spacing: 0.2px;
    line-height: 1.2;
    font-family: 'Poppins',serif;
    margin: 0 0 30px;
    text-align: center;
}
.a_layout p{
    position: relative;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.8;
    text-align: center;
}
@media screen and (max-width: 1280px) {
    .a_layout .a_col:last-of-type {
        width: 90%;
    }
}
@media screen and (max-width: 1000px) {
    .a_layout .a_col:last-of-type {
        margin: 0 auto;
        width: 100%;
        padding: 25px;
    }
    .a_layout h3{
        font-size: 30px;
        margin: 0 0 20px;
    }
    .a_layout span {
        position: relative;
        font-size: 25px;
    }
    .a_layout h4 {
        font-size: 16px;
        margin: 5px 0 0;
    }
    .a_layout p{
        font-size: 15px;
    }
}
@media screen and (max-width: 480px) {
    .a_layout span {
        font-size: 22px;
    }
    .a_layout h4 {
        font-size: 15px;
    }
}
@media screen and (max-width: 360px) {
    .a_layout span {
        font-size: 16px;
    }
    .a_layout h4 {
        font-size: 12px;
    }
}
/* ----------- service ----------- */
.s_layout{
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0 0;
}
.s_layout .s_box{
    position: relative;
    box-sizing: border-box;
    width: calc(100% / 4);

}
.s_layout .s_box .s_top {
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 152px;
    height: 148px;
}
.s_layout .s_box .s_top:before {
    content: '';
    position: absolute; 
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: url(../../images/common/index/s_border.svg) no-repeat;
}
.s_layout .s_box .s_top::after{
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    transition: all .5s ease-out;
    top: 57px;
    left: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #D3E5F1;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}
.s_layout .s_box:hover .s_top::after {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
.s_layout .s_box .s_top .s_txt {
    position: absolute;
    top: 51%;
    left: calc(50% + 40px);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    white-space: nowrap;
}
.s_layout .s_box .s_top .s_txt h3{
    position: relative;
    font-size: 21px;
    font-weight: 500;
    color: #333333;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin: 0;
}
.s_layout .s_box .s_top .s_txt span{
    position: relative;
    font-size: 15px;
    font-weight: 300;
    color: #A3A3A3;
    letter-spacing: 1.5px;
    line-height: 1.2;
    font-family: 'Poppins',serif;
}
.s_layout .s_box .s_top .s_txt em{
    font-size: 28px;
    font-weight: 600;
    color: #257FB8;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-family: 'Poppins',serif;
    font-style: unset;
    position: absolute;
    top: -33px;
    left: -95px;
}
.s_layout .s_box .s_bottom {
    position: relative;
    margin: 15px 0 0;
    padding: 0 0 0 45px;
    list-style: none;
}
.s_layout .s_box .s_bottom li{
    position: relative;
    color: #777777;
    font-size: 18px;
    letter-spacing: 1.5px;
}
.s_layout .s_box .s_bottom li+li{
    margin: 5px 0 0;
}
.s_layout .s_box .s_bottom li::before{
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #257FB8;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
}
.s_layout .s_box .s_bottom li::after{
    content: '';
    border: 1px solid #fff;
    border-width: 1px 1px 0 0;
    width: 5px;
    height: 5px;
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    left: -20px;
    top: 13px;
}
@media screen and (max-width: 1280px) {
    .s_layout .s_box .s_top .s_txt h3 {
        font-size: 17px;
    }
    .s_layout .s_box .s_bottom li {
        font-size: 16px;
    }
    .s_layout .s_box .s_top .s_txt span {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    .s_layout .s_box .s_bottom {
        padding: 0 0 0 30px;
    }
    .s_layout .s_box .s_top .s_txt em {
        top: -36px;
    }
}
@media screen and (max-width: 1000px){
    .s_layout .s_box {
        width: calc(100% / 2);
        padding: 0 0 30px;
    }
    .s_layout {
        margin: 0 auto;
        flex-wrap: wrap;
        max-width: 550px;
    }
}
@media screen and (max-width: 767px){
    .s_layout .s_box .s_top .s_txt {
        position: relative;
        top: unset;
        left: unset;
        -webkit-transform: unset;
        -ms-transform: unset;
        transform: unset;
        white-space: unset;
    }
    .s_layout .s_box .s_top {
        position: relative;
        box-sizing: border-box;
        display: block;
        justify-content: unset;
        align-items: unset;
        width: 100%;
        height: 100%;
        text-align: center;
    }
    .s_layout .s_box .s_top:before{
        display: none;
    }
    .s_layout .s_box .s_top .s_txt em {
        top: -145px;
        left: calc(50% - 55px);
    }
    .s_pic{
        border: 5px solid #205289;
        width: 120px;
        height: 120px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 20px;
    }
    .s_layout .s_box .s_top::after {
        top: 35%;
        left: 50%;
        margin-top: -25px;
        margin-left: -25px;
    }
    .s_layout .s_box .s_bottom {
        padding: 0 0 0 30px;
        margin: 0 auto 0;
        max-width: 200px;
    }
}
@media screen and (max-width: 500px){
    .s_layout .s_box {
        width: 100%;
    }
    .s_layout .s_box {
        padding: 0 0 50px;
    }
}
/* content-sc_layout */
.sc_layout {
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1280px;
}
.sc_layout .sc_top{
    position: relative;
    box-sizing: border-box;
}
.sc_layout .ac_txt{
    position: absolute;
    bottom: 5%;
    left: 10%;
    text-align: left;
    width: 100%;
}
.sc_layout h2{
    position: relative;
    font-size: 45px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
    line-height: 1.2;
    font-family: 'Poppins',serif;
    text-shadow: 7px 7px 20px rgb(0 0 0 / 41%);
}
.sc_layout .s_layout {
    margin: 50px 20px 0;
}
.sc_layout .s_layout .s_box .s_bottom li::after {
    left: -20px;
    top: 11px;
}
@media screen and (max-width: 1000px){
    .sc_layout .ac_txt {
        position: relative;
        bottom: unset;
        left: unset;
        text-align: left;
        width: 100%;
        margin: 30px 0 0;
    }
    .sc_layout h2 {
        position: relative;
        font-size: 30px;
        font-weight: 600;
        color: #101D3D;
        letter-spacing: 0.2px;
        line-height: 1.2;
        font-family: 'Poppins',serif;
        margin: 0 0 20px;
        text-align: center;
        text-shadow: none;
    }
    .sc_layout .s_layout {
        margin: 0 auto;
    }
}
/* ----------- contact ----------- */
.contact-editor .row {
    margin: 0 -2%;
}
.contact-editor .col {
    float: left;
    padding: 0 2%;
}
.contact-editor .col1 {
    width: 44%;
}
.contact-editor .col2 {
    width: 56%;
    color: #111;
}
.contact-map {
    box-shadow: 0 0 4px 0 rgba(0,0,0,0.25);
    border: 8px solid #fff;
}
.contact-map iframe {
    display: block;
    max-height: 100%;
}
.contact-info-list {
    color: #666;
    font-size: 14px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-family: 'Poppins','微軟正黑體',sans-serif;
}
.contact-info-list li {
    position: relative;
    padding: 2px 0 2px 40px;
    margin: 8px 0;
    line-height: 25px;
}
.contact-info-list li:before {
    content: '';
    display: inline-block;
    background: url('../../images/common/contact/info_ic.png') no-repeat;
    width: 25px;
    height: 25px;
    position: absolute;
    left: 0;
    top: 0;
}
.contact-info-list li.tel:before  {
    background-position: 0 0;
}
.contact-info-list li.mail:before {
    background-position: 0 50%;
}
.contact-info-list li.addr:before {
    background-position: 0 100%;
}
.contact-info-list a:hover {
    text-decoration: underline;
}
/*****************************/
.main-content.terms{
    position: relative;
    margin: 80px 0;
}
.has-side .content.terms {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
}
.editor.terms-page{
    position: relative;
}
.editor.terms-page .terms-title{
    color: #257FB8;
    font-size: 18px;
    font-weight: 500;
    margin: 15px 0 5px;
}
@media screen and (max-width: 1280px) {}
@media screen and (max-width: 1000px) {
    .editor.terms-page .terms-title {
        font-size: 16px;
    }    
}
@media screen and (max-width: 767px) {
    .products-editor-pic {
        float: none;
        width: auto;
        text-align: center;
    }
    .contact-editor {
        padding: 0 2%;
    }
    .contact-editor .col {
        width: 100%;
        padding: 0;
    }
    .contact-map {
        margin-bottom: 1.8em;
    }
    .content.in {
        padding: 40px 0 0;
    }
    .banner.in,
    .content.in {
        margin: 0;
    }
    .has-side .content.terms,
    .main-content.terms {
        padding-top: 0;
    }
}
@media screen and (max-width: 600px) {
    .contact-map {
        height: 200px;
    }
}