.hero-section {
    position: relative;
    height: 70vh !important; 
    width:100%;
    max-width: 100% !important;
    margin: 0;
    overflow: hidden;
}

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

.slide-item {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    animation: fade-animation 15s infinite ease-in-out;
}

/* 文字の配置 */
.slide-content {
    display: flex;
    width: 100%;
    max-width: 1500px;
    padding: 60px;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 0 auto;
}

.hero-catchphrase {
    color: #FFFFFF;
    font-size:  70px !important;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 1.4;
    margin: 0;
    animation-name: catchphrase-fade;
    animation-duration: 7s;
}

@keyframes catchphrase-fade {
0% {
opacity: 0; 
}
100% {
opacity: 1;
}
}

.slide1 { animation-delay: 0s; }
.slide2 { animation-delay: 5s; }
.slide3 { animation-delay: 10s; }

@keyframes fade-animation {
0% { opacity: 0; z-index: 1; }
10% { opacity: 1; z-index: 2; }   
33% { opacity: 1; z-index: 2; }  
43% { opacity: 0; z-index: 1; }  
100% { opacity: 0; }
}



@media (max-width: 768px) {
    
 .hero-section{
        height: 350px !important; 
    }
    /* 1. 全体の高さを350pxに固定 */
    .hero-section,
    .slide-item {
        height: 350px !important;
    }

    /* 2. 画像が拡大されすぎないよう調整 */
    .slide-item {
        background-size: cover; /* 隙間を作らない最小限の拡大 */
        background-position: center center;
    }

    /* 3. 文字サイズの調整（スマホで見やすいサイズ） */
    /* .hero-catchphrase {
        font-size: 32px; /* 70pxから変更 
    } */

    .hero-catchphrase {
        font-size: 2rem !important; /* 3remから変更 */
        padding: 0 20px;   /* 左右に少し余白 */
        line-height: 1.3;
    }

    /* 4. コンテンツのパディング調整 */
    .slide-content {
        padding: 20px;     /* 60pxから縮小して文字スペースを確保 */
    }
}