/* scroll-section.css - 背景固定・コンテンツスクロール版 */
.fullscreen-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* iOSでのアドレスバー対策 */
    height: 100vh;
    min-height: -webkit-fill-available;
    /* 背景を透けさせるために透明に */
    background: transparent;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* iOS対策 */
    height: 100vh;
    min-height: -webkit-fill-available;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* ここをfixedにしない（親がfixedなので） */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    height: 100vh;
    min-height: -webkit-fill-available;
}

.bg-layer.active {
    opacity: 1;
}

/* デスクトップ用背景画像 */
.bg-layer-1 {
    background-image: url('/images/hero-bg-1.jpg');
    background-color: #2c5530;
}

.bg-layer-2 {
    background-image: url('/images/hero-bg-2.jpg');
    background-color: #4a7c59;
}

.bg-layer-3 {
    background-image: url('/images/hero-bg-3.jpg');
    background-color: #3a6b4a;
}

.bg-layer-4 {
    background-image: url('/images/hero-bg-4.jpg');
    background-color: #2c5530;
}

/* セクションコンテンツ */
.section-content {
    position: relative;
    z-index: 100;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    height: 100vh;
    min-height: -webkit-fill-available;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.section-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0.9;
}

.section-btn {
    background-color: #0051ff;
    text-decoration: none;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.section-btn:hover {
    background-color: #0037af;
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* モバイルブラウザのボトムバー対策 & モバイル用画像 */
@media (max-width: 768px) {
    .fullscreen-section,
    .bg-container,
    .bg-layer,
    .section-content {
        height: 100vh;
        min-height: -webkit-fill-available;
        max-height: 100vh;
    }
    
    /* モバイル用背景画像 */
    .bg-layer-1 {
        background-image: url('/images/mobile/hero-bg-1-mobile.jpg');
    }
    
    .bg-layer-2 {
        background-image: url('/images/mobile/hero-bg-2-mobile.jpg');
    }
    
    .bg-layer-3 {
        background-image: url('/images/mobile/hero-bg-3-mobile.jpg');
    }
    
    .bg-layer-4 {
        background-image: url('/images/mobile/hero-bg-4-mobile.jpg');
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-btn {
        margin: 5px 0;
        width: 200px;
    }
}

/* タブレット用（768px～1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .bg-layer-1 {
        background-image: url('/images/hero-bg-1.jpg');
    }
    
    .bg-layer-2 {
        background-image: url('/images/hero-bg-2.jpg');
    }
    
    .bg-layer-3 {
        background-image: url('/images/hero-bg-3.jpg');
    }
    
    .bg-layer-4 {
        background-image: url('/images/hero-bg-4.jpg');
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* 大きな画面用の調整 */
@media (min-width: 1200px) {
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-description {
        font-size: 1.3rem;
    }
}

/* iOS Safari用の特別な対策 */
@supports (-webkit-touch-callout: none) {
    .fullscreen-section,
    .bg-container,
    .bg-layer,
    .section-content {
        height: -webkit-fill-available;
    }
}

.scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar::-webkit-scrollbar {
    display: none;
}