/*====================================
# 共同設定
==================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-size: 17px;
    line-height: 1.8;
    color: #333333;
    font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

::selection {
    color: #000000;
    background-color: #D2FADF;
}

section {
    padding: 3rem 2rem;
}

.heading {
    display: inline-block;
    position: relative;
    padding: 0 2.5em;
    color: #333333;
    margin-bottom: 1.5em;
}

.heading::before,
.heading::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 50%;
    width: 45px;
    height: 3px;
    background-color: #005c9d; 
}

.heading::before {
    left: 0;
}

.heading::after {
    right: 0;
}

.btn-m {
    font-size: 18px;
    padding: 1.3em 3em;
    letter-spacing: 2.5px;
    font-weight: 500;
    color: #000;
    background-color: #F9E282;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
}

.btn-m:hover {
    background-color: #ef6f6c;
    box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4);
    color: #fff;
    transform: translateY(-7px);
}

.btn-m:active {
    transform: translateY(-1px);
}

/* =======================================
# kv
========================================= */
.kv {
    margin-top: 74px;
}

@media (min-width:768px) {
    .xs-vis {
        display: none;
    }
}

@media (max-width:768px) {
    .xs-hide {
        display: none;
    }

    .xs-vis {
        display: block;
    }

}


/*====================================
# foreword
==================================== */

.foreword {
    position: relative;
    padding: 5rem 2rem 4rem;
    font-size: 18px;
    line-height: 2;
}

.foreword::after {
    content: "";
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 40px 100px 0 100px;
    bottom: -40px;
    border-color: #ffffff transparent transparent transparent;
    z-index: 1;
}

@media (max-width:576px) {
    .foreword {
        padding: 3rem 1.8rem;
        font-size: 17px;
    }
}

/*====================================
# info
==================================== */
.info h5{
    color: #ffffff;
}
/*====================================
# agenda
==================================== */
.agenda {
    font-size: 18px;
    padding-top: 6rem;
    background-color: #eeeeee;
}

.bl {
    border-left: 2px solid #005c9d;
}

.agenda-content {
    background-color: #fff;
    margin-bottom: 1rem;
    padding: 1rem 0;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.agenda-content:hover {
    background-color: #f4fcf6;
}

.agenda-content ul {
    list-style: square;
    font-size: 16px;
}

.sp-info {
    font-size: 15px;
    color: #9AAEBB;
    margin-top: 10px;
}

.sp-name {
    font-size: 17px;
    color: #006292;
}

@media (max-width:576px) {
    .sp-info img {
        max-width: 180px;
        margin-bottom: 15px;
    }
}

/*====================================
# gift
==================================== */
.gift,
.form {
    background-image: url(../img/bg.png);
    background-repeat: no-repeat;
    background-position: bottom;
}
/*====================================
# notice
==================================== */
.notice{
    color: #373737;
    background-color: #005c9d64;
}
/* =======================================
  # footer
  ========================================= */

.footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    background-color: #005c9dd4;
}

.footer-logo {
    height: 4rem;
}


.footer-copyright {
    margin: 0;
    color: #ffffffb3;
    font-weight: 200;
    font-size: .8em;
}

/* =======================================
# Page Top
========================================= */

/* 連結的形狀 */
#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #D2E4D6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 60px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.6rem;
    transition: all 0.3s;
}

#page-top a:hover {
    background: #9DB0A3;
}


#page-top a::before {
    content: "";
    display: block;
    height: 15px;
    width: 15px;
    border: solid #43493A;
    border-width: 3px 3px 0 0;
    transform: rotate(-45deg);
}


/* 位置右下跳出 */
#page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    /*一開始隱藏*/
    opacity: 0;
    transform: translateY(100px);
}

/*　向上動畫設定　*/

#page-top.UpMove {
    animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*　向下動畫設定　*/

#page-top.DownMove {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(100px);
    }
}

/* 0630 */
.read-more {
    position: relative;
}

.read-more p {
    position: relative;
    max-height: 160px; /* 顯示高度 */
    margin-bottom: 0;
    overflow: hidden;
    transition: max-height 1s;
}

.read-more span {
    padding-left: 50px;
}

.read-more:has(:checked) p {
    max-height: 100vh;
}

.read-more p::after {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .9) 50%, hsla(0, 0%, 100%, .9) 0, #fff);
    content: '';
}

.read-more:has(:checked) p::after {
    content: none;
}

.read-more label {
    display: flex;
    align-items: center;
    gap: 0 4px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #4f96f6;
    font-size: .8em;
}

.read-more label:hover {
    color: #c7511f;
    text-decoration: underline;
    cursor: pointer;
}

.read-more:has(:checked) label {
    display: none;
}

.read-more label::after {
    display: inline-block;
    width: 10px;
    height: 5px;
    background-color: #b6bdc3;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
}

.read-more input {
    display: none;
}








.info p{
    padding: 1em 1em 1em 2.5em;
    
}


.box-019 {
    position: relative;
    margin-top: 1em;
    padding: 1.8em 1.5em 1em 1.5em;
    /* border: 2px solid #2589d0; */
    background-color: #f2f2f2;
    margin-bottom: 60px;
}

.box-019 > h5 {
    position: absolute;
    top: -1.15em;
    left: -.5em;
    padding: .8em 1em;
    /* border-radius: 25px; */
    background-color: #2589d0;
    color: #fff;
    font-size: 16px;
    
}

/* .box-019 > h5::before {
    position: absolute;
    bottom: -8px;
    left: 60%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    background-color: #2589d0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
} */

.box-019 p {
    margin: 0;
}

.heading-007 {
    display: inline-block;
    position: relative;
    color: #333;
    margin-bottom: 10px;
}

.heading-007:before {
    content: '';
    display: inline-block;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background-color: #2589d0;
}

.box-019 .col-sm-4{
    padding-top:10px;
}



.heading-016 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333333;
    margin-bottom: 30px;
}

.heading-016::before,
.heading-016::after {
    width: 3px;
    height: 20px;
    background-color: #2589d0;
    content: '';
}

.heading-016::before {
    transform: rotate(-35deg);
    margin-right: 30px;
}

.heading-016::after {
    transform: rotate(35deg);
    margin-left: 30px;
}