﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    margin-top: 111px;
    min-height: calc(100vh - 111px);
    box-sizing: border-box;
    padding: 120px 0;
    margin-top: 180px;
    background-color: #f5f5f5;
}
.contact-all-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
}
.contact-title-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding-bottom: 120px;
}
.contact-title-box h2>p{
    font-family: 'roboto';
    font-weight: 700;
    font-size: 46px;
    color: #371268;
    letter-spacing: 0.4em;
    line-height: 32px;
}
.contact-title-box h2>span{
    font-family: 'Noto Sans TC';
    font-size: 18px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 24px;
    margin-top: 30px;
    display: block;
}
.contact-title-text{
    font-size: 16px;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 24px;
}

.contact-form-list{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    border-bottom: 1px solid #d1d1d1;
    padding: 25px 0;
}
.contact-form-list-title{
    width: 200px;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Noto Sans TC';
    font-size: 18px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 50px;
}
.contact-form-text{
    width: calc(100% - 200px);
    display: inline-block;
    vertical-align: middle;
    height: 50px;
    line-height: 50px;
    font-family: 'Noto Sans TC';
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    border: 1px solid #d1d1d1;
    box-sizing: border-box;
    padding: 0 10px;
    background-color: #fff;
}
.contact-form-list-textarea{
    width: calc(100% - 200px);
    display: inline-block;
    vertical-align: top;
    height: 250px;
    line-height: 2;
    font-family: 'Noto Sans TC';
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    border: 1px solid #d1d1d1;
    box-sizing: border-box;
    padding: 5px 10px;
    background-color: #fff;
    resize: none;
}

.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder{
    font-family: 'Noto Sans TC';
    color: #666;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: 'Noto Sans TC';
    color: #666;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: 'Noto Sans TC';
    color: #666;
}

button{
    font-family: 'Noto Sans TC',"微軟正黑體","Microsoft JhengHei";
}
.contact-button {
    text-align: center;
    margin-top: 80px;
}
.contact-button button{
    width: 260px;
    background-color: #371268;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    border: none;
    font-size: 24px;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 60px;
    cursor: pointer;
    transition: all .3s linear;
}

/*表單送出*/
.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);
}











@media only screen and (max-width: 1200px){
    .contact-all-box{
        width: 1000px;
    }
}
@media only screen and (max-width: 1000px){
    .contact-box{
        margin-top: 79px;
        min-height: calc(100vh - 79px);
        padding: 80px 0;
    }
    .contact-all-box{
        width: 750px;
    }
    .contact-title-box{
        padding-bottom: 80px;
    }
    .contact-title-box h2>p{
        font-size: 36px;
    }
}
@media only screen and (max-width: 768px){
    .contact-box{
        padding: 40px 0;
    }
    .contact-all-box{
        width: 95vw;
    }
    .contact-title-box{
        padding-bottom: 40px;
    }
    .contact-title-box h2>p{
        font-size: 28px;
        line-height: 26px;
        letter-spacing: 0.2em;
    }
    .contact-title-box h2>span{
        font-size: 16px;
        margin-top: 10px;
    }
    .contact-title-text{
        font-size: 14px;
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        padding: 20px 0;
        margin-top: 67px;
        min-height: calc(100vh - 67px);
    }
    .contact-all-box{
        width: 95vw;
    }
    .contact-title-box{
        padding-bottom: 20px;
    }
    .contact-title-box h2>p{
        font-size: 18px;
        line-height: 22px;
    }
    .contact-title-box h2>span{
        font-size: 14px;
        margin-top: 5px;
    }
    .contact-title-text{
        font-size: 12px;
        line-height: 18px;
    }
    .contact-form-list{
        padding: 10px 0;
    }
    .contact-form-list-title{
        width: 80px;
        font-size: 14px;
        line-height: 40px;
    }
    .contact-form-text {
        width: calc(100% - 80px);
        line-height: 40px;
        height: 40px;
        font-size: 14px;
    }
    .contact-form-list-textarea{
        height: 150px;
        width: calc(100% - 80px);
        line-height: 40px;
        font-size: 14px;
    }
    .button{
        margin-top: 20px;
    }
    .button button{
        width: 200px;
        line-height: 40px;
        font-size: 16px;
    }
}
@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;
    }
}





/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .contact-title-box h2>p{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .contact-title-box h2>span{
        animation: fade 1s ease .2s 1 both;
    }
    .contact-title-text{
        animation: fade 1s ease .4s 1 both;
    }
    .contact-form-list,
    .button{
        /* opacity: 0; */
    }
    .contact-form-list.anima,
    .button.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .contact-form-text:focus,
    .contact-form-list-textarea:focus{
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    }
    .button button:hover{
        background-color: #142d44;
    }
}
