@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

* {
    padding: 0;
    margin: 0;
    outline: 0;
    border: 0;
    font-display: optional;
    font-family: 'Noto Sans TC', sans-serif;
}

*>img {
    width: 100%;
}

body {
    background-color: #a3d1be;
}

.pineapple {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    background-image: linear-gradient(#a3d1be 0, #a3d1be00 300px, #a3d1be00 calc(100% - 300px), #a3d1be00 100%),
        url('img/asset_06.png'), url('img/asset_03.png'),
        url('img/asset_bg.png'), url('img/asset_bg3.png');
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-y, repeat-y;
    background-position: top, bottom left, bottom right, top left, top right;
    background-size: cover, 360px, 360px, 14vw, 14vw;
    padding-bottom: 180px;
}

.pineapple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url(img/asset_01.png), url(img/asset_04.png), url(img/asset_02.png), url(img/asset_07.png);
    background-repeat: no-repeat;
    background-position: top 400px left, top 150px right, top 2780px left 20px, top 2400px right;
    background-size: 13vw, 15vw, 13vw, 13vw;
    padding-bottom: 150px;
}

footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #333;
    background-color: rgb(198 231 217);
}

.orange {
    color: #D47B3D;
    font-weight: 500;
}

.green {
    color: rgb(218, 224, 52);
    font-weight: 500;
}

.blue {
    color: #497277;
}

.active_title {
    margin: 80px auto 0 auto;
}
.active_title  img{
    width: 100%;
    aspect-ratio: 81 / 25;
}

.subtitle {
    position: relative;
    display: flex;
    gap: 15px;
    height: 80px;
    align-items: center;
    padding: 20px;
    background-color: rgb(57, 76, 67);
    border-radius: 20px 20px 0 0;
    margin: 0 8px;
}

.subtitle::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 52px;
    background-color: rgb(57, 76, 67);
    z-index: 0;
}

.subtitle span {
    color: rgb(218, 224, 52);
    font-size: 15px;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.subtitle h3 {
    font-size: 30px;
    height: 32px;
    color: #fff;
}

.subtitle .arrow {
    margin-left: auto;
}

.button_group {
    margin: 0 auto;
    justify-content: space-around;
    transform: translateY(10px);
    height: 50px;
    overflow: visible;
}

.button_group .btn {
    width: 30%;
    min-width: 300px;
    border-radius: 15px;
    padding: 0;
    color: transparent;
}

.white_bg, .green_bg {
    position: relative;
    z-index: 1;
    background-image: url('img/whiteboard.png');
    background-size: 100% 400px;
    background-repeat: no-repeat;
    padding: 20px;
    min-height: 435px;
}

.white_bg:before, .green_bg::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 35px;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background-position: top 20px center;
    background-size: 100%;
    background-repeat: repeat-y;
}

.white_bg {
    background-color: transparent;
    background-image: url('img/whiteboard.png'), url('img/whiteboard.png');
    background-position: top left, bottom left;
    background-repeat: no-repeat;
}

.green_bg {
    background-color: transparent;
    background-image: url('img/blackboard.png'), url('img/blackboard.png');
    background-position: top left, bottom left;
    background-repeat: no-repeat;
}

.white_bg:before {
    background-image: url('img/whiteboardbody.png');
}

.green_bg::before {
    background-image: url('img/blackboardbody.png');
}

.active_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
}

.active_content .card_group {
    width: 90%;
}

.active_content h3 {
    font-size: 2.5rem;
    font-weight: 500;
}

.active_content .italic {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    font-style: oblique;
}

nav {
    position: absolute;
    width: 100%;
    padding: 30px;
    z-index: 2;
}

.section_banner {
    position: relative;
    padding-top: 40px;
    height: 100vh;
    background-image: url('img/banner_bg2.png'), url('img/banner_bg3.png'), url('img/banner_bg1.png');
    background-size: 100%, 100%, 100%;
    background-repeat: no-repeat;
    background-position: bottom -85px left, bottom 40% left, bottom 40% left;
    background-color: #F8FCF7;
}

.section_banner h1 {
    max-width: 60vw;
    margin: auto;
}

.section_banner h1 {
    width: 100%;
    aspect-ratio: 24 / 10;
}
.section_banner .mascot_article {
    position: absolute;
    bottom: 0;
    left: 15%;
    bottom: 10%;
    display: flex;
    justify-content: center;
    width: 70%;
}

.section_qa {
    padding-top: 120px;
}

.mascot_article .mascot {
    display: flex;
    width: 33%;
}

.mascot_article .mascot img {
    margin: auto 0 0 0;
    width: 105%;
}

