:root {
    /* Colors - Dark Luxury Palette */
    --bg-color: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    /* Glassmorphism base */
    --bg-card-hover: rgba(30, 30, 30, 0.8);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-gold: #c5a059;
    --accent-gold-dim: #8a703e;
    --accent-gold-light: #e2c28d;
    --accent-bordeaux: #4a0a10;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold-subtle: rgba(197, 160, 89, 0.3);

    /* Typography */
    --font-main: "Noto Sans JP", sans-serif;
    --font-heading: "Noto Serif JP", serif;

    /* Metrics */
    --header-height: 80px;
    --container-width: 1000px;
    /* Slightly narrower for luxury feel */
    --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Slower, elegant ease */
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 2.0;
    /* Increased for elegance */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.text-gold {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    /* Generous padding */
}

/* 
   ==========================================================================
   Particles & Backgrounds
   ========================================================================== 
*/
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Abstract Background Fallback (High-Fidelity CSS Art) */
.hero-bg-abstract {
    position: relative;
    overflow: hidden;
    background-color: #050505;
}

.hero-bg-abstract::before {
    /* Noise Texture */
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero-bg-abstract::after {
    /* General Vignette */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #050505 90%);
    z-index: 2;
}

/* Page Specific Atmospheres */
.hero-bg-home {
    background:
        radial-gradient(circle at 70% 30%, rgba(197, 160, 89, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(74, 10, 16, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, #0d0d0d 0%, #050505 100%);
}

.hero-bg-concept {
    background:
        radial-gradient(circle at 50% 40%, rgba(100, 100, 150, 0.1) 0%, transparent 60%),
        linear-gradient(to bottom right, #080808, #050505);
}

.hero-bg-howto {
    background:
        radial-gradient(circle at 80% 20%, rgba(226, 194, 141, 0.12) 0%, transparent 40%),
        linear-gradient(to left, #0f0f0f, #050505);
}

.hero-bg-system {
    /* Whiskey & Gold */
    background:
        radial-gradient(circle at 50% 50%, rgba(138, 112, 62, 0.2) 0%, transparent 70%),
        linear-gradient(0deg, #050505 10%, #15100a 100%);
}

.hero-bg-rules {
    /* Iron & Velvet */
    background:
        radial-gradient(circle at 20% 80%, rgba(50, 50, 60, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
}

.hero-bg-schedule {
    /* Midnight */
    background:
        radial-gradient(circle at 50% 0%, rgba(30, 40, 60, 0.2) 0%, transparent 80%),
        linear-gradient(180deg, #080a10 0%, #050505 100%);
}

.hero-bg-faq {
    /* Candlelight */
    background:
        radial-gradient(circle at 80% 80%, rgba(197, 160, 89, 0.1) 0%, transparent 50%),
        linear-gradient(to right, #080808, #050505);
}

.hero-bg-inquiry,
.hero-bg-contact {
    /* Warm Door light */
    background:
        radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #0f0b05 0%, #050505 100%);
}

/* Quick Summary Card */
.quick-summary-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 2px;
    padding: 24px;
    margin: -40px auto 60px;
    /* Overlap hero slightly */
    max-width: 600px;
    position: relative;
    z-index: 10;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.quick-summary-card ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.quick-summary-card li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-summary-card li::before {
    content: '◆';
    color: var(--accent-gold-dim);
    font-size: 0.6em;
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    /* Creating presence */
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--accent-gold);
    position: absolute;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Hero Section (Parallax) */
.page-hero {
    height: 80vh;
    /* Luxurious height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.page-hero::after {
    /* Overlay */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.6) 50%, rgba(5, 5, 5, 1) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(30px);
    /* Initial state for anim */
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.page-hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    color: var(--accent-gold);
    margin-bottom: 32px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.page-hero p {
    color: #e0e0e0;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    font-weight: 300;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

/* Sections */
.section {
    padding: 160px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 100px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
}

/* Cards (Dark Luxury Glass) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 40px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-gold-subtle);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.card h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold-light);
    margin-bottom: 24px;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.card p,
.card ul {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 2.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 48px;
    background-color: var(--accent-bordeaux);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background-color: #5e0d15;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(74, 10, 16, 0.4);
    letter-spacing: 0.25em;
    /* Subtle expansion */
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Forms */
input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 20px;
    color: #fff;
    font-family: var(--font-main);
    margin-bottom: 24px;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    padding: 120px 0 60px;
    background: linear-gradient(180deg, var(--bg-color) 0%, #000 100%);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
}

.copyright {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .page-hero {
        height: 60vh;
        min-height: 400px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #particles-canvas {
        display: none;
    }

    .hero-parallax-bg {
        transform: none !important;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}