/* ========================================
   HOME.CSS - トップページ スライダー
   ======================================== */

/* ホームページ用レイアウト調整 */
.is-home .app-container {
    position: relative;
}

.is-home .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom-color: transparent;
}

.is-home .main-content {
    padding: 0;
    overflow: hidden;
    gap: 0;
    /* ヘッダー分のスペースを含めて全画面 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.home-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

/* セクション */
.home-section {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.home-section.is-active {
    opacity: 1;
}

/* 背景 */
.home-section__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 背景にオーバーレイ（UIの視認性向上用） */
.home-section__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

/* コンテンツエリア */
.home-section__content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.home-section.is-active .home-section__content {
    visibility: visible;
    opacity: 1;
}

/* セクション名表示 */
.home-section-name {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ナビゲーションドット */
.home-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.home-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.home-nav__dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.home-nav__dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* 左右矢印ボタン */
.home-arrow {
    position: absolute;
    top: 94%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, opacity 0.3s, visibility 0.3s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.home-arrow:hover {
    color: #fff;
}

.home-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

.home-arrow--prev {
    left: -10px;
}

.home-arrow--next {
    right: -10px;
}

.home-arrow svg {
    width: 48px;
    height: 48px;
}

.home-arrow.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   ゲーム一覧セクション
   ======================================== */

.home-games {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
}

.home-games__title {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   ジュークボックスセクション
   ======================================== */

.home-jukebox {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 70px 1rem 1rem;
    overflow-y: auto;
}

.home-jukebox__title {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.home-jukebox__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jukebox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.jukebox-item:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.jukebox-item__jacket {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}

.jukebox-item__jacket img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jukebox-item__info {
    flex: 1;
    min-width: 0;
}

.jukebox-item__title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jukebox-item__game {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   エントランスセクション
   ======================================== */

.home-entrance {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.home-entrance__ad {
    max-width: 100%;
    text-align: center;
    padding: 0 1rem;
}

.home-entrance__ad img {
    max-width: 70%;
    height: auto;
}

@media (min-width: 768px) {
    .home-entrance__ad img {
        max-width: 100%;
    }
}
