/* ===================================
   トップページ (page-index) のスタイル
   =================================== */

body.page-index .site-container {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    background-image: url('common/images/top-bg_01.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}


body.page-index .main-content {
    justify-content: space-between;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 17% 0 0% 0;
}

.sp-only {
    display: none;
}

.bottom-nav {
    padding: 20px;
    margin-bottom: 2%;
}


.button-wrapper {
    position: relative;
    width: 90%;
    max-width: 1050px;
    margin: 0 auto;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 80%;
    max-width: 840px;
    margin: 0 auto;
}

.btn-yellow-bubble {
    position: absolute;
    top: -100px;
    right: -7%;
    width: 16%;
    max-width: 160px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    animation: floatAnimation 2.5s ease-in-out infinite;
}

.btn {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.btn:hover {
    transform: scale(1.03);
}

.btn img {
    display: block;
    width: 100%;
    height: auto;
}

.btn-yellow-bubble:hover {
    transform: scale(1.05);
}

.btn-yellow-bubble img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    50%      { transform: translateY(-16px) scale(1.04, 0.96); }
    65%      { transform: translateY(-10px) scale(0.97, 1.03); }
}

.menu-nav li:last-child {
    margin-top: 60px;
}

.menu-nav .animated-button {
    display: inline-block;
    animation: floatAnimation 2.5s ease-in-out infinite;
}


/* --- トップページ固有のレスポンシブ --- */
@media (max-width: 980px) {
    body.page-index .button-grid {
        width: 100%;
        max-width: none;
        margin-top: 80px;
    }

    body.page-index .btn-yellow-bubble {
        top: -190px;
        right: 0;
        width: 25%;
    }
}

@media (max-width: 640px) {
    body.page-index .site-container {
        height: auto;
        min-height: 100vh;
        background-image: url('common/images/top-sp-bg_01.png');
        background-attachment: scroll;
    }


    body.page-index .header {
        background-color: transparent;
    }

    body.page-index .header-inner {
        padding: 15px 20px;
    }

    body.page-index .hero-content {
        justify-content: center;
        padding: 5% 0;
    }

    body.page-index .bottom-nav {
        margin-bottom: 0;
        padding-bottom: 80px;
        margin-top: auto;
    }
    
    body.page-index .button-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        position: relative;
        top: -30px;
    }



    body.page-index .button-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: -60px;
        position: relative;
        z-index: 2;
    }

    body.page-index .btn-yellow-bubble {
        position: relative;
        z-index: 1;
        width: 30%;
        max-width: none;
        top: auto;
        margin: 0 0 20px 0;
        right: auto;
        order: -1;
    }

}
