/*基本變數設定*/
:root{ 
    --j-green: #008d66;
    --j-l-green:#E2EBE1;
    --j-h-green: #017856;
    --j-dark:#333;
    --j-orange:#F76014;
    --j-h-orange: #e65913;
    --j-soft: #fcf5e6;
    --j-h-soft: #f7f0d8;
}


*{
    margin: 0px;
    padding: 0px;
}

a{
    transition: .3s;
    color: #333;
}
a:hover{
    color: unset;
}

p{
    margin-bottom: 0px !important;
}



button{
    cursor: pointer;
}


a:hover{
    text-decoration: none;
}


li{
    list-style: none;
}


::selection{
    background-color: #67B2CD;
    color: #ffffff;
}

button:focus{
    outline: unset !important;
}

body{
    font-family: "Noto Sans TC", sans-serif;
    font-size: 16px;
    color: #333;
    background: url(../img/sfa-bg.png);
    line-height: 2;
}

.j-container{
    width: 80%;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1500px;
}


.sub-nav{
    background-color: var(--j-green);
    width: 100%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.sub-nav a{
    color: #fff;
    font-size: 14px;
    padding: 0px 10px;
    position: relative;
}

.sub-nav a::after{
    position: absolute;
    content: '';
    left: 0px;
    top: 50%;
    width: 1px;
    height: 60%;
    background-color: #fff;
    transform: translateY(-50%);
}

.sub-nav a:first-of-type::after{
    display: none;
}


.sub-nav a:hover{
    text-decoration: underline !important;
}


.site-navbar{
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 141, 102, 0.1);
    box-shadow: 0 4px 18px rgba(35, 61, 53, 0.08);
}

