﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    font-size: 0;
}
.contact-all-box{
    width: 1300px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    padding-top: 45px;
    padding-bottom: 100px;
    min-height: calc(100vh - 990px);
}
.contact-title-all-box{
    width: initial;
    display: inline-block;
}
.contact-title-box{
    margin-bottom: 40px;
}
.contact-title-en{
    font-size: 48px;
    font-family: "Noto Sans TC";
    font-weight: 700;
    color: #000;
    letter-spacing: 4px;
    position: relative;
}
.contact-title-en:before{
    content: '-';
    font-size: 48px;
    font-family: "Noto Sans TC";
    font-weight: 700;
    color: #000;
    margin-right: 15px;
}
.contact-title-ch{
    text-align: right;
    font-size: 20px;
    font-family: "Noto Sans TC";
    color: #8e5c24;
    letter-spacing: 2px;
    margin-right: 3px;
}
.contact-info-form{
    width: 50%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding-right: 90px;
}
.contact-form-list{
    margin-bottom: 25px;
}
.contact-form-list-title{
    font-size: 16px;
    letter-spacing: 1px;
    color: #000;
    font-weight: lighter;
    margin-bottom: 5px;
}
.contact-form-list-title i{
    color: #555;
    margin-right: 10px;
}
.contact-form-text{
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    background-color: #fff;
    color: #888;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 0 15px;
}
.contact-form-list-textarea{
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    background-color: #fff;
    color: #888;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 13px 15px;
    outline: none;
    resize: none;
}
.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder{
    font-family: "微軟正黑體";
    color: #888;
    font-weight: lighter;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
    font-weight: lighter;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
    font-weight: lighter;
}

.contact-info-box{
    display: inline-block;
    vertical-align: top;
}
.contact-info-title{
    font-size: 18px;
    color: #000;
    letter-spacing: 2px;
    font-family: "Noto Sans TC";
    margin-bottom: 15px;
}
.contact-info-title i{
    color: #8e5c24;
    margin-right: 8px;
}
.contact-info-box p{
    font-size: 16px;
    color: #555;
    letter-spacing: 1px;
    line-height: 2;
}
.contact-b{
    font-weight: bold;
    color: #000;
}
.contact-nb{
    font-weight: 500;
    color: #000;
    font-family: "Roboto";
}
.contact-a-box{
    display: block;
    line-height: 2.4;
}
.contact-a-box{
    font-family: "Roboto";
    font-weight: 300;
    font-size: 14px;
    color: #8e5c24;
    display: block;
    vertical-align: middle;
    letter-spacing: 1px;
}
.contact-a-box i{
    margin-right: 8px;
    font-size: 16px;
    color: #555;
}
.contact-a-box a{
    transition: all .3s linear;
}
.contact-map-box{
    width: 100%;
    height: 460px;
    min-height: 460px;
    display: block;
}
.contact-map-box iframe{
    width: 100%;
    height: 100%;
    display: block;
}
/*--------contact共用-----------*/
.contact-radio-lable,
.contact-checkbox-lable{
    display: inline-block; 

}
.contact-radio-lable input,
.contact-checkbox-lable input{
    opacity: 0;
    position: absolute;
    pointer-events: none;
}
.contact-radio-lable span,
.contact-checkbox-lable span{
    position: relative;
    display: block;
    vertical-align: middle;
    letter-spacing: 2px;
    padding-left: 30px;
}

.contact-radio-lable span:before,
.contact-checkbox-lable span:before{
    content: 'none';
    font-size: 0;
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    left: 0;
    top: 4px;
    vertical-align: middle;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-right: 5px;
}

.contact-form-radio-list{
    margin-top: 10px;
}
.contact-form-list-title span{
    color: #c71313;
}
.button button {
    font-size: 16px;
    color: #555;
    letter-spacing: 1px;
    background-color: #eee;
    border: none;
    width: 160px;
    line-height: 46px;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: all .3s linear;
}
button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.contact-form-select{
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    display: block;
    letter-spacing: 1px;
    padding-left: 15px;
    color: #888;
    font-size: 14px;
    font-family: "微軟正黑體";
    font-weight: lighter;
    position: relative;
    background-color: #fff;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
}
.contact-form-select-box{
    position: relative;
}
.contact-form-select-box:after{
    content: 'none';
    font-size: 0;
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 5px solid transparent;
    border-top: 8px solid #888;
    border-left: 5px solid transparent;
    display: block;
    position: absolute;
    right: 18px;
    top: 17px;
    pointer-events: none;
}

.contact-checkbox-lable input:checked + span:before{
    background-image: url(../img/front/checked.png);
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
}
.contact-checkbox-lable input:checked + span:before{
    background-image: url(../img/front/checked.png);
    background-size: 70%;
}


/*表單送出*/
.contact-thanks-box{
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    display: none;
}
.contact-thanks-box.active{
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    display: -webkit-flex;
    display: flex;
}
.contact-thanks{
    max-width: 500px;
    min-width: 200px;
    width: 400px;
    padding: 40px 30px;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
}
.contact-thanks-p{
    font-size: 16px;
    color: #555;
    transform: scaleY(1.05);
    letter-spacing:  1px;
    line-height: 2;   
}
.contact-out{
    width: 21px;
    height: 21px;
    max-width: 100%;
    display: block;
    position: absolute;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    cursor: pointer;
}
.contact-out span{
    width: 15px;
    height: 1px;
    background-color: #888;
    display: block;
    margin: 0 auto;
    position: relative;
}
.contact-out span:nth-child(1){
    top: 10px;
    left: 0px;
    transform: rotate(45deg);
}
.contact-out span:nth-child(2){
    top: 9px;
    left: 0px;
    transform: rotate(-45deg);
}

