:root {
    /* Colors */
    --color-primary: #0f172a;
    /* Deep Ocean Blue */
    --color-secondary: #1e293b;
    /* Darker Blue */
    --color-accent: #c5a059;
    /* Gold */
    --color-text: #334155;
    /* Slate 700 */
    --color-text-light: #f8fafc;
    /* Slate 50 */
    --color-bg: #fdfbf7;
    /* Warm White */
    --color-white: #ffffff;

    /* Fonts */
    --font-sans: 'Noto Serif JP', serif;
    --font-serif: 'Noto Serif JP', serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --spacing-xxl: 120px;

    /* Transitions */
    --transition-base: 0.3s ease-out;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Washi Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
}

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

ul {
    list-style: none;
}

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

/* Typography */
.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    margin: var(--spacing-md) auto 0;
}

.section-title--vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
    margin: 0;
    left: auto;
    transform: none;
}

.section-title--vertical::after {
    width: 1px;
    height: 40px;
    margin: 0 auto var(--spacing-md);
}

.section-title--spacer {
    margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
    .section-title--spacer {
        margin-top: 80px;
    }
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xxl) 0;
}

@media (max-width: 767px) {
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        margin-bottom: var(--spacing-lg);
    }

    .concept__inner {
        gap: var(--spacing-lg);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-base), padding var(--transition-base);
    padding: var(--spacing-md) 0;
}

.header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.header__logo a {
    display: block;
}

.header__logo-img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-base);
}

.header__logo a:hover .header__logo-img {
    transform: scale(1.05);
}

.header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-primary);
    padding: 80px 40px;
    transition: right var(--transition-base);
    z-index: 999;
}

.header__nav.active {
    right: 0;
}

@media (min-width: 768px) {
    .header__nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
        display: block;
    }
}

.header__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .header__list {
        flex-direction: row;
    }
}

.header__item a {
    color: var(--color-white);
    font-size: 0.9rem;
    position: relative;
}

.header__item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.header__item a:hover::after {
    width: 100%;
}

.header__hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Ensure above nav */
}

@media (min-width: 768px) {
    .header__hamburger {
        display: none;
    }
}

.header__hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-base);
}

.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.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

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

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    /* Fallback */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: cover;
    background-position: center;
    z-index: -1;
    overflow: hidden;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease-out infinite alternate;
}

.hero__content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

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

.hero__title-line {
    display: block;
    clip-path: inset(0 100% 0 0);
    animation: revealMask 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero__title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.hero__subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0;
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.hero__scroll::after {
    content: '';
    width: 1px;
    height: 60px;
    background-color: var(--color-white);
    animation: scrollLine 2s infinite;
}

/* Concept */
.concept__inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .concept__inner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xxl);
    }

    .concept__inner--reverse {
        flex-direction: row-reverse;
    }

    .concept__text--normal {
        flex-direction: row;
    }
}

.concept__image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.concept__text {
    display: flex;
    flex-direction: row-reverse;
    gap: var(--spacing-lg);
    justify-content: center;
    color: var(--color-primary);
}

.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 2.5;
    font-size: 1rem;
    height: 400px;
    /* Adjust based on text length */
}

@media (max-width: 767px) {
    .text-vertical {
        writing-mode: horizontal-tb;
        height: auto;
        line-height: 2;
        text-align: justify;
    }

    .concept__text {
        flex-direction: column;
    }
}

/* Menu */
.menu {
    background-color: #f1f5f9;
}

.menu__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

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

.menu-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.menu-card__image {
    height: 200px;
    background-color: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.menu-card__image img {
    transition: transform 0.6s ease-out;
}

.menu-card:hover .menu-card__image img {
    transform: scale(1.1);
}

.menu-card__content {
    padding: var(--spacing-md);
}

.menu-card__title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.menu-card__desc {
    font-size: 0.9rem;
    color: var(--color-text);
}

.menu__btn-wrapper {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

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

.btn--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--color-white);
}

.btn--instagram:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Access */
.access__inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .access__inner {
        flex-direction: row;
    }
}

.access__info {
    flex: 1;
}

.access__map {
    flex: 1;
    height: 400px;
    background-color: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.access__list {
    margin-bottom: var(--spacing-lg);
}

.access__item {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: var(--spacing-md) 0;
}

.access__item dt {
    width: 100px;
    font-weight: 700;
    color: var(--color-primary);
}

.access__item dd {
    flex: 1;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.footer__copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Animations */
/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes revealMask {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-text {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-text.is-visible {
    clip-path: inset(0 0 0 0);
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

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

.page-hero__title {
    position: relative;
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 3rem;
    z-index: 1;
    letter-spacing: 0.2em;
}

/* Concept */
/* Utilities */
.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* Reservation Page */
.reservation-info {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-xl);
}

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

.reservation-info__list {
    margin-bottom: var(--spacing-md);
}

.reservation-info__item {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: var(--spacing-sm) 0;
}

.reservation-info__item dt {
    width: 150px;
    font-weight: 700;
    color: var(--color-primary);
}

.reservation-info__item dd {
    flex: 1;
}

.reservation-info__note {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Reservation Form */
.reservation-form {
    max-width: 1000px;
    margin: 0 auto;
}

.google-form-iframe {
    width: 100%;
    height: 3200px;
    max-width: 100%;
}

@media (max-width: 767px) {
    .google-form-iframe {
        height: 5500px;
    }
}

.menu-card--reservation {
    overflow: visible;
    /* Allow dropdowns to overflow */
}

.menu-card--reservation .menu-card__image {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.menu-card--reservation .menu-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Fix gap issue */
    gap: var(--spacing-sm);
    /* Add consistent gap */
    height: auto;
    /* Allow content to dictate height */
    min-height: 100%;
}

.menu-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
    /* Handled by gap */
}

.menu-card--reservation .form-group {
    margin-bottom: 0;
    margin-top: var(--spacing-sm);
    /* Just a small gap, not pushed to bottom */
    padding-top: var(--spacing-md);
    border-top: 1px dashed #e2e8f0;
    /* Add separator */
}

.form-group--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Label on left, input on right */
}

.form-group--inline label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.form-control--auto {
    width: auto;
    min-width: 80px;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
}

.reservation-form__customer {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    color: var(--color-primary);
}

.required {
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.btn--large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}