﻿.contact-box{
    min-height: 100vh;
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    padding-top: 117px;
    overflow: hidden;
}
.contact-all-box{
    width: 1840px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding-top: 113px;
    padding-bottom: 60px;
}
.contact-title-box h2{
    font-size: 28px;
    color: #1b1b1b;
    letter-spacing: 0.4em;
    font-family: 'jf-openhuninn';
    display: inline-block;
    vertical-align: bottom;
}
.contact-title-box h4{
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    font-family: 'roboto';
    font-weight: 300;
    display: inline-block;
    vertical-align: bottom;
    margin-bottom: 3px;
}
.contact-info-left{
    width: calc(100% - 1000px);
    display: inline-block;
    vertical-align: top;
    margin-top: 30px;
    box-sizing: border-box;
    padding-right: 60px;
}
.contact-info-form{
    width: 1000px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    margin-top: 20px;
}


.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder{
    font-family: 'jf-openhuninn';
    color: #888;
    font-weight: 300;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: 'jf-openhuninn';
    color: #888;
    font-weight: 300;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: 'jf-openhuninn';
    color: #888;
    font-weight: 300;
}

.contact-form-list{
    box-sizing: border-box;
    border-bottom: 1px solid #000;
    margin-bottom: 35px;
    transition: all .3s linear;
}
.contact-form-list:nth-child(2),
.contact-form-list:nth-child(4){
    width: calc((100% - 40px) / 2);
    margin-right: 40px;
    display: inline-block;
    vertical-align: middle;
}
.contact-form-list:nth-child(3),
.contact-form-list:nth-child(5){
    width: calc((100% - 40px) / 2);
    display: inline-block;
    vertical-align: middle;
}
.contact-form-list-title{
    font-family: 'jf-openhuninn';
    color: #000;
    font-size: 20px;
    letter-spacing: 0.4em;
    line-height: 60px;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding-right: 40px;
    transition: all .3s linear;
}
.contact-form-text{
    width: 100%;
    font-family: 'jf-openhuninn';
    color: #666;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.1em;
    display: inline-block;
    vertical-align: middle;
    height: 60px;
    line-height: 60px;
    border: none;
    background-color: transparent;
}
.contact-form-list-textarea{
    font-family: 'jf-openhuninn';
    color: #666;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.1em;
    height: 160px;
    display: block;
    width: 100%;
    border: none;
    resize: none;
}
.contact-form-list-textarea-box{
    padding-top: 20px;
    margin-bottom: 80px;
}
.contact-form-list-textarea-box .contact-form-list-title{
    line-height: 30px;
    display: block;
    padding-right: 0;
}

.contact-form-select{
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    border: none;
    display: block;
    font-family: 'jf-openhuninn';
    color: #888;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.1em;
    position: relative;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
    padding-right: 40px;
    background-color: transparent;
}
.contact-form-select-box{
    width: calc(100% - 152px);
    position: relative;
    display: inline-block;
    vertical-align: middle;
    background-color: transparent;
}
.contact-form-select-box:after{
    content: 'none';
    font-size: 0;
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 5px solid transparent;
    border-top: 9px solid #000;
    border-left: 5px solid transparent;
    display: block;
    position: absolute;
    right: 10px;
    top: calc(50% - 4px);
    pointer-events: none;
}


.button{
    text-align: right;
    font-family: 'jf-openhuninn';
}
.button button{
    width: 240px;
    display: inline-block;
    position: relative;
    border: 1px solid #1b1b1b;
    font-size: 18px;
    letter-spacing: 0.2em;
    color: #000;
    background-color: #fff;
    line-height: 58px;
    padding: 0;
    padding-left: 0.2em;
    cursor: pointer;
    transition: all .3s linear;
}
.button button::before {
    content: '';
    width: 5px;
    height: 1px;
    background-color: #fff;
    position: absolute;
    right: 15px;
    top: -1px;
    transition: all .3s linear;
}
.button button::after {
    content: '';
    width: 1px;
    height: 5px;
    background-color: #fff;
    position: absolute;
    right: -1px;
    top: 20px;
    transition: all .3s linear;
}
button{
    font-family: "jf-openhuninn";
}

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

