/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --brand-dark: #000000;
    --brand-accent-gold: #c5a059;
    --brand-accent-red: #8b1e1e;
    --brand-light: #f9f9f9;
    --brand-bg: #000000;
    --brand-light-ash: #f4f4f4;
    --brand-deep-black: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #ffffff; /* Updated to white for black sections */
    --transition-slow: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--brand-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    user-select: none; /* Disable copying */
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--brand-accent-gold); }

/* Moving CSS Gradients (Glowing Orbs) */
.bg-moving-gradient-dark {
    background: radial-gradient(circle at 20% 30%, #1a1a1a 0%, #000000 50%),
                radial-gradient(circle at 80% 70%, #1a1510 0%, #000000 50%);
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.bg-moving-gradient-dark::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
    animation: floatingOrb 20s infinite linear;
    pointer-events: none;
}

@keyframes floatingOrb {
    0% { transform: translate(0, 0); }
    33% { transform: translate(10%, 15%); }
    66% { transform: translate(-10%, 5%); }
    100% { transform: translate(0, 0); }
}

.bg-butter {
    background-color: #FFF9E5;
    color: #1a1a1a;
}

.bg-butter h2, .bg-butter p {
    color: #1a1a1a !important;
}

.bg-butter span {
    color: inherit;
}

.bg-butter .section-title-en {
    color: var(--brand-accent-gold);
}

.bg-deep-ash {
    background-color: #1a1a1a; /* Deep Ash color */
}

body {
    background-image: url('./img/paper_texture.png');
    background-size: 600px auto;
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4); /* Soften the texture globally */
    z-index: -1;
    pointer-events: none;
}

/* Global Smooth & Slow Animations */
.wow {
    animation-duration: 1.5s !important;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Responsive Optimizations */
@media (max-width: 768px) {
    .section-title-jp {
        font-size: 1.5rem !important;
    }
    .brand-logo {
        font-size: 5.5rem !important;
    }
    section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    .section-split {
        flex-direction: column !important;
    }
    .split-image, .split-text {
        width: 100% !important;
        min-height: auto !important;
    }
    /* Force hide desktop nav elements on mobile */
    #header.type11-header nav,
    #header.type11-header .header-right {
        display: none !important;
    }
    /* Larger Navbar Logo on Mobile */
    #header .brand-logo a {
        font-size: 1.5rem !important;
        display: block;
        transform: translateY(-5px);
    }
}

/* First View Specific Logo Adjustment */
.fv-section .brand-logo a {
    font-size: 5rem !important; /* Even Smaller Mobile Size */
}

@media (min-width: 1024px) {
    .fv-section .brand-logo a {
        font-size: 12rem !important; /* Even smaller Desktop Size */
    }
}