.site-navbar__inner{
    width: 100%;
    min-height: 78px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-navbar__brand{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.site-navbar__brand img{
    display: block;
    width: 380px;
    max-width: 100%;
    height: auto;
}

.site-navbar__title,
.site-navbar__toggle-text{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-navbar__panel{
    min-width: 0;
}

.site-navbar__menu{
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.site-navbar__menu > li{
    position: relative;
    margin: 0;
}

.site-navbar__link{
    position: relative;
    min-height: 44px;
    padding: 10px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--j-dark);
    font: inherit;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: none;
}

.site-navbar__link::after{
    content: '';
    position: absolute;
    right: 8px;
    bottom: 5px;
    left: 8px;
    height: 2px;
    border-radius: 999px;
    background-color: var(--j-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-navbar__link:hover,
.site-navbar__link:focus-visible,
.site-navbar__link.is-active,
.site-navbar__item--dropdown.is-open > .site-navbar__link{
    color: var(--j-green);
    text-decoration: none !important;
}

.site-navbar__link:hover::after,
.site-navbar__link:focus-visible::after,
.site-navbar__link.is-active::after,
.site-navbar__item--dropdown.is-open > .site-navbar__link::after{
    transform: scaleX(1);
}

.site-navbar__link:focus-visible,
.site-navbar__submenu a:focus-visible,
.site-navbar__toggle:focus-visible,
.site-navbar__panel-close:focus-visible{
    outline: 3px solid rgba(0, 141, 102, 0.28);
    outline-offset: 3px;
    border-radius: 5px;
}


.site-navbar__toggle:focus,
.site-navbar__panel-close:focus{
    outline: unset !important;
}

.site-navbar__arrow{
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.site-navbar__item--dropdown.is-open .site-navbar__arrow{
    transform: rotate(225deg) translate(-2px, -2px);
}

.site-navbar__item--dropdown::before{
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 12px;
}

.site-navbar__submenu{
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    left: 50%;
    z-index: 10;
    width: max-content;
    min-width: 250px;
    margin: 0;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -8px);
    pointer-events: none;
    border: 1px solid rgba(0, 141, 102, 0.1);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 14px 35px rgba(32, 59, 51, 0.16);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.site-navbar__submenu a{
    position: relative;
    display: block;
    padding: 11px 14px;
    border-radius: 6px;
    color: var(--j-dark);
    font-size: 19px;
    line-height: 1.5;
    white-space: nowrap;
    font-weight: 500;
}

/* .site-navbar__submenu a::after{
    content: '';
    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;
    height: 2px;
    border-radius: 999px;
    background-color: var(--j-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
} */

.site-navbar__submenu a:hover,
.site-navbar__submenu a:focus-visible,
.site-navbar__submenu a.is-active{
    color: var(--j-green);
    background-color: var(--j-l-green);
    text-decoration: none !important;
}

.site-navbar__submenu a:hover::after,
.site-navbar__submenu a:focus-visible::after{
    transform: scaleX(1);
}

.site-navbar__item--dropdown:hover > .site-navbar__submenu,
.site-navbar__item--dropdown:focus-within > .site-navbar__submenu,
.site-navbar__item--dropdown.is-open > .site-navbar__submenu{
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.site-navbar__toggle{
    width: 46px;
    height: 46px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 141, 102, 0.25);
    border-radius: 8px;
    background-color: #fff;
    color: var(--j-green);
    border: none;
}

.site-navbar__panel-close{
    display: none;
}

.site-navbar__toggle-icon,
.site-navbar__toggle-icon::before,
.site-navbar__toggle-icon::after{
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background-color: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-navbar__toggle-icon{
    position: relative;
}

.site-navbar__toggle-icon::before,
.site-navbar__toggle-icon::after{
    content: '';
    position: absolute;
    left: 0;
}

.site-navbar__toggle-icon::before{
    top: -7px;
}

.site-navbar__toggle-icon::after{
    top: 7px;
}


.hero-wrap{
    position: relative;
}


#hero-right-arrow,
#hero-left-arrow{
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #fff;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--j-green);
    cursor: pointer;
    transition: .3s;
}

#hero-right-arrow{
    right: 15px;
}
#hero-left-arrow{
    left: 15px;
}

#hero-right-arrow:hover,
#hero-left-arrow:hover{
    background-color: var(--j-green);
    color: #fff;
}

.fast-link{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-self: center;
    margin: 20px auto;
    justify-content: space-evenly
}


.fast-link a{
    border-radius: 5px;
    padding: 5px;
    color: #fff;
    font-size: 20px;
    width: 24%;
    text-align: center;
    line-height: 2;
    transition: .3s;
}

.fast-link a:hover{
    transform: translateY(-3px);
}


.fb-link{
    background-color: #0866FF;
}

.line-link{
    background-color: #00B900;
}

.mbc-link{
    background-color: var(--j-orange);
}


.fast-link a.fb-link:hover{
 background-color: #075ce4;
 color: #fff !important;
}
.fast-link a.line-link:hover{
 background-color: #00a300;
 color: #fff !important;
}
.fast-link a.mbc-link:hover{
 background-color: var(--j-h-orange);
 color: #fff !important;
}

.color-orange{
    color: var(--j-orange);
}
.color-h-orange{
    color: var(--j-h-orange);
}

.color-green{
    color: var(--j-green);
}

.fz-20{
    font-size: 20px !important;
}

/*首頁-最新消息-----------------------------------------------*/

.block-top{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.block-title i{
    font-size: 14px;
}

.block-title span{
    letter-spacing: 2px;
}

.block-title h3{
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--j-dark);
    margin: 20px 0px 0px 0px;
    font-size: 32px;
}

.news-block{
    padding: 20px 0px;
}




.block-more a{
    color: var(--j-green);
    font-weight: 500;
    transition: .3s;
    padding: 5px 10px;
    border-radius: 3px;
}

.block-more a i{
    transition: .3s;
}

.block-more a:hover{
    color: var(--j-h-green);
}

.block-more a:hover i{
    transform: translateX(5px);
}

.news-block-inner ul li{
    margin-bottom: 20px;
}

.news-link{
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 5px;
    padding: 15px;
}


.index-inner{
    margin-top: 30px;
}


.news-cat-wrap{
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-cat{
    background-color: #fff;
    border-radius: 3px;
    color: var(--j-green);
    padding: 0px 10px;
    font-weight: 500;
}

.news-title{
    font-size: 20px;
    margin-top: 5px;
    font-weight: 500;
}

.news-arrow{
    background-color: var(--j-soft);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: .3s;
}


.news-link:hover{
    background-color: var(--j-soft);
}

.news-link:hover p{
    color: var(--j-green);
}

.news-link:hover .news-arrow{
    background-color: var(--j-green);
    color: #fff;
    transform: translateX(3px);
}

/*農會花絮-------------------------------------*/
.gallery-block{
    margin-top: 100px;
    background-color: var(--j-h-soft);
    border-radius: 50px;
    min-height: 800px;
    padding: 50px 0px;
    position: relative;
    opacity: 0.99;
}
/* .gallery-block::before{
    position: absolute;
    content: '';
    background: url(../img/deco1.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 250px;
    height: 250px;
    top: -150px;
    left: -80px;
    z-index: 1;
} */
.gallery-block::before{
    position: absolute;
    content: '';
    background: url(../img/deco1_1.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 250px;
    height: 250px;
    top: -190px;
    left: 0px;
    z-index: 1;
}

.deco2{
    position: absolute;
    background: url(../img/deco2_1.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 400px;
    height: 400px;
    z-index: -1;
    top: 10px;
    right: 10px;
    opacity: 0.1;
}

.deco3{
    position: absolute;
    background: url(../img/deco3_1.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 300px;
    height: 300px;
    z-index: -1;
    bottom: -60px;
    left: 0px;
    opacity: 0.2;
}
.deco3::before{
    position: absolute;
    content: '';
    background: url(../img/deco3before.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 200px;
    height: 200px;
    z-index: 1;
    bottom: 0px;
    right: 0px;
}



.gallery-block .block-more a{
    background-color: #fff;
}


.gallery-slick-wrap{
    min-width: 0;
}

.gallery-slick-wrap .slick-slide{
    box-sizing: border-box;
}

.gallery-slick-wrap .gallery-slick-item{
    background-color: #fff;
    padding: 15px;
    margin: 0 15px;
    border-radius: 5px;
    display: block;
}

.gallery-slick-wrap .gallery-slick-item img{
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    max-height: 200px;
    height: 200px;
    object-fit: cover;
}

.gallery-cat-wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--j-green);
    margin-top: 5px
}

.gallery-cat-wrap span+span{
    border: 1px solid var(--j-green);
    border-radius: 3px;
    padding: 0px 6px;
    font-size: 14px;
}

.gallery-title{
    font-size: 18px;
    margin-top: 5px;
    font-weight: 500;
    min-height: 64px;
    max-height: 64px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.gallery-arrow{
    background-color: var(--j-soft);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: .3s;
    margin-left: auto;
    margin-top: 15px;
}

.gallery-slick-item:hover{
    background-color: var(--j-green);
}

.gallery-slick-item:hover span,
.gallery-slick-item:hover .gallery-title{
    color: #fff;
    border-color: #fff;
}

.gallery-slick-item:hover .gallery-arrow{
    transform: translateX(3px);
}

.gallery-block-inner{
    position: relative;
}

#gallery-left-arrow,
#gallery-right-arrow{
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #fff;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--j-green);
    cursor: pointer;
    transition: .3s;
}

#gallery-left-arrow{
    left: -55px;
}

#gallery-right-arrow{
    right: -55px;
}

#gallery-right-arrow:hover,
#gallery-left-arrow:hover{
    background-color: var(--j-green);
    color: #fff;
}

.video-block-inner{
    display: flex;
    flex-wrap: wrap;
}

.video-block-inner div a{
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 20px;
}

.video-block-inner div a span{
    border: 1px solid var(--j-green);
    border-radius: 3px;
    padding: 0px 6px;
    font-size: 14px;
    color: var(--j-green);
}

.video-block-inner div a p{
    font-size: 18px;
    font-weight: 500;
}

.video-block-inner div a i{
    color: #ff0000;
    font-size: 35px;
}

.video-block-inner div a:hover{
    background-color: var(--j-green);
    transform: translateY(-3px);
}

.video-block-inner div a:hover p{
    color: #fff;
}

.video-block-inner div a:hover span{
    color: #fff;
    border-color: #fff;
}

/*農特產品-------------------------------------*/

.products-block{
    position: relative;
}

.rice-baby{
    position: absolute;
    right: -50px;
    top: -210px;
}

.rice-baby img{
    width: 250px;
}

.rice-baby::before{
    position: absolute;
    content: '';
    background: url(../img/deco4.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 240px;
    height: 240px;
    z-index: -1;
    opacity: 0.1;
}

.products-block{
    margin-top: 100px;
    padding-bottom: 50px;
}
.products-item{
    transition: .3s;
}

.products-item a{
    display: block;
    width: calc(100% - 30px);
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin: 0 15px;
    transition: background-color .3s;
}

.products-item img{
    border-radius: 5px;
    height: 200px;
    object-fit: cover;
}

.products-arrow{
    background-color: var(--j-soft);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: .3s;
    margin-left: auto;
    margin-top: 15px;
}

.products-item p{
    font-size: 18px;
    font-weight: 500;
}

.products-item:hover a{
    background-color: var(--j-soft);
}


.products-item:hover .products-arrow{
    background-color: var(--j-green);
    color: #fff;
    transform: translateX(3px);
}
.products-block-inner{
    position: relative;
}

#products-right-arrow,
#products-left-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #fff;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--j-green);
    cursor: pointer;
    transition: .3s;
}

#products-right-arrow{
    right: -55px;
}
#products-left-arrow{
    left: -55px;
}

#products-right-arrow:hover, 
#products-left-arrow:hover{
    background-color: var(--j-green);
    color: #fff;
}



