
/* --- スライダー全体のスタイル --- */
.hero-slider {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    background-color: #000; /* 画像ロード前の背景 */
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
        
    }
    
}

/* --- スライド画像の設定 --- */
.swiper-slide {
    overflow: hidden;
    position: relative;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s ease-out;
}

.swiper-slide-active .slide-bg {
    transform: scale(1.15);
}

/* --- 【1枚目専用】流れるテキストスタイル --- */
.slide-1-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* 垂直中央 */
    justify-content: center; /* 中央寄せに修正 */
    z-index: 10;
}

.slide-1-text-group {
    text-align: center; /* テキストも中央揃えに修正 */
    color: #fff;
    max-width: 900px;
    padding: 20px;
}

/* 社名タイトルは削除済み */

.tlt span {
    letter-spacing: 0.05em;
    font-size: 2rem !important;
    line-height: 1.6 !important;
    text-shadow: 5px 0 10px #000, 0 5px 10px #000, -5px 0 10px #000, 0 -5px 10px #000 !important;
}

/* 文字ごとのアニメーション設定 */
.slide-1-desc span {
    display: inline-block; /* アニメーションさせるために必要 */
    opacity: 0;
    transform: translateX(80px); /* 右から流れてくる */
    transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1.000); /* 滑らかな動き */
    white-space: pre; /* スペース詰め防止 */
}

/* 1枚目がアクティブになった時のアニメーション発火 */
.swiper-slide-active .slide-1-desc span {
    opacity: 1;
    transform: translateX(0);
    /* transition-delayはJSで個別に設定 */
}

/* --- 【2枚目以降】黒帯テキストボックス --- */
.text-box {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 600px;
    max-width: 90%;
    
    /* 黒背景のグラデーション（薄め） */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(6px);
    
    padding: 30px 40px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.2);
    
    /* アニメーション初期状態 */
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.swiper-slide-active .text-box {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.text-box h2 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.text-box p {
    margin: 0;
    color: #eee;
    font-size: 15px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    
     transform: translateY(20px);
     opacity: 0;
     transition: all 0.6s ease-out;
}

.sub-title {
    font-size: 18px;
    font-weight: normal;
    color: #ccc;
}

.swiper-slide-active .text-box h2 {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.6s;
}

.swiper-slide-active .text-box p {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.8s;
}

/* スマホ用調整 */
@media (max-width: 600px) {
	
	.tlt{
		display: none;
	}
	
    .text-box {
        padding: 20px;
        bottom: 20px;
    }
    .text-box h2 {
        font-size: 20px;
        border-bottom: none;
        padding: 0;
        margin: 0;
    }
    .sub-title {
        font-size: 14px;
    }
    .text-box p {
        display: none;
    }
    
    /* 1枚目のスマホ調整 */
    .slide-1-content {
        /* justify-content: center; もともと中央なので指定不要 */
    }
    .slide-1-text-group {
        text-align: center;
        width: 95%;
    }
    .slide-1-desc {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* 矢印ナビゲーション */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
