﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 100px 0;
}
.contact-info-form{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding-top: 150px;
}
.contact-top-text{
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #666;
    display: block;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 100px;
}
.contact-form-list{
    width: 100%;
    display: block;
    position: relative;
    margin-bottom: 50px;
}
.contact-form-list-title{
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-size: 20px;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #000;
}
.contact-form-list-title span{
    color: #e60012;
}
.contact-text-mustFillOut{
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 20px;
    color: #666;
    position: absolute;
    top: 0;
    right: 0;
}
.contact-text-mustFillOut span{
    color: #e60012;
    margin-right: 5px;
}
.contact-form-text{
    width: 100%;
    display: block;
    margin-top: 15px;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    height: 50px;
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 20px;
    color: #333;
    padding: 0 25px;
    transition: all .3s linear;
}
.contact-form-list-textarea{
    width: 100%;
    display: block;
    margin-top: 15px;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    height: 200px;
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: #000;
    padding: 15px 25px;
    resize: none;
    transition: all .3s linear;
}
.contact-form-list-privacyPolicy-box{
    width: 100%;
    display: block;
    margin-top: 15px;
    padding: 15px 25px;
    padding-right: 10px;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    height: 420px;
}
.contact-form-list-privacyPolicy{
    width: 100%;
    height: 100%;
    display: block;
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-size: 14px;
    letter-spacing: 0.06em;
    line-height: 2;
    color: #000;
    overflow: auto;
    box-sizing: border-box;
    padding-right: 10px;
}
.contact-form-list-privacyPolicy>span{
    color: #666;
    display: block;
}
.contact-form-list-textarea::-webkit-scrollbar,
.contact-form-list-privacyPolicy::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.contact-form-list-textarea::-webkit-scrollbar-thumb,
.contact-form-list-privacyPolicy::-webkit-scrollbar-thumb {
    background:#000;
}
.contact-form-list-textarea::-webkit-scrollbar-track,
.contact-form-list-privacyPolicy::-webkit-scrollbar-track {
    border-radius: 0;
    background:rgba(0,0,0,0);
}

.contact-form-list-privacyPolicy-checkbox-box{
    display: inline-block;
    margin-top: 20px;
    position: relative;
    cursor: pointer;
}
.contact-form-list-privacyPolicy-checkbox{
    display: block;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.contact-form-list-privacyPolicy-checkbox-text{
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.06em;
    line-height: 20px;
    color: #000;
    box-sizing: border-box;
    padding-left: 35px;
    transition: all .3s linear;
}
.contact-form-list-privacyPolicy-checkbox-text::before{
    content: '';
    width: 20px;
    height: 20px;
    display: block;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
}


.contact-form-list-privacyPolicy-checkbox:checked + p:before{
    background-image: url(../img/front/original/checked.png);
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
}
.contact-form-list-privacyPolicy-checkbox:checked + p:before{
    background-image: url(../img/front/original/checked.png);
    background-size: 70%;
}

.button{
    box-sizing: border-box;
    padding-top: 20px;
}
button{
    font-family: "IBM Plex Sans","Noto Sans TC";
}
.button button{
    width: 100%;
    display: block;
    line-height: 50px;
    text-align: center;
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-size: 20px;
    letter-spacing: 0.06em;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    padding: 0;
    padding-left: 0.06em;
    background-color: #000;
    border: none;
    border-radius: 5px;
    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: 1000px){
    .contact-info-form{
        width: 750px;
        padding-top: 100px;
    }
}
@media only screen and (max-width: 768px){
    .contact-box{
        padding: 50px 0;
    }
    .contact-info-form{
        width: 550px;
        padding-top: 40px;
    }
    .contact-top-text{
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 40px;
    }
    .contact-form-list-title{
        font-size: 18px;
    }
    .contact-form-text{
        padding: 0 10px;
    }
    .contact-form-list-textarea{
        padding: 10px;
    }
    .contact-form-list-privacyPolicy-box{
        padding: 10px;
        height: 320px;
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        padding-top: 50px;
        padding-bottom: 20px;
    }
    .contact-info-form{
        width: calc(100% - 40px);
        padding-top: 20px;
    }
    .contact-top-text{
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 20px;
    }
    .contact-form-list-title{
        font-size: 16px;
    }
    .contact-form-text{
        margin-top: 5px;
        height: 30px;
        line-height: 30px;
        padding-top: 0 5px;
    }
    .contact-text-mustFillOut{
        font-size: 14px;
    }
    .contact-form-list{
        margin-bottom: 20px;
    }
    .contact-form-list-textarea{
        padding: 5px;
        font-size: 14px;
        height: 120px;
        margin-top: 5px;
    }
    .contact-form-list-privacyPolicy-box{
        padding: 5px;
        height: 160px;
        margin-top: 5px;
    }
    .contact-form-list-privacyPolicy{
        font-size: 12px;
        padding-right: 5px;
        line-height: 1.4;
    }
    .contact-form-list-privacyPolicy-checkbox-box{
        margin-top: 10px;
    }
    .contact-form-list-privacyPolicy-checkbox-text{
        padding-left: 20px;
        line-height: 15px;
    }
    .contact-form-list-privacyPolicy-checkbox-text::before{
        width: 15px;
        height: 15px;
    }
    .button button{
        font-size: 16px;
        line-height: 30px;
    }
}




@media only screen and (min-width: 769px){
    .contact-form-text:hover,
    .contact-form-list-textarea:hover{
        box-shadow: 0 0 5px rgba(0,0,0,0.35);
    }
    .contact-form-text:focus,
    .contact-form-list-textarea:focus{
        background-color: rgba(0,0,0,0.05);
    }
    .contact-form-list-privacyPolicy-checkbox-text:hover{
        color: #e60012;
    }
    .button button:hover{
        background-color: #e60012;
    }

    .contact-top-text,
    .contact-form-list,
    .button{
        opacity: 0;
    }
    .contact-top-text.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .contact-form-list.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .button.anima{
        animation: fade 1s ease 0s 1 both;
    }
}