/*----------------hover-------------------*/
.button button:hover{
    color: #fff;
    background-color: #8e5c24;
}
.contact-a-box a:hover{
    color: #000;
}
.contact-form-text:focus{
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.contact-form-list-textarea:focus{
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}







@media only screen and (max-width: 1300px){
    .contact-all-box{
        width: 1200px;
    }
    .contact-title-en,
    .contact-title-en:before{
        font-size: 44px;
    }
    .contact-title-ch{
        line-height: 50px;
    }
}
@media only screen and (max-width: 1200px){
    .contact-all-box{
        width: 1000px;
    }
    .contact-title-en,
    .contact-title-en:before {
        font-size: 40px;
    }
    .contact-title-ch{
        line-height: 46px;
    }
}
@media only screen and (max-width: 1000px){
    .contact-all-box{
        width: 750px;
        padding-bottom: 50px;
    }
    .contact-info-form{
        padding-right: 50px;
    }
    .contact-title-en,
    .contact-title-en:before {
        font-size: 36px;
    }
    .contact-title-ch{
        line-height: 40px;
    }
    .contact-title-box{
        margin-bottom: 30px;
    }
}
@media only screen and (max-width: 750px){
    .contact-all-box{
        width: 550px;
        padding-top: 25px;
    }
    .contact-info-form{
        width: 100%;
        padding-right: 0px;
    }
    .contact-info-box{
        width: 100%;
    }
    .contact-title-en,
    .contact-title-en:before {
        font-size: 32px;
    }
    .contact-title-ch{
        line-height: 18px;
        font-size: 14px;
    }
    .contact-info-form{
        margin-bottom: 20px;
    }
    .contact-title-box{
        margin-bottom: 20px;
    }
}
@media only screen and (max-width: 550px){
    .contact-all-box{
        width: 400px;
        padding-bottom: 30px;
    }
    .contact-title-en,
    .contact-title-en:before {
        font-size: 28px;
    }
    .contact-title-ch{
        font-size: 12px;
    }
    .contact-form-list{
        margin-bottom: 15px;
    }
    .contact-form-list-title{
        font-size: 14px;
    }
    .contact-form-text,
    .contact-form-select{
        height: 36px;
        font-size: 12px;
    }
    .contact-form-select-box:after{
        top: 15px;
    }
    .contact-form-list-textarea{
        height: 100px;
    }
    .button button{
        font-size: 14px;
        width: 100px;
    }
    .contact-info-form{
        margin-bottom: 15px;
    }
    .contact-info-title{
        font-size: 14px;
        margin-bottom: 5px;
    }
    .contact-info-box p{
        font-size: 14px;
    }
    .contact-a-box{
        font-size: 12px;
    }
}
@media only screen and (max-width: 480px){

    .contact-thanks, .alert-info{
        width: 95%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .contact-thanks-p{
        font-size: 20px;
    }
}
@media only screen and (max-width: 400px){
    .contact-all-box{
        width: 300px;
    }
    .contact-title-en,
    .contact-title-en:before {
        font-size: 24px;
    }
    .contact-map-box{
        height: 360px;
    }
}




@keyframes fadeInLeft_max {
    0%{
        left: -100px;
    }
    to {
        left: 0;
        opacity: 1;
    }
}
@media only screen and (min-width: 1001px){
    .contact-title-all-box,
    .contact-title-en:before,
    .contact-form-list,
    .button,
    .contact-info-title,
    .contact-map-box,
    .contact-info-box p,
    .contact-a-box{
        opacity: 0;
    }
    .contact-title-all-box.anima{
        animation: fadeInRight 1s ease 0s both;
    }
    .contact-title-all-box.anima .contact-title-en:before{
        position: relative;
        animation: fadeInLeft_max 1s ease .6s both;
    }
    .contact-form-list.anima,
    .button.anima{
        animation: fadeInUp 1s ease 0s both;
    }
    .contact-info-box.anima .contact-info-title{
        animation: fadeInDown 1s ease 0s both;
    }
    .contact-info-box.anima p:nth-child(2){
        animation: fadeInRight 1s ease 0s both;
    }
    .contact-info-box.anima p:nth-child(3){
        animation: fadeInRight 1s ease .1s both;
    }
    .contact-info-box.anima p:nth-child(4){
        animation: fadeInRight 1s ease .2s both;
    }
    .contact-info-box.anima p:nth-child(5){
        animation: fadeInRight 1s ease .3s both;
    }
    .contact-info-box.anima .contact-a-box:nth-child(5){
        animation: fadeInRight 1s ease .3s both;
    }
    .contact-info-box.anima .contact-a-box:nth-child(6){
        animation: fadeInRight 1s ease .4s both;
    }
    .contact-map-box.anima{
        animation: fade 1s ease .4s both;
    }
}
