@charset "utf-8";

:root {
    --primary-color: #EC6C00;
    --body-color: #FFE100;
    --main-color: #00696C;
    --title-color: #C78312;
    --title-color-light: #db9a32;
    --title-color-dark: #804F21;
    --sub-color:  #FFAE00;
    --third-color: #56B878;
    --foruth-color: #71B6E5;
    --main-color-dark: #038fa5;
    --cata-color: #526366;
    --sectionpd: 3.5em;
    --unitcolor: #ffffff;
    /*112px*/
    --rowpd: 1.5em;
    --titlepd: 1em;
    /*32px*/
    --ppd: 0.5em;
}

@media screen and (min-width: 951px) {
    :root {
        --sectionpd: 8em;
        --rowpd: 2em;
        --titlepd: 2em;
        --ppd: 1em;
    }
}

body, html {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--body-color);
    color: #151515;
}


ul,
li {
    list-style: none;
}

dd {
    padding-left: 0px;
    float: left;
    margin-left: 0px;
}

* {
    margin: 0;
    padding: 0;
}
.wrapper-main{
    min-height: 60vh;
}
.site-blue {
    color: var(--main-color)
}

.site-red {
    color: #C54A58
}


.blue {
    color: #387287
}

.olnum {
    counter-reset: item;
}

.olnum li {
    padding-left: 30px;
    position: relative;
}

.olnum li:before {
    position: absolute;
    left: 0px;
    content: counters(item, ".") ". ";
    counter-increment: item
}

/*body------------------------------
------------------------------------*/

body {
    font-size: 1em;
    line-height: 1.6;
    min-height: 100vh;
    overflow-y: auto;
    font-weight: normal;

    color: #000000
}

.bodywrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.section-bigpt {
    z-index: 2;
    margin-bottom: var(--sectionpd)*2;
    margin-top: var(--sectionpd)*2;
}

.pc {
    display: none;
}

.mobile {
    display: block;
}

@media screen and (min-width: 951px) {
    body {
        font-size: 1em;
        line-height: 1.8;
    }

    .pc {
        display: block;
    }

    .mobile {
        display: none;
    }

}

/* ---------------------------------------------------------
  Header (.site-header[-*])
----------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 100px;
    max-width: 100px;
}

.site-header__btn {
    width: 50px;
    height: 50px;
    font-weight: normal;
    font-family: "NotoSansTC";
    background-color: #FFE200;
    color: #64B8C1;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1rem;
}

.site-header__btn:hover {
    background-color: #fce52d;
    color: #59ABBC;
}

.site-header_logo {
    min-width: 100px;
    max-width: 50%;
    margin-right: 5%;
    display: flex;
}

.site-header.active .site-header_logo {
    display: none;
}

.site-header_nav {
    margin-left: auto;
}

.site-header_nav--in {
    display: flex;
    gap: 0px;
}

.site-heade_in {
    position: relative;
    z-index: 100;
}

.site-header_navcontent {
    min-width: 350px;
    max-width: 100%;
    position: absolute;
    right: -200px;
    top: 0;
    background-color: #FFE100;
    height: 100vh;
    z-index: 99;
    overflow-y: auto;
    opacity: 0;
    -webkit-clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    -webkit-transition: 0.6s;
    transition: 0.6s;

}

/* .site-header_navcontent:before {
    content: '';
    height: 5px;
    width: 0%;
    background-color: #FFE200;
    display: block;
    margin-left: -50px;
}

.site-header_navcontent.active:before {
    width: 80%;
    margin-left: 0px;
    -webkit-animation: ani-bar 0.9s forwards;
    -moz-animation: ani-bar 0.9s forwards;
    -o-animation: ani-bar 0.9s forwards;
    animation: ani-bar 0.9s forwards;
} */

