/*basic*/
section#ay_sn_02 h2,
section#enter_group h2 {
    text-align: center;
    color: #000;
    font-size: 40px;
    line-height: 130%;
    font-weight: 500;
    margin-bottom: 24px;
}

@media screen and (max-width:1400px) {

    .page_title {
        position: relative !important;
        top: 0 !important;
        right: 0;
        z-index: 2;
        left: 0 !important;
        margin-bottom: 20px;
    }

    .page_title h2 {
        font-size: 24px;
        line-height: 140%;
        font-weight: 700;
        writing-mode: unset;
        letter-spacing: 10%;
        position: relative;
        font-family: 'Noto Serif TC', serif;
        color: #CCAE66;

        /* 排版關鍵 */
        display: flex;
        flex-direction: row-reverse;
        /* 讓 ::before 跑到右邊 */
        align-items: center;
        /* 讓線和文字垂直置中對齊 */
        justify-content: flex-end;
        /* 讓整體內容靠左 */
        white-space: nowrap;
        /* 強制文字絕對不能換行 */
    }

    .page_title h2::before {
        position: relative;
        height: 1px;
        flex: 1;
        margin-left: 8px;
        left: 0;
        transform: none;
        bottom: 0;

    }
}

@media screen and (max-width:992px) {
    .img_title {
        background-position: calc(25% + 36px) center;
    }

    section#ay_sn_02 h2,
    section#enter_group h2 {
        font-size: 24px !important;
        line-height: 100% !important;
        margin-bottom: 20px !important;
    }
}

/*ay_sn_01_div*/
section#ay_sn_01 {
    position: relative;
}

.ay_sn_01_div {
    position: relative;
    max-width: 1140px;
    margin: auto;
    padding: 120px 20px 80px 20px;
}

section#ay_sn_01 .page_title {
    position: absolute;
    top: 60px;
    left: -80px;
}

section#ay_sn_01 .page_title h2::before {

    bottom: -85%;
}

section#ay_sn_01 .boxthree {
    gap: 70px;
}

.how_box img {
    margin-bottom: 16px;
}

.how_box .text h3 {
    font-weight: 700;
    font-size: 30px;
    line-height: 130%;
    margin-bottom: 10px;
    text-align: center;
    color: #000;
}

.how_box .text p {
    font-size: 20px;
}

@media screen and (max-width:992px) {
    .ay_sn_01_div {
        padding: 40px 20px;
    }

    .ay_sn_01_div .boxthree {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px !important;
    }

    .how_box {
        display: grid;
        grid-template-columns: 140px auto;
        align-items: center;
    }

    .how_box img {
        margin-bottom: 0;
    }

    .how_box .text {
        padding: 16px 0 16px 15px;
    }

    .how_box .text h3 {
        font-size: 20px;
        margin-bottom: 5px;
        text-align: left;
    }

    .how_box .text p {
        font-size: 16px;
    }
}

/*ay_sn_02_div*/
section#ay_sn_02 {
    background: #F9F3E6;
    position: relative;
    padding: 50px 0;
}

section#ay_sn_02 h2 {
    text-align: center;
    color: #000;
    font-size: 40px;
    line-height: 130%;
    font-weight: 500;
    margin-bottom: 24px;
}

.ay_sn_02_div.food_grid.boxtwo {
    max-width: 1140px;
    padding: 0 20px;
    margin: auto;
    gap: 40px;
}

.set_box {
    position: relative;
    background: #fff;
    padding: 40px;
}

p.flex_setp {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 20px;
    color: #fff !important;
    line-height: 180%;
    text-align: center;
    background: #CCAE66;
    padding: 0 20px !important;
}

.set_box h3 {
    font-weight: 700;
    font-size: 30px;
    line-height: 120%;
    text-align: center;
    margin-bottom: 10px;
}

.set_box p {
    color: #666;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccae6680;
}

.set_box_join.food_grid.boxtwo {
    align-content: center;
    gap: 22px;
}

