.hero {
    padding: 100px 0 0;
}

.hero__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__main {
    width: 100%;
    max-width: 668px;
    margin: 0 auto;
}

.hero__main__image-container {
    width: 100%;
    padding-bottom: 100%;
}

.hero__main__image {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-image: url('../img/hero/main.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 auto;
}

.hero__main__m-title {
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.hero__left-container {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-5%, -40%);
    z-index: 2;
}

.hero__right-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(5%, -40%);
    z-index: 2;
}

.hero__subtitle {
    display: inline-block;
    height: auto;
    margin: 0 0 10px 45px;
}

.hero__subtitle p {
    position: relative;
    font-weight: 400;
    font-size: 40px;
    color: #9A0036;
}

.hero__plus-icon {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(100%, -50%);
    width: 24px;
    height: 24px;
}

.hero__title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero__title {
    width: auto;
    height: 196px;
    object-fit: contain;
}

.hero__download-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.hero__download-qrcode {
    width: 132px;
    height: 132px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 10px;
}

.hero__download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.hero__download-button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 15px;
    gap: 8px;

    background: #FFFFFF;
    box-shadow: 0px 4px 35.6px #CACACA;
    border-radius: 30px;

    /* Text */
    /* font-family: 'Roboto'; */
    font-weight: 400;
    font-size: 16px;
    color: #3F3E4C;
    white-space: nowrap;
}

.hero__download-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hero__info-container {
    position: relative;
}

.hero__info-btn {
    box-sizing: border-box;
    padding: 16px 16px 16px 32px;
    margin: 0 60px 0 60px;

    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #FFFFFF;
    border-radius: 33px;

    /* Text */
    /* font-family: 'Noto Sans CJK TC'; */
    font-weight: 500;
    font-size: 22px;
    text-align: center;
    color: #6B6B6B;
}

.hero__info-img {
    position: absolute;
    z-index: 9;
    left: 0;
    top: 50%;
    width: 140px;
    height: 140px;
    object-fit: contain;
    transform-origin: center center; 
    animation: swing-extreme 3s ease-in-out infinite;
}

@keyframes swing-extreme {
    0% {
        transform: translate(-10%, -50%) rotate(0deg);
    }
    25% {
        transform: translate(-10%, -50%) rotate(10deg); 
    }
    75% {
        transform: translate(-10%, -50%) rotate(-10deg);
    }
    100% {
        transform: translate(-10%, -50%) rotate(0deg);   /* 回到原點 */
    }
}

.hero__bg-title {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translate(-30%, -40%);
    height: 220px;
}

@media (max-width: 1210px){
    .navbar__logo-img{
        height: 30px;
    }
    .hero__main__image-container {
        transform: translate(-20px, -100px) !important;
    }
}

@media (max-width: 1099px) {
    .hero {
        padding: 90px 0 0;
    }
    .hero__container {
        flex-direction: column;
    }

    .hero__main__image-container {
        transform: translateY(-15%);
    }
    
    .hero__left-container {
        position: static;
        transform: none;
    }

    .hero__right-container {
        width: 100%;
        position: static;
        transform: translate(0, -110%);
    }

    .hero__info-container {
        margin-top: 0;
    }

    .hero__info-btn {
        margin: 0 20px 0 80px;
    }

    .hero__info-img {
        transform: translate(0, -50%);
    }
}

@media (max-width: 768px) {
    .hero__main__image-container {
        transform: translate(-20px, -60px) !important;
    }
}