/* FV Catchcopy Style */
.fv-catchcopy {
    color: #fff9e5 !important; /* Halka yellowish white */
    text-shadow: 
        0 0 10px rgba(255, 249, 229, 0.8),
        0 0 20px rgba(255, 249, 229, 0.4),
        0 0 30px rgba(255, 255, 255, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.bg-paper-texture {
    /* Class now deprecated as it is on body, but keeping definition if needed for overrides */
    position: relative;
}

.bg-paper-texture::before {
    display: none;
}

/* Light Variation of Moving Gradient */
.bg-moving-gradient-slightly-light {
    background: radial-gradient(circle at 20% 30%, #252525 0%, #151515 50%),
                radial-gradient(circle at 80% 70%, #2a2015 0%, #151515 50%);
    background-color: #151515;
    position: relative;
    overflow: hidden;
}

.bg-moving-gradient-slightly-light::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    animation: floatingOrb 20s infinite linear;
    pointer-events: none;
}

.bg-light-ash {
    background-color: var(--brand-light-ash);
    color: #111;
}

/* Sharp Diagonal Split for Other Menu */
.bg-diagonal-split {
    background: linear-gradient(165deg, #ffffff 45%, #000000 45%);
    position: relative;
}

/* Typography & Headers */
h1, h2, h3, h4 {
    letter-spacing: 0.05em;
    font-weight: 700;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title-en {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-accent-gold);
    letter-spacing: 0.4em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-maroon .section-title-en {
    color: var(--brand-accent-red) !important;
}

.section-maroon .section-title-jp::after {
    background-color: var(--brand-accent-red) !important;
}

.section-title-jp {
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.section-title-jp::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 2px;
    background-color: #c5a059 !important;
}

/* MUI Style Components */
.mui-btn-primary {
    display: inline-block;
    background-color: var(--brand-accent-gold);
    color: #000;
    padding: 18px 48px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: background-color 0.4s ease, transform 0.4s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    will-change: transform;
    min-width: 280px; /* Ensure same width for buttons in CTA */
    text-align: center;
}

.mui-btn-primary:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.mui-btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 17px 47px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: border-color 0.4s ease, color 0.4s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

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

.mui-btn-maroon {
    display: inline-block;
    background-color: var(--brand-accent-red);
    color: #fff;
    padding: 18px 48px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: background-color 0.4s ease, transform 0.4s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    min-width: 280px;
    text-align: center;
}

.mui-btn-maroon:hover {
    background-color: #a52a2a;
    transform: translateY(-2px);
    color: #fff;
}

.mui-btn-outline-dark {
    display: inline-block;
    background-color: transparent;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.3);
    padding: 17px 47px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: border-color 0.4s ease, color 0.4s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

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

/* 40/60 Split Layout (Requirement) */
.section-split {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.split-text {
    width: 100%;
    padding: 10% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-image {
    width: 100%;
    min-height: 500px;
}

@media (min-width: 1024px) {
    .split-text { width: 40%; }
    .split-image { width: 60%; }
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove bottom gap */
}

/* Header & Nav Adjustments */
#header.type11-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    transition: padding 0.4s ease, background-color 0.4s ease;
    background-color: #333333; /* Even lighter Ash background */
}

#header.type11-header.scrolled {
    background: #111; /* Slightly darker deep ash when scrolled */
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-accent-gold) !important;
    font-family: 'Noto Sans JP', sans-serif;
}

.logo a {
    /* Legacy support */
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-accent-gold) !important;
}

#header.type11-header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push Insta to right */
}

#header.type11-header nav a {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 0 1.25rem; /* Centered spacing */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.4s ease;
}

#header.type11-header nav a:hover {
    color: var(--brand-accent-gold);
}

#header.type11-header nav a.mui-btn-maroon {
    padding: 12px 24px;
    min-width: auto;
    font-size: 12px;
    margin-left: 2.5rem;
}

/* Hamburger Menu Icon (White for contrast) */
#menu-btn span {
    background-color: #fff !important;
}

/* FV Section */
.fv-section {
    position: relative;
    width: 100%;
    height: 100svh;
    background: #000;
    overflow: hidden;
}

.pc-fv-wrap, .sp-fv-wrap { width: 100%; height: 100%; }
.cards-container { display: flex; width: 100%; height: 100%; }
.card { 
    flex: 1; 
    height: 100%; 
    position: relative; 
    overflow: hidden; 
    transition: flex 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); 
    cursor: pointer; 
    will-change: flex;
}
.card-bg { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    transition: transform 2.5s ease, opacity 1s ease; 
    will-change: transform;
}
.card.expanded { flex: 3; }

.fs-layer { 
    position: absolute; 
    inset: 0; 
    z-index: 100; 
    opacity: 0; 
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); 
    pointer-events: none; 
    will-change: opacity;
}
.fs-layer.visible { opacity: 1; pointer-events: auto; }
.fs-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fs-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }

