/* iPad フレーム付きスクリーンセーバースライドショー */

.ipad-screensaver-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.ipad-frame {
    position: relative;
    width: 100%;
    padding: 3% 2.2%;
    background: linear-gradient(135deg, #3a3a3c 0%, #2c2c2e 50%, #1c1c1e 100%);
    border-radius: 45px;
    box-shadow: 
        /* 外側の影 - リアルな浮き感 */
        0 40px 100px rgba(0,0,0,0.6),
        0 20px 50px rgba(0,0,0,0.4),
        0 10px 20px rgba(0,0,0,0.3),
        /* ベゼルの立体感 */
        inset 0 1px 2px rgba(255,255,255,0.15),
        inset 0 -1px 2px rgba(0,0,0,0.5),
        /* アルミニウムの光沢 */
        inset 0 0 0 1px rgba(255,255,255,0.08);
    /* アルミニウムの質感 */
    background-image: 
        linear-gradient(135deg, #3a3a3c 0%, #2c2c2e 50%, #1c1c1e 100%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

/* iPadのカメラ */
.ipad-frame::before {
    content: '';
    position: absolute;
    top: 1.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #2a2a2c, #0a0a0c);
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.8),
        0 0 0 2px rgba(20,20,20,0.8),
        0 0 0 3px rgba(60,60,60,0.3);
    z-index: 10;
}

.ipad-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 
        /* スクリーンの枠 */
        inset 0 0 0 1px rgba(0,0,0,0.9),
        /* 内側の影 */
        inset 0 2px 8px rgba(0,0,0,0.6),
        inset 0 0 20px rgba(0,0,0,0.4);
}

.screensaver-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.screensaver-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

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

.screensaver-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* スライドインジケーター */
.slideshow-indicators {
    display: none; /* インジケーターを非表示 */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    z-index: 10;
    background: rgba(30, 30, 30, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.1);
}

.slideshow-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slideshow-indicators .indicator.active {
    background: linear-gradient(135deg, #5ea3f5, #4a90e2);
    width: 28px;
    border-radius: 5px;
    box-shadow: 
        0 2px 8px rgba(74,144,226,0.6),
        0 0 20px rgba(74,144,226,0.3);
}

.slideshow-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* iPadホームボタン - 削除済み */
/*
.ipad-home-button {
    position: absolute;
    bottom: 1.2%;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 55px;
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    border-radius: 50%;
    border: 2px solid rgba(80,80,80,0.4);
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.5),
        0 1px 2px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.08),
        inset 0 -2px 6px rgba(0,0,0,0.7);
    background-image: 
        radial-gradient(circle at center, transparent 60%, rgba(255,255,255,0.02) 60%, rgba(255,255,255,0.02) 70%, transparent 70%);
}

.ipad-home-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.03);
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.5),
        0 1px 1px rgba(255,255,255,0.03);
}
*/

/* 電源ボタン（オプション） */
.ipad-frame::after {
    content: '';
    position: absolute;
    top: 15%;
    right: -2px;
    width: 4px;
    height: 60px;
    background: linear-gradient(90deg, #1a1a1c, #2c2c2e);
    border-radius: 2px 0 0 2px;
    box-shadow: 
        inset 1px 0 2px rgba(0,0,0,0.5),
        -1px 0 2px rgba(0,0,0,0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ipad-frame {
        padding: 3.5% 2.5%;
        border-radius: 35px;
    }
    
    .ipad-frame::before {
        width: 8px;
        height: 8px;
    }
    
    .ipad-screen {
        border-radius: 3px;
    }
    
    /*
    .ipad-home-button {
        width: 45px;
        height: 45px;
    }
    
    .ipad-home-button::after {
        width: 32px;
        height: 32px;
    }
    */
    
    .slideshow-indicators {
        bottom: 15px;
        padding: 8px 16px;
        gap: 8px;
    }
    
    .slideshow-indicators .indicator {
        width: 8px;
        height: 8px;
    }
    
    .slideshow-indicators .indicator.active {
        width: 22px;
    }
    
    .ipad-frame::after {
        height: 50px;
        width: 3px;
    }
}

@media (max-width: 480px) {
    .ipad-frame {
        padding: 4% 3%;
        border-radius: 25px;
    }
    
    .ipad-frame::before {
        width: 6px;
        height: 6px;
    }
    
    /*
    .ipad-home-button {
        width: 40px;
        height: 40px;
    }
    
    .ipad-home-button::after {
        width: 28px;
        height: 28px;
    }
    */
    
    .slideshow-indicators {
        bottom: 12px;
        gap: 6px;
        padding: 6px 12px;
    }
    
    .slideshow-indicators .indicator {
        width: 6px;
        height: 6px;
    }
    
    .slideshow-indicators .indicator.active {
        width: 18px;
    }
    
    .ipad-frame::after {
        height: 40px;
    }
}

