/* ===================================
   トップページ (page-index) のスタイル
   =================================== */

   body.page-index .site-container {
    height: 100vh;
    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: 6% 0;
}

.catchphrase-img {
    max-width: 90%;
    height: auto;
}

.bottom-nav {
    padding: 20px;
    margin-bottom: 5%;
}

.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: -10%;
    width: 20%;
    max-width: 200px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    animation: floatAnimation 3s 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% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.menu-nav li:last-child {
    margin-top: 60px;
}

.menu-nav .animated-button {
    display: inline-block;
    animation: floatAnimation 3s 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: fixed;
    }

    body.page-index .header {
        background-color: transparent;
    }

    body.page-index .hero-content {
        justify-content: flex-end;
        padding: 5% 15% 5% 0;
    }

    body.page-index .hero-content img.catchphrase-img {
        content: url('common/images/top-sp-catchcopy.png');
    }

    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;
    }

    body.page-index .button-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 0;
    }

    body.page-index .btn-yellow-bubble {
        position: static;
        width: 30%;
        max-width: none;
        margin: 0 0 20px 0;
        right: auto;
        order: -1;
    }
}

