:root {
    /* Color Palette */
    --color-primary: #8D6E63; /* Warm Brown */
    --color-secondary: #D7CCC8; /* Light Beige */
    --color-accent: #558B2F; /* Natural Green */
    --color-text: #3E2723; /* Dark Brown for text */
    --color-bg: #FDFBF7; /* Off-white background */
    --color-bg-accent: #EBE5DE; /* Greige for sections */
    --color-white: #ffffff;

    /* Fonts */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
    --font-rounded: 'Zen Maru Gothic', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 2.0; /* More breathable */
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0; /* Increased padding */
}

.section__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.section__title--left {
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent; /* Transparent initially */
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: 10px 0;
}

.header.is-scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0;
    backdrop-filter: blur(5px);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
}

.header__logo-img {
    display: none;
    height: 40px;
    width: auto;
}

.header.is-scrolled .header__logo-text {
    display: none;
}

.header.is-scrolled .header__logo-img {
    display: block;
}

.header__nav {
    display: none;
}

/* Hamburger Menu */
.header__hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.header__hamburger span:nth-child(1) {
    top: 0;
}

.header__hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header__hamburger span:nth-child(3) {
    bottom: 0;
}

.header__hamburger.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.header__hamburger.is-active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

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

/* Mobile Navigation */
.header__nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header__nav.is-active {
    display: block;
}

.header__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header__item {
    border-bottom: 1px solid rgba(141, 110, 99, 0.1);
}

.header__item a {
    display: block;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    transition: background-color 0.3s ease;
}

.header__item a:hover {
    background-color: rgba(141, 110, 99, 0.05);
    opacity: 1;
}

.header__item--instagram a {
    color: var(--color-primary);
    font-weight: 500;
}

@media (min-width: 768px) {
    .header__nav {
        display: block;
        position: static;
        background-color: transparent;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
    }

    .header__list {
        display: flex;
        flex-direction: row;
        gap: 30px;
    }

    .header__item {
        border-bottom: none;
    }

    .header__item a {
        padding: 0;
        font-size: 1rem;
    }

    .header__hamburger {
        display: none;
    }
}

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

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* Parallax effect handled by JS or simple fixed attachment for now */
    background-attachment: fixed; 
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2); /* Lighter overlay */
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 2.5rem; /* Fallback */
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    writing-mode: vertical-rl; /* Vertical writing */
    text-orientation: upright;
    letter-spacing: 0.2em;
    height: 60vh; /* Give space for vertical text */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.hero__title-sub {
    font-size: 1.2rem;
    display: block;
    margin-left: 20px; /* Space between lines in vertical mode */
    margin-bottom: 0;
    font-weight: normal;
    opacity: 0.9;
}

/* News */
.news {
    background-color: var(--color-white);
    padding: 40px 0;
}

.news__list {
    max-width: 800px;
    margin: 0 auto;
}

.news__item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news__date {
    font-family: var(--font-serif);
    color: var(--color-primary);
}

/* Concept */
.concept {
    background-color: var(--color-bg);
}

.concept__inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}

@media (min-width: 768px) {
    .concept__inner {
        flex-direction: row;
        align-items: center;
    }
    .concept__image {
        flex: 1.2;
    }
    .concept__text {
        flex: 1;
        background-color: rgba(253, 251, 247, 0.9);
        padding: 60px;
        margin-left: -100px; /* Overlap */
        z-index: 2;
        box-shadow: 0 20px 40px rgba(0,0,0,0.05);
        border-radius: 4px;
    }
}

.concept__image img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menu */
.menu {
    background-color: var(--color-bg-accent); /* Greige background */
}

.menu__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

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

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

.menu__category-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.menu__category-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}

.menu__item {
    background: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-rounded);
}

.menu__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.menu__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.menu__content {
    text-align: left;
}

.menu__name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-text);
    font-weight: bold;
}

