﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
    box-sizing: border-box;
    padding-bottom: 80px;
    min-height: 100vh;
}
.contact-all-box{
    width: 1300px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
    margin-top: 100px;
}
.contact-en{
    font-size: 120px;
    line-height: 90px;
    color: #000;
    opacity: 0.035;
    letter-spacing: 0.1em;
    font-family: "roboto";
    position: absolute;
    left: 0;
    top: 0;
    writing-mode: vertical-rl;
}
.contact-info-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
}
.contact-info-form{
    width: 600px;
    max-width: 100%;
    display: block;
}
.contact-title-box{
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    color: #005888;
    font-family: 'Noto Serif TC';
    font-weight: 700;
}
.contact-title-box::first-letter{
    color: #e60012;
}
.contact-text{
    font-size: 16px;
    display: block;
    line-height: 36px;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    color: #666;
    margin: 20px 0;
}
.contact-text span{
    color: #005888;
    font-weight: 700;
}
.contact-text-p{
    color: #e60012;
    font-size: 14px;
    display: block;
    line-height: 1;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
}
.contact-form-list{
    width: 100%;
    display: block;
    margin-top: 40px;
}
.contact-form-list-title{
    font-size: 18px;
    display: block;
    line-height: 36px;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans TC';
    color: #000;
}
.contact-form-list-title span{
    color: #e60012;
}
.contact-form-text{
    width: 100%;
    height: 50px;
    line-height: 50px;
    display: block;
    box-sizing: border-box;
    padding: 0 10px;
    border: none;
    background-color: #f5f5f5;
    margin-top: 10px;
    font-size: 16px;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    color: #333;
}
.contact-form-list-textarea{
    width: 100%;
    height: 200px;
    line-height: 1.6;
    display: block;
    box-sizing: border-box;
    padding: 5px 10px;
    border: none;
    background-color: #f5f5f5;
    margin-top: 10px;
    font-size: 16px;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    color: #333;
    resize: none;
}

button{
    font-family: "微軟正黑體","Microsoft JhengHei","Noto Sans TC";
}
.button{
    margin: 0;
    padding: 0;
    outline: 0;
    vertical-align: baseline;
    background: transparent;
    font-weight: normal;
    margin-top: 50px;
}
.button button{
    width: 300px;
    display: block;
    margin: 0 auto;
    line-height: 48px;
    text-align: center;
    background-color: #005888;
    box-sizing: border-box;
    border: 1px solid #000;
    font-size: 18px;
    padding-left: 0.1em;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans TC';
    color: #fff;
    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: 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: 1300px){
    .contact-all-box{
        width: 1200px;
    }
    .contact-info-box{
        width: 900px;
    }
}
@media only screen and (max-width: 1200px){
    .contact-box{
        margin-top: 80px;
    }
    .contact-all-box{
        width: 1000px;
    }
    .contact-info-box{
        width: 700px;
    }
}
@media only screen and (max-width: 1000px){
    .contact-box{
        padding-bottom: 60px;
    }
    .contact-all-box{
        width: 750px;
    }
    .contact-info-box{
        width: 100%;
    }
    .contact-en{
        display: none;
    }
    .contact-title-box{
        font-size: 28px;
    }
    .contact-text{
        font-size: 14px;
        line-height: 30px;
    }
}
@media only screen and (max-width: 768px){
    .contact-box{
        padding-bottom: 40px;
    }
    .contact-all-box{
        width: 550px;
        margin-top: 40px;
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        margin-top: 50px;
        padding-bottom: 20px;
    }
    .contact-all-box{
        width: 95vw;
        margin-top: 20px;
    }
    .contact-title-box{
        font-size: 18px;
    }
    .contact-text{
        margin: 10px 0;
        font-size: 12px;
        line-height: 20px;
    }
    .contact-text-p{
        font-size: 12px;
    }
    .contact-form-list{
        margin-top: 20px;
    }
    .contact-form-list-title{
        font-size: 14px;
        line-height: 30px;
    }
    .contact-form-text{
        height: 34px;
        line-height: 34px;
        margin-top: 0;
        font-size: 14px;
    }
    .contact-form-list-textarea{
        height: 100px;
        margin-top: 0;
        font-size: 14px;
    }
    .button{
        margin-top: 30px;
    }
    .button button{
        width: 200px;
        line-height: 38px;
        font-size: 14px;
    }
}



@-webkit-keyframes introductionInLeft {
    from {
        opacity: 0;
        -webkit-transform: translate3d(-10%, 0%, 0);
        transform: translate3d(-10%, 0%, 0);
    }

    to {
        opacity: 0.035;
        -webkit-transform: none;
        transform: none;
    }
}
    
@keyframes introductionInLeft {
    from {
        opacity: 0;
        -webkit-transform: translate3d(-10%, 0, 0);
        transform: translate3d(-10%, 0, 0);
    }

    to {
        opacity: 0.035;
        -webkit-transform: none;
        transform: none;
    }
}
@media only screen and (min-width: 1001px){
    .contact-title-box,
    .contact-text,
    .contact-text-p,
    .contact-en,
    .contact-form-list-title,
    .contact-form-text,
    .contact-form-list-textarea,
    .button button{
        opacity: 0;
    }
    .contact-title-box.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .contact-en.anima{
        animation: introductionInLeft 1s ease 0s 1 both;
    }
    .contact-text.anima{
        animation: fadeInUp 1s ease .2s 1 both;
    }
    .contact-text-p.anima{
        animation: fade 1s ease .5s 1 both;
    }
    .contact-form-list.anima .contact-form-list-title{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .contact-form-list.anima .contact-form-text{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .contact-form-list.anima .contact-form-list-textarea{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .button.anima button{
        animation: fadeInUp 1s ease 0s 1 both;
    }


    .button button:hover{
        background-color: #e60012;
        border-color: #e60012;
    }
}