.site-header_navcontent.active {
    -webkit-clip-path: polygon(-15% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(-15% 0, 100% 0, 100% 100%, 0 100%);
    -webkit-animation: ani-right 0.5s forwards;
    -moz-animation: ani-right 0.5s forwards;
    -o-animation: ani-right 0.5s forwards;
    animation: ani-right 0.5s forwards;

}

.site-header_ul {

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 兩欄 */
    gap: clamp(36px, 6vw, 52px) clamp(20px, 4vw, 30px);
    margin: clamp(88px, 16vw, 120px) 5% 10%;

}

.site-header_li {
    display: flex;
    position: relative;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50px;
    padding: 6px;
    transition: background-color 0.3s ease-in-out;
}

.site-header_li a {
    text-decoration: none;
    display: flex;
    width: 100%;
}

.site-header_li--in {
    color: #ffffff;
    letter-spacing: clamp(0rem, 1vw, 0.08rem);
    font-family: "NotoSansTC";
    text-align: center;
    font-size: clamp(1rem, 3.2vw, 1.125rem);
    white-space: nowrap;
    font-weight: bold;
    border-radius: 50px;
    border: 1px dashed #ffffff;
    padding: 8px 16px;
    width: 100%;
}

.site-header_li:hover {
    background-color: #ffffff;
}

.site-header_li:hover .site-header_li--in{
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}
.site-header_li--in .en {
    font-size: 0.8em;
    text-align: left;
}


.site-header_dt {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.site-header_dt a {
    text-decoration: none;
    color: #2CA6E0;
    font-weight: 700;
}

.site-header_dt div {

    background-repeat: no-repeat;
    background-position: center left;
    background-size: 25px auto;
    color: #00846A;
    font-size: 0.9em;
    width: 30px;
    height: 30px;

}

.site-header_dt__kt {
    background-image: url(../img/all/icon_kt.svg);
}

.site-header_dt__fb {
    background-image: url(../img/all/icon_fb.svg);
}

.site-header_dt__line {
    background-image: url(../img/all/icon_line.svg);
}

.site-overlay {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: none;
}

.site-overlay.active {
    display: block;
}

.site-gotop {
    width: 50px;
    height: 50px;
    cursor: pointer;
    overflow: hidden;
    z-index: 10;
    background-image: url(../img/all/scrolltop.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 45px 45px;
    right: 0.5em;
    position: fixed;
    bottom: 1em;
    display: none;
}

.site-gotop.active {
    display: block;
}

/*FOOTER*/
.site-footer {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    border-radius: 50px 50px 0 0;
    z-index: 10;


}


.site-footer_in {
    position: relative;
    z-index: 2;
    gap: 1em;
    font-size: 1em;
    padding-top: 2em;
    padding-bottom: 2em;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.site-footer__units {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.site-footer__units > li {
    min-width: 0;
    max-width: 100%;
}
.site-footer__units > li a {
    text-decoration: none;
    color: #ffffff;
}
.site-footer__units > li:last-child {
    flex-basis: 100%;
}

.site-footer__names {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.5em;
    min-width: 0;
}

@media screen and (min-width: 1200px) {
    .site-footer__units {
        flex-wrap: nowrap;
    }

    .site-footer__units > li {
        max-width: none;
        flex: 0 0 auto;
    }

    .site-footer__units > li:last-child {
        flex: 1 1 auto;
        flex-basis: auto;
        min-width: 0;
    }
}

.site-footer__gotop {
    margin: 2.5em 0px;
    border-top: solid 1px var(--main-color);
}

.site-social {
    gap: 1em;

}

.site-social_li {
    font-size: 1.5em;
}

.site-paragraph {
    font-size: clamp(16px, 2vw, 20px);
    line-height: clamp(24px, 2vw, 30px);
    letter-spacing: 0.1em; 
    font-weight: 300;  

}

.site-title {
    color: #00696C;
    font-weight: 600;
    position: relative;
}

.site-title .yellow-oval {
    position: absolute;
    width: 90px;
    height: 37px;
    left: 0px;
    top: 50%;
    background: #FFF000;
    /* 亮黃色 */
    border-radius: 999px;
    /* 完全橢圓 */
    z-index: 0;
}

.site-title span {
    font-size: clamp(20px, 5vw, 28px);
    position: relative;
    z-index: 1;

    font-weight: bold;
    line-height: 1.2;
}




.container.site-container {
    position: relative;
    padding-left: 2.5em;
    padding-right: 2.5em;
    max-width: 1200px;
    z-index: 2;
}



@media screen and (min-width: 576px) {

    .site-content_mask1 {
        max-width: 250px;
    }
}

@media screen and (min-width: 951px) {

    .site-header_navcontent {
        min-width: 491px;
    }

    .site-header_logo {
        max-width: 50%;
        margin-top: -50px;
        margin-left: -50px;
        display: none;
    }

    .site-content_mask1 {
        max-width: 40%;
    }


    .site-header__btn .btn {
        font-size: 1.3rem;
        padding-left: 2rem;
        padding-right: 2rem;

    }


}


@media screen and (min-width: 900px) {

    .site-header__btn {
        width: 100px;
        height: 100px;
        font-size: 1.25rem;
        line-height: 1.6rem;
        font-weight: bolder;
    }
}


/* ---------------------------------------------------------
  Mag
----------------------------------------------- */
#mag {
    width: 50px;
    height: 50px;
    background-color: #1A96D0;
    --magcolor: #FFE100;
    --magwidth: 30px;
    --magheight: 2px;
    overflow: hidden;
    cursor: pointer;
    margin-top: clamp(12px, 4vw, 22px);
    margin-right: 6px;
    top: 0;
    right: 0;
    z-index: 100;
    border-radius: 50%;
}

#mag.active,
#mag.active:hover {
    background-color: #1A96D0;
}

#mag:hover:before {
    color:  #1A96D0;
}

#mag:hover {
    background-color:  #1A96D0;
}

.magline {
    position: relative;
    height: var(--magheight);
    width: var(--magwidth);
    background-color: var(--magcolor);
    display: block;
    top: 5px;
}

.magline:before {
    content: '';
    height: var(--magheight);
    width: var(--magwidth);
    background-color: var(--magcolor);
    display: block;
    position: absolute;
    top: 5px
}

.magline:after {
    content: '';
    height: var(--magheight);
    width: var(--magwidth);
    background-color: var(--magcolor);
    display: block;
    position: absolute;
    top: 10px
}

#mag.active .magline {
    transform: rotate(-30deg);
    position: absolute;
    top: 30px
}

