@charset "UTF-8";

/* スクロールバーによる表示揺れを防止 */
html {
    scrollbar-gutter: stable;
}

/* --- ローディング画面のスタイル --- */
#loading-screen {
    position: fixed;
    inset: 0;
    background-color: #202124;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: clip-path 1.2s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.8s ease-in-out;
    clip-path: circle(150% at 50% 50%); 
    overflow: hidden;
}
#loading-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
    z-index: 10001;
    text-align: center;
    transition: opacity 0.5s ease;
}
#loading-logo, .logo-glow {
    width: 240px;
    height: auto;
    transition: opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    filter: drop-shadow(0 0 5px rgba(255, 230, 0, 0.5));
}
#loading-open {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 192px;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: drop-shadow(0 0 15px rgba(255, 234, 0, 0.6));
}
.neon-lit #loading-open {
    opacity: 1;
    animation: neonFlicker 0.1s ease-in-out 3 alternate;
}
.neon-lit #loading-logo {
    opacity: 0 !important;
    visibility: hidden;
}
@keyframes neonFlicker {
    from { opacity: 1; filter: drop-shadow(0 0 20px rgba(255, 234, 0, 0.8)); }
    to { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(255, 234, 0, 0.4)); }
}
.flicker {
    animation: flickerAnim 1s infinite;
}
@keyframes flickerAnim {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { 
        opacity: 1; 
        filter: drop-shadow(0 0 15px rgba(255, 230, 0, 0.8)) drop-shadow(0 0 5px rgba(255, 230, 0, 0.5));
    }
    20%, 24%, 55% { opacity: 0.2; filter: none; }
}
.loaded #loading-screen {
    clip-path: circle(0% at 50% 50%); 
    opacity: 0;
    pointer-events: none;
}
.loaded #loading-open {
    animation: none;
    opacity: 1;
}
.loaded #loading-content {
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

/* --- 背景パターン --- */
.bg-index-pattern {
    background-image: url('../img/back.png');
    background-repeat: repeat;
    background-color: #F4F5F7;
}
.bg-menu-pattern {
    background-image: url('../img/menu.png');
    background-repeat: repeat;
    background-color: #F4F5F7;
}

/* --- カスタムスクロール --- */
.custom-scroll::-webkit-scrollbar {
    width: 5px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: #202124;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #444;
}

/* --- メニュー開閉・プレビュー --- */
#menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}
#menu-content.open {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
}
#menu-box {
    transition: height 0.5s ease-in-out, background-color 0.3s ease;
}
.menu-preview-img {
    transition: opacity 0.4s ease-in-out;
}
.nav-item {
    position: relative;
    transition: opacity 0.3s;
}
.nav-item:hover {
    opacity: 0.6;
}

/* --- TOPページ固有スタイル --- */
.hero-section {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    background-color: #202124;
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .hero-section {
        height: 100vh;
        aspect-ratio: auto;
    }
}
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: kenBurnsFade 56s infinite;
}
@keyframes kenBurnsFade {
    0% { opacity: 0; transform: scale(1); }
    4% { opacity: 1; } 
    14.28% { opacity: 1; } 
    20% { opacity: 0; transform: scale(1.1); } 
    100% { opacity: 0; }
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s; }
.hero-slide:nth-child(5) { animation-delay: 32s; }
.hero-slide:nth-child(6) { animation-delay: 40s; }
.hero-slide:nth-child(7) { animation-delay: 48s; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.slider-track {
    display: flex;
    width: calc(320px * 18); 
    animation: scroll 34.5s linear infinite;
}
.slider-track:hover {
    animation-play-state: paused;
}
.slide {
    width: 320px;
    height: 200px; 
    flex-shrink: 0;
    padding: 0;
}
@media (min-width: 1024px) {
    .slider-track {
        width: calc(480px * 18); 
    }
    .slide {
        width: 480px;
        height: 300px; 
    }
}

.roulette-container {
    position: relative;
    width: 460px;
    max-width: 90vw;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
}
.roulette-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #bdbdbd;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    box-shadow: 0 0 35px rgba(0,0,0,0.2); 
    transform: rotate(0deg); 
    transition: transform 1.2s cubic-bezier(0.15, 0, 0.15, 1);
}
.roulette-item {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
    cursor: pointer;
    overflow: hidden;
}
.roulette-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}
@keyframes marker-flash {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px #d32f2f); }
    50% { opacity: 0.2; }
}
.marker-flashing {
    animation: marker-flash 0.15s linear infinite;
}
.triangle-marker {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid #d32f2f;
    z-index: 20;
}

/* --- MENUページ固有スタイル --- */
.category-sub-title {
    position: relative;
    display: inline-block;
    padding: 0 50px;
}
.category-sub-title::before, .category-sub-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #202124;
    opacity: 0.4;
}
.category-sub-title::before { left: 0; }
.category-sub-title::after { right: 0; }

.menu-hero-banner {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    overflow: hidden;
}
@media (min-width: 1024px) {
    .menu-hero-banner {
        height: 400px;
    }
}
.menu-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(32,33,36,0) 20%, rgba(32,33,36,0.6) 100%);
    z-index: 1;
}