@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap');

:root {
    --black: #111111;
    --white: #FFFFFF;
    --trans_green: rgba(120, 173, 111, 0.85);
    --light_green: #587A47;
    --dark_green: #263B19;
    --trans_dark_green: rgba(38, 59, 25, 0.7);
    --dark_blue: #1C5A72;
    --light_blue: #7DA4B3;
    --light_light_blue: #AACEDC;
    --red: rgb(167, 0, 0);
    --main: #272B2C;
    --gray: #7B7973;
    --light_gray: #A6A6A6;
    --trans_blue: rgba(39, 43, 44,0.7);
    --font_size_xxs: 11px;
    --font_size_xs: 12px;
    --font_size_sm: 14px;
    --font_size_md: 16px;
    --font_size_lg: 18px;
    --font_size_xl: 20px;
    --font_size_xxl: 24px;
    --font_size_title: 26px;
    --font_size_popup_title: 2.5vw;
    --font_size_popup_text: 2vw;
    --font_family_noto_serif: "Noto Serif TC", serif;
    --font_family_noto_sans: "Noto Sans TC", sans-serif;
}

html, body {
    padding: 0px;
    margin: 0px;
    overflow-x: hidden;
    background: var(--white);
    font-weight: 400;
}

img {
    width: 100%;
    height: auto;
}

img.bg {
    object-fit: cover !important;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
}

button {
    background: rgba(0, 0, 0, 0);
    border: 0px;
    cursor: pointer;
    padding: 0px;
    margin: 0px;
}

a.scale:hover,
button.scale:hover {
    transform: scale(1.15);
    transition: all 1s ease;
}

.pc {
    display: block;
}

.sp {
    display: none;
}

.hidden {
    opacity: 0 !important;
}

.cus_row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background: rgb(255 255 255 / 60%);
}

::-webkit-scrollbar-thumb {
    border-radius: 0px;
    background: var(--light_brown);
}



/* Setting Background */
section {
    position: relative;
    z-index: 1;
}



/* Main */
#s1 header.pc {
    width: 100%;
    height: 60px;
    background: var(--trans_blue);
    position: absolute;
    left: 0%;
    top: 0%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
    box-sizing: border-box;
}

#s1 header.pc img.icon {
    width: 80%;
}

#s1 header.pc .content {
    display: flex;
}

#s1 header.pc a {
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 14px;
}

#s1 header.pc a img {
    width: 30px;
    padding-right: 4px;
}

#news_list,
#news_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#news_list img.title,
#news_content img.title {
    width: 20%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -10%;
}

#news_list .news {
    width: 53%;
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translateX(-50%);
}

#news_list .news .cus_row {
    width: 90%;
    justify-content: space-between;
}

#news_list .news .cus_row.head {
    width: 90%;
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
}

#news_list .news .head button {
    width: 24%;
}

#news_list .news .head button img {
    object-fit: cover;
}

#news_list .news .content {
    width: 100%;
    min-height: 250px;
    position: absolute;
    top: 6%;
    left: 0%;
}

#news_list .news .content .body {
    width: 90%;
    padding: 1.1% 4%;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#news_list .news .content .body img {
    width: 16%;
    z-index: 12;
}

#news_list .news .content .body img.row_bg {
    height: 80%;
    width: auto;
    display: none;
    position: absolute;
    right: 2%;
    z-index: 10;
}

#news_list .news .content .body .text {
    width: 70%;
    font-size: var(--font_size_md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 12;
    margin-left: 3%;
}

#news_list .news .content .body .text .title {
    color: var(--gray);
    font-weight: 600;
    width: 78%;
}

#news_list .news .content .body .text .date {
    color: var(--light_gray);
}

#news_list .news button.back_to_top {
    width: 28%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -25%;
}

#news_list .news button.back_to_top img {
    object-fit: cover;
}

#news_list .news .pagination {
    width: 100%;
    padding: 6px;
    margin: 6px 0px;
    position: absolute;
    bottom: -12%;
    left: 1%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-radius: 6px;
}

#news_list .news .pagination .page-btn {
    width: 0.8vw;
    height: 0.8vw;
    background: url('/official/images/all/all_pagination_btn.png') no-repeat center;
    background-size: cover;
    margin: 0px 6px;
}

#news_list .news .pagination .page-btn.active {
    width: 1.2vw;
    height: 1.2vw;
    background: url('/official/images/all/all_pagination_btn_active.png') no-repeat center;
    background-size: cover;
}

#news_list .news .pagination button.prev,
#news_list .news .pagination button.next {
    width: 8%;
}

#news_content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#news_content .article {
    width: 65%;
    height: 80%;
    background: var(--white);
    padding: 40px 80px;
    overflow-y: auto;
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 11%;
}

#news_content .article a {
    color: var(--dark_blue);
}

#news_content .article .date {
    color: var(--red);
    font-size: var(--font_size_lg);
    padding-bottom: 10px;
}

#news_content .article .title {
    font-size: var(--font_size_title);
    font-weight: 500;
}

#news_content .article hr {
    margin: 30px 0px;
}