#mag.active .magline:before {
    transform: rotate(-302deg);
    top: 0px
}

#mag.active .magline:after {
    display: none;
}

.magw {
    color: var(--magcolor);
    font-weight: normal;
    margin-top: 15px;
    font-size: 12px;
}

/* #mag>* {
	border: none;
	outline: none;

}

#mag:hover [class*="maglist-dot"] {
	background-color:#ffffff;
  }

#mag.active [class*="maglist-dot"]:nth-child(even) {
	opacity: 0;
} */

@media screen and (min-width: 900px) {
    #mag {
        width: 62px;
        height: 62px;
        --magwidth: 30px;
        --magheight: 4px;
    }

    .magw {
        font-weight: bold;
        margin-top: 25px;
        font-size: 12px;
    }

    #mag.active .magline {
        top: 45px
    }

    .magline:before {
        top: 10px
    }

    .magline:after {
        top: 20px
    }
}

/*BTN----------------------------------
------------------------------------------*/
a:has(.btn),
a .btn,
.btn {
    text-decoration: none !important;
}
.btn-i {
    background-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    overflow: hidden;
    position: relative;
}

.btn:hover .btn-i {
    background-color: var(--main-color);
}

.btn-i:before {
    content: "";
    background-image: url(../img/all/btn-arrow.svg);
    background-repeat: no-repeat;
    background-size: 12px auto;
    background-position: center;
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    z-index: 2;

}

.btn-i:after {
    content: "";
    background-image: url(../img/all/btn-arrow-w.svg);
    background-repeat: no-repeat;
    background-size: 12px auto;
    background-position: center;
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    margin-left: -50px;
    z-index: 1;
}

.btn:hover .btn-i:before {
    margin-left: 50px;
}

.btn:hover .btn-i:after {
    margin-left: 0px;
}

a:has(.btn-rule) {
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
}

