:root {
    --bg-dark: #050505;
    --bg-panel: #0a0a0a;
    --bg-light: #f4f0e6;
    --text-main: #e8e0d1;
    --text-muted: #9e9381;
    --gold: #c29b62;
    --gold-dark: #917142;
    --crimson: #7a1b1b;
    --font-serif: 'Noto Serif JP', 'Shippori Mincho', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 12rem;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-serif);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 2;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 400; letter-spacing: 0.1em; line-height: 1.4; }
.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.3em;
    line-height: 2.5;
}
.title-xl { font-size: clamp(2.5rem, 5vw, 5rem); }
.title-lg { font-size: clamp(2rem, 4vw, 3.5rem); }
.title-md { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Layouts */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 4rem);
}
.section { padding: var(--space-xl) 0; }
.section-lg { padding: var(--space-xxl) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    transition: all 0.4s ease;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
}
.btn:hover { background: var(--gold); color: var(--bg-dark); }
.btn-solid { background: var(--gold); color: var(--bg-dark); }
.btn-solid:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(194, 155, 98, 0.15);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo img { height: 50px; width: auto; }
.logo-text { color: var(--text-main); font-size: 1.5rem; letter-spacing: 0.3em; }
.logo-sub { display: block; font-size: 0.6rem; letter-spacing: 0.4em; color: var(--gold); font-family: var(--font-sans); }

.nav-desktop { display: flex; gap: 2rem; list-style: none; }
.nav-desktop a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    font-family: var(--font-sans);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--gold); }

/* Mobile Menu */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 20px;
    cursor: pointer;
    z-index: 1001;
}
.menu-btn span {
    display: block; width: 100%; height: 1px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.nav-mobile {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: all 0.5s ease;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; }
.nav-mobile ul { list-style: none; text-align: center; }
.nav-mobile li { margin: 1.5rem 0; transform: translateY(20px); opacity: 0; transition: all 0.4s ease; }
.nav-mobile.open li { transform: translateY(0); opacity: 1; }
.nav-mobile a { color: var(--text-main); text-decoration: none; font-size: 1.5rem; letter-spacing: 0.2em; }
.nav-mobile a:hover { color: var(--gold); }

/* Hero Section */
.hero {
    height: 100vh; min-height: 600px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.8) 100%);
    z-index: 1;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
    animation: zoomInOut 20s infinite alternate ease-in-out;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
.hero-title-vert {
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: var(--text-main);
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    margin: 0 auto;
}

/* Page Header */
.page-header {
    padding: 12rem 0 6rem;
    position: relative;
    background: var(--bg-panel);
    text-align: center;
}
.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M0 0h1v100H0zM99 0h1v100H99z" fill="rgba(194, 155, 98, 0.03)"/></svg>');
    background-size: 100px 100px; z-index: 0;
}
.page-header-content { position: relative; z-index: 1; }

/* Image Frame (Wabi-Sabi asymmetric) */
.img-frame {
    position: relative;
}
.img-frame img {
    width: 100%; display: block; object-fit: cover;
}
.img-frame::before {
    content: ''; position: absolute; top: -20px; left: -20px;
    width: 100%; height: 100%; border: 1px solid var(--gold);
    z-index: -1;
}
.img-frame.alt::before { top: 20px; left: 20px; }

/* Asymmetric Content Block */
.asym-block {
    display: flex; gap: 4rem; align-items: center; margin-bottom: 6rem;
}
.asym-block:nth-child(even) { flex-direction: row-reverse; }
.asym-content { flex: 1; }
.asym-image { flex: 1; position: relative; }
.asym-image img { width: 100%; height: 60vh; object-fit: cover; }
.asym-badge {
    position: absolute; bottom: -2rem; right: -2rem;
    background: var(--bg-dark); padding: 2rem;
    border: 1px solid var(--gold); width: 200px;
    text-align: center;
}
.asym-block:nth-child(even) .asym-badge { right: auto; left: -2rem; }

/* Menu Card */
.menu-card {
    background: var(--bg-panel);
    border: 1px solid rgba(194, 155, 98, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}
.menu-card:hover { border-color: rgba(194, 155, 98, 0.5); transform: translateY(-5px); }
.menu-card-img { width: 100%; height: 300px; object-fit: cover; }
.menu-card-body { padding: 2.5rem; text-align: center; }
.menu-price { color: var(--gold); font-family: var(--font-sans); letter-spacing: 0.1em; margin-top: 1rem; display: block; }

/* Philosophy Section */
.philosophy { background: var(--bg-light); color: var(--bg-dark); padding: var(--space-xxl) 0; position: relative; }
.philosophy .text-gold { color: var(--gold-dark); }
.philosophy .btn { border-color: var(--bg-dark); color: var(--bg-dark); }
.philosophy .btn:hover { background: var(--bg-dark); color: var(--text-main); }
.phil-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.phil-vert-title { font-size: 3rem; color: var(--bg-dark); }

/* Footer */
.footer {
    background: var(--bg-dark); border-top: 1px solid rgba(194, 155, 98, 0.2);
    padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.footer-title { color: var(--gold); font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-main); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; color: var(--text-muted); font-size: 0.8rem; }

/* Animations */
@keyframes zoomInOut { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .menu-btn { display: flex; }
    .asym-block, .asym-block:nth-child(even) { flex-direction: column; gap: 3rem; }
    .asym-badge { position: relative; bottom: 0; right: 0; left: 0; width: 100%; margin-top: -2rem; }
    .phil-grid { grid-template-columns: 1fr; }
    .phil-vert-title { writing-mode: horizontal-tb; font-size: 2rem; letter-spacing: 0.1em; }
}
@media (max-width: 768px) {
    :root { --space-xl: 4rem; --space-xxl: 6rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-title-vert { writing-mode: horizontal-tb; letter-spacing: 0.1em; line-height: 1.5; font-size: 2.5rem; }
    .container { padding: 0 1.5rem; }
    .menu-card-img { height: 250px; }
    .asym-image img { height: 40vh; }
}