.contact-form-text[type="number"]::-webkit-inner-spin-button{
    display: none;
}



@media only screen and (max-width: 1840px){
    .contact-all-box{
        width: 95%;
    }
}
@media only screen and (max-width: 1600px){
    .contact-info-left {
        width: 500px
    }
    .contact-info-form{
        width: calc(100% - 500px);
    }
    .contact-form-list:nth-child(1),
    .contact-form-list:nth-child(2){
        width: calc(50% - 20px);
    }
}
@media only screen and (max-width: 1200px){
    .contact-info-left {
        width: 400px
    }
    .contact-info-form{
        width: calc(100% - 400px);
    }
    .contact-form-list:nth-child(1),
    .contact-form-list:nth-child(2){
        width: calc(50% - 20px);
    }
    .contact-info-left p{
        font-size: 16px;
    }
    .contact-form-list-title{
        padding-right: 20px;
    }
    .contact-form-text {
        width: calc(100% - 76px);
    }
    .contact-form-select-box {
        width: calc(100% - 132px);
    }
}
@media only screen and (max-width: 1000px){
    .contact-info-left {
        width: 100%;
        display: block;
    }
    .contact-info-form{
        width: 100%;
        display: block;
    }
    .contact-all-box{
        padding-top: 0;
        padding-bottom: 40px;
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        padding-top: 100px;
    }
    
    .contact-title-box h2{
        font-size: 18px;
        letter-spacing: 0.1em;
        padding-left: 0.1em;
    }
    .contact-title-box h4{
        font-size: 12px;
        margin-bottom: 0;
    }
    .contact-info-left{
        margin-top: 10px;
    }
    .contact-info-left p{
        font-size: 14px;
        line-height: 26px;
    }
    .contact-form-list-title{
        padding-right: 10px;
        line-height: 40px;
        letter-spacing: 0.1em;
        font-size: 16px;
    }
    .contact-form-list:nth-child(1),
    .contact-form-list:nth-child(3),
    .contact-form-list:nth-child(5){
        width: calc((100% - 10px) / 2);
        margin-right: 10px;
        display: inline-block;
        vertical-align: middle;
    }
    .contact-form-list:nth-child(2),
    .contact-form-list:nth-child(4),
    .contact-form-list:nth-child(6){
        width: calc((100% - 10px) / 2);
        display: inline-block;
        vertical-align: middle;
    }
    .contact-form-text{
        line-height: 40px;
        height: 40px;
        font-size: 12px;
    }
    .contact-form-select{
        height: 40px;
        font-size: 12px;
    }
    .contact-form-text {
        width: 100%;
    }
    .contact-form-select-box {
        width: 100%;
    }
    .contact-form-list{
        margin-bottom: 15px;
    }
    .contact-form-list-textarea-box{
        padding-top: 0;
    }
    .contact-form-list-textarea{
        font-size: 12px;
        height: 100px;
    }
    .button{
        text-align: center;
    }
    .button button{
        width: 160px;
        font-size: 14px;
        letter-spacing: 0.06em;
        line-height: 40px;
    }
    .button button::before{
        height: 2px;
        top: -2px;
    }
    .button button::after{
        width: 3px;
        right: -2px;
    }
}




@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,
    .contact-title-box h4,
    .contact-info-left p,
    .contact-info-form{
        opacity: 0;
    }
    .contact-info-left{
        animation: fade 1s ease 1s 1 both;
    }
    .contact-title-box.anima h2{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .contact-title-box.anima h4{
        animation: fade 1s ease .3s 1 both;
    }
    .contact-info-left.anima p{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .contact-info-form.anima{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .contact-form-list:hover {
        border-color: #64A600;
    }
    .contact-form-list:hover .contact-form-list-title{
        color: #64A600;
    }
    .button button:hover{
        border-color: #64A600;
        color: #64A600;
    }
    .button button:hover::before{
        right: 0;
        opacity: 0;
    }
    .button button:hover::after{
        top: 0;
        opacity: 0;
    }
}
