.image-slider-wrapper {
    position: relative;
    /* max-width: 100%;
    width: 100%; */
    margin: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.image-slider-main {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: transparent;
}

.image-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 50px;
    box-sizing: border-box;
    transform: translateX(100%);
    pointer-events: none;
}

.image-slider-slide.active {
    transform: translateX(0);
    pointer-events: auto;
}

.image-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: transparent;
}

.image-slider-prev,
.image-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: transparent;
    /* ◀▶ のテキストを隠して ::before のシェブロンで描画 */
    font-size: 0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
    opacity: 0.9;
}

.image-slider-prev::before,
.image-slider-next::before {
    content: '';
    width: 9px;
    height: 9px;
    border-top: 2px solid #262626;
    border-right: 2px solid #262626;
}

.image-slider-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.image-slider-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.image-slider-prev {
    left: 8px;
}

.image-slider-next {
    right: 8px;
}

.image-slider-prev:hover,
.image-slider-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.image-slider-thumbnails-wrapper {
    position: relative;
    background: transparent;
    padding: 8px;
}

.image-slider-thumbnails {
    display: flex;
    gap: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 49px;
}

.image-slider-thumbnails-container {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
    height: auto;
}

.image-slider-thumbnail {
    flex-shrink: 0;
    width: calc((100% - 48px - 64px) / 6);
    min-width: 80px;
    max-width: 120px;
    aspect-ratio: 16 / 9;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background-color: transparent;
}

.image-slider-thumbnail.active {
    border-color: #007cba;
}

.image-slider-thumbnail:hover {
    border-color: #666;
}

.image-slider-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: transparent;
}

.image-slider-thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: transparent;
    font-size: 0;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 2;
    opacity: 0.9;
}

.image-slider-thumbnail-nav::before {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 2px solid #262626;
    border-right: 2px solid #262626;
}

.image-slider-thumbnail-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.image-slider-thumbnail-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.image-slider-thumbnail-nav:hover {
    opacity: 1;
}

.image-slider-thumbnail-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-slider-thumbnail-prev {
    left: -2px;
}

.image-slider-thumbnail-next {
    right: -2px;
}

.image-slider-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .image-slider-main {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .image-slider-slide {
        padding: 0;
    }
    
    .image-slider-thumbnails-wrapper {
        padding: 3px 6px 6px;
    }
    
    .image-slider-thumbnails {
        gap: 6px;
        height: auto;
        min-height: 38px;
    }
    
    .image-slider-thumbnails-container {
        gap: 6px;
        height: auto;
    }
    
    .image-slider-thumbnail {
        width: calc((100% - 36px - 50px) / 6);
        min-width: 60px;
        max-width: 80px;
        aspect-ratio: 16 / 9;
    }
    
    .image-slider-thumbnail-nav {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}
/* ==========================================================================
   スタイルバリエーション（選択時のみ付与されるクラス配下に限定。
   既存セレクタは無改変のため、デフォルト設定のサイトには影響しない）
   ========================================================================== */

/* --- 新スタイル選択時のブロック下余白 --- */
.image-slider-wrapper.is-peek,
.image-slider-wrapper.nav-dots,
.image-slider-wrapper.is-rounded {
    margin-bottom: 1.5em;
}

/* --- ドットインディケーター --- */
.image-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
}

.image-slider-dot {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: #d9d9d9;
    box-shadow: none;
    line-height: 0;
    font-size: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.image-slider-dot.active {
    background: var(--scis-dot-active, #e0606e);
    transform: scale(1.15);
}

.image-slider-dot:hover:not(.active) {
    background: #b5b5b5;
}

/* --- 角丸カード --- */
.image-slider-wrapper.is-rounded {
    border-radius: 0;
    overflow: visible;
}

.image-slider-wrapper.is-rounded .image-slider-slide {
    border-radius: 16px;
    overflow: hidden;
}

.image-slider-wrapper.is-rounded .image-slider-main {
    overflow: visible;
}

.image-slider-wrapper.is-rounded:not(.is-peek) .image-slider-main {
    overflow: hidden;
    border-radius: 16px;
}

/* --- peek（前後のスライドを一部見せる） --- */
.image-slider-wrapper.is-peek {
    overflow: hidden;
}

.image-slider-wrapper.is-peek .image-slider-main {
    overflow: visible;
}

.image-slider-wrapper.is-peek .image-slider-slide {
    width: 84%;
    left: 8%;
    padding: 0;
    pointer-events: auto;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: grab;
}

.image-slider-wrapper.is-peek .image-slider-slide:not(.active) {
    cursor: pointer;
}

/* peek 時の矢印はアクティブカードの内側に配置 */
.image-slider-wrapper.is-peek .image-slider-prev {
    left: calc(8% + 8px);
}

.image-slider-wrapper.is-peek .image-slider-next {
    right: calc(8% + 8px);
}

@media (max-width: 768px) {
    .image-slider-wrapper.is-peek .image-slider-prev {
        left: calc(6% + 8px);
    }

    .image-slider-wrapper.is-peek .image-slider-next {
        right: calc(6% + 8px);
    }
}

/* タッチ時のハイライト・フォーカス枠を出さない（キーボード操作時は表示を維持） */
.image-slider-wrapper.is-peek,
.image-slider-wrapper.is-peek .image-slider-slide,
.image-slider-wrapper.is-peek .image-slider-slide a,
.image-slider-dot {
    -webkit-tap-highlight-color: transparent;
}

.image-slider-wrapper.is-peek:focus:not(:focus-visible),
.image-slider-dot:focus:not(:focus-visible) {
    outline: none;
}

/* peek 時はカードを画像で埋める（隣のカードの見え方を参考デザインに合わせる） */
.image-slider-wrapper.is-peek .image-slider-slide img {
    object-fit: cover;
}

@media (max-width: 768px) {
    .image-slider-wrapper.is-peek .image-slider-slide {
        width: 88%;
        left: 6%;
    }
}
