/* WP管理バー表示時の対応 */
body.admin-bar #head {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar #head {
        top: 46px;
    }
}

body.admin-bar #g-navi >button {
    top: 40px;
}
@media screen and (max-width: 782px) {
    body.admin-bar #g-navi >button {
        top: 54px;
    }
}


@media screen and (max-width: 1050px) {
    #hero-box {
        margin-top: 60px;
    }
}

/* Swiper Slider Styles */
#main-swiper {
    width: 100vw;
    height: calc(100vh - 300px);
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 1319px) {
    #main-swiper {
        height: 600px;
    }
}

@media screen and (max-width: 959px) {
    #main-swiper {
        height: 480px;
    }
}

@media screen and (max-width: 599px) {
    #main-swiper {
        height: 360px;
    }
}

@media screen and (max-width: 479px) {
    #main-swiper {
        height: 280px;
    }
}

@media screen and (max-width: 359px) {
    #main-swiper {
        height: 240px;
    }
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    width: 100%;
}

.slide-text h2 {
    font-size: 6.0rem;
    line-height: 1.6;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: .3rem;
    color: #fff;
    text-shadow: 1px 2px 2px #555;
}
@media screen and (max-width: 1319px){
    .slide-text h2 {
        font-size: 4.0rem;
    }
}
@media screen and (max-width: 959px){
    .slide-text h2 {
        font-size: 3.0rem;
    }
}
@media screen and (max-width: 599px){
    .slide-text h2 {
        font-size: 2.0rem;
    }
}


/* スライダーの各スライド要素に暗いオーバーレイを追加 */
.swiper-slide .slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 黒の半透明オーバーレイ。数値は0.2～0.5の間で調整可能 */
    z-index: 1;
}

/* テキストは必ずオーバーレイの上に表示されるようにする */
.swiper-slide .slide-text {
    position: relative;
    z-index: 2;
}

/* テキストの視認性をさらに高める場合 */
.swiper-slide .slide-text h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