.menu__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.menu__type {
    font-size: 0.85rem;
    color: #888;
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.menu__price {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: bold;
}

.menu__desc {
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #666;
}

.menu__notice {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.menu__grid--lunch {
    margin-bottom: 30px;
}

/* Lunch Set Box */
.lunch-set-box {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.lunch-set-box__title {
    font-family: var(--font-serif);
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.lunch-set-box__list {
    list-style: none;
    padding: 0;
}

.lunch-set-box__item {
    margin-bottom: 15px;
}

.lunch-set-box__item:last-child {
    margin-bottom: 0;
}

.lunch-set-box__name {
    font-weight: bold;
    display: inline-block;
}

.lunch-set-box__desc {
    font-size: 0.9rem;
    color: #666;
}

.lunch-set-box__price {
    display: block;
    color: var(--color-primary);
    font-weight: bold;
    margin-top: 5px;
    font-size: 1.1rem;
}

/* Fortune */
.fortune {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.fortune .section__title {
    color: var(--color-white);
}

.fortune__inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
}

@media (min-width: 768px) {
    .fortune__inner {
        flex-direction: row;
        align-items: center;
    }
    .fortune__content, .fortune__image {
        flex: 1;
    }
}

.fortune__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .fortune__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

.fortune__item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.fortune__item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.fortune__item-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-white);
}

.fortune__item-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Access */
.access__details {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .access__details {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.access__logo {
    width: 150px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .access__logo {
        width: 250px;
        margin: 0;
    }
}

.access__info {
    flex: 1;
}

.access__info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
}

.access__info dt {
    font-weight: bold;
    color: var(--color-primary);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: #3E2723;
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
}

.footer__logo {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer__nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* Animations */
.js-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.js-fade.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered animations */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ============================================
   Mobile Responsive Styles
   ============================================ */

/* Small devices (phones, less than 768px) */
@media (max-width: 767px) {
    /* Prevent scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Container padding adjustment */
    .container {
        padding: 0 15px;
    }

    /* Section padding reduction */
    .section {
        padding: 60px 0;
    }

    /* Section titles */
    .section__title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 500px;
        height: 70vh;
    }

    .hero__bg {
        background-attachment: scroll; /* Better performance on mobile */
    }

    .hero__title {
        font-size: 2rem;
        height: 50vh;
        letter-spacing: 0.15em;
    }

    .hero__title-sub {
        font-size: 1rem;
        margin-left: 15px;
    }

    /* News Section Mobile */
    .news__item {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }

    .news__date {
        font-size: 0.9rem;
    }

    .news__text {
        font-size: 0.95rem;
    }

    /* Concept Section Mobile */
    .concept__inner {
        gap: 30px;
    }

    .concept__text {
        padding: 20px;
        margin-left: 0 !important; /* Remove overlap on mobile */
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .concept__text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .concept__image {
        border-radius: 8px;
        overflow: hidden;
    }

    /* Menu Section Mobile */
    .menu__category-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .menu__grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .menu__item {
        padding: 15px;
    }

    .menu__image img {
        height: 180px;
    }

    .menu__name {
        font-size: 1.1rem;
    }

    .menu__type {
        font-size: 0.8rem;
    }

    .menu__price {
        font-size: 1rem;
    }

    /* Lunch set options mobile */
    .lunch-set-box {
        padding: 15px;
    }

    .lunch-set-box__title {
        font-size: 1.1rem;
    }

    .lunch-set-box__item {
        font-size: 0.9rem;
    }

    .menu__notice {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .menu__desc {
        font-size: 0.75rem;
    }

    /* Fortune Section Mobile */
    .fortune__grid {
        gap: 20px;
        margin-top: 30px;
    }

    .fortune__item {
        padding: 15px;
    }

    .fortune__item-image img {
        height: 180px;
    }

    .fortune__item-title {
        font-size: 1.2rem;
    }

    .fortune__item-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .fortune p {
        font-size: 0.95rem;
    }

    /* Access Section Mobile */
    .access__info dl {
        grid-template-columns: 80px 1fr;
        gap: 10px;
        font-size: 0.95rem;
    }

    .access__info dt {
        font-size: 0.9rem;
    }

    .access__info dd {
        font-size: 0.9rem;
    }

    .access__map {
        margin-top: 20px;
    }

    .access__map iframe {
        width: 100%;
        height: 300px;
    }

    /* Footer Mobile */
    .footer__nav {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 0.9rem;
    }

    .footer__logo {
        font-size: 1.1rem;
    }
}

/* Extra small devices (very small phones, less than 375px) */
@media (max-width: 374px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .section__title {
        font-size: 1.4rem;
    }

    .menu__category-title {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 12px;
    }

    .news__item {
        font-size: 0.9rem;
    }

    .access__info dl {
        grid-template-columns: 70px 1fr;
        font-size: 0.85rem;
    }
}

/* Tablet devices (between 768px and 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .section {
        padding: 80px 0;
    }

    .hero__title {
        font-size: 3rem;
    }

    .menu__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fortune__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape orientation optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }

    .hero__title {
        height: 80vh;
        font-size: 1.8rem;
    }

    .section {
        padding: 50px 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .header__item a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn {
        padding: 15px 45px;
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .menu__item:hover {
        transform: none;
    }

    a:hover {
        opacity: 1;
    }
}
