/* Custom Main Slider CSS - Swiper 4.0.7.js廃止後の独自実装 */

.custom-slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    margin: 0 auto; /* 中央配置 */
}

.custom-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.custom-slider-slide.loading {
    background-color: #f5f5f5;
}



/* リンクエリア */
.custom-slider-slide .ajax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    text-decoration: none;
    display: block;
}

/* ローディングスピナー */
.custom-slider-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* レスポンシブ対応 */

/* フェードイン・アウトのアニメーション強化 */
.custom-slider-slide.fade-in {
    opacity: 1;
    transition: opacity 3s ease-in-out;
}

.custom-slider-slide.fade-out {
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

/* プリロード用の非表示クラス */
.custom-slider-slide.preload {
    opacity: 0;
    pointer-events: none;
}

/* アーカイブスライダー用のスタイル */
.custom-archive-slider-container {
    position: relative;
    width: 600px;
    height: 400px;
    overflow: hidden;
    z-index: 1;
    margin: 0 auto;
    background-color: transparent;
}

.custom-archive-slider-container .custom-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-archive-slider-container .custom-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-archive-slider-container .custom-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

/* アーカイブスライダー用のナビゲーションボタン非表示（旧Swiper用） */
.slide_nav_pos2 .swiper-button-prev,
.slide_nav_pos2 .swiper-button-next {
    display: none !important;
}

/* アーカイブスライダー用の独自ナビゲーションボタン（ブランドモーダルと統一） */
.archive-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #333 !important;
    z-index: 20 !important;
    transition: background-color 0.3s ease !important;
    font-family: Arial, sans-serif !important;
    font-weight: bold !important;
    user-select: none !important;
}

.archive-nav-btn i {
    font-size: 16px !important;
    color: #333 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
}

.archive-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.archive-nav-prev {
    left: 15px !important;
}

.archive-nav-next {
    right: 15px !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .custom-archive-slider-container {
        width: 95%;
        height: 300px;
        margin: 5px auto !important;
    }
    
    .archive-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .archive-nav-btn i {
        font-size: 14px !important;
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
        font-weight: 900 !important;
    }
    
    .archive-nav-prev {
        left: 10px !important;
    }
    
    .archive-nav-next {
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .custom-archive-slider-container {
        width: 98%;
        height: 250px;
        margin: 2px auto !important;
    }
}

/* ブランド詳細スライダー用のスタイル */
.custom-brand-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    z-index: 1;
    margin: 20px 0;
}

.custom-brand-slider-container .custom-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-brand-slider-container .custom-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-brand-slider-container .custom-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

/* モーダル内のブランドスライダー用の追加スタイル */
.brand-modal .custom-brand-slider-container {
    width: 600px !important;
    height: 680px !important;
    margin: 20px auto !important;
    max-width: 90% !important;
    border-radius: 8px !important;
    position: relative !important;
}

/* モーダル内の動的ナビゲーションボタン用スタイル */
.brand-modal .modal-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #333 !important;
    z-index: 20 !important;
    transition: background-color 0.3s ease !important;
    font-family: Arial, sans-serif !important;
    font-weight: bold !important;
    user-select: none !important;
}

.brand-modal .modal-nav-btn i {
    font-size: 16px !important;
    color: #333 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
}

.brand-modal .modal-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.brand-modal .modal-nav-prev {
    left: 15px !important;
}

.brand-modal .modal-nav-next {
    right: 15px !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .custom-brand-slider-container {
        height: 400px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px;
    }
    
    /* スマートフォン版のモーダル内ナビゲーションボタン */
    .brand-modal .modal-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .brand-modal .modal-nav-btn i {
        font-size: 14px !important;
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
        font-weight: 900 !important;
    }
    
    .brand-modal .modal-nav-prev {
        left: 10px !important;
    }
    
    .brand-modal .modal-nav-next {
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .custom-brand-slider-container {
        height: 300px;
    }
} 