/*
Theme Name: Photo Theme
Theme URI: https://example.com
Author: You
Description: クリック操作対応版
Version: 2.0
*/

/* リセット */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #222520;
    cursor: pointer; /* どこでもクリックできることを示す指カーソル */
}

/* ロゴの基本配置設定 */
#site-logo {
    position: fixed;
    z-index: 9999;
    line-height: 1;
    cursor: auto; /* ロゴの上は通常のカーソル動作 */
}

#site-logo img {
    display: block;
}

/* スライドショーエリア */
#slideshow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #222520;
}

/* 個別の画像設定 */
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out;
    will-change: opacity, transform;
    z-index: 0;
}

.slide-item.active {
    opacity: 1;
    z-index: 1;
    animation: zoomEffect 7s linear forwards;
}

@keyframes zoomEffect {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}

/* 黒いフィルター */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
}

/* 蜘蛛の糸 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* インジケーター */
#progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.05);
    z-index: 10;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, rgba(255,255,255,0) 20%, rgba(255,255,255,0.7) 100%);
    box-shadow: 1px 0 3px rgba(255,255,255,0.5);
}

/* スマホ用レイアウト設定 */
@media screen and (max-width: 768px) {
    #site-logo {
        left: 50% !important;
        transform: translateX(-50%);
        top: 60px !important; 
        width: 100%;
        text-align: center;
        pointer-events: none;
    }

    #site-logo a {
        display: inline-block;
        pointer-events: auto;
    }

    #site-logo img {
        transform: scale(0.5); 
        transform-origin: top center;
    }
}