/* 所有檔案共通 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap');
:root{
    --color_green: #e6ebe9;
    --color_gray: #61616D;
    --color_yellow: #f3b55a;
    --color_brightyellow: #fcefcf;
    --color_greengray: #747d78;
    --color_pink: #fae9ea;
}
::selection{
    background-color:var(--color_brightyellow);
  }
html {
    font-size: 15px;
    scroll-behavior: smooth;
}
body{
    color: var(--color_gray);
    font-family: "Noto Sans TC" , serif;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, nav, ul, th{
    font-family: 'Noto Serif TC', serif;
}
@font-face{
    font-family: custom-sans-serif;
    src: local(Helvetica), local(Segoe UI);
    unicode-range: U+00-024F;
}
input[type="button"], input[type="submit"] {
    -webkit-appearance: none; 
    -moz-appearance: none;    
    appearance: none;
}
.hover {
    -webkit-touch-callout: none;        
    }
a{
    color: inherit;
    text-decoration: none;
}
body::-webkit-scrollbar{
    height: auto;
}
body::-webkit-scrollbar-track{
    background-color: transparent;
}
body::-webkit-scrollbar-thumb{
    background: linear-gradient(45deg, #d5e4dc, #E6EBE9);
}
body::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(45deg, #bac6c0, #c4d8d1);
}
@keyframes cardmove{
    0%{
        transform: rotate(-2deg);
    }
    50%{
        tranform: rotate(0deg);
    }
    100%{
        transform: rotate(2deg);
    }
  }
@media screen and (max-width: 1023px){
    html{
        font-size: 12px;
    }
}
/* navbar */
.navbar{
    display: flex;
    justify-content: center;
    background-color: var(--color_green);
    position: fixed;
    top: 0px;
    width: 100%;
    height: 60px;
    z-index: 10;
    box-shadow: 0 0 10px var(--color_gray);
    align-content: center;
    vertical-align: middle;
}
  
.logo{
    width: 20%;
    height: 100%;
}
.logo img{
    height: 110%;
    margin-right: 10px;
}
header label{
    height: 100%;
    width: 30px;
    float: right;
    display: none;
}
header label img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.navbar nav a{
    display: block;
    padding: 0 20px;
    margin-top: auto;
    height: 85%;
}
.main_nav li:hover{
    background-color: var(--color_greengray);
    color: white;
    stroke: white;
    font-weight: 500;
}

#switch{
    display: none;
}

.main_nav li{
    color: var(--color_gray);
    line-height: 60px;
}

@media screen and (max-width: 1023px){
    nav{
        display: none;
        position: absolute;
        background-color: rgba(230, 235, 233, .95);
        backdrop-filter: blur(4px);
        width: 100vw;
        height: 60vh;
        top: 100%;
    }
    @keyframes navopen{
        0%{
            height: 0vh;
            opacity: 0;
        }
        50%{
            height: 65vh;
            opacity: .9;
        }
        100%{
            height: 60vh;
            opacity: 1;
        }
    }
    input:checked ~ nav{
        display: block;
        animation: navopen .3s ease-out;
    }
    header label{
        display: block;
        margin-right: 5%;
    }
    .logo{
        left: 0;
        position: absolute;
        margin-left: 5%;
        width: 35%;
    }
    .logo img{
        height: 100%;
        width: 100%;
        object-fit: contain;
    }
    .hb{
        position: absolute;
        right: 0;
        cursor: pointer;
    }
    nav li{
        text-align: center;
    }
    .main_nav{
        order: 1;
        margin-top: 10%;
    }
    .main_nav li{
        line-height: 80px;
    }
    nav a{
        font-size: 4vmin;
    }
    .main_nav_icon{
        margin-top: 10%;
        display: flex;
        justify-content: center;
    }
    .navbar .main_nav_icon a{
       display: flex;
       width: fit-content;
       padding: 5px 0;
    }
    .main_nav_icon .img{
        width: 20%;
    }
    .main_nav_icon img{
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .main_nav_icon p{
        align-self: center;
        margin-left: 15px;
    }
    
}
@media screen and (max-width: 779px){
    .main_nav li{
        line-height: 60px;
    }
}
@media screen and (min-width: 1024px){
    .navbar nav{
        display: flex;
        position: relative;
        width: 60%;
        justify-content: right;
    }
    .navbar ul{
        display: flex;
        justify-content: space-evenly;
    }
    .main_nav li{
        line-height: 60px;
    }
    .main_nav_icon img{
        height: 25px;
        margin-top: 70%;
    }
    .main_nav_icon p{
        display: none;
    }
}

/* footer */
footer{
    margin-top: 50px;
    padding: 50px;
    background-color: var(--color_green);
}

.footer_nav{
    width: 100%;
    margin: auto;
}

.footer_icon{
    display: flex;
    width: 100%;
    margin: 5% 0;
}
.footer_icon img{
    width: 50%;
}
.footer_info p{
    line-height: 1.6rem;
}
.footer-info span{
    font-weight: 700;
}
.footer_nav h5{
    font-weight: 700;
    font-size: 1.2rem;
    padding: 5%;
    border-bottom: solid 3px var(--color_greengray);
}
.footer_nav ul{
    padding: 5%;
}
.footer_nav li{
    line-height: 1.6rem;
}

footer a:hover{
    font-weight: 700;
    color: var(--color_greengray);
}
.notice{
    text-align: center;
    padding: 2% 0;
    margin-top: 5%;
    margin-bottom: -50px;
    border-top: solid .5px black;
}
.notice p{
    color: var(--color_gray);
    line-height: 1.2rem;
    font-size: .8rem;
}
@media screen and (max-width: 1199px) {
    .footer_nav .row .col:not(:first-child){
        display: none;
    }
    .footer_nav .row .col:first-child{
        width: 100%;
        text-align: center;
    }
    .footer_icon{
        justify-content: center;
    }
}