@charset "UTF-8";

/* ==========================================================================
   Design Tokens & Reset
   ========================================================================== */
:root {
    /* Colors matches Tailwind config */
    --color-brand-black: #1a1a1a;
    --color-brand-accent: #C8A060;
    --color-brand-green: #4ade80;
    --color-brand-wine: #800020;

    /* Golden Ratio Spacing Scale (Base: 8px) */
    --space-3xs: 3px;
    /* 8 ÷ φ³ */
    --space-2xs: 5px;
    /* 8 ÷ φ² */
    --space-xs: 8px;
    /* Base Unit */
    --space-sm: 13px;
    /* 8 × φ */
    --space-md: 21px;
    /* 8 × φ² */
    --space-lg: 34px;
    /* 8 × φ³ */
    --space-xl: 55px;
    /* 8 × φ⁴ */
    --space-2xl: 89px;
    /* 8 × φ⁵ */
    --space-3xl: 144px;
    /* 8 × φ⁶ */

    /* Golden Ratio Typography Scale (Base: 16px) */
    --text-xs: 10px;
    /* Caution */
    --text-sm: 13px;
    /* Meta */
    --text-base: 16px;
    /* Body */
    --text-md: 21px;
    /* H3/Section */
    --text-lg: 26px;
    /* H2/Card */
    --text-xl: 34px;
    /* H2/Page */
    --text-2xl: 42px;
    /* H1/Hero */
    --text-3xl: 55px;
    /* Display */

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (min-width: 768px) {
    :root {
        /* Desktop Scale Adjustment if needed, but GR is usually constant. 
           We can adjust base modifiers here if we were using a fluid base, 
           but for now we keep the strict scale. */
    }
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    /* UI Quality Gate 1.1: Sans-serif for Body */
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    color: var(--color-brand-black);
    line-height: 1.618;
    /* Golden Ratio Line Height */
    font-size: var(--text-base);
}

/* Explicit Serif Class for Headings/Brand */
.font-serif {
    font-family: 'Shippori Mincho', serif;
}

/* English Headings */
.font-eng {
    font-family: 'Cormorant Garamond', serif;
}

/* ==========================================================================
   Utility Classes (Custom)
   ========================================================================== */

/* Grain Overlay (Texture) */
.grain-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.65' 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");
    pointer-events: none;
    z-index: 10;
    opacity: 0.4;
}

/* Text Shadow for Hero */
.text-shadow-hero {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Gold Divider */
.divider-gold {
    width: 60px;
    height: 2px;
    background-color: var(--color-brand-accent);
}


/* ==========================================================================
   Micro-Interactions
   ========================================================================== */

/* Magnetic Button Base */
.btn-magnetic {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out-quart);
}

.btn-magnetic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s var(--ease-out-quart);
    border-radius: 50%;
    pointer-events: none;
}

.btn-magnetic:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Card Hover Lift (Premium) - see below */

/* Image Zoom (Premium) - see below */

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Safe Area for Mobile */
.safe-area-inset-bottom {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* ==========================================================================
   Animations & Components
   ========================================================================== */

/* Button Premium */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-brand-accent);
    z-index: -1;
    transition: width 0.4s var(--ease-out-expo);
}

.btn-premium:hover::before {
    width: 100%;
}

.btn-premium:hover {
    color: white !important;
    border-color: var(--color-brand-accent) !important;
}

/* Card Lift Effect */
.card-lift {
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

/* Image Zoom on Hover */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom {
    transition: transform 0.7s var(--ease-out-expo);
}

.img-zoom-container:hover .img-zoom {
    transform: scale(1.1);
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Reveal Section (GSAP target) */
.reveal-section {
    /* opacity: 0; Removed to prevent invisible content if JS fails or delays */
}

/* GSAP Hero Initial State (Prevent FOUC) */
.gsap-hero {
    opacity: 0;
    transform: translateY(20px);
}

/* Mobile responsive adjustments */
@media (max-width: 639px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   Bottom Navigation (Mobile)
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Standard accessible height */
    height: calc(60px + env(safe-area-inset-bottom));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 9999;
    /* Very high to ensure it's on top */
    padding-bottom: env(safe-area-inset-bottom);
    display: none;
    /* Hide by default (desktop) */
    box-shadow: 0 -4px 12px -1px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    /* Add padding to body to prevent content being hidden */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9CA3AF;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bottom-nav-item.active,
.bottom-nav-item:active {
    color: var(--color-brand-accent);
}

/* Touch Ripple Effect */
.bottom-nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-brand-accent);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s;
    border-radius: 50%;
}

.bottom-nav-item:active::after {
    opacity: 0.1;
    transform: scale(2);
    transition: 0s;
}

