﻿.contact-box{
    width: 935px;
    max-width: 100%;
    margin: 50px auto;
    display:block; 
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    font-size: 0;
}
.contact-line-box{
    position: relative;
}
.contact-line{
    width: 1px;
    height: calc(100% - 45px);
    display: block;
    position: absolute;
    left: 0;
    top: 30px;
    background-color: #ccc;
}
.contact-top-box{
    box-sizing: border-box;
    padding-left: 25px;
    position: relative;
}
.contact-title-box{
    text-align: left;
    position: relative;
}
.contact-title-box:before{
    content: '';
    width: 9px;
    height: 9px;
    display: block;
    position: absolute;
    top: calc(50% - 3px);
    left: -29px;
    background-color: #d0011b;
}
.contact-title-ch{
    display: inline-block;
    font-size: 36px;
    color: #555;
    font-weight: lighter;
    letter-spacing: 1px;
}
.contact-title-ch span{
    color: #d0011b;
    font-weight: lighter;
    margin-left: 10px;
}
.contact-title-en{
    margin-left: 5px;
    display: inline-block;
    font-size: 16px;
    font-weight: lighter;
    color: #333;
    letter-spacing: 1px;
}
.contact-title-text{
    font-size: 14px;
    color: #888;
    display: block;
    font-weight: lighter;
    letter-spacing: 1px;
}
.contact-title-warning{
    font-size: 14px;
    color: #888;
    display: block;
    letter-spacing: 1px;
    line-height: 2;
}
.contact-title-warning span{
    color: #d0011b;
}
.contact-article-box{
    display: block;
    padding-left: 25px;
    padding-top: 50px;
    box-sizing: border-box;
}
.contact-form-list{
    display: block;
    position: relative;
    border-bottom: 1px solid #d1d1d1;
    margin-bottom: 75px;
    padding-bottom: 5px;
    box-sizing: border-box;
}
.contact-form-list:before{
    content: '';
    width: 9px;
    height: 9px;
    display: block;
    position: absolute;
    top: 10px;
    left: -29px;
    background-color: #d0011b;
}
.contact-form-list input{
    width: calc(100% - 125px);
    border: none;
    font-size: 16px;
    color: #888;
    display: inline-block;
    vertical-align: middle;
    letter-spacing: 1px;
    padding: 1px 10px;
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.contact-form-list>span{
    display: inline-block;
    font-size: 16px;
    vertical-align: middle;
    letter-spacing: 1px;
}





.contact-form-list-title{
    width: 85px;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
    color: #333;
    position: relative;
}
.contact-form-list-title span{
    color: #c71313;
    position: absolute;
    right: 0;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #888;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #888;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #888;
}
:-moz-placeholder { /* Firefox 18- */
  color: #888;
}
.contact-form-list-textarea{
    width: calc(100% - 125px);
    border: none;
    min-height: 150px;
    font-size: 16px;
    color: #888;
    display: inline-block;
    vertical-align: top;
    letter-spacing: 1px;
    padding: 3px 10px;
    resize: none;
    font-family: "微軟正黑體","Microsoft JhengHei";
    outline: none;
}
button{
  font-family: "微軟正黑體","Microsoft JhengHei";
}
.button button{
    border: none;
    border-bottom: 1px solid #d0011b;
    color: #d0011b;
    font-size: 24px;
    font-weight: bold;
    background-color: #fff;
    transform: skewX(-10deg);
    padding: 0;
    cursor: pointer;
    transition: all .3s linear;
}
.button{
    position: relative;
}
.button:before{
    content: '';
    width: 9px;
    height: 9px;
    display: block;
    position: absolute;
    top: calc(50% - 5px);
    left: -29px;
    background-color: #d0011b;
}

/*表單送出*/
.contact-thanks-box,
.alert-box{
  width: 100%;
  height: 100vh;
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
}
.contact-thanks-box.active,
.alert-box.active{
  -webkit-align-items: center;
          align-items: center;
    -webkit-justify-content: center;
          justify-content: center;
    display: -webkit-flex;
    display:         flex;
}
.contact-thanks,
.alert-info{
  background-color: #fff;
  position: relative;
  padding: 80px;
  border-radius: 5px;
  z-index: 6;
  border-top: 30px solid #d0011b; 
  border-bottom: 30px solid #d0011b; 
}
.alert-info-box{
  position: relative;
}
.contact-thanks-p{
  font-size: 26px;
  line-height: 1.6;
  letter-spacing: 2px;
  font-weight: bold;
  color: #555;
  display: block;
}
.contact-out,
.alert-out{
  width: 20px;
  height: 20px;
  max-width: 100%;
  display: block;
  position: absolute;
  border-radius: 50%;
  border: 1px solid #555;
  top: 4%;
  right: 4%;
  cursor: pointer;
}
.contact-out span,
.alert-out span{
  width: 15px;
  height: 1px;
  background-color: #555;
  display: block;
  margin: 0 auto;
  position: relative;
}
.alert-out{
  z-index: 6;
}
.contact-out span:nth-child(1),
.alert-out span:nth-child(1){
  top: 9px;
    left: 0.5px;
    transform: rotate(45deg);
}
.contact-out span:nth-child(2),
.alert-out span:nth-child(2){
    top: 8px;
    left: 0.5px;
    transform: rotate(-45deg);
}
.contact-thanks-mask,
.alert-mask{
  width: 100%;
  height: 100vh;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);
}
/*<------------------------hover---------------------->*/
.button button:hover{
    letter-spacing: 3px;
}

