/* scroll-section.css - AdveCamp WordPress Theme
   背景画像はカスタマイザー(functions.php > advecamp_dynamic_css)で動的に設定されます
*/

.scroll-stage {
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.scroll-stage::-webkit-scrollbar {
	display: none;
}

.fullscreen-section {
	position: relative;
	width: 100vw;
	height: 100vh;
	min-height: -webkit-fill-available;
	overflow: hidden;
	background: transparent;
}

.bg-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	min-height: -webkit-fill-available;
	z-index: -1;
}

.bg-container::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
	pointer-events: none;
}

.bg-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	min-height: -webkit-fill-available;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
}

.bg-layer.active {
	opacity: 1;
}

/* 背景画像はカスタマイザー動的CSSで設定 (functions.php advecamp_dynamic_css) */
.bg-layer-1 { background-color: #2c5530; }
.bg-layer-2 { background-color: #4a7c59; }
.bg-layer-3 { background-color: #3a6b4a; }
.bg-layer-4 { background-color: #2c5530; }

/* セクションコンテンツ */
.section-content {
    position: relative;
    z-index: 100;
    height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.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;
    }
    
    /* モバイル用背景画像はカスタマイザー動的CSSで設定 */
    
    .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;
    }
    
    /* モバイルでの背景固定 */
    .bg-layer {
        background-attachment: scroll;
    }
    
}

/* タブレット用（768px〜1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    /* タブレット用背景画像はカスタマイザー動的CSSで設定 */
    
    .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;
}