/* ヒーローセクションのスライドショー設定 */
.hero {
    position: relative;
    height: 60vh; /* 高さを指定 */
    overflow: hidden;
    background: none; /* 既存の背景設定をリセット */
    padding: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    width: 800%; /* 100% * 8枚 */
    height: 100%;
    animation: slideLoop 40s linear infinite;
}

.slide-item {
    width: 12.5%; /* 100% / 8枚 */
    height: 100%;
    background-size: cover;
    background-position: center;
}

@keyframes slideLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* 半分（4枚分）移動したら最初に戻ってループ */
}

.hero-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    width: 90%;
    max-width: 800px;
}

.service-section {
    padding: 40px;
    background-image: none; /* 背景画像を削除 */
    display: flex; /* 横並びにする */
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-left: auto; /* 中央寄せのためauto */
    margin-right: auto; /* 中央寄せのためauto */
    max-width: 1200px; /* 最大幅を設定 */
    transition: transform 0.3s ease, background-color 0.3s ease; /* アニメーション効果 */
}

.service-section:hover {
    transform: scale(1.05); /* 少し拡大 */
    background-color: rgba(249, 249, 249, 0.8); /* 背景色を少し薄く */
}

.service-section h2 {
    transition: color 0.3s ease;
}

.service-section:hover h2 {
    color: #0077b6; /* ホバー時に文字色を変更 */
}

/* コンテンツの左右分割 */
.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .service-section {
        flex-direction: column;
    }
}