.set_box_join .text {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.ocard.set_box img.btn_logo {
    max-width: 139px;
}

.line.set_box img.btn_logo {
    max-width: 126px;
}

a.join_btn {
    background: #1E3E80;
    color: #fff;
    font-size: 20px;
    line-height: 180%;
    letter-spacing: 10%;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    align-items: center;
    gap: 8px;
        width: 100%;
    display: flex;
    justify-content: center;
     transition: transform 0.3s ease; 
}
a.join_btn:hover {
  transform: scale(1.1); 
}
a.join_btn svg {
    fill: none;
}

@media screen and (max-width:992px) {
    section#ay_sn_02 {
        padding: 40px 0;
    }

    .ay_sn_02_div.food_grid.boxtwo {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    p.flex_setp {
        line-height: 100%;
        padding: 6px 14px!important;
        font-size: 14px;
    }

    .set_box {
        padding: 36px 17px 20px 17px;
    }

    .set_box h3 {
        font-size: 20px;
        line-height: 130%;
        margin-bottom: 8px;
    }

    .set_box p {
        padding-bottom: 16px;
        margin-bottom: 16px;
        line-height: 100%;
    }

    .set_box_join.food_grid.boxtwo {
        align-content: center;
        gap: 10px;
        grid-template-columns: 110px auto;
    }

    .set_box_join .text {
        gap: 12px;
    }

    .ocard.set_box img.btn_logo {
        max-width: 110px;
    }

    .line.set_box img.btn_logo {
        max-width: 100px;
    }

    a.join_btn {
        font-weight: 500;
        font-size: 18px;
        line-height: 100%;
        padding: 10px 10px 12px 10px;
    }
    a.join_btn svg {
    max-width: 26px;
}
}

/*section#ay_sn_03*/
.ay_sn_03_div {
    max-width: 1140px;
    padding: 100px 20px;
    margin: auto;
    position: relative;
}

.ay_sn_03_div .page_title {
    position: absolute;
    right: -80px;
    top: 162px;
}

.ay_sn_03_div .page_title h2::before {
    bottom: -88%;
}

.ay_sn_03_div .en_title {
    font-size: 32px;
    margin-bottom: 24px;
    color: #9D7E63;
    font-weight: 500;
    line-height: 100%;
}

.ay_sn_03_div .new_text {
    padding: 24px 40px 24px 0;
}

.ay_sn_03_div .new_text h2 {
    font-size: 28px;
    padding-bottom: 0;
    border-bottom: none;
}

.ay_sn_03_div .excerpt_text p {
    color: #333;
}

.benefits_span {
    font-size: 42px;
    color: #CCAE66;
    font-weight: 300;
    line-height: 100%;
    text-align: right;
    position: relative;
    writing-mode: unset;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    opacity: 0.5;
    font-family: 'Noto Serif TC', serif;
}

.benefits_span::before {
    position: relative;
    height: 1px;
    flex: 1;
    margin-right: 16px;
    left: 0;
    transform: none;
    bottom: 0;
    background: #CCAE66;
    width: 1px;
    content: '';
    display: block !important;
    transform: translateY(4px);
}

@media screen and (max-width:992px) {
    .ay_sn_03_div {
        padding: 40px 20px;
    }
    .title_flex {
        display: flex;
        flex-direction: column-reverse;
    }
    .ay_sn_03_div .en_title {
        font-size: 14px;
        margin-bottom: 12px;
        letter-spacing: 8%;
    }
        .new_post_lsit {
        gap: 16px;
    }
        a.new_box {
        display: grid;
        grid-template-columns: 120px auto;
        gap: 16px;
    }
    .new_box .new_img {
    background-image: none !important;
}
.new_box .img_wrap {
    overflow: hidden;
    width: 100%;
    transition: transform 0.4s ease;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100%;
}
    .ay_sn_03_div .page_title {
        margin-bottom: 16px;
    }
    .ay_sn_03_div .new_text {
    padding: 12px 12px 12px 0;
}
.ay_sn_03_div .new_text h2 {
    font-size: 18px;
}
    .ay_sn_03_div .excerpt_text {
        display: block;
    }
    .excerpt_text p {
    font-size: 14px;
    line-height: 150%;
    -webkit-line-clamp: none;
}
.benefits_span {
    font-size: 14px;
}
.benefits_span::before {
    margin-right: 10px;
    transform: translateY(1px);
}
}