/*====================================
# 共同設定
==================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-size: 18px;
    line-height: 1.8;
    color: #212121;
    font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

:root {
    --main: #489b6e;
    --green: #68adde;
    --green2: #0f9099;
    --green3: #5cc066;
    --yellow: #e1ea87;
    --bg: #e9fef5;
}

::selection {
    color: #ffffff;
    background-color: #f48067;
}

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 {
    position: relative;
    display: inline-block;
    font-size: 2.7rem;
    margin: 1rem 0 3rem;
    color: #212121;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.3rem;
    z-index: 99;
}

.main-title::after {
    position: absolute;
    top: -42px;
    left: 0;
    content: "";
    width: 100%;
    display: block;
    height: 40px;
    background-image: url(../img/titleicon.svg);
    background-position: top;
    background-repeat: no-repeat;
    z-index: 0;
}

@media (max-width:576px) {
    .main-title {
        font-size: 2rem;
    }
}


.btn-main {
    position: relative;
    font-size: 20px;
    font-weight: 500;
    padding: 1rem 2rem;
    display: block;
    border-radius: 6em;
    transition: all .2s;
    color: #fff;
    background-color: #f37420;
    max-width: 300px;
    margin: 2rem auto;
    text-align: center;
    box-shadow: 0 4px 12px #35534350;

}

.btn-main:hover {
    letter-spacing: 3px;
    background-color: hsl(32, 98%, 62%);
    color: hsl(0, 0%, 100%);
    box-shadow: rgb(249 157 27) 0px 7px 29px 0px;
    text-decoration: none;
}

.btn-main:active {
    letter-spacing: 3px;
    background-color: hsl(32, 98%, 62%);
    color: hsl(0, 0%, 100%);
    box-shadow: rgb(249 157 27) 0px 0px 0px 0px;
    transform: translateY(10px);
    transition: 100ms;
}


.btn-back {
    display: inline-block;
    color: #666;
    transition: 0.2s;
    position: relative;
    margin-bottom: 30px;
    margin: 0 10px 30px;
}

.btn-back a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.btn-back:hover {
    color: #64c080;
    text-decoration: none;
}

/*  google的icon */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 600,
        'GRAD' 0,
        'opsz' 24;
    transform: translateY(5px);
}




/*====================================
# footer
==================================== */

footer {
    background-color: #212121;
    padding: 3rem 0;
    font-size: 16px;
    color: #EEEBDC;
}

footer .logo {
    padding-bottom: 20px;
}

footer a {
    color: #EEEBDC;
}

footer a:hover {
    color: #6dff91;
    text-decoration: none;
}


.footer-bottom {
    font-size: 15px;
    padding-top: 15px;
    border-top: 1px solid #EEEBDC;
}

.footer .logo {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    line-height: 30px;
    text-align: left;
    letter-spacing: 0.2rem;
}

.footer .logo small {
    font-size: 20px;
    letter-spacing: 0;
}

.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;
    }

    .footer .logo {
        font-size: 24px;
        justify-content: center;
    }

    .footer .logo small {
        font-size: 16px;
    }

    .link-area {
        font-size: 15px;
        padding: 0;
        margin-bottom: 1.2rem;
    }

    .f-right {
        margin-bottom: 20px;
    }
}

/* =======================================
# Page Top
========================================= */

/* 連結的形狀 */
#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #97acc8;
    border-radius: 20px 0 0 0;
    width: 60px;
    height: 60px;
    line-height: 60px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.6rem;
    transition: all 0.3s;
    opacity: 0.5;
}

#page-top a:hover {
    opacity: 0.85;
}


#page-top a::before {
    content: "";
    display: block;
    height: 15px;
    width: 15px;
    border: solid #ffffff;
    border-width: 3px 3px 0 0;
    transform: rotate(-45deg);
}



/* 位置右下跳出 */
#page-top {
    position: fixed;
    right: 0;
    bottom: 0;
    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);
    }
}

@media(max-width:576px) {
    #page-top {
        bottom: 52px;
    }
}


