/* ヒーローセクション */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px; /* 最小高さを保証 */
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

/* 動画スライド用 */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 90%;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* スライダーナビゲーション */
.hero-navigation {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.prev-btn,
.next-btn {
    background: rgba(107,142,35, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.slide-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 1);
}

/* 読み込み中表示 */
.loading-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    font-size: 18px;
    color: #666;
}

/* レスポンシブデザイン（順序を修正） */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-navigation {
        bottom: 20px;
        gap: 15px;
    }
    
    .prev-btn,
    .next-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* 480px以下の設定 */
@media (max-width: 480px) {
    .hero {
        height: 80vh !important;
        min-height: 600px !important;
    }
    
    .hero-slider {
        height: 100% !important;
    }
    
    .hero-slide {
        height: 100% !important;
    }
    
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}

/* iPhone SE専用設定（375px以下） */
@media (max-width: 375px) {
    .hero {
        height: 85vh !important;
        min-height: 550px !important;
    }
    
    .hero-slider {
        height: 100% !important;
    }
    
    .hero-slide {
        height: 100% !important;
    }
}