.mascot_article .gift.mascot img {
    width: 75%;
    aspect-ratio: 44 / 31;
    margin: auto auto 20px auto;
}

.mascot_article .ctbc.mascot img {
    width: 90%;
    aspect-ratio: 89 / 75;
}

.step_title {
    position: relative;
    margin: 15px 0;
    width: 100%;
    text-align: center;
    color: #fff;
    overflow-x: hidden;
    overflow-y: clip;
}

.step_title::before, .step_title::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% - 240px);
    width: 150px;
    border-top: 3px dashed #fff;
}

.step_title::after {
    left: calc(50% + 80px);
}

.card_group {
    justify-content: space-between;
    width: 85%;
    margin: 40px 0 20px 0;
}

.card_group .text {
    display: inline-block;
    font-size: 20px;
    margin: 20px auto 0 auto;
    color: #fff;
}

.card_group .text::before {
    position: relative;
    content: url(img/arrow.png);
    padding-right: 8px;
    height: 25px;
    display: inline-block;
    line-height: 16px;
    overflow: hidden;
    transform: translateY(4px) scale(0.8);
}

.section_step {
    padding-top: 60px;
}

.manual_group {
    position: relative;
    margin: 20px 0;
}

.manual_group .manual_card {
    display: flex;
    width: 83%;
    background-color: rgb(218, 221, 147);
    border-radius: 10px;
    margin: 20px auto;
    padding: 10px;
}

.manual_group::before, .manual_group::after {
    content: '';
    position: absolute;
    width: 85%;
    left: 7%;
    border-top: 4px dashed rgb(57, 76, 67);
}

.manual_group::before {
    top: -30px;
}

.manual_card .title {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.manual_card .text, .manual_card b {
    font-size: 26px;
    line-height: 45px;
    font-weight: 600;
}

.pay_img {
    width: 75%;
    margin: 0 auto;
    padding: 50px 0;
}

.section_qa .green_bg {
    position: relative;
    padding: 30px 0 0 0;
}

.section_rule {
    padding: 80px 50px;
    color: rgb(57, 76, 67);
}

.section_rule h3 {
    position: relative;
    text-align: center;
    font-size: 32px;
    line-height: 60px;
    padding: 20px;
}

.section_rule h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    width: 100%;
    background-image: linear-gradient(to right, rgb(57, 76, 67) 0%, rgb(57, 76, 67) 50%, transparent 50%);
    background-size: 35px 10px;
    background-repeat: repeat-x;
}

.section_rule .content {
    font-size: 16px;
    margin: 40px 0 0 0;
}

.qa_card {
    display: flex;
    flex-direction: column;
    margin: 30px auto;
    width: 80%;
}

.qa_card input {
    display: none;
}

.qa_card .qa_icon {
    width: 35px;
    height: 35px;
}

.qa_card .qa_icon * {
    width: 100%;
}

.qa_card .question, .qa_card .answer {
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 15px;
}

.qa_card .question {
    cursor: pointer;
    align-items: center;
}

.qa_card .question [class*="fa"] {
    height: 20px;
    aspect-ratio: 1 / 1;
    background-image: url(img/angle-down-solid.svg);
    margin-left: auto;
    font-size: 28px;
    background-size: cover;
    background-position: top -2px center;
}

.qa_card .answer {
    background-color: #ffffff73;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.35s;
}

.qa_card .answer a {
    color: #c00c35;
    text-decoration: underline;
    text-decoration-style: wavy;
    font-weight: 500;
    text-underline-offset: 1.8px;
}

.qa_card .answer .orange {
    color: #924917;
    font-weight: 600;
}

.qa_card input:checked~.answer {
    max-height: 500px;
    padding: 1em;
}

.qa_card .ans_content * {
    line-height: 1.8rem;
    margin-bottom: 0;
    text-align: justify;
}

@media screen and (max-width: 1181px) {
    .section_banner {
        background-position: bottom -60px left, bottom 30% left, bottom 30% left;
        display: flex;
        align-items: center;
        padding-top: 40px;
    }

    .section_banner .container {
        margin:  20% auto auto auto;
    }

    .section_banner h1 {
        max-width: 75vw;
    }

    .section_banner .mascot_article {
        transform: translateY(-50px);
    }

    .mascot_article .mascot img {
        width: 125%;
    }

    .mascot_article .gift.mascot img, .mascot_article .ctbc.mascot img {
        width: 100%;
    }
}

.ipad-show {
    display: none;
}