.fs-content-normal { position: absolute; top: 50%; left: 10%; transform: translateY(-50%); max-width: 800px; color: #fff; }
.fs-content-normal h2 { font-size: 4rem; line-height: 1.2; margin-bottom: 2rem; }
.fs-content-normal h2 span { display: block; font-size: 1rem; color: var(--brand-accent-gold); letter-spacing: 0.3em; margin-bottom: 1rem; text-transform: uppercase; }

/* Product Gallery (FV Part 2) */
.fs-content-gallery { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 5%; }
.gallery-wrapper { display: flex; gap: 3rem; margin-bottom: 4rem; }
.gallery-item-wrap { width: 320px; text-align: center; }
.gallery-item-wrap img { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    border-radius: 4px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    margin-bottom: 1.5rem; 
    transition: transform 0.5s ease; 
    will-change: transform;
}
.gallery-item-wrap:hover img { transform: translateY(-10px); }
.gallery-item-wrap span { font-weight: 700; color: #fff; letter-spacing: 0.1em; }

/* Swiper Customize */
.swiper-wrapper { padding-bottom: 50px; }
.swiper-pagination-bullet { background: #fff; opacity: 0.3; }
.swiper-pagination-bullet-active { background: var(--brand-accent-gold); opacity: 1; }

/* Menu List Enhancement */
.menu-list-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding-left 0.4s ease, color 0.4s ease;
}

.menu-item:hover {
    padding-left: 1rem;
    color: var(--brand-accent-gold);
}

.menu-name { font-weight: 700; font-size: 1.1rem; }
.menu-price { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--brand-accent-gold); }

.menu-item-blend, .menu-item-blend .menu-item, .menu-item-blend .menu-name, .menu-item-blend .menu-price {
    color: #ffffff !important;
    mix-blend-mode: difference;
}

.menu-item-blend .section-title-en {
    color: #c5a059 !important;
    mix-blend-mode: normal; /* Keep gold as is */
}

.menu-item-blend .section-title-jp {
    color: #ffffff !important;
    mix-blend-mode: difference;
}

.menu-item-blend .section-title-jp::after {
    mix-blend-mode: normal; /* Ensure bar stays gold */
}

.menu-item-blend span {
    mix-blend-mode: difference;
}

/* Animation Utils */
.wow { visibility: hidden; }

.footer-nav a {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #a0a0a0;
    transition: color 0.4s ease;
}

.footer-nav a:hover {
    color: var(--brand-accent-gold);
}

/* SP Adjustments */
@media (max-width: 767px) {
    .section-title-jp { font-size: 1.8rem; }
    .section-title-en { font-size: 0.7rem; letter-spacing: 0.2em; }
    .split-text { padding: 15% 5%; }
    .split-image { min-height: 350px; }
    .mui-btn-primary, .mui-btn-maroon { 
        width: 100%; 
        min-width: auto; 
        padding: 16px 20px;
    }
    #header.type11-header { padding: 1rem 5%; height: 70px; }
    .logo a { font-size: 1.2rem; }
    .fs-content-normal h2 { font-size: 2.2rem; }
    .gallery-wrapper { flex-direction: column; gap: 2rem; overflow-y: auto; max-height: 60vh; }
    .gallery-item-wrap { width: 200px; }
    .gallery-item-wrap img { height: 250px; }
}

.voice-bg-section {
    background-image: url('./img/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.voice-bg-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

#contact p, #contact .text-text-muted {
    color: #ffffff !important;
}

#contact a {
    color: #ffffff;
}

#contact a:hover {
    color: var(--brand-accent-gold);
}

/* Mobile Sticky CTA Bar */
.sp-sticky-cta {
    display: none;
}

@media (max-width: 1023px) {
    .sp-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .sp-sticky-cta .cta-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 10px;
        font-weight: 700;
        color: #000;
        gap: 2px;
    }

    .sp-sticky-cta .cta-btn.tel {
        border-right: 1px solid #eee;
    }

    .sp-sticky-cta .cta-btn.insta {
        color: var(--brand-accent-red);
    }

    .sp-sticky-cta .material-icons {
        font-size: 24px;
    }

    /* Adjust Back to Top position on mobile to not overlap CTA */
    #back-to-top {
        bottom: 85px !important;
        right: 20px !important;
    }
}

/* CTA Paper Background */
.cta-paper-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('./img/paper_texture.png') !important;
    background-size: 600px auto;
    background-repeat: repeat;
}
