/* Custom Styles for 和風ショットバー 八十吟 */

/* Custom Properties */
:root {
    --midnight-950: #0a0e1a;
    --midnight-900: #0f1629;
    --midnight-800: #1a2744;
    --mint-400: #6ee7b7;
    --mint-500: #34d399;
    --mint-600: #10b981;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--midnight-950);
    color: #ffffff;
}

/* Tailwind Config Extension */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    h1, h2, h3, h4 {
        font-family: 'Playfair Display', serif;
    }
    
    p, span, a, button, input, textarea {
        font-family: 'Inter', sans-serif;
    }
}

@layer components {
    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--midnight-950);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--mint-500);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--mint-400);
    }
}

/* Hero Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-anim:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
}

/* Navigation Transition */
nav.scrolled {
    background-color: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile Menu Transitions */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Image Hover Effects */
img {
    will-change: transform;
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--mint-400);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: var(--mint-500);
    color: var(--midnight-950);
}
