@font-face {
    font-family: '源泉圓體';
    src: url('../font/GenSenRounded2TW-B.otf') format("opentype");
}

body {
    font-family: '源泉圓體', sans-serif;
    font-weight: bold;
}

.font_brown {
    color: #492424;
}

.logo {
    width: 15em;
}

.center_width {
    max-width: 81.25em;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 2em;
    right: 2em;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    border-radius: 99em;
}

    #topBtn img {
        width: 4em;
    }

/****輪播****/

.carousel-indicators_btn .ori {
    height: 0.5em;
    width: 0.5em;
    background-color: #817078;
    margin: 0 0.8em;
    border-radius: 100%;
}

.carousel-indicators_btn .active {
    background-color: #f178ad;
}

.carousel-caption img {
    object-fit: none;
    max-width: 50%;
    margin-left: 25%;
}

/****導覽列****/
.navbar {
    background-color: #ffffff;
}

.navbar-brand {
    width: static;
}

.up_media {
    position: absolute;
    top: -1em;
    right: 0;
}

    .up_media img {
        width: 1.5em;
        margin: 0 0.2em;
    }

.navbar-nav {
    position: relative;
}

    .navbar-nav a:hover {
        color: #444444;
    }

.up_btn {
    text-decoration: none;
    color: #444444;
    padding-top: 0.7em;
    font-size: 1.05em;
}

.nav_position {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/****區塊1****/
.absolute_outside {
    position: relative;
}

.absolute_inside1 {
    position: absolute;
    width: 20%;
    top: 40%;
    right: 20%;
}

.absolute_inside2 {
    position: absolute;
    bottom: 0em;
}

.section1_bgimg {
    background-image: url('../img/image_Bg1-1.png');
    background-repeat: no-repeat;
    background-color: #ffd5d4;
    /* background-color: #fff; */
}

.section2_bgimg {
    background-image: url('../img/Image_Bg2.png');
    background-repeat: no-repeat;
}

.section1_grid1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.section1_grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

/* .section1_grid3{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
} */

.section1_grid1 img {
    width: 12em;
}

.section1_grid2 img {
    width: 12em;
}


.section1_pb {
    padding-bottom: 15.6em;
}

.intro3_pb {
    padding-bottom: 3.75em;
}

.section1_title {
    font-size: 1.6em;
    text-align: center;
    color: #f178ad;
    position: relative;
}

    .section1_title::after {
        content: "";
        width: 10%;
        height: 0.15em;
        background: #f178ad;
        position: absolute;
        left: 45%;
        top: 100%;
    }

.news_btn {
    position: relative;
    
}

/*{
    content: "";
    position: absolute;
    padding-top: 0.15em;
    font-size: 1.1em;
    color: #ffffff;
    width: 3.5em;
    height: 1.8em;
    border-radius: 0.5em;
    left: 22%;
    top: 80%;
}*/



.event::after {
    content: "活動";
    background: #00b9e7;
}

.message::after {
    content: "消息";
    background: #d32a00;
}

.fundraising::after {
    content: "消息";
    background: #72b900;
}

.promotion::after {
    content: "優惠";
    background: #f178ad;
}


.news_title {
    margin: 0.6em 20%;
    font-size: 1.1em;
    text-align: left;
}

.service_btn {
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 1em;
    width: 8em;
    height: 2em;
}

.service1 {
    color: #ffbb00;
    border: 0.15em solid #ffbb00;
}

.service2 {
    color: #00b9e7;
    border: 0.15em solid #00b9e7;
}

.service3 {
    color: #3127b8;
    border: 0.15em solid #3127b8;
}

.service4 {
    color: #2ec229;
    border: 0.15em solid #2ec229;
}

.more {
    text-align: center;
}

.more_btn {
    margin: 1.25em auto;
    font-weight: bold;
    border-radius: 1em;
    width: 8em;
    height: 2em;
    background-color: #f178ad;
    color: #ffffff;
    border: none;
}

/****區塊2****/
.section2_grid1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8em;
    text-align: center;
}

    .section2_grid1 img {
        width: 12em;
    }

/****Foot****/
.foot_bg {
    background-color: #fffcf3;
}

.foot_left {
    padding-left: 0.6em;
    font-size: 1rem;
    line-height: 1.7em;
}

.foot_logo {
    margin-top: 2em;
    margin-bottom: 0.6em;
    text-align: left;
}

    .foot_logo img {
        width: 20em;
    }

.foot_right {
    font-size: 1em;
    line-height: 1.8em;
    text-align: center;
}

.foot_grid2 {
    display: grid;
    grid-template-columns: none;
}

.foot_grid3 {
    color: #444444;
    font-size: 0.9em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.foot_grid3_left {
    padding-right: 2em;
    text-align: right;
}

.foot_btm_logo {
    text-align: center;
}

@media screen and (max-width:768px) {
    #topBtn {
        bottom: 0.5em;
        right: 0.5em;
    }

        #topBtn img {
            width: 3em;
        }

    /****輪播****/

    .carousel-indicators_btn .ori {
        margin: 0 0.5em -1em 0.5em;
    }

    .carousel-caption img {
        object-fit: contain;
    }

    /****導覽列****/

    .logo {
        width: 95%;
    }

    .up_media {
        position: static;
    }

    .nav_position {
        max-width: none;
    }

    .navbar-brand {
        width: 70%;
    }

    /****區塊1****/
    .section1_grid1 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section1_grid2 {
        display: none;
        grid-template-columns: repeat(2, 1fr);
    }

    .section1_grid1 img {
        width: 10em;
    }

    .section1_grid2 img {
        width: 10em;
    }

    .section1_pb {
        padding-bottom: 8em;
    }

   

}

.section1_title::after {
    width: 40%;
    left: 30%;
}

.news_title {
    margin: 0.6em 5%;
}

/****區塊2****/
.section2_grid1 {
    grid-template-columns: repeat(2, 1fr);
}

    .section2_grid1 img {
        width: 10em;
    }

/****Foot****/
.foot_logo {
    text-align: center;
}

.foot_left {
    font-size: 0.8em;
}

.foot_right {
    font-size: 0.8em;
}

.foot_grid2 {
    grid-template-columns: repeat(2, 1fr);
}

.foot_grid3 {
    font-size: 0.7em;
    text-align: center;
    grid-template-columns: 1fr;
}

.foot_grid3_left {
    padding-right: 0em;
    text-align: center;
}

.news-wrapper .news-item {
    display: flex;
    flex-wrap: wrap;
    background-color: #f3f3f3;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e1e1;
}

    .news-wrapper .news-item .news-item-icon {
        width: 20px;
        height: 20px;
        background-image: url("../img/arrow_icon.png");
        border-radius: 100px;
        overflow: hidden;
        background-size: cover;
    }

    .news-wrapper .news-item .news-item-date {
        min-width: 110px;
        padding: 0 10px;
    }