@media screen and (max-width: 1025px) and (min-width: 767px) {
    .pineapple {
        background-size: cover, 300px, 250px, 14vw, 14vw;
    }

    .section_banner {
        background-position: bottom left, bottom 18% left, bottom 18% left;
    }

    .section_banner .title {
        padding-bottom: 80px;
    }

    .section_banner h1 {
        max-width: none;
    }

    .card_group {
        width: 100%;
    }

    .active_content h3 {
        font-size: 2rem;
        margin: 0.5rem 0;
    }

    .subtitle {
        margin: 10px;
    }

    .section_banner .mascot_article {
        margin-top: 150px;
        transform: translateY(5%);
    }

    .step_title {
        font-size: 35px;
    }

    .section_rule {
        padding: 50px 50px 130px 50px;
    }

    .card_group .text {
        font-size: 28px;
        margin: 20px auto;
    }
}

@media screen and (max-width: 767px) and (orientation: portrait) {
    .pineapple {
        background-image: url(img/asset_06.png);
        background-repeat: no-repeat;
        background-position: bottom left;
        background-size: 95%;
        padding: 0 30px 250px 30px;
    }

    .logo {
        margin: 0 auto;
    }

    .pineapple::before {
        background-image: none;
    }

    .active_title {
        margin: 10px -10% 10px -10%;
    }

    .section_banner .container {
        margin: 30px auto auto auto;
    }

    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .section_banner {
        background-image: url(img/banner.png);
        background-position: bottom center;
        background-size: contain;
        padding: 50px 0 0 0;
        height: 110vh;
    }

    .section_banner .mascot_article, .section_banner h1 {
        display: none;
    }


    .section_qa {
        padding-top: 180px;
        background-image: url(img/asset_05.png);
        background-size: 90%;
        background-repeat: no-repeat;
        background-position: top center;
    }


    .manual_group .manual_card {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        width: 90%;
    }

    .qa_card .question, .qa_card .answer {
        flex-direction: column;
    }

    .card_group {
        width: 100%;
    }

    .card_group .text {
        margin: 10px auto 20px auto;
        font-size: 1rem;
    }

    .active_content {
        padding: 30px 10px;
    }

    .manual_card .title {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .button_group {
        gap: 30px;
        height: auto;
        margin-bottom: 50px;
        padding: 0;
    }

    .button_group .btn {
        width: 100%;
        height: 65px;
        min-width: 0;
        padding: 0 10px;
    }

    .step_title {
        font-size: 2rem;
    }

    .subtitle {
        height: auto;
    }

    .subtitle h3 {
        font-size: 22px;
        height: auto;
        width: 65%;
        margin-bottom: 0.25rem;
    }

    .qa_card .qa_icon {
        margin-right: auto;
    }

    .qa_card input:checked~.answer {
        max-height: 700px;
        padding: 1em;
    }

    .pay_img {
        width: 90%;
        padding: 30px 0 0 0;
    }

    .section_rule {
        padding: 0 10px 130px 10px;
    }

    .active_content h3 {
        font-size: 1.4rem;
        font-weight: 600;
        line-height: 2rem;
        text-align: center;
        margin: 0;
    }

    .orange {
        font-weight: 600;
    }

    .section_rule h3 {
        font-size: 1.6rem;
        text-align: center;
    }

    .manual_card .text, .manual_card b {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .green_bg, .white_bg {
        background-size: 100% 200px, 100% 160px;
    }

    .green_bg {
        background-image: url('img/blackboard_phone.png'), url('img/blackboard_phone.png');
    }

    .white_bg {
        background-image: url('img/whiteboard_phone.png'), url('img/whiteboard_phone.png');
    }

    .green_bg:before {
        background-image: url('img/blackboardbody_phone.png')
    }

    .white_bg:before {
        background-image: url('img/whiteboardbody_phone.png');
    }

    .active_content .italic {
        font-size: 16px;
    }

    .phone-block {
        display: block;
    }
}

@media (min-width: 1400px) {
    .pineapple .container {
        max-width: 1140px;
    }
}

.zoomin {
    animation: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) zoomin;
}

.fadein-right {
    animation: 1.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) fadein-right;
}

.fadein-left {
    animation: 1.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) fadein-left;
}

.fadein-bottom {
    animation: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) fadein-bottom;
}

@keyframes zoomin {
    from {
        transform: scale(1.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadein-right {
    0% {
        transform: translateX(70px);
        opacity: 0;
    }

    20% {
        transform: translateX(70px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadein-left {
    0% {
        transform: translateX(-70px);
        opacity: 0;
    }

    20% {
        transform: translateX(-70px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadein-bottom {
    from {
        transform: translateY(70px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}