/* Variables & Reset */
:root {
    --bg-color: #121212; 
    --text-color: #e0e0e0; 
    --accent-color: #a89f91; 
    --font-jp: 'Shippori Mincho', serif;
    --font-en: 'Cormorant Garamond', serif;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-jp);
    overflow-x: hidden;
}

/* Typography Utilities */
.en { font-family: var(--font-en); letter-spacing: 0.05em; }
.jp { font-family: var(--font-jp); letter-spacing: 0.15em; }

/* 1. Loader */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 9999; background-color: #000;
    display: flex; justify-content: center; align-items: center;
}
.loader-content { text-align: center; opacity: 0; }
.loader-logo { font-family: var(--font-en); font-size: 3rem; font-weight: 300; margin-bottom: 1rem; color: var(--accent-color); }
.loader-sub { font-family: var(--font-en); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: #666; }

/* 2. Header */
.header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 2rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: difference;
}
.logo { font-family: var(--font-en); font-size: 1.5rem; font-weight: 600; }
.hamburger-menu { width: 40px; height: 20px; position: relative; cursor: pointer; }
.hamburger-menu span {
    display: block; position: absolute; height: 1px; width: 100%;
    background: #fff; transition: all 0.3s ease;
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { bottom: 0; }

/* 3. Hero Section */
.hero { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.hero-image-wrapper {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    transform: scale(1.1);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero-text {
    position: absolute; bottom: 10%; left: 5%; z-index: 10; opacity: 0;
}
.hero-text .en { display: block; font-size: 1.2rem; color: var(--accent-color); margin-bottom: 0.5rem; }
.hero-text .jp { font-size: 2.5rem; font-weight: 500; }

/* 4. Concept Section */
.concept {
    min-height: 100vh; background-color: var(--bg-color);
    display: flex; justify-content: center; align-items: center;
    padding: 10vh 5%; position: relative;
}
.concept-container {
    display: flex; flex-direction: row-reverse; gap: 4rem;
    max-width: 1000px; margin: 0 auto;
}
.concept-title {
    writing-mode: vertical-rl; text-orientation: mixed;
    display: flex; align-items: center; gap: 1rem;
    border-left: 1px solid rgba(255,255,255,0.1); padding-left: 2rem;
}
.concept-title .en { font-size: 1rem; color: var(--accent-color); letter-spacing: 0.2em; transform: rotate(180deg); }
.concept-title .jp { font-size: 1.8rem; }
.concept-text-vertical {
    writing-mode: vertical-rl; font-size: 1.1rem;
    line-height: 2.5; letter-spacing: 0.1em; height: 400px;
}
.concept-text-vertical p { margin-left: 2rem; }

/* 5. Menu Section */
.menu-section {
    position: relative; padding: 15vh 5%;
    background-color: var(--bg-color); overflow: hidden;
}
.menu-header { margin-bottom: 10vh; text-align: right; padding-right: 5%; opacity: 0; }
.menu-header .en-label { display: block; font-family: var(--font-en); color: var(--accent-color); font-size: 0.9rem; letter-spacing: 0.2em; margin-bottom: 0.5rem; }
.menu-header .jp-title { font-family: var(--font-jp); font-size: 2rem; font-weight: 500; }

/* Menu Items & Parallax */
.menu-item { position: relative; margin-bottom: 20vh; display: flex; align-items: center; width: 100%; }
.menu-img-wrap { width: 50vw; height: 60vh; overflow: hidden; position: relative; }
.menu-img-wrap img { width: 100%; height: 120%; object-fit: cover; display: block; }
.menu-content { z-index: 2; position: relative; }
.mask-container { overflow: hidden; margin-bottom: 0.5rem; }
.menu-name, .menu-desc, .price { transform: translateY(100%); display: block; } 
.menu-name { font-size: 2.5rem; font-weight: 400; line-height: 1.1; color: #fff; margin-bottom: 1rem; }
.menu-desc { font-size: 0.95rem; color: #bbb; line-height: 1.8; }
.price { font-size: 1.2rem; color: var(--accent-color); margin-top: 1rem; }

/* Item Layout Variations */

/* Item 01: Image Left, Text Overlap Right */
.item-01 { justify-content: flex-start; }
.item-01 .menu-content { margin-left: -5vw; margin-top: 10vh; }

/* Item 02: Image Right, Text Left */
.item-02 { justify-content: space-between; flex-direction: row; }
.item-02 .menu-img-wrap { margin-left: auto; width: 45vw; height: 70vh; }
.item-02 .menu-content { padding-left: 10%; }
.vertical-text { writing-mode: vertical-rl; text-orientation: upright; height: 200px; letter-spacing: 0.2em; }
.vertical-price { writing-mode: vertical-rl; text-orientation: mixed; margin-top: 0; margin-right: 1rem; }

/* Item 03: Image Left, Text Overlap Bottom-Right (Unified Style) */
.item-03 { justify-content: flex-start; align-items: flex-end; /* Align text to bottom */ }
.item-03 .menu-img-wrap { width: 55vw; height: 65vh; /* Slightly different size for rhythm */ }
.item-03 .menu-content { margin-left: -10vw; margin-bottom: 5vh; text-align: right; /* Right align text */ }


/* 6. Access Section */
.access-section { padding: 15vh 5%; background-color: var(--bg-color); position: relative; }
.access-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.access-title { font-size: 1rem; color: var(--accent-color); margin-bottom: 3rem; letter-spacing: 0.2em; text-transform: uppercase; }
.info-group { margin-bottom: 3rem; }
.shop-name { font-size: 1.5rem; margin-bottom: 1.5rem; letter-spacing: 0.1em; }
.jp-address { font-style: normal; line-height: 2; margin-bottom: 1rem; color: #aaa; }
.tel { font-size: 1.2rem; letter-spacing: 0.1em; }
.label { font-size: 0.8rem; color: var(--accent-color); margin-bottom: 0.5rem; letter-spacing: 0.1em; }

/* Dark Mode Map */
.map-wrapper {
    position: relative; width: 100%; height: 50vh; overflow: hidden;
    filter: grayscale(100%) invert(92%) contrast(83%); transition: filter 0.5s ease;
}
.map-wrapper:hover { filter: grayscale(80%) invert(90%) contrast(90%); }
.map-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.2); pointer-events: none; }

/* 7. Footer */
.footer { padding: 4rem 5% 2rem; background-color: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.footer-logo { font-size: 1.5rem; margin-bottom: 2rem; color: var(--accent-color); }
.social-links { margin-bottom: 3rem; display: flex; justify-content: center; gap: 2rem; }
.social-links a { color: #666; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.1em; transition: color 0.3s ease; }
.social-links a:hover { color: #fff; }
.copyright { font-size: 0.7rem; color: #444; letter-spacing: 0.1em; }

/* 8. Magnetic CTA Button */
.cta-container { position: fixed; bottom: 3rem; right: 3rem; z-index: 999; }
.magnetic-btn {
    display: flex; justify-content: center; align-items: center;
    width: 100px; height: 100px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2); background: rgba(20,20,20, 0.4);
    backdrop-filter: blur(8px); text-decoration: none; position: relative;
    overflow: hidden; transition: transform 0.3s ease; cursor: pointer;
}
.btn-text { position: relative; z-index: 2; color: #fff; font-size: 0.8rem; text-align: center; line-height: 1.2; letter-spacing: 0.1em; pointer-events: none; }
.btn-fill {
    position: absolute; top: 50%; left: 50%; width: 150%; height: 150%;
    background-color: var(--accent-color); border-radius: 50%;
    transform: translate(-50%, -50%) scale(0); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); z-index: 1;
}
.magnetic-btn:hover .btn-fill { transform: translate(-50%, -50%) scale(1); }
.magnetic-btn:hover { border-color: transparent; }
.magnetic-btn:hover .btn-text { color: #000; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header { padding: 1.5rem; }
    .hero-text .jp { font-size: 2rem; }
    .concept-container { gap: 2rem; }
    .concept-text-vertical { font-size: 1rem; line-height: 2.2; }
    .menu-item { flex-direction: column; margin-bottom: 10vh; }
    .menu-img-wrap { width: 100vw; height: 40vh; margin-left: 0; }
    .item-01 .menu-content { margin-left: 0; margin-top: 2rem; padding: 0 5%; }
    .item-02 { flex-direction: column-reverse; }
    .item-02 .menu-content { padding: 2rem 5%; width: 100%; }
    .vertical-text { writing-mode: horizontal-tb; height: auto; }
    
    /* Item 03 Responsive */
    .item-03 { align-items: flex-start; }
    .item-03 .menu-img-wrap { width: 100vw; height: 40vh; }
    .item-03 .menu-content { margin-left: 0; margin-bottom: 0; margin-top: 2rem; text-align: left; padding: 0 5%; }

    .access-container { grid-template-columns: 1fr; gap: 2rem; }
    .map-wrapper { height: 40vh; }
    .cta-container { bottom: 1.5rem; right: 1.5rem; }
    .magnetic-btn { width: 80px; height: 80px; }
    .btn-text { font-size: 0.7rem; }
}