﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 110px;
}
.contact-info-form{
    width: 900px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 100px;
}
.contact-form-list{
    width: 100%;
    display: flex;
    display: -webkit-flex;
    align-items: flex-start;
    -webkit-align-items: flex-start;
    justify-content: flex-start;
    -webkit-justify-content: flex-start;
    flex-direction: row-reverse;
    margin-top: 50px;
}
.contact-form-list:first-child{
    margin-top: 0;
}
.contact-form-list-title{
    width: 200px;
    display: block;
    text-align: center;
    box-sizing: border-box;
    border-left: 1px solid #ddd;
    line-height: 50px;
    font-size: 18px;
    font-family: "Noto Serif TC";
    color: #000;
    letter-spacing: 0.06em;
    transition: all .3s linear;
}
.contact-form-text{
    width: calc(100% - 200px);
    border: 1px solid #ddd;
    box-sizing: border-box;
    padding: 0 20px;
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #000;
    line-height: 50px;
    height: 50px;
}
.contact-form-list-textarea{
    width: calc(100% - 200px);
    border: 1px solid #ddd;
    box-sizing: border-box;
    padding: 15px 20px;
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #000;
    line-height: 20px;
    height: 200px;
    resize: none;
}
.button{
    margin: 0;
    padding: 0;
    outline: 0;
    font-weight: 400;
    vertical-align: baseline;
    background: transparent;
    margin-top: 80px;
}
button{
    font-family: "Noto Serif TC";
}
.button button{
    width: 300px;
    margin-left: auto;
    font-weight: 700;
    font-size: 22px;
    line-height: 80px;
    letter-spacing: 0.06em;
    color: #fff;
    box-sizing: border-box;
    padding: 0 35px;
    border: none;
    background-color: #78161b;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    flex-direction: row;
    cursor: pointer;
    transition: all .3s linear;
}
.button button>p{
    font-weight: 700;
}
.button button>span{
    font-weight: 700;
    font-size: 30px;
}
.contact-map-box{
    width: 100%;
    height: calc((650 / 1920) * 100vw);
    display: block;
    margin-top: 100px;
}

/*表單送出*/
.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: 1000px){
    .contact-info-form{
        width: 750px;
    }
}
@media only screen and (max-width: 768px){
    .contact-info-form{
        width: 550px;
        padding-bottom: 40px;
    }
    .contact-form-list-title{
        width: 150px;
    }
    .contact-form-text {
        width: calc(100% - 150px);
    }
    .contact-form-list-textarea {
        width: calc(100% - 150px);
    }
    .contact-map-box{
        margin-top: 40px;
    }
}
@media only screen and (max-width: 550px){
    .contact-info-form{
        width: calc(100vw - 40px);
        padding-bottom: 20px;
    }
    .contact-form-list{
        flex-direction: column-reverse;
        margin-top: 10px;
    }
    .contact-form-list-title{
        width: 100%;
        display: block;
        border-left: none;
        text-align: left;
        font-size: 16px;
        line-height: 30px;
    }
    .contact-form-text{
        width: 100%;
        display: block;
        padding: 0 10px;
        line-height: 40px;
        height: 40px;
    }
    .contact-form-list-textarea{
        width: 100%;
        padding: 10px 10px;
        height: 120px;
    }
    .button button{
        width: 150px;
        line-height: 40px;
        padding: 0 15px;
        font-size: 18px;
    }
    .button {
        margin-top: 40px;
    }
    .button button>span{
        font-size: 22px;
    }
    .contact-map-box{
        margin-top: 20px;
        height: calc((400 / 550) * 100vw);
    }
}


@media only screen and (min-width: 769px){
    .contact-form-text:focus,
    .contact-form-list-textarea:focus{
        border-color: #78161b;
    }
    .contact-form-text:focus + .contact-form-list-title,
    .contact-form-list-textarea:focus + .contact-form-list-title{
        color: #78161b;
        border-left-color: #78161b;
    }
    .button button:hover{
        background-color: #520f12;
        box-shadow: 0 0 10px rgba(0,0,0,.35);
    }

    .contact-form-list,
    .button button,
    .contact-map-box{
        opacity: 0;
    }
    .contact-form-list.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .button button.anima{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .contact-map-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
}