/*====================================
# 共同設定
==================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-size: 18px;
    line-height: 1.8;
    color: #212121;
    font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

::selection {
    color: #004500;
    background-color: #A4AE9D;
}

section {
    padding: 4rem 1.5rem;
}

/*====================================
# 中英自動空格
==================================== */
html.han-la hanla:after {
    content: " ";
    display: inline;
    font-family: Arial;
    font-size: 0.8em;
}

html.han-la code hanla,
html.han-la pre hanla,
html.han-la kbd hanla,
html.han-la samp hanla {
    display: none;
}

html.han-la ol>hanla,
html.han-la ul>hanla {
    display: none;
}

/*====================================
# 共用樣式
==================================== */

.main-title {
    display: inline-block;
    position: relative;
    font-size: 2.6rem;
    margin: 3rem 0 4.5rem;
    color: #212121;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.3rem;
}

.main-title::before {
    position: absolute;
    content: "";
    bottom: -30px;
    left: -30px;
    z-index: -1;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    background: #d5f365;
}

.btn-main {
    position: relative;
    font-size: 20px;
    font-weight: 500;
    padding: 1rem 2rem;
    display: block;
    border-radius: 6em;
    transition: all .2s;
    border: none;
    color: #212121;
    background-color: #C9E377;
    max-width: 300px;
    margin: 2rem auto;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}

.btn-main:hover {
    color: #006320;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(50, 223, 142, 0.2);
}

.btn-main:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(50, 223, 142, 0.2);
}

.btn-main::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .4s;
}



/*====================================
# footer
==================================== */

footer {
    background-color: #41493B;
    padding: 3rem 0;
    font-size: 16px;
    color: #EEEBDC;
}

footer a {
    color: #EEEBDC;
}

footer a:hover {
    color: #9EFF6D;
    text-decoration: none;
}


.footer-bottom {
    font-size: 15px;
    padding-top: 15px;
    border-top: 1px solid #EEEBDC;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    padding-right: 10px;
    color: #ffffff;
}

.footer-logo small {
    font-size: 20px;
}

.foot-logo-img {
    vertical-align: text-bottom;
    padding-left: 10px;
}

.f-right {
    text-align: right;
}

.link-area a::after {
    content: "|";
    padding: 0 8px;
    color: #EEEBDC;
}

.link-area a:last-child:after {
    display: none;

}


@media(max-width:576px) {

    .footer,
    .f-right {
        text-align: center;
    }

    .link-area {
        font-size: 15px;
        padding: 0;
        margin-bottom: 1.2rem;
    }
}

/*====================================
# page-top
==================================== */

#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.6rem;
    transition: all 0.3s;
    background-color: #68CA3A;
    opacity: 0.7;
}

#page-top a:hover {
    opacity: 1;
}

/* 箭頭 */
#page-top a::before {
    content: "";
    display: block;
    border: 4px solid rgba(0, 0, 0, 0.25);
    height: 15px;
    width: 15px;
    border: 1px solid #ffffff;
    border-width: 2px 2px 0 0;
    transform: rotate(-45deg);
}

#page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    opacity: 0;
    transform: translateY(100px);
}

#page-top.UpMove {
    animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#page-top.DownMove {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(100px);
    }
}