/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

.footer-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.footer-banner-img {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: block;
    vertical-align: bottom;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #D6E1F0;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #F7DCE5;
    z-index: -1;
}

.container {
    width: 100%;
    height: fit-content;
    min-height: auto;
    background-image: url('assets/bg 1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* TOP Section */
.top-section {
    position: relative;
    width: 100%;
}

.header-banner {
    position: relative;
    width: 100%;
}

.header-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.logo-overlay {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo {
    max-width: 200px;
    height: auto;
}

.top-button {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -50px;
    z-index: 20;
}

.botan-img {
    max-width: 100%;
    width: 90%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.botan-img:hover {
    transform: scale(1.05);
}

/* BODY Section */
.body-section {
    width: 100%;
    padding: 20px 0;
}

.body-content {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.body-img {
    max-width: 100%;
    width: 90%;
    height: auto;
}

.bottom-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.botan-2, .official-url {
    display: flex;
    justify-content: center;
    width: 100%;
}

.botan-2 .botan-img {
    max-width: 300px;
    width: 80%;
}

.official-img {
    max-width: 300px;
    width: 80%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.official-img:hover {
    transform: scale(1.05);
}

/* FOOTER Section */
.footer-section {
    width: 100%;
    margin-top: 30px;
}

.footer-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    /* PC版のスタイル */
    .container {
        max-width: 800px;
        margin: 0 auto;
        background-attachment: scroll;
    }
    
    body {
        background-attachment: scroll;
    }
    
    .logo {
        max-width: 250px;
    }
    
    .botan-img {
        max-width: 100%;
        width: 80%;
    }
    
    .body-img {
        width: 80%;
    }
    
    .botan-2 .botan-img {
        max-width: 400px;
        width: 60%;
    }
    
    .official-img {
        max-width: 400px;
        width: 60%;
    }
    
    .top-button {
        margin-top: -80px;
    }
}

@media screen and (min-width: 1024px) {
    /* 大画面PC版のスタイル */
    .container {
        max-width: 900px;
    }
    
    .logo {
        max-width: 300px;
    }
    
    .botan-img {
        max-width: 100%;
        width: 75%;
    }
    
    .body-img {
        width: 75%;
    }
    
    .botan-2 .botan-img {
        max-width: 450px;
        width: 50%;
    }
    
    .official-img {
        max-width: 450px;
        width: 50%;
    }
}

/* スマホ版の追加調整 */
@media screen and (max-width: 767px) {
    html {
        height: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .container {
        width: 100vw;
        height: fit-content !important;
        min-height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .top-button {
        margin-top: -30px;
    }
    
    .body-content {
        margin-bottom: 20px;
    }
    
    .bottom-buttons {
        gap: 15px;
        margin-top: 20px;
    }
    
    .footer-section {
        width: 100%;
        height: auto;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0;
        font-size: 0;
    }
    
    .footer-banner-img {
        width: 100%;
        height: auto;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
        vertical-align: bottom;
        line-height: 0;
        font-size: 0;
    }
    
    body::before, body::after {
        height: fit-content !important;
        position: absolute !important;
        top: 0;
        bottom: auto;
        max-height: 100vh !important;
    }
    
    /* 追加の余白削除 */
    * {
        margin-bottom: 0 !important;
    }
    
    .container * {
        margin-bottom: 0 !important;
    }
    
    /* 追加のスマホ専用余白削除 */
    html, body {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    /* bodyの疑似要素もスマホ版で制御 */
    body::before, body::after {
        height: 100% !important;
        position: absolute !important;
        top: 0;
        bottom: auto;
    }
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.body-content {
    animation: fadeInUp 0.6s ease-out;
}

.body-content:nth-child(1) { animation-delay: 0.1s; }
.body-content:nth-child(2) { animation-delay: 0.2s; }
.body-content:nth-child(3) { animation-delay: 0.3s; }
.body-content:nth-child(4) { animation-delay: 0.4s; }
.body-content:nth-child(5) { animation-delay: 0.5s; }
