* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ec-hero-section {
    width: 100%;
    padding: 20px 0;
    background-color: #f5f5f5;
    margin-top: 60px;
}

.ec-hero-swiper {
    width: 100%;
    padding: 0 60px 50px;
    overflow: visible;
}

.ec-hero-wrapper {
    display: flex;
    align-items: stretch;
}

.ec-hero-slide {
    width: 800px;
    height: auto;
    flex-shrink: 0;
}

.ec-hero-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ec-hero-image-container {
    width: 100%;
    max-width: 800px;
    height: 0;
    padding-bottom: 66.666%; /* 3:2の比率 (2/3 = 66.666%) */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ec-hero-slide:hover .ec-hero-image-container {
    transform: scale(1.05);
}

.ec-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ナビゲーションボタンのスタイル */
.ec-hero-button-prev,
.ec-hero-button-next {
    width: 40px;
    height: 40px;
    background-color: #121212;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: absolute;
    z-index: 10;
    top: calc(50% - 20px);
    transform: translateY(-50%);
}

.ec-hero-button-prev:hover,
.ec-hero-button-next:hover {
    background-color: #121212;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ec-hero-button-prev::after,
.ec-hero-button-next::after {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.ec-hero-button-prev {
    left: calc(50% - 400px - 20px);
}

.ec-hero-button-next {
    right: calc(50% - 400px - 20px);
}

/* ページネーションのスタイル */
.ec-hero-pagination {
    bottom: 10px;
}

.ec-hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(18, 18, 18, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.ec-hero-pagination .swiper-pagination-bullet-active {
    background-color: #121212;
    width: 30px;
    border-radius: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ec-hero-section {
        margin-top: 0;
    }

    .ec-hero-swiper {
        padding: 0 50px 50px;
    }

    .ec-hero-slide {
        width: calc(100vw - 100px);
        max-width: 600px;
    }

    .ec-hero-button-prev,
    .ec-hero-button-next {
        width: 32px;
        height: 32px;
        top: 50%;
    }

    .ec-hero-button-prev::after,
    .ec-hero-button-next::after {
        font-size: 12px;
    }

    .ec-hero-button-prev {
        left: 5px;
    }

    .ec-hero-button-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .ec-hero-section {
        margin-top: 0;
    }

    .ec-hero-swiper {
        padding: 0 50px 50px;
    }

    .ec-hero-slide {
        width: calc(100vw - 100px);
        max-width: 450px;
    }

    .ec-hero-button-prev,
    .ec-hero-button-next {
        width: 30px;
        height: 30px;
        top: 50%;
    }

    .ec-hero-button-prev::after,
    .ec-hero-button-next::after {
        font-size: 10px;
    }
}