@media only screen and (max-width: 1100px){
    
}
@media only screen and (max-width: 950px){
  .contact-box{
    width: 95%;
  }
  .contact-line{
    display: none;
  }
  .contact-title-box:before,
  .contact-form-list:before,
  .button button:before{
    display: none;
  }
  .contact-article-box,
  .contact-top-box{
    padding-left: 0;
  }
}
@media only screen and (max-width: 700px){
  .contact-box{
    padding-top: 30px;
    padding-bottom: 40px;
  }
}
@media only screen and (max-width: 650px){
  .contact-form-list{
    margin-bottom: 30px;
  }
  .contact-article-box{
    padding-top: 10px;
  }
  .contact-title-ch{
    font-size: 32px;
  }
  .contact-title-text{
    font-size: 12px;
  }
  .contact-form-list-title,
  .contact-form-list input,
  .contact-form-list-textarea{
    font-size: 14px;
  }
  .contact-form-list-textarea{
    min-height: 100px;
  }
}
@media only screen and (max-width: 450px){
  .contact-form-list-title{
    width: 65px;
  }
  .contact-title-ch{
    font-size: 28px;
  }
  .contact-title-text{
    line-height: 1.6;
  }
  .contact-form-list-title,
  .contact-form-list input,
  .contact-form-list-textarea{
    font-size: 12px;
  }
  .contact-thanks, .alert-info{
    width: 95%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .contact-thanks-p{
    font-size: 20px;
  }
}



/*animation*/
/*<-------------動畫------------->*/

@keyframes contact_title_ch_all {
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes contact_title_en_all {
    0%{
        transform: translateX(200px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes contact_cube {
    0%{
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes contact_leftline_all {
    0%{
        height: 0;
    }
    to {

    }
}
@keyframes contact_title_text {
    0%{
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@media only screen and (min-width: 1001px){
    .contact-title-ch{
        animation: contact_title_ch_all .8s linear both;
    }
    .contact-title-en{
        animation: contact_title_en_all .8s linear .8s both;
    }
    .contact-title-text{
        animation: contact_title_text .8s linear 1s both;
    }
    .contact-title-warning{
        animation: contact_title_text .8s linear 1.3s both;
    }
    .contact-line{
        animation: contact_leftline_all 1s linear 1s both;
    }
    .contact-title-box:before{
        animation: contact_cube .8s linear 1s both;
    }
    .contact-form-list{
        animation: contact_title_text .8s linear 1.5s both;
    }
    .button{
        animation: contact_cube .8s linear 2.2s both;
    }
}