* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 左上のロゴスタイル */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.corner-logo {
    width: 20vw; /* ビューポート幅の20%（1/5）に設定 */
    max-width: 150px; /* 最大サイズを制限 */
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.corner-logo:hover {
    opacity: 1;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease;
    overflow: hidden;
    will-change: opacity;
}

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

.slide.fade-out {
    opacity: 0;
    z-index: 1;
    transition: opacity 2s ease;
}

.slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 4s linear;
    will-change: transform;
    backface-visibility: hidden;
    transform: scale(1.0) translate(0, 0);
}

/* アクティブなスライドの画像を拡大 */
.slide.active img {
    transform: scale(1.05) translate(-1%, -1%);
}

/* フェードアウト中のスライドも拡大を維持 */
.slide.fade-out img {
    transform: scale(1.05) translate(-1%, -1%);
}

/* コントロールボタンとBGM情報のスタイル */
.controls {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

/* サムネイル一覧表示のスタイル */
.thumbnail-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 90%;
    height: 80%;
    margin-bottom: 20px;
}

.thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    cursor: pointer;
}

.thumbnail:hover {
    border-color: #fff;
}

.thumbnail.active {
    border-color: #0088ff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* サムネイル一覧表示時のスライドショーに戻るボタン */
#back-to-slideshow {
    margin-top: 10px;
    background-color: rgba(0, 128, 0, 0.7);
    border-color: rgba(0, 255, 0, 0.3);
    padding: 8px 16px;
    font-size: 14px;
}

#back-to-slideshow:hover {
    background-color: rgba(0, 150, 0, 0.9);
}

.page-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.page-btn:hover {
    background-color: rgba(50, 50, 50, 0.9);
}

.page-info {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.control-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px; /* 半分のサイズに */
    padding: 5px 10px; /* 半分のサイズに */
    cursor: pointer;
    font-size: 12px; /* フォントサイズも小さく */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); /* 影も小さく */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.control-btn i {
    margin-right: 8px;
}

.control-btn:hover {
    background-color: rgba(50, 50, 50, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-btn.playing {
    background-color: rgba(0, 128, 0, 0.7);
    border-color: rgba(0, 255, 0, 0.3);
}

/* ボリュームコントロールのスタイル */
.volume-control {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px; /* 半分のサイズに */
    padding: 4px 8px; /* 半分のサイズに */
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); /* 影も小さく */
}

.volume-control i {
    color: white;
    font-size: 10px; /* フォントサイズも小さく */
    margin: 0 4px; /* マージンも半分に */
}

#volume-slider {
    -webkit-appearance: none;
    width: 50px; /* 半分のサイズに */
    height: 2px; /* 半分のサイズに */
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px; /* 半分のサイズに */
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px; /* 半分のサイズに */
    height: 6px; /* 半分のサイズに */
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 6px; /* 半分のサイズに */
    height: 6px; /* 半分のサイズに */
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.bgm-info {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* 著作権表示のスタイル */
.copyright {
    position: fixed;
    bottom: 10px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 30; /* サムネイル一覧表示のz-index(20)よりも大きく設定 */
    text-align: right;
    width: auto;
}

.landing-view .copyright {
    bottom: 10px;
    right: 20px;
    transform: none;
}

.bgm-info i {
    margin-right: 8px;
    color: #1DB954; /* Spotify風の緑色 */
}

/* ローディングインジケーターのスタイル */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    z-index: 100;
}