.btn-rule {
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    background-color:var(--primary-color);
    color: #ffffff;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid var(--primary-color);}

.btn-rule:hover,
.btn.btn-rule:focus,
.btn.btn-rule:active {
    background-color:#ffffff;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* .btn.btn-rule:focus {
	z-index: 5;
  }
.fb {
    font-size: 1.1rem;
    font-weight: bold;
}

/*-------------------------------FILEWRAP
----------------------------------------*/
.wrapper-file {
    padding-top: var(--titlepd);
    border-top: rgba(255, 255, 255, .3) 1px dashed;
    
}
.wrapper-file a{
    text-decoration: none;
}
.list-file {
    color: #C79CC4;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    font-weight: bold;
    overflow: hidden;

}

/* 新版檔案下載：同 news-page.html 白底橘虛線 pill */
.wrapper-btn .wrapper-file {
    padding-top: 0;
    border-top: 0;
}

.wrapper-btn .list-file {
    display: flex;
    position: relative;
    width: auto;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 6px;
    color: var(--primary-color);
    text-decoration: none;
    overflow: visible;
    font-weight: bold;
    font-size: clamp(1rem, 3.2vw, 1.125rem);
    transition: background-color 0.3s ease-in-out;
}

.list-file__in {
    color: var(--primary-color);
    letter-spacing: clamp(0rem, 1vw, 0.08rem);
    font-family: "NotoSansTC";
    text-align: center;
    font-size: clamp(1rem, 3.2vw, 1.125rem);
    line-height: 1.2;
    white-space: nowrap;
    font-weight: bold;
    border-radius: 50px;
    border: 1px dashed var(--primary-color);
    padding: 8px 16px;
    width: 100%;
    gap: 0.5rem;
}

.wrapper-btn .list-file:hover {
    background-color: var(--primary-color);
}

.wrapper-btn .list-file:hover .list-file__in {
    color: #ffffff;
    border-color: #ffffff;
}

.list-file__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-file__icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.wrapper-btn .list-file:hover .list-file__icon img {
    filter: brightness(0) invert(1);
}




/*-------------------------------PAGEITEM
----------------------------------------*/
.pageitem {
    color: #00846A;
    margin-bottom: 1em;
    font-size: clamp(24px,2vw,32px);
    font-weight: bold;
    position: relative;
}

.pageitem.smb {
    margin-bottom: 0px;
}

.pageitem span {
    padding: 0.5rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 900;
}
.pageitem span::after {
    z-index: -1;
    content: '';
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 1em;
    border-radius:30px;
    background-color: #CDCBE5;
/*     background-image: url(../img/page/span-bg.svg);
    background-repeat: no-repeat;
    background-position: left bottom 10px;
    background-size: 100% auto; */

  }

/*LOADMORE===================================*/
.show-more {
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 10px;
    color: #00696C;
    display: none;
    background-image: url(../img/all/loading.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50px 50px;
    position: absolute;
    background-color: rgba(255, 255, 255, .5);
    left: 0;
    top: 0;
    line-height: 50%;
    z-index: 2000;
    text-align: center;
}

.show-more span {
    width: 100%;
    padding-bottom: 50px;
    color: #ffffff;
}

/*LOADMOREEND=====================================*/
/*others----------------------------------
------------------------------------------*/
.transiA,
a,
.btn,
#mag,
.site-header__btn,
.site-header_li--in,
.btn-back__in,
.btn-next__in,
.list-file__in,
.site-gotop span:after,
.site-header_li--in .en,
.site-header_dt div,
.box-program-icon span:before,
.btn-i:before,
.btn-i:after,
.list-file:after,
.cata-list li,
.box-work__des--workname,
.box-pic img,
.box-sign__icon,
.icon-arrow:after {
    transition: all 0.5s cubic-bezier(.19, 1, .22, 1);
    -moz-transition: all 0.5s cubic-bezier(.19, 1, .22, 1);
    -webkit-transition: all 0.5s cubic-bezier(.19, 1, .22, 1);
    -ms-transition: all 0.5s cubic-bezier(.19, 1, .22, 1);
    -o-webkit-transition: all 0.5s cubic-bezier(.19, 1, .22, 1);
}

.editstyle img {
    max-width: 100%;
}

@media screen and (max-width: 375px) {

    /*限制縮到最小狀況*/
    body,
    html {
        width: 375px;
        overflow-x: hidden;
    }
}


/*上一頁按鈕 hover*/
.btn-back:hover .back-text{
    transform: translateX(2px);
    transition: all 0.3s ease-in-out;
}

.btn-back:hover .back-arrow{
    transform: translateX(-2px);
    transition: all 0.3s ease-in-out;
}

.grecaptcha-badge {
    z-index: -1 !important;  
  }