/*相關連結-------------------------------------*/
.links-block{
    margin-top: 50px;
    background: #fff;
    padding: 50px 0px 200px 0px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}


.link-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--j-soft);
    padding: 10px 15px;
    border-radius: 5px;
    transition: .3s;
}

.link-item p{
    font-size: 18px;
    font-weight: 500;
    transition: .3s;
}

.link-item i{
    transition: .3s;
}

.link-item:hover{
    background-color: var(--j-green);
}

.link-item:hover p,
.link-item:hover i{
    color: #fff;
}

.link-slick-wrap {
        position: relative;
    }

    .link-slick-arrow {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 50px;
        height: 50px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background-color: var(--j-soft);
        color: var(--j-green);
        transform: translateY(-50%);
        transition: .3s;
        cursor: pointer;
    }

    .link-slick-arrow:hover {
        background-color: var(--j-green);
        color: #fff;
    }

    #link-left-arrow {
        left: -65px;
    }

    #link-right-arrow {
        right: -65px;
    }

/*頁尾------------------------------------------*/
    footer{
        margin-top: -50px;
        padding: 50px 0px 15px 0px;
        border-top-left-radius: 50px;
        border-top-right-radius: 50px;
        background-color: var(--j-green);
        position: relative;
    }

     /* footer::before{
        position: absolute;
        content: '';
        background: url(../img/footer-deco.png);
        background-repeat: no-repeat;
        background-size: contain;
        width: 300px;
        height: 300px;
        top: -120px;
        left: -50px;
    } */
    

    footer::before{
        position: absolute;
        content: '';
        background: url(../img/footer-deco2.png);
        background-repeat: no-repeat;
        background-size: contain;
        width: 300px;
        height: 300px;
        top: -140px;
        left: 0px;
    }    

    
    

    .footer-logo img{
        width: 250px;
    }

    .footer-inner{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 100px;
    }

    .footer-info{
        color: #fff !important;
        position: relative;
    }

    .footer-info::before{
        position: absolute;
        content: '';
        width: 1px;
        height: 100%;
        background-color: #fff;
        left: -50px;
    }

    .copyright{
        text-align: center;
        color: #fff;
        font-size: 13px;
        letter-spacing: 1px;
        border-top: 1px solid #fff;
        padding-top: 15px;
        margin-top: 15px;
    }

    /*go-tpo*/
    .go-top{
        line-height: 38px;
        width: 40px;
        height: 40px;
        text-align: center;
        position: fixed;
        bottom: 20px;
        right: 24px;
        border-radius: 5px;
        background-color: var(--j-orange);
        color: #fff;
        text-decoration: none;
        cursor: pointer;
        z-index: 12;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity .35s ease, transform .35s ease,
                    visibility 0s linear .35s, background-color .3s;
    }

    .go-top.is-visible{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

       .go-top:hover{
        background-color: var(--j-h-orange);
       }


/*頁面基本設定----------------------------------*/

.page-inner{
    padding-bottom: 180px;
}

.page-top{
    height: 300px;
    width: 100%;
    position: relative;
}

.page-top::before{
    position: absolute;
    content: '';
    inset: 0;
    background: url(../img/page-top.jpg) no-repeat center bottom / cover;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H1440V220C1150 250 900 270 620 230C400 195 230 190 0 260Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H1440V220C1150 250 900 270 620 230C400 195 230 190 0 260Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    pointer-events: none;
}

.page-top::after{
    position: absolute;
    content: '';
    background: url(../img/page-deco.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 250px;
    height: 250px;
    top: 30px;
    left: 0;
}


.page-title{
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    font-size: 32px;
    letter-spacing: 4px;
    font-weight: 500;
    width: fit-content;
    color: var(--j-green);
    position: absolute;
    left: 10%;
    bottom: 40px;
    z-index: 1;
}


.breadcrumbs{
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.breadcrumbs > a:last-child:not(:first-child),
.breadcrumbs > i.fa-chevron-right:nth-last-child(2){
    display: none;
}

.breadcrumbs a:hover {
    color: var(--j-green);
}

.pagination{
    justify-content: center;
    gap: 30px;
    font-size: 20px;
}

.pagination a{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination a:hover {
    color: var(--j-green);
}


.pagination a.active{
    border-radius: 50px;
    background-color: var(--j-green);
    color: #fff !important;
}



/*最新消息外頁----------------------------------*/

.news-select{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.news-select select{
    width: fit-content;
}

.news-filters{
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.news-departments{position: relative; margin: 0; padding: 0; border: 0;}
.news-departments summary.form-control{
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-width: 135px; width: auto; list-style: none; cursor: pointer;
}
.news-departments summary::-webkit-details-marker{display: none;}
.news-departments summary::after{content: ''; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px);}
.news-departments summary:focus-visible{outline: 2px solid var(--j-green); outline-offset: 2px;}
.news-department-options{
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
    min-width: 210px; padding: 8px; border: 1px solid #ccc; border-radius: 5px;
    background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.news-department-options small{display: block; color: #666; padding: 6px; font-size: .8rem;}
.news-department-options label{
    display: flex; align-items: center; gap: 6px; margin: 0; width: 100%;
    padding: 6px 10px; border: 1px solid #ccc; border-radius: 5px;
    background: #fff; cursor: pointer;
}
.news-department-options input{accent-color: var(--j-green); cursor: pointer;}
.news-department-options label:has(input:checked){border-color: var(--j-green); color: var(--j-green); background: #edf8f3;}
.news-filter-actions{display: flex; flex-wrap: wrap; align-items: center; gap: 8px;}
.news-filter-submit{
    border: 1px solid var(--j-green); border-radius: 5px; padding: 6px 14px;
    background: var(--j-green); color: #fff; cursor: pointer;
}
.news-filter-reset{color: var(--j-green); text-decoration: underline;}

@media (max-width: 767px){
    .news-filters label,
    .news-filters select,
    .news-filters option{
        font-size: 15px;
    }
}

.news-inner-link{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 15px;
}

.news-inner-link-left span{
    background-color: #fff;
    color: var(--j-green);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
}

.news-inner-link-left p{
    font-size: 20px;
    font-weight: 500;
    margin-top: 10px;
}

.news-inner-link-right{
    background-color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: .3s;
}

.news-inner-link-ul li{
    padding: 20px 0px;
    transition: .3s;
}

.news-inner-link-ul li+li{
    border-top: 1px solid #ddd;
}


.news-inner-link-ul li:hover{
    background-color: var(--j-soft);
}

.news-inner-link-ul li:hover a{
    color: var(--j-green);
}

.news-inner-link-ul li:hover .news-inner-link-right{
    background-color: var(--j-green);
    color: #fff;
    transform: translateX(3px);
}

/*最新消息內頁----------------------------------*/
.news-content-title{
    font-size: 28px;
    font-weight: 500;
}

.news-content-cat span{
    margin-right: 10px;
}

.news-content-cat{
    margin-bottom: 30px;
}


.news-content{
    
    font-size: 18px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.news-content a{
    white-space: normal;
}

.article-content a[href]{
    color: #0066cc !important;
    text-decoration: underline !important;
    text-decoration-color: #0066cc !important;
    text-underline-offset: 0.15em;
}

.article-content a[href] *{
    color: inherit !important;
}

/*營業據點-------------------------------------*/

.location-info{
    border-left: 10px solid var(--j-green);
    padding-left: 10px;
}

.location-map{
    width: 100%;
    height: 300px;
    margin-top: 10px;
}

.location-map iframe{
    width: 100%;
    height: 100%;
}

/*部門介紹-------------------------------------*/
.dept-wrap{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dept-menu{
    width: 20%;
}

.dept-content{
    width: 72%;
    font-size: 18px;
    text-align: justify;
}



.dept-menu-title{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    color: var(--j-green);
    border-bottom: 1px solid var(--j-green);
    padding-bottom: 10px;
}

.dept-menu-title p{
    font-size: 20px;
    font-weight: 500;
}

.dept-menu-title i{
    font-size: 12px;
}

.dept-link-ul li+li{
    border-top: 1px dashed var(--j-green);
}

.dept-link-ul li{
    padding: 10px 0px;
    text-align: center;
    transition: .3s;
}

.dept-link-ul li a{
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 0px 10px;
}

.dept-link-ul li:hover{
    background-color: var(--j-l-green);
}



.dept-link-ul li.active{
    background-color: var(--j-l-green);
}

.dept-title{
    font-weight: 500;
    margin-bottom: 50px;
    letter-spacing: 2px;
}


.dept-sub-title{
    color: var(--j-orange);
    font-size: 20px !important;
    font-weight: 500;
}
.dept-sub-sub-title{
    color: var(--j-green);
    font-size: 20px !important;
    font-weight: 500;
}


.dept-1 .indent{
    text-indent: -80px;
    margin-left: 80px;
}

.dept-content ul li{
    text-align: justify;
}

.dept-content ul{
    padding-left: 40px;
}



.dept-menu-sp-btn {
        display: none;
}

.dept-content ol{
    padding-left: 40px; 
}

.dept-content ol.cjk-decimal{
    padding-left: 70px;
}

.decimal li{
    list-style: decimal;
}

.cjk-decimal li{
    list-style: cjk-decimal;
}

.lower-alpha li{
    list-style: lower-alpha;
}

.insurance-pills{
    gap: 20px;
}


.insurance-pills .nav-link.active, .insurance-pills .show > .nav-link{
    background-color: var(--j-green);
    color: #fff;
}

.insurance-pills .nav-link{
    background-color: var(--j-l-green);
    font-size: 20px;
    font-weight: 500;
}

.dept-5 .indent{
    text-indent: -1.5em;
    margin-left: 1.5em;
}


#is_1 .table{
    background-color: #fff1ea;
}

#is_1 .table th{
    font-size: 20px;
    background-color: var(--j-orange);
    color: #fff;
}

/*公告事項-------------------------------------*/
.ann-content table a:hover{
    color: var(--j-green);
}

/*金融看板*/
.finance-content-1 table{
    text-align: center;
    background-color: #fff;
}

.finance-content-1 table td{
    vertical-align: middle;
}

.fc-title{
    font-size: 30px;
    font-weight: 500;
}

.bg-l-green{
    background-color: #f4faf3;
}

.bg-soft{
    background-color: #fffede;
}

.bg-pink{
    background-color: #ffeeee;
}

.bg-blue{
    background-color: #e4fdff;
}

.finance-content-1 img {
    width: 100%;
    max-width: fit-content;
}
.table a{
    font-weight: 500;
}

.table a:hover, a:hover{
    color: var(--j-green);
}
/*文件下載-------------------------------------*/
.sort-wrap{
    display: flex;
    align-items: center;
}

.sort-wrap select{
    width: fit-content;
}

.sort-search-wrap{
    position: relative;
    margin-left: 10px;
    flex-grow: 1;
}
.sort-search-wrap a{
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.download-content .table th:nth-child(2),
.download-content .table td:nth-child(2) > div{
    font-size: 18px;
}

.download-search-actions{
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.download-search-actions .sort-search-wrap{
    min-width: 0;
}
@media (max-width: 767px){
    .download-content .table th:first-child,
    .download-content .table td:first-child:not([colspan]){
        font-size: 14px;
    }
    .download-content .sort-wrap{
        flex-wrap: wrap;
    }
    .download-search-actions{
        flex-basis: 100%;
        margin-top: 10px;
    }
    .download-search-actions .sort-search-wrap{
        margin-left: 0;
    }
}

/*重農會刊-------------------------------------*/

.new-periodical-wrap{
    background-color: var(--j-l-green);
    display: flex;
    align-items: flex-start;
    gap: 50px;
    padding: 20px;
    border-radius: 15px;
    position: relative;
}

.new-periodical-wrap::before{
    position: absolute;
    content: '';
    background: url(../img/periodical-deco_1.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 200px;
    height: 300px;
    right: -40px;
    top: -80px;
    
}

.periodical-slick-box{
    display: block;
    width: 20%;
}

.periodical-slick-box img{
    border-radius: 5px;
    width: 100%;
}

.new-periodical-cat{
    background-color: #fff;
    color: var(--j-green);
    border-radius: 3px;
    padding: 2px 8px;
    font-weight: 500;
    letter-spacing: 2px;
}

.new-periodical-title{
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--j-green);
}

.new-periodical-title span{
    font-size: 26px;
}

.read-periodical-btn{
    background-color: var(--j-green);
    color: #fff !important;
    font-size: 22px;
    padding: 0px 12px;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
    transition: .3s;
}

.read-periodical-btn:hover{
    background-color: var(--j-h-green);
}

.old-periodical-link{
    display: flex;
    align-items: stretch;
    gap: 16px;
    height: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.old-periodical-cover{
    display: block;
    flex: 0 0 45%;
    min-width: 0;
}

.old-periodical-cover img{
    display: block;
    width: 100%;
    border-radius: 5px;
}

.old-periodical-btn{
    background-color: #fff;
    color: var(--j-green) !important;
    border: 1px solid var(--j-green);
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
    align-self: flex-end;
    white-space: nowrap;
    transition: .3s;
}

.old-periodical-btn:hover{
    background-color: var(--j-green);
    color: #fff !important;
}

.old-periodical-info{
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.old-periodical-info p:first-child{
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.old-periodical-info .old-periodical-date{
    color: #888;
    font-size: 14px;
}

/*農特產品--------------------------------------*/
.product-wrap{
    font-size: 18px;
}

/*相關連結頁面----------------------------------*/
.link-content .row a{
    font-size: 18px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: .3s;
}


.link-content .row a:hover{
    background-color: var(--j-green);
    color: #fff;
}


/*聯絡我們--------------------------------------*/

.contact-wrap{
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.ct-left p:first-child{
    font-size: 24px;
    font-weight: 500;
    color: var(--j-green);
}

.ct-right{
    flex: 1;
    min-width: 50%;
}

.contact-form__row{
    display: grid;
    grid-template-columns: 54px 120px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.contact-form__row[hidden]{
    display: none;
}

.contact-form__required{
    justify-self: center;
    padding: 0 7px;
    border-radius: 3px;
    background-color: #ffd329;
    color: #333;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
    font-weight: 500;
}

.contact-form__label{
    margin: 0;
    color: var(--j-green);
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.contact-form__control input:not([type="radio"]),
.contact-form__control textarea{
    display: block;
    width: 100%;
    border: 1px solid #d9ddda;
    border-radius: 7px;
    background-color: #fff;
    color: var(--j-dark);
    font: inherit;
    line-height: 1.5;
}

.contact-form__control input:not([type="radio"]):focus,
.contact-form__control textarea:focus{
    border-color: rgba(0, 141, 102, 0.55);
    outline: 2px solid rgba(0, 141, 102, 0.12);
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgba(0, 141, 102, 0.08);
}

.contact-form__control input:not([type="radio"]){
    height: 42px;
    padding: 6px 12px;
}

.contact-form__control textarea{
    min-height: 230px;
    padding: 10px 12px;
    resize: vertical;
}

.contact-form__radio-group,
.contact-form__radio-group label{
    display: flex;
    align-items: center;
}

.contact-form__radio-group{
    gap: 30px;
}

.contact-form__radio-group label{
    gap: 9px;
    margin: 0;
    white-space: nowrap;
}

.contact-form__radio-group input{
    width: 16px;
    height: 16px;
    accent-color: var(--j-green);
}

.contact-form__row--message{
    align-items: start;
}

.contact-form__row--message .contact-form__required,
.contact-form__row--message .contact-form__label{
    margin-top: 4px;
}

.contact-form__row--captcha{
    margin-top: 34px;
}

.contact-form__captcha{
    display: grid;
    grid-template-columns: minmax(100px, 1fr) minmax(120px, 1fr);
    align-items: center;
    gap: 20px;
}

.contact-form__captcha-image{
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
}

.contact-form__actions{
    margin-top: 65px;
    text-align: center;
}

.contact-form__actions button{
    min-width: 160px;
    padding: 10px 22px;
    border: 0;
    border-radius: 7px;
    background-color: var(--j-orange);
    color: #fff;
    font-size: 20px;
    letter-spacing: 3px;
    transition: background-color .2s ease;
}

.contact-form__actions button:hover{
    background-color: var(--j-h-orange);
}

.form-messege:empty{
    display: none;
}

@media (max-width: 767px){
    .contact-wrap{
        flex-direction: column;
        gap: 30px;
    }

    .ct-right{
        width: 100%;
    }

    .contact-form__row{
        grid-template-columns: 46px minmax(72px, 90px) minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }


    .contact-form__radio-group{
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .contact-form__captcha{
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-form__captcha-image{
        width: 120px;
    }

    .contact-form__actions{
        margin-top: 35px;
    }
}

@media (max-width: 575px){

    .insurance-pills .nav-link{
        font-size: 18px;
    }

    .contact-form__row{
        grid-template-columns: 46px minmax(0, 1fr);
        align-items: start;
    }

    .contact-form__control{
        grid-column: 1 / -1;
        width: 100%;
    }

    .contact-form__radio-group{
        grid-column: 1 / -1;
        padding-left: 0;
    }

    .contact-form__captcha{
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding-left: 0;
    }
}

/*保管箱出租------------------------------------*/
.sdbr-content{
    font-size: 17px;
    text-align: justify;
    padding-bottom: 150px;
}

.sdbr-content table td{
    vertical-align: middle;
}

.sdbr-content table{
    background-color: #fff;
}

.sdbr-content table .font-weight-bold{
    background-color: var(--j-soft);
}

/*農會花絮--------------------------------------*/
@media (max-width: 767px){
    .gallery-filters label,
    .gallery-filters select,
    .gallery-filters option{
        font-size: 15px;
    }
    .gallery-filters{
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.4fr);
        gap: 10px 4px;
    }
    .gallery-filters select{
        width: 100%;
        min-width: 0;
        margin-right: 0 !important;
    }
    .gallery-filters select[name="year"]{
        grid-column: 1 / -1;
        justify-self: end;
        width: fit-content;
    }
}

.gv_nav{
    position: relative;
    border-bottom: unset;
    justify-content: space-between;
}

.gv_nav::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    height: 60px;
    border-left: 1px dashed #aaa;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gv_nav .nav-item{
    width: 48%;
}

.gv_nav .nav-link.active,
.gv_nav .nav-item.show .nav-link{
    background-color: unset;
    border-color: transparent;
}

.gv_nav .nav-link.active span, 
.gv_nav .nav-item.show .nav-link span{
    border-bottom: 2px solid var(--j-green);
    color: var(--j-green);
    padding-bottom: 10px;
}


.gv_nav .nav-link{
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
}


.gv_nav  .nav-link:hover,
.gv_nav  .nav-link:focus,
.gv_nav  .nav-link:focus-visible{
    border-color: transparent;
    color: var(--j-green)
}


.gallery-link img{
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    transition: .3s;
    max-height: 200px;
    height: 200px;
    object-fit: cover;
}

.gallery-link-cat{
    margin-bottom: 10px;
    background-color: #fff;
    color: var(--j-green);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 5px;
    font-weight: 500;
    transition: .3s;
}

.gallery-link-title{
    font-size: 18px;
    font-weight: 500;
    min-height: 64px;
    max-height: 64px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    transition: .3s;
}


.gallery-link:hover .gallery-link-title{
    color: var(--j-green);
}

.gallery-link:hover img{
    filter: brightness(110%);
}
.gallery-link:hover .gallery-link-cat{
    background-color: var(--j-green);
    color: #fff;
}

.video-frame{
    position: relative; 
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    border-radius: 10px;

}

.video-frame iframe, .video-frame object, .video-frame embed {
    position: absolute;
    top: 0;left: 0;
    width: 100%;
    height: 100%;
}


.video-cat{
    color: var(--j-green);
    background-color: #fff;
    border-radius: 5px;
    padding: 3px 8px;
}
    
.video-title{
    font-size: 20px;
    font-weight: 500;
}

.gallery-info{
    text-align: justify;
}

.gallery-back-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--j-green);
    border-radius: 6px;
    background: #fff;
    color: var(--j-green);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 20px;
}
.gallery-back-button:hover,
.gallery-back-button:focus-visible{
    background: var(--j-green);
    color: #fff;
    text-decoration: none;
}
.gallery-back-button:focus-visible{
    outline: 2px solid var(--j-green);
    outline-offset: 3px;
}

.gallery-lightbox-item{
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-lightbox-item img{
    transition: transform .3s ease;
}

.gallery-lightbox-item:hover img{
    transform: scale(1.04);
}

.slick-lightbox .slick-prev,
.slick-lightbox .slick-next{
    z-index: 1;
    width: 44px;
    height: 44px;
}

.slick-lightbox .slick-prev:before,
.slick-lightbox .slick-next:before{
    font-size: 36px;
}

.slick-lightbox .slick-lightbox-close{
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
}

.slick-lightbox .slick-lightbox-close:before{
    font-size: 36px;
}

.slick-lightbox .slick-lightbox-slick-img{
    cursor: zoom-in;
    transition: transform .2s ease;
}

.slick-lightbox .slick-lightbox-slick-img.periodical-zoomed{
    cursor: zoom-out;
    transform: scale(1.7);
}

/* 會刊放大後由目前圖片所在的投影片捲動，保留圖片上下邊界。 */
.slick-lightbox.periodical-reader .slick-lightbox-slick-item.periodical-zoomed{
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}
.slick-lightbox.periodical-reader .slick-lightbox-slick-item.periodical-zoomed:before{
    display: none;
}
.slick-lightbox.periodical-reader .periodical-zoomed .slick-lightbox-slick-item-inner{
    display: block;
    max-width: none;
    max-height: none !important;
    margin: 24px auto;
}
.slick-lightbox.periodical-reader .slick-lightbox-slick-img.periodical-zoomed{
    transform: scale(2);
    transform-origin: top left;
    max-width: none;
    max-height: none !important;
    margin: 0;
}

/*RWD------------------------------------------*/

@media (max-width: 1440px){
    .rice-baby{
        right: 0px;
    }

    .j-container{
        width: 90%;
    }
    .periodical-slick-box {
        width: 25%;
    }

}


@media (max-width: 1340px){

    footer::before{
        width: 250px;
        height: 250px;
        top: -98px;
        left: 0px;
    }   


    .ct-right{
        min-width: 60%;
    }

   
    .site-navbar__menu {
        gap: 10px;
    }
    .site-navbar__brand img {
        width: 300px;
    }
    .site-navbar__inner{
        padding: 0px 15px;
    }

    .deco2{
        width: 300px;
        height: 300px;
    }

    .deco3{
        width: 250px;
        height: 250px;
    }

    .gallery-block::before{
        width: 200px;
        height: 200px;
        left: 0px;
        top: -160px;
    }

}



@media (min-width: 1200px) and (max-width: 1340px){
    .site-navbar__item--dropdown:nth-child(7) > .site-navbar__submenu{
        right: 0;
        left: auto;
        transform: translateY(-8px);
    }

    .site-navbar__item--dropdown:nth-child(7):hover > .site-navbar__submenu,
    .site-navbar__item--dropdown:nth-child(7):focus-within > .site-navbar__submenu,
    .site-navbar__item--dropdown:nth-child(7).is-open > .site-navbar__submenu{
        transform: translateY(0);
    }
}

@media (max-width: 1199px){

     footer::before{
        width: 200px;
        height: 200px;
        top: -60px;
        left: 0px;
    } 

    .new-periodical-wrap::before{
        width: 150px;
        height: 170px;
        right: -11px;
    }

    body.site-navbar-menu-open{
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.site-navbar-menu-open .site-navbar{
        z-index: 2000;
    }

    .site-navbar__inner{
        min-height: 70px;
        padding: 0 18px;
        flex-wrap: wrap;
        gap: 0;
    }

    .site-navbar__brand img{
        width: 280px;
    }

    .site-navbar__toggle{
        display: inline-flex;
    }

    .site-navbar__panel{
        position: fixed;
        inset: 0;
        z-index: 1;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        padding: 88px 18px 28px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        transform: translateX(-100%);
        pointer-events: none;
        background-color: #fff;
        will-change: transform;
        transition: none;
    }

    .site-navbar__panel.is-open,
    .site-navbar__panel.is-closing{
        visibility: visible;
        pointer-events: auto;
    }

    .site-navbar__panel.is-open{
        transform: translateX(0);
    }

    .site-navbar__panel.is-animating{
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-navbar__panel-close{
        position: absolute;
        top: 18px;
        right: 18px;
        z-index: 2;
        width: 46px;
        height: 46px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 8px;
        background-color: transparent;
        color: var(--j-green);
    }

    .site-navbar__panel-close-icon,
    .site-navbar__panel-close-icon::before{
        width: 24px;
        height: 2px;
        display: block;
        border-radius: 999px;
        background-color: currentColor;
    }

    .site-navbar__panel-close-icon{
        position: relative;
        transform: rotate(45deg);
    }

    .site-navbar__panel-close-icon::before{
        content: '';
        position: absolute;
        inset: 0;
        transform: rotate(90deg);
    }

    .site-navbar__menu{
        width: min(100%, 680px);
        margin: 0 auto;
        padding: 10px 0 20px;
        display: block;
        border-top: 1px solid rgba(0, 141, 102, 0.12);
    }

    .site-navbar__link{
        width: 100%;
        min-height: 48px;
        padding: 11px 8px;
        justify-content: space-between;
        font-size: 16px;
        text-align: left;
    }

    .site-navbar__link::after{
        right: auto;
        bottom: 7px;
        left: 8px;
        width: 80px;
        transform-origin: left;
        display: none;
    }

    .site-navbar__submenu a:hover, .site-navbar__submenu a:focus-visible{
        background-color: transparent ;
    }

    .site-navbar__item--dropdown::before{
        display: none;
    }

    .site-navbar__submenu{
        position: static;
        width: 100%;
        min-width: 0;
        max-height: 0;
        padding: 0 0 0 12px;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(0, 141, 102, 0.045);
        transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0.7s;
    }

    .site-navbar__item--dropdown:hover > .site-navbar__submenu,
    .site-navbar__item--dropdown:focus-within > .site-navbar__submenu{
        max-height: 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
    }

    .site-navbar__item--dropdown.is-open > .site-navbar__submenu,
    .site-navbar__item--dropdown.is-open:hover > .site-navbar__submenu,
    .site-navbar__item--dropdown.is-open:focus-within > .site-navbar__submenu{
        max-height: 360px;
        padding-top: 5px;
        padding-bottom: 5px;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-navbar__submenu a{
        padding: 5px;
        white-space: normal;
        font-size: 16px;
    }

    #hero-right-arrow,
    #hero-left-arrow,
    #gallery-right-arrow,
    #gallery-left-arrow,
    #link-right-arrow,
    #link-left-arrow,
    #products-right-arrow,
    #products-left-arrow{
        width: 30px;
        height: 30px;
    }

    #gallery-right-arrow{
        right: -30px;
    }

    #gallery-left-arrow{
        left: -30px;
    }

    #products-right-arrow{
        right: -30px;
    }
    #products-left-arrow{
        left: -30px;
    }

    #link-right-arrow{
        right: -30px;
    }
    #link-left-arrow{
        left: -30px;
    } 


    .j-container {
        width: 95%;
    }

}

@media (max-width: 1000px){

    .contact-wrap {
        flex-direction: column;
    }

    .ct-right{
        width: 100%;
    }
    .new-periodical-wrap{
        flex-direction: column;
    }
    .periodical-slick-box {
        width: 50%;
        margin: 0 auto ;
    }

    .new-periodical-wrap::before{
        right: 0;
        top: unset;
        bottom: -100px;
    }


    .gallery-link-cat{
        font-size: 14px;
    }

    .dept-title{
        margin-top: 50px;
        margin-bottom: 30px;
    }

     .dept-menu-title {
            display: none;
        }

        .dept-menu-sp-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 10px;
            color: var(--j-green);
            font-size: 20px;
            font-weight: 500;
            text-align: left;
            background-color: var(--j-l-green);
            border: 0;
            border-bottom: 1px solid var(--j-green);
            cursor: pointer;
        }

        .dept-menu-sp-btn i {
            transition: transform .3s;
        }

        .dept-menu-sp-btn.open i {
            transform: rotate(180deg);
        }

        .dept-link-ul {
            display: none;
        }

    .dept-wrap{
        flex-direction: column;
    }

    .dept-content,
    .dept-menu{
        width: 100%;   
    }

    .fast-link{
        gap: 10px;
    }

    .fast-link a {
        width: 48%;
    }

    footer::before{
        width: 180px;
        height: 180px;
        top: -131px;
        left: 0px;
    }

}



@media (max-width: 767px){

    .links-block-inner{
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-link-title{
        font-size: 17px;
    }

    p{
        font-size: unset;
    }

    .footer-inner{
        flex-direction: column;
        gap: 20px;
    }
    .footer-info::before{
        display: none;
    }

    #link-right-arrow {
        right: -40px;
    }
    #link-left-arrow {
        left: -40px;
    }

    h3{
        font-size: 28px !important;
    }

    h4{
        font-size: 26px !important;
    }
    .news-title{
        font-size: 18px;
    }

    .rice-baby{
        top: -167px;
        right: 0;
    }

    .rice-baby img{
        width: 200px;
    }
    .rice-baby::before {
        width: 200px;
        height: 200px;
    }

}


@media (max-width: 575px){

    
    .periodical-slick-box{
        width: 100%;
    }
    .new-periodical-wrap::before {
        right: 0;
        top: unset;
        bottom: -50px;
        width: 120px;
        height: 130px;
    }

    .fc-title {
        font-size: 22px !important;
    }

    .finance-content-1 table td{
        font-size: 16px;
    }

    .news-inner-link{
        gap: 15px;
    }


    .dept-content ol.cjk-decimal {
        padding-left: 40px;
    }

    .dept-content ol.cjk-decimal  ol{
        padding-left: 20px;
    }

    .footer-logo img {
        width: 200px;
    }

    .gv_nav .nav-link {
        font-size: 22px;
        padding: 0.5rem;
    }

    .page-top {
        height: 180px;
        margin-bottom: 50px;
    }

    .page-title {
        font-size: 28px;
        left: 5%;
        bottom: 0;
        padding: 10px 15px;
    }

    .page-top::after{
        width: 180px;
        height: 180px;
        top: 0;
    }

    .news-inner-link-left span{
        font-size: 14px;
    }
    .news-inner-link-left p{
        font-size: 18px;
    }

    .news-inner-link-right{
        width: 30px;
        height: 30px;
    }

    .pagination{
        font-size: 15px;
        gap: 15px;
    }

    .pagination a{
        width: 35px;
        height: 35px;
    }


    footer{
        border-top-right-radius: 30px;
        border-top-left-radius: 30px;
    }

    footer::before {
        width: 160px;
        height: 160px;
        top: -110px;
        left: 0px;
    }

    .page-top::before{
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 300' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H390V246C305 256 225 258 145 245C90 236 45 235 0 252Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 300' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H390V246C305 256 225 258 145 245C90 236 45 235 0 252Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    }

    #link-right-arrow {
        right: -30px;
    }
    #link-left-arrow {
        left: -30px;
    }

    
    .link-slick-arrow{
        background-color: #fff;
    }

    .gallery-block{
        border-radius: 30px;
    }
    .links-block{    
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    }

    .links-block-inner{
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

     .deco2{
        width: 250px;
        height: 250px;
    }

    .deco3{
        width: 200px;
        height: 200px;
    }

    .gallery-block::before{
        width: 150px;
        height: 150px;
        left: 0px;
        top: -120px;
    }

    .rice-baby{
        top: -126px;
        right: 0;
    }

    .rice-baby img{
        width: 150px;
    }
    .rice-baby::before {
        width: 150px;
        height: 150px;
    }

    .gallery-cat-wrap{
        justify-content: flex-start;
        gap: 10px;
    }
    #gallery-right-arrow,
    #products-right-arrow{
        right: -10px;
    }
    #gallery-left-arrow,
    #products-left-arrow{
        left: -10px;
    }

   

    .video-block-inner div a {
        gap: 10px;
        padding: 10px;
    }

    .video-block-inner div a i{
        font-size: 20px;
        display: none;
    }
    .video-block-inner div a p{
        font-size: 16px;
    }

    .video-block-inner div a span {
        padding: 0px 4px;
        font-size: 13px;
    }

    .site-navbar__inner{
        padding-right: 14px;
        padding-left: 14px;
    }

    .site-navbar__brand img{
        width: 200px;
    }

    .fast-link a {
        font-size: 15px;
    }
    .j-container{
        width: 100%;
    }

    .hero .slick-slide img{
        
        object-fit: cover;
    }
}

@media (prefers-reduced-motion: reduce){
    .site-navbar *,
    .site-navbar *::before,
    .site-navbar *::after{
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/*全站表單欄位焦點樣式*/
input:not([type]),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="month"],
input[type="week"],
input[type="datetime-local"],
textarea,
select,
.form-control:focus{
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:not([type]):focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus,
.form-control:focus{
    border-color: rgba(0, 141, 102, 0.55) !important;
    outline: 2px solid rgba(0, 141, 102, 0.12) !important;
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgba(0, 141, 102, 0.08) !important;
}
