/* =========================================
   Reset & Variables
   ========================================= */
:root {
    --color-primary: #3c2a21;      /* Deep brown for text */
    --color-secondary: #8b5a2b;    /* Warm brown for accents */
    --color-accent: #4a5d23;       /* Deep green */
    --color-bg: #fdfbf7;           /* Warm off-white background */
    --color-white: #ffffff;
    --color-light-gray: #f5f3ef;
    
    --font-heading: 'Cinzel', 'Noto Serif JP', serif;
    --font-body: 'Noto Serif JP', serif;
    
    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--color-primary);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 12rem 0;
}

/* =========================================
   Typography & Components
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
}

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

.section-title.left {
    text-align: left;
}

.section-title h2 {
    font-size: 4rem;
    color: var(--color-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.section-title p {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    opacity: 0.7;
}

.btn {
    display: inline-block;
    padding: 1.5rem 4rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-secondary);
    border-radius: 2px;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 2rem 0;
}

.header.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.header.scrolled .logo a {
    color: var(--color-primary);
}

.logo span {
    font-size: 1rem;
    letter-spacing: 0.2em;
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: 0.5rem;
}

.nav {
    display: none;
}

.reservation-btn {
    display: none;
}

/* Hamburger */
.hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 101;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background-color: var(--color-primary);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
    background-color: var(--color-primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
    background-color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 3rem;
}

.mobile-nav-list a {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    letter-spacing: 0.1em;
}

/* Desktop Header */
@media (min-width: 1024px) {
    .hamburger { display: none; }
    .nav { display: block; }
    .reservation-btn { display: block; }
    
    .nav-list {
        display: flex;
        gap: 4rem;
    }
    
    .nav-list a {
        color: var(--color-white);
        font-family: var(--font-heading);
        font-size: 1.4rem;
        letter-spacing: 0.1em;
        position: relative;
    }
    
    .header.scrolled .nav-list a {
        color: var(--color-primary);
    }
    
    .nav-list a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 1px;
        background-color: var(--color-secondary);
        transition: var(--transition);
    }
    
    .nav-list a:hover::after {
        width: 100%;
    }
    
    .reservation-btn .btn {
        padding: 1rem 2.5rem;
        background-color: transparent;
        border-color: var(--color-white);
    }
    
    .header.scrolled .reservation-btn .btn {
        border-color: var(--color-secondary);
        color: var(--color-secondary);
    }
    
    .header.scrolled .reservation-btn .btn:hover {
        background-color: var(--color-secondary);
        color: var(--color-white);
    }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    z-index: 1;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 2vw, 2rem);
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.hero-title .title-kana {
    display: block;
    font-size: 0.35em;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    text-shadow: 1px 2px 5px rgba(0,0,0,0.5);
}

.hero-text {
    font-size: clamp(1.4rem, 1.5vw, 1.8rem);
    letter-spacing: 0.1em;
    line-height: 2;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.scroll-down span {
    font-size: 1rem;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.scroll-down .line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-down .line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* =========================================
   Concept Section
   ========================================= */
.concept-content {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

@media (min-width: 900px) {
    .concept-content {
        flex-direction: row;
        align-items: center;
    }
    
    .concept-text {
        flex: 1;
        padding-right: 5rem;
    }
    
    .concept-image {
        flex: 1;
    }
}

.concept-text h3 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--color-secondary);
    line-height: 1.5;
}

.concept-text p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.concept-image img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* =========================================
   Ingredients Section
   ========================================= */
.ingredients {
    position: relative;
    background-color: var(--color-light-gray);
}

.ingredients-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 6rem;
}

@media (min-width: 900px) {
    .ingredients-content {
        flex-direction: row;
        align-items: center;
    }
    
    .ingredients-image {
        flex: 1;
    }
    
    .ingredients-text {
        flex: 1;
        padding-left: 5rem;
    }
}

.ingredients-image img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.ingredients-text h3 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--color-secondary);
    line-height: 1.5;
}

.ingredients-text p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.ingredients-text .btn {
    margin-top: 3rem;
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================================
   Access Section
   ========================================= */
.access {
    background-color: var(--color-light-gray);
}

.access-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 900px) {
    .access-content {
        flex-direction: row;
    }
    
    .access-info {
        flex: 1;
        padding-right: 4rem;
    }
    
    .access-map {
        flex: 1.5;
    }
}

.info-item {
    margin-bottom: 3rem;
}

.info-item h4 {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.info-item p {
    opacity: 0.8;
}

.reservation-box {
    margin-top: 4rem;
    padding: 3rem;
    background-color: var(--color-white);
    border: 1px solid rgba(139, 90, 43, 0.2);
    border-radius: 4px;
}

.reservation-note {
    font-size: 1.3rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.phone {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.phone span {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-size: 1.4rem;
}

.phone a {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.phone a:hover {
    color: var(--color-secondary);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: #888;
}

@media (min-width: 900px) {
    .map-placeholder {
        height: 100%;
        min-height: 400px;
    }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0 4rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo .footer-kana {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.copyright {
    font-size: 1.2rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
}

/* =========================================
   Animations
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
