/* スライダー背景 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 90vh;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-track {
    display: flex;
    width: calc(100vw * 8);
    /* 画像4枚×2セット */
    animation: slide 60s linear infinite;
    /* ←速度を半分に */
}

.slider-track img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-400vw);
        /* ←vw単位で正確に指定 */
    }
}

.hero-overlay h1 {
    position: absolute;
    z-index: 2;
    top: 1%;
    left: 0;
    width: 100vw;
    padding: 0 5vw;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
    text-shadow:
        2px 2px 4px rgba(255, 255, 255, 0.9),
        -2px -2px 4px rgba(255, 255, 255, 0.9),
        2px -2px 4px rgba(255, 255, 255, 0.9),
        -2px 2px 4px rgba(255, 255, 255, 0.9);
}

.hero {
    position: relative;
    height: auto;
    overflow: hidden;
}

/* ボタン */
.buttons {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.btn1 {
    padding: 15px 30px;
    border: 2px solid #000;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 20px;
}

.btn2 {
    padding: 15px 30px;
    border: 2px solid #000;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
    background-color: rgb(0, 0, 0);
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 20px;
}

.btn1:hover {
    background-color: #000;
    color: #fff;
}

.btn2:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #000000;
}

@media screen and (max-width: 500px) {
    .buttons {
        flex-direction: column;
        gap: 50px;
        /* 縦の余白に調整 */
    }

    .hero-overlay h1 {
        font-size: 23px;
    }

}