#news_content .article span {
    line-height: 1.6;
}

#news_content .article button.back_to_list {
    width: 20%;
}



/* Footer */
footer .top {
    position: relative;
    z-index: 20;
}

footer .top .box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

footer .top .box .cus_row {
    color: var(--white);
}

footer .top .box .cus_row:nth-child(1) {
    margin-bottom: 14px;
}

footer .top .box .cus_row:nth-child(2) {
    justify-content: space-evenly;
}

footer .top .box img.icon {
    width: 20%;
    padding-right: 10px;
}

footer .top .box .text .line {
    font-size: var(--font_size_sm);
    display: flex;
    white-space: nowrap;
    padding-bottom: 8px;
}

footer .top .box a {
    font-size: var(--font_size_sm);
}

footer .bottom {
    background: var(--black);
    color: var(--white);
    min-height: 90px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

footer .bottom .ican, footer .bottom .logo, footer .bottom .age-0 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 8px;
}

footer .bottom .ican span {
    padding-left: 4px;
    font-size: var(--font_size_xs);
    text-align: center;
}

footer .bottom .ican img {
    width: 6.5rem;
}

footer .bottom .logo img {
    width: 9.5rem;
}

footer .bottom .age-0 img {
    width: 2.5rem;
}

footer .bottom .age-0 ol {
    font-size: var(--font_size_xxs);
    padding-left: 18px;
}

footer .bottom .btns {
    width: 100%;
    background: var(--dark_green);
    position: absolute;
    left: 0px;
    bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
}

footer .bottom .btns button {
    width: 10%;
    margin: 0px 10px;
}

footer .bottom .btns button:hover {
    filter: brightness(1.3);
}



@media (max-width: 1200px) {
    /* Footer */
    footer .bottom,footer .bottom .ican {
        flex-direction: column;
    }

    footer .bottom .ican, footer .bottom .logo, footer .bottom .age-0 {
        padding: 10px 10px;
    }

    footer .bottom .ican img {
        width: 7rem;
    }
    
    footer .bottom .logo img {
        width: 10rem;
    }

    footer .bottom .age-0 ol {
        width: 70%;
        padding-left: 30px;
    }
}



@media (max-width: 1024px) {
    /* Basic */
    .pc {
        display: none !important;
    }
    
    .sp {
        display: block;
    }

    a.scale:hover, button.scale:hover {
        transform: scale(1);
    }

    /* Main */
    #s1 header.sp {
        width: 100%;
        height: 60px;
        background: var(--trans_blue);
        position: absolute;
        left: 0%;
        top: 0%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 20px;
        box-sizing: border-box;
    }
    
    #s1 header.sp a {
        width: 30%;
    }
    
    #s1 header.sp button {
        width: 8%;
    }
    
    #s1 ul.anchor.sp {
        width: 100%;
        background: var(--trans_blue);
        list-style: none;
        padding: 0%;
        margin: 0%;
        position: absolute;
        left: 50%;
        top: 60px;
        transform: translateX(-50%);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 20;
    }
    
    #s1 ul.anchor.sp.active {
        display: flex;
    }
    
    #s1 ul.anchor.sp li {
        width: 140px;
        padding: 6px 0px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    
    #s1 ul.anchor.sp li img {
        width: 30px;
        height: auto;
    }
    
    #s1 ul.anchor.sp li div {
        color: var(--white);
        font-size: var(--font_size_xl);
        font-weight: 500;
        white-space: nowrap;
    }
    
    #s1 img.logo {
        width: 12%;
        left: 2%;
        top: 4%;
    }

    #news_list img.title {
        width: 45%;
    }

    #news_content img.title {
        width: 50%;
        top: 2%;
    }

    #news_list .news {
        width: 90%;
        margin-top: 10px;
    }

    #news_list .news .content .body .text {
        font-size: var(--font_size_xs);
    }

    #news_list .news .content .body .text .title.long {
        font-size: 9px;
    }

    #news_list .news .pagination {
        padding: 2px;
        margin: 0px 0px 4px 0px;
        border-radius: 4px;
    }

    /* #news_list .news .pagination .page-btn {
        font-size: var(--font_size_xs);
        margin: 0px 6px;
        width: 25px;
    } */

    #news_list .news button.back_to_top {
        width: 28%;
        margin-top: 0px;
    }

    #news_content .article {
        width: 90%;
        height: 70%;
        padding: 40px 20px;
        top: 21%;
    }

    #news_content .article .title {
        font-size: var(--font_size_xxl);
    }

    #news_content .article hr {
        margin: 20px 0px;
    }

    #news_content .article button.back_to_list {
        width: 55%;
    }
}



@media (max-width: 576px) {
    /* Footer */
    footer .top .box .text .line,
    footer .top .box a {
        font-size: var(--font_size_xxs);
    }
    
    footer .bottom .btns button {
        width: 25%;
        margin: 0px 4px;
    }
}



@media (max-width: 380px) {
    /* Footer */
    footer .top .box .text .line,
    footer .top .box a {
        font-size: 10px;
    }
}