﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 100px;
    background-color: #fafafa;
}
.contact-all-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.contact-top-box{
    box-sizing: border-box;
    padding: 200px 0;
}
.contact-top-text-box{
    width: calc(100% - 380px);
    display: inline-block;
    vertical-align: bottom;
}
.contact-top-text-title{
    font-family: "Noto Sans TC";
    font-weight: 300;
    color: #000;
    letter-spacing: 0.1em;
    line-height: 20px;
    font-size: 18px;
    width: 120px;
    display: block;
    box-sizing: border-box;
    padding-bottom: 20px;
    border-bottom: 3px solid #ffcd1e;
    margin-bottom: 20px;
}
.contact-top-text{
    font-family: "Noto Sans TC";
    color: #000;
    letter-spacing: 0.1em;
    line-height: 1;
    font-size: 24px;
}
.contact-top-url-box{
    width: 380px;
    display: inline-block;
    vertical-align: bottom;
}
.contact-top-url{
    width: 80px;
    height: 80px;
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 17px rgba(0, 0, 0, 0.1);
    transition: all .3s linear;
}
.contact-top-url-facebook,
.contact-top-url-skype{
    font-size: 40px;
    line-height: 80px;
    text-align: center;
}
.contact-top-url-facebook{
    margin: 0 70px;
}
.contact-top-url-facebook>i{
    color: #166fe5;
}
.contact-top-url-skype>i{
    color: #0078d7;
}
.contact-info-box{
    text-align: center;
}
.contact-info-tel{
    font-family: "Noto Sans TC";
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.06em;
    color: #000;
    transition: all .3s linear;
}
.contact-info-mail{
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: #666;
    line-height: 40px;
    transition: all .3s linear;
}
.contact-info-mail>i{
    font-size: 30px;
    vertical-align: middle;
    margin-right: 20px;
    transition: all .3s linear;
}
.contact-info{
    margin-top: 40px;
}
.contact-info a{
    display: inline-block;
    vertical-align: middle;
}
.contact-info-text{
    font-family: "Noto Sans TC";
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: #000;
    margin-top: 10px;
    line-height: 40px;
    transition: all .3s linear;
}
.contact-info-icon{
    font-size: 30px;
    color: #ffcd1e;
    transition: all .3s linear;
}
.contact-map-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    border-top: 3px solid #ffcd1e;
    margin-top: 30px;
}
.contact-map{
    width: 100%;
    height: calc((600 / 1920) * 100vw);
    display: block;
}



@media only screen and (max-width: 1000px){
    .contact-all-box{
        width: 750px;
    }
    
}
@media only screen and (max-width: 768px){
    .contact-box{
        padding-top: 60px;
    }
    .contact-all-box{
        width: 550px;
    }
    .contact-top-box{
        padding: 100px 0;
    }
    .contact-top-text-box {
        width: calc(100% - 300px);
        box-sizing: border-box;
        padding-right: 20px;
    }
    .contact-top-url-box {
        width: 300px;
    }
    .contact-top-url-facebook {
        margin: 0 30px;
    }
}
@media only screen and (max-width: 550px){
    .contact-all-box{
        width: calc(100vw - 40px);
    }
    .contact-map{
        width: 100%;
        height: calc((300 / 550) * 100vw);
        display: block;
    }
    .contact-top-box{
        padding: calc((100vh - ((300 / 550) * 100vw) - 60px - 150px - 140px) / 2) 0;
    }
    @media only screen and (max-height: 550px){
        .contact-top-box{
            padding: 40px 0;
        }
    }
    .contact-top-text-box {
        width: 100%;
        padding-right: 0;
    }
    .contact-top-text-title{
        font-size: 16px;
        line-height: 18px;
        padding-bottom: 10px;
        margin: 0 auto;
        margin-bottom: 20px;
        text-align: center;
    }
    .contact-top-text{
        font-size: 18px;
        text-align: center;
    }
    .contact-top-url-box {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    .contact-top-url{
        width: 60px;
        height: 60px;
    }
    .contact-top-url-line{
        text-align: left;
    }
    .contact-top-url-facebook,
    .contact-top-url-skype{
        line-height: 60px;
    }
    .contact-top-url-facebook{
        margin: 0 10px;
    }
    .contact-info-tel{
        font-size: 22px;
    }
    .contact-info-mail>i{
        font-size: 22px;
        margin-right: 10px;
    }
    .contact-info-mail{
        font-size: 14px;
        line-height: 30px;
    }
    .contact-info{
        margin-top: 10px;
    }
    .contact-info-text{
        font-size: 16px;
        line-height: 30px;
        margin-top: 0;
    }
    .contact-info-icon{
        font-size: 20px;
    }
}


@media only screen and (min-width: 769px){
    .contact-top-text-box,
    .contact-top-url-box,
    .contact-info-box,
    .contact-map-box{
        opacity: 0;
    }
    .contact-top-text-box.anima{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .contact-top-url-box.anima{
        animation: fade 1s ease 0.6s 1 both;
    }
    .contact-info-box.anima{
        animation: fadeInUp 1s ease 1s 1 both;
    }
    .contact-map-box.anima{
        animation: fade 1s ease 0s 1 both;
    }

    .contact-info-tel:hover,
    .contact-info-mail:hover,
    .contact-info-mail:hover i,
    .contact-info a:hover .contact-info-text{
        color: #ffcd1e;
    }
    .contact-info a:hover .contact-info-icon{
        color: #000;
    }
    .contact-top-url:hover{
        background-color: #ffcd1e;
    }
}