﻿footer{
    width: 100%;
    display: block;
    background-color: #fafafa;
}
#index footer{
    background-color: #fff;
}
.footer-box{
    box-sizing: border-box;
    padding-top: 130px;
    padding-bottom: 180px;
}
.footer-logo{
    width: 250px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.footer-info-box{
    width: 100%;
    display: block;
    text-align: center;
    font-size: 0;
    margin-top: 40px;
}
.footer-info{
    display: inline-block;
    vertical-align: top;
    margin: 0 25px;
    position: relative;
}
.footer-info-icon{
    font-size: 30px;
    color: #000;
    line-height: 1;
    transition: all .3s linear;
}
.footer-info-text-box{
    position: absolute;
    top: calc(100% + 30px);
    left: calc(50% - 160px);
    width: 320px;
    text-align: center;
    box-sizing: border-box;
    border: 5px solid #234a35;
    border-radius: 10px;
    padding: 25px 10px;
    z-index: 1;
    background-color: #fff;
    opacity: 0;
    transition: all .3s linear;
}
.footer-info-text-box::before{
    content: '';
    width: 0;
    height: 0;
    border-bottom: 14px solid #234a35;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    position: absolute;
    top: -19px;
    left: calc(50% - 8px);
}
.footer-info-text-box p{
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 20px;
}
.footer-web{
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #eee;
    padding: 10px;
    background-color: #fff;
    text-align: center;
    font-family: "Roboto";
    font-weight: 300;
    font-size: 14px;
    color: #888;
    letter-spacing: 0.06em;
    line-height: 20px;
}
.footer-web *{
    font-weight: 300;
}
.footer-goTop{
    position: fixed;
    bottom: 80px;
    right: 40px;
    display: block;
    text-align: center;
    z-index: 9;
    box-sizing: border-box;
    padding: 5px;
    background-color: #fafafa;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
    transition: all .3s linear;
}
#index .footer-goTop{
    background-color: #fff;
}
.footer-goTop p{
    font-family: "Roboto";
    font-weight: 700;
    font-size: 14px;
    color: #173124;
    letter-spacing: 0.06em;
    line-height: 22px;
    transition: all .3s linear;
}
.footer-goTop span{
    width: 0;
    height: 0;
    display: inline-block;
    border-bottom: 12px solid #173124;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    transition: all .3s linear;
}


@media only screen and (max-width: 768px){
    .footer-box{
        padding: 60px 0;
    }
    .footer-goTop,
    .footer-info-text-box{
        display: none;
    }
    .footer-info-box{
        margin-top: 20px;
    }
    .footer-web span{
        display: block
    }
}
@media only screen and (max-width: 550px){
    .footer-box {
        padding: 20px 0;
    }
    .footer-logo{
        width: 150px;
    }
    .footer-info-box{
        margin-top: 10px;
    }
    .footer-info{
        margin: 0 10px;
    }
    .footer-info-icon{
        font-size: 24px;
    }
    .footer-web{
        font-size: 12px;
        letter-spacing: 0.01em;
        line-height: 1;
    }
}

@media only screen and (min-width: 769px){
    .footer-info-icon:hover{
        color: #234a35;
    }
    .footer-info-icon:hover + .footer-info-text-box{
        opacity: 1;
    }
    #index .footer-goTop:hover,
    .footer-goTop:hover{
        background-color: #234a35;
        color: #fff;
    }
    .footer-goTop:hover p{
        color: #fff;
    }
    .footer-goTop:hover span{
        border-bottom-color: #fff;
    }
}