/**
 * Zenovia Theme - Splide Slider スタイル
 * 
 * 矢印（Arrows）を画像上に重ねて配置し、ホバー時に見やすくする
 * 
 * @since 1.0.0
 */

/* ================================================================
   スライダーコンテナ
   ================================================================ */

.splide {
    position: relative;
    width: 100%;
}

.splide__track {
    display: block;
    position: relative;
    overflow: hidden;
}

.splide__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ================================================================
   スライド
   ================================================================ */

.splide__slide {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splide__slide img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover;
    display: block;
}

/* ================================================================
   矢印（Arrows）- 画像上に重ねて配置
   ================================================================ */

.splide__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY( -50% );
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

.splide__arrow {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
    appearance: none;
    border: none;
    background: rgba( 255, 255, 255, 0.9 );
    color: #333;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    padding: 12px 16px;
    margin: 0 12px;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    border-radius: 4px;
    text-shadow: none;
    border: 1px solid #ccc;
}

.splide__arrow:hover,
.splide__arrow:focus {
    opacity: 1;
    background: rgba( 255, 255, 255, 1 );
    outline: none;
    box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.15 );
}

.splide__arrow:active {
    opacity: 0.9;
}

/* 矢印アイコン内のテキスト */
.splide__arrow .arrow-text {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1;
}

/* 前へボタン */
.splide__arrow--prev {
    left: 0;
}

/* 次へボタン */
.splide__arrow--next {
    right: 0;
}

/* SVG アイコンを非表示 */
.splide__arrow svg {
    display: none;
}

/* ================================================================
   ページネーション（Dots）
   ================================================================ */

.splide__pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX( -50% );
    z-index: 15;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    justify-content: center;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba( 255, 255, 255, 0.5 );
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    appearance: none;
}

.splide__pagination__page:hover {
    background: rgba( 255, 255, 255, 0.8 );
}

.splide__pagination__page.is-active {
    background: rgba( 255, 255, 255, 1 );
    width: 12px;
    height: 12px;
}

/* ================================================================
   レスポンシブ対応 - タブレット (768px以下)
   ================================================================ */

@media ( max-width: 768px ) {
    .splide__arrow {
        padding: 10px 12px;
        font-size: 20px;
        margin: 0 8px;
    }

    .splide__arrow .arrow-text {
        font-size: 20px;
    }

    .splide__pagination {
        bottom: 16px;
        gap: 6px;
    }

    .splide__pagination__page {
        width: 8px;
        height: 8px;
    }

    .splide__pagination__page.is-active {
        width: 10px;
        height: 10px;
    }

    .splide__slide img {
        height: 300px !important;
    }
}

/* ================================================================
   レスポンシブ対応 - モバイル (480px以下)
   ================================================================ */

@media ( max-width: 480px ) {
    .splide__arrow {
        padding: 8px 10px;
        font-size: 18px;
        margin: 0 6px;
    }

    .splide__arrow .arrow-text {
        font-size: 18px;
    }

    .splide__pagination {
        bottom: 12px;
        gap: 5px;
    }

    .splide__pagination__page {
        width: 6px;
        height: 6px;
    }

    .splide__pagination__page.is-active {
        width: 8px;
        height: 8px;
    }

    .splide__slide img {
        height: 250px !important;
    }
}

/* ================================================================
   アクセシビリティ - フォーカス状態
   ================================================================ */

.splide__arrow:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.splide__pagination__page:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
