body {
    margin: 0;
    padding: 0;
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #2c3e50 !important;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.navbar-brand img {
    border-radius: 8px;
}

.nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: #667eea !important;
}

/* Section1 - Default for Desktop */
.section1 {
    margin-top: 66px;
    padding: 5px;
    height: calc(100vh - 66px);
    width: 100%;
    background: linear-gradient(to right, #ffffff, #71cbd4);
    display: flex;
    flex-direction: column;
}

.section1-image {
    width: 100%;
    height: 85%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.section1-image-div {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.section1-image-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section1-image1-bear-img,
.section1-image2-bear-img,
.section1-image3-bear-img {
    position: absolute;
    object-fit: contain;
}

.section1-image1-bear-img { bottom: 20px; left: 20px; width: 180px; }
.section1-image2-bear-img { top: 20px; right: 20px; width: 100px; }
.section1-image3-bear-img { bottom: 20px; left: 20px; width: 100px; }


.section1-app-link {
    width: 100%;
    height: 15%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.section1-app-link-item {
    max-width: 50%;
    height: 70%;
}

.section1-app-link-item > img {
    height: 100%;
    object-fit: contain;
}

/* Other Sections */
.features-section, .recipe-section, .download-section {
    padding: 80px 0;
}
.features-section { background: #f8f9fa; }
.recipe-section { background: linear-gradient(to right, #ffffff, #71cbd4); }
.download-section { background: #f8f9fa; }

.feature-item, .recipe-step {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
.feature-screenshot { flex-shrink: 0; text-align: center; }
.feature-img { width: 150px; height: auto; border-radius: 10px; }
.feature-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.recipe-title, .download-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}
.recipe-subtitle, .download-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.recipe-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.recipe-step { flex: 1; min-width: 250px; max-width: 300px; text-align: center; }
.recipe-img-container { width: 200px; height: 300px; margin: 0 auto 1rem auto; }
.recipe-img { width: 100%; height: 100%; object-fit: contain; }
.recipe-arrow { font-size: 2.5rem; }

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.download-button-img { height: 60px; }

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}
.footer-links { display: flex; gap: 2rem; justify-content: flex-end; }
.footer-bottom { border-top: 1px solid #34495e; margin-top: 2rem; padding-top: 1rem; text-align: center; }

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .section1 {
        justify-content: center;
        align-items: center;
        overflow: hidden;
        gap: 10px;
    }
    
    .section1-image {
        flex: 1;
        position: relative;
        width: 100%;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .section1-image-div {
        position: absolute;
        width: 60vmin;
        max-width: 240px;
        min-width: 180px;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    }
    
    .section1-image-div:nth-child(2) { /* Center Image */
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        z-index: 2;
    }
    
    .section1-image-div:nth-child(1) { /* Left Image - ON TOP */
        transform: translate(-90%, -50%) rotate(-15deg);
        left: 50%;
        top: 50%;
        z-index: 3;
    }
    
    .section1-image-div:nth-child(3) { /* Right Image */
        transform: translate(-10%, -50%) rotate(15deg);
        left: 50%;
        top: 50%;
        z-index: 1;
    }
    
    .section1-image-img {
        width: 100%;
        height: auto;
    }
    
    /* --- Bear Styles --- */
    .section1-image1-bear-img,
    .section1-image2-bear-img,
    .section1-image3-bear-img {
        display: block;
        position: absolute;
        width: 45% !important;
        max-width: 85px;
        z-index: 10;
    }

    /* left image's bear (date.png) - Attached to bottom-left */
    .section1-image1-bear-img {
        bottom: 0% !important;
        left: -15% !important;
        right: auto !important;
    }
    /* center image's bear (money.png) - Peeking from top-right */
    .section1-image2-bear-img {
        bottom: 50% !important; /* Adjusted from -15% to bring it down */
        right: -15% !important;
    }
    /* right image's bear (market.png) - Attached to bottom-right */
    .section1-image3-bear-img {
        bottom: 0% !important;
        right: -15% !important;
        left: auto !important;
    }
    /* --- End of Bear Styles --- */

    .section1-app-link {
        flex-shrink: 0;
        height: auto;
        padding: 15px 0;
        gap: 1.5rem;
    }
    
    .section1-app-link-item {
        max-width: 150px;
        height: auto;
    }
    
    .section1-app-link-item > img {
        width: 100%;
        height: auto;
    }

    /* Adjustments for other sections on mobile */
    .features-section, .recipe-section, .download-section {
        padding: 60px 0;
    }
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    .recipe-flow {
        flex-direction: column;
    }
    .recipe-arrow {
        transform: rotate(90deg);
    }
    .footer-links {
        justify-content: center;
    }
}