/* styles.css for KYO landing page */

:root {
    /* Colors */
    --color-bg-dark: #111111;
    --color-bg-darker: #0a0a0a;
    --color-text-main: #f0f0f0;
    --color-text-sub: #aaaaaa;
    --color-accent-gold: #D4AF37;
    --color-accent-red: #8B0000;
    /* Deep red for meat nuance */

    /* Fonts */
    --font-jp: 'Noto Serif JP', serif;
    --font-en: 'Didot', 'Bodoni MT', serif;

    /* Spacing */
    --header-height: 80px;
    --sp-header-height: 60px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* For anchor links if not intercepted */
    font-size: 16px;
}

body {
    font-family: var(--font-jp);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
.text-en {
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
}

.section-label {
    display: block;
    color: var(--color-accent-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.section-desc {
    color: var(--color-text-sub);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Loading Screen */
.loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg-darker);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-size: 3rem;
    color: var(--color-accent-gold);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.loader-line {
    width: 0;
    height: 1px;
    background: var(--color-accent-gold);
    animation: growLine 1.5s 0.5s forwards ease-out;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes growLine {
    to {
        width: 100px;
    }
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 5%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

#header.scrolled {
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: normal;
}

.logo-sub {
    font-size: 1rem;
    margin-left: 0.5rem;
    font-family: var(--font-en);
    color: var(--color-accent-gold);
}

.nav-pc {
    display: none;
}

.nav-pc ul {
    display: flex;
    gap: 2.5rem;
}

.nav-pc a {
    font-family: var(--font-en);
    font-size: 0.95rem;
    position: relative;
    opacity: 0.8;
}

.nav-pc a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-gold);
    transition: width 0.3s ease;
}

.nav-pc a:hover {
    opacity: 1;
    color: var(--color-accent-gold);
}

.nav-pc a:hover::after {
    width: 100%;
}

.header-util {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-sub);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-en);
    transition: all 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
}

.header-reserve-btn {
    display: none;
    /* Show on PC scroll or always depending on design, hiding for now to prefer sticky footer on SP */
    border: 1px solid var(--color-accent-gold);
    color: var(--color-accent-gold);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-en);
    font-size: 0.9rem;
}

/* Mobile Menu Overlay */
.menu-toggle {
    display: block;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
    /* Adjusted for 2 bars logic or just use 2 bars */
}

/* Adjusting bars for 2 lines style since only 2 spans in HTML, typical close X needs 3 usually or different approach.
   Let's assume standard burger.
*/
.menu-toggle span:last-child {
    margin-bottom: 0;
}


.nav-sp {
    position: fixed;
    inset: 0;
    background: var(--color-bg-darker);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-sp.active {
    opacity: 1;
    visibility: visible;
}

.nav-sp ul {
    text-align: center;
}

.nav-sp li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.nav-sp.active li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay done in JS or CSS nth-child */
.nav-sp.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-sp.active li:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-sp.active li:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-sp.active li:nth-child(4) {
    transition-delay: 0.4s;
}

.nav-sp a {
    font-family: var(--font-en);
    font-size: 2rem;
    color: var(--color-accent-gold);
}


/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    /* Initial scale for zoom out effect */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-catch-vertical {
    font-size: clamp(2rem, 4vw, 4rem);
    /* Responsive font size */
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    height: auto;
    max-height: 80vh;
    /* Allow more height */
    line-height: normal;
    white-space: nowrap;
    /* Force single line (vertical column) per text node if possible, or prevent wrapping chars */
    display: inline-block;
}

.hero-sub {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
    position: absolute;
    bottom: 120px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 0.7rem;
    opacity: 0.7;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}


/* Concept Section */
.concept-section {
    position: relative;
    background-color: #151515;
    overflow: hidden;
}

.concept-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    will-change: transform;
}

.concept-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.concept-visual {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 2rem;
}

.concept-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.floating-text {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--color-accent-gold);
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Chef Section */
.chef-section {
    background: #0d0d0d;
    position: relative;
    overflow: hidden;
}

.chef-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.chef-visual {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
}

.chef-visual::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent-gold);
    z-index: 0;
    opacity: 0.3;
}

.chef-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) contrast(1.1);
}

.chef-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chef-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.chef-title {
    font-size: 0.9rem;
    color: var(--color-accent-gold);
    margin-bottom: 2rem;
    font-family: var(--font-en);
}


/* Wagyu Commitment Section */
.wagyu-section {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.wagyu-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.wagyu-visual-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wagyu-main-img {
    width: 100%;
    height: 300px;
}

.wagyu-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wagyu-sub-imgs {
    display: flex;
    gap: 1rem;
    height: 120px;
}

.wagyu-sub-imgs img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.wagyu-sub-imgs img:hover {
    filter: brightness(1);
}

.wagyu-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Menu Section */
.menu-section {
    background: var(--color-bg-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.menu-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    /* Standard aspect ratio */
    overflow: hidden;
    cursor: pointer;
}

.menu-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.menu-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.menu-visual:hover .menu-img-base {
    transform: scale(1.05);
}

.menu-visual:hover .menu-img-hover {
    opacity: 1;
    transform: scale(1.05);
}

.menu-info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.menu-name {
    font-size: 1.4rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.menu-price {
    color: var(--color-accent-gold);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}


/* Space Section */
.space-section {
    height: 80vh;
    /* Tall section */
    position: relative;
    overflow: hidden;
}

.space-slider-container {
    width: 100%;
    height: 100%;
}

.space-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* Text at bottom on SP */
    padding: 2rem;
}

.slide-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}


/* Access Section */
.access-section {
    background: #0f0f0f;
}

.map-container {
    margin-bottom: 2rem;
    filter: grayscale(1) invert(1) brightness(0.8) contrast(1.2);
    /* Dark styled map */
}

.info-list dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem 0;
}

.info-list dt {
    color: var(--color-text-sub);
    font-family: var(--font-en);
}


/* Footer */
#footer {
    background: #000;
    padding: 3rem 0 6rem;
    /* Extra bottom padding for sticky footer space */
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-accent-gold);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.copyright {
    color: #555;
    font-size: 0.7rem;
}

/* Sticky Footer (SP) */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(to right, #9e1d1d, #690505);
    /* Premium red gradient */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    text-align: center;
}

.sticky-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Desktop Media Query */
@media (min-width: 769px) {
    .nav-pc {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .header-reserve-btn {
        display: block;
    }

    .hero-catch-vertical {
        font-size: 4rem;
    }

    .concept-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 5rem;
    }

    .wagyu-layout {
        grid-template-columns: 1fr 1fr;
        /* Image left, text right or vice versa */
    }

    .wagyu-visual-container {
        /* No fixed height container */
    }

    .wagyu-main-img {
        height: 350px;
    }

    .concept-visual {
        height: 500px;
        margin-top: 0;
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu-item.reverse {
        margin-top: 4rem;
        /* Stagger effect */
    }

    .info-list dl {
        grid-template-columns: 100px 1fr;
    }

    .sticky-footer {
        display: none;
    }

    #footer {
        padding-bottom: 3rem;
    }
}