/**
 * Swiper カスタムスタイル
 * 子テーマ用外部CSSファイル
 * パス: /assets/css/swiper-custom.css
 */

/* ==========================================================================
   基本スタイル
   ========================================================================== */

.swiper-container {
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}


.swiper-wrapper>p,
.swiper-slide>p {
    display: none;
}

/* ==========================================================================
   画像スタイル
   ========================================================================== */

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.swiper-slide:hover img {
    transform: scale(1.02);
}

/* アクティブスライドのスタイル */
.swiper-slide.swiper-slide-active {
    transform: scale(1.05);
    z-index: 2;
}

.swiper-slide.swiper-slide-active img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   ナビゲーションボタン
   ========================================================================== */

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007cba;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    color: #005a87;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-family: 'swiper-icons';
    font-size: 14px;
    font-weight: bold;
}

.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* ==========================================================================
   ページネーション
   ========================================================================== */

.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: 0.3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

.swiper-pagination.swiper-pagination-horizontal {
    bottom: 10px;
    left: 0;
    width: 100%;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: #007cba;
    opacity: 0.4;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #005a87;
    transform: scale(1.3);
}

/* ==========================================================================
   エフェクト別スタイル
   ========================================================================== */

/* フェードエフェクト */
.swiper-container-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-container-fade .swiper-slide .swiper-slide-active,
.swiper-container-fade .swiper-slide .swiper-slide-active .swiper-slide-active {
    pointer-events: auto;
}

.swiper-container-fade .swiper-slide-active {
    opacity: 1;
}

/* キューブエフェクト */
.swiper-container-cube {
    overflow: visible;
}

.swiper-container-cube .swiper-slide {
    pointer-events: none;
    backface-visibility: hidden;
    z-index: 1;
    transform-origin: 0 0;
    width: 100%;
    height: 100%;
}

.swiper-container-cube .swiper-slide-active,
.swiper-container-cube .swiper-slide-active .swiper-slide-active {
    pointer-events: auto;
}

/* カバーフローエフェクト */
.swiper-container-coverflow .swiper-slide {
    transform-style: preserve-3d;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

/* モバイル (〜767px) */
@media (max-width: 767px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-slide {
        font-size: 16px;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* タブレット (768px〜1023px) */
@media (min-width: 768px) and (max-width: 1023px) {

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

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

/* デスクトップ (1024px〜) */
@media (min-width: 1024px) {

    .swiper-button-next,
    .swiper-button-prev {
        width: 48px;
        height: 48px;
        margin-top: -24px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* ==========================================================================
   カスタムスライダーバリエーション
   ========================================================================== */

/* 商品スライダー */
.product-slider .swiper-slide {
    padding: 20px;
    background: transparent;
}

.product-slider .product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-slider .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-slider .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-slider .product-card h3 {
    margin: 10px 0;
    color: #333;
    font-size: 1.2em;
}

.product-slider .product-card .price {
    font-size: 1.3em;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}

.product-slider .product-card button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: auto;
}

.product-slider .product-card button:hover {
    background: #005a87;
}

/* お客様の声スライダー */
.testimonial-slider .swiper-slide {
    padding: 40px 20px;
    background: transparent;
}

.testimonial-slider blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007cba;
    padding: 30px;
    margin: 0;
    border-radius: 12px;
    font-style: italic;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-slider blockquote:before {
    content: '"';
    font-size: 4em;
    color: #007cba;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-slider cite {
    display: block;
    margin-top: 20px;
    text-align: right;
    font-weight: bold;
    color: #666;
    font-style: normal;
}

/* ギャラリースライダー */
.gallery-slider .swiper-slide {
    background: transparent;
    padding: 10px;
}

.gallery-slider .swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-slider .swiper-slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   アクセシビリティ
   ========================================================================== */

.swiper-button-next:focus,
.swiper-button-prev:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* 視覚障害者向け */
.swiper-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .swiper-slide {
        background: #1a1a1a;
        color: #ffffff;
    }

    .swiper-button-next,
    .swiper-button-prev {
        background: rgba(0, 0, 0, 0.8);
        color: #ffffff;
    }

    .product-slider .product-card {
        background: #2a2a2a;
        color: #ffffff;
    }

    .testimonial-slider blockquote {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
        color: #ffffff;
    }
}