@charset "UTF-8";

:root {
    /* Wabi-Sabi Theme */
    --c-bg: #f2f5f3;
    /* Pale Greenish Greige */
    --c-text: #2b2b2b;
    /* Sumi Ink (not pure black) */
    --c-gold: #a89f8d;
    /* Dull Gold / Brass (oxidized feel) */
    --c-glass: rgba(0, 0, 0, 0.03);
    --font-main: 'Zen Old Mincho', serif;
    --font-sub: 'Noto Serif JP', serif;
}

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

.content-left,
.content-right {
    position: relative;
    z-index: 2;
    padding: 10%;
    /* Default padding */
    /* padding-top: 20vh; Removed to fix positioning */
    width: 100%;
    max-width: 1200px;
}

/* Lightweight CSS Noise Alternative */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    /* Slightly increased for texture */
    background-image: repeating-radial-gradient(#000 0 0.0001%, #fff 0 0.0002%);
    background-size: 100px 100px;
    mix-blend-mode: overlay;
}

/* Vignette Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 9998;
}

/* 
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    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)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
*/


body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sub);
    overflow-x: hidden;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

body::-webkit-scrollbar {
    display: none;
}

/* Canvas Layer */
#world {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

/* Hero Background Image (Faint) */
#intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero_landscape.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    /* Increased per request */
    z-index: 0;
    /* Changed from -1 to sit ABOVE the wireframe (canvas) */
    filter: grayscale(0.2) sepia(0.1);
    /* Blend with wabi-sabi theme */
}

@media (max-width: 768px) {
    #intro::before {
        background-position: left center;
        /* Mobile: Focus on left side */
    }
}

/* UI Layer */
.ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.hero-logo {
    display: block;
    margin-top: 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.hero-logo img {
    height: clamp(6rem, 12vh, 10rem);
    /* MUCH Larger than text */
    width: auto;
    display: block;
}

/* --- Hamburger Menu Button --- */
.hamburger-btn {
    margin-top: 30px;
    /* Space from logo */
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 2000;
    /* Extremely high to stay above overlay */
}

.hamburger-btn span {
    display: block;
    position: absolute;
    height: 1px;
    /* Very thin lines for elegance */
    width: 100%;
    background: #fff;
    /* White against the dark hero background initially */
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: 0.25s ease-in-out;
}

/* Initially 3 lines */
.hamburger-btn span:nth-child(1) {
    top: 0px;
}

.hamburger-btn span:nth-child(2) {
    top: 9px;
}

.hamburger-btn span:nth-child(3) {
    top: 18px;
}

/* Open State (Cross) */
.hamburger-btn.open span {
    background: var(--c-text);
    /* Black when menu is open on light bg */
}

.hamburger-btn.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    left: -20px;
}

.hamburger-btn.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* --- Fullscreen Overlay Menu --- */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    /* Lighter, whiter background */
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    /* Faster, smoother transition */
    /* High performance impact - reduced or disabled */
    /* backdrop-filter: blur(8px); */
    /* -webkit-backdrop-filter: blur(8px); */
}

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

.menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Vertical Navigation Links */
.vertical-nav {
    display: flex;
    flex-direction: row-reverse;
    /* Japanese vertical reads right-to-left */
    gap: 40px;
    /* Space between vertical columns */
    z-index: 2;
}

.menu-link {
    text-decoration: none;
    color: #333;
    /* Slightly softer black */
    font-family: var(--font-main);
    font-size: clamp(1.2rem, 3vh, 1.8rem);
    /* Slightly smaller/lighter text */
    font-weight: 300;
    /* Lighter font weight */
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.4em;
    /* More spacing for lighter feel */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    padding: 20px 0;
}

.menu-link span {
    display: block;
    position: relative;
    opacity: 0;
    /* Prepare for staggered fade-in */
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fullscreen-menu.active .menu-link span {
    opacity: 1;
    transform: translateY(0);
}

/* Add slight delay for each link to animate in sequentially */
.fullscreen-menu.active .menu-link:nth-child(1) span {
    transition-delay: 0.1s;
}

.fullscreen-menu.active .menu-link:nth-child(2) span {
    transition-delay: 0.15s;
}

.fullscreen-menu.active .menu-link:nth-child(3) span {
    transition-delay: 0.2s;
}

.fullscreen-menu.active .menu-link:nth-child(4) span {
    transition-delay: 0.25s;
}

.fullscreen-menu.active .menu-link:nth-child(5) span {
    transition-delay: 0.3s;
}

.fullscreen-menu.active .menu-link:nth-child(6) span {
    transition-delay: 0.35s;
}

.menu-link:hover {
    color: var(--c-gold);
}

/* Faint background decoration inside menu */
.menu-bg-deco {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.menu-bg-logo {
    width: clamp(300px, 80vw, 800px);
    height: auto;
    filter: invert(1);
    /* Assuming logo is white, invert to black/grey */
}

.intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    opacity: 1;
}

.cinematic-nav {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    pointer-events: auto;
}

.nav-dot {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    opacity: 0.2;
    transition: all 0.3s;
}

.nav-dot.active {
    opacity: 1;
    background: var(--c-gold);
    transform: scale(1.5);
}

.nav-line {
    width: 1px;
    height: 100px;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Global Header */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    z-index: 900;
    /* Below Brand Logo (1000) if relevant, but Brand Logo is inside scroll now? No, Brand Logo is in Intro. */
    /* Intro is z-index 0 (or auto). Canvas is 0. */
    /* Header should be high. */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s, visibility 0.5s;
}

.global-header.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-nav {
    display: flex;
    gap: 40px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.header-nav a:hover {
    opacity: 1;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s;
}


.header-nav a:hover::after {
    width: 100%;
}

/* Scrolled State (Past Hero) */
.global-header.scrolled {
    /* background-color: rgba(227, 232, 229, 0.3); */
    background-color: rgba(227, 232, 229, 0.85);
    /* Increased opacity to compensate for no blur */
    /* Even More Transparent */
    /* backdrop-filter: blur(10px); */
    /* Frosted glass effect */
    /* -webkit-backdrop-filter: blur(10px); */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px 50px;
    /* Slight shrink for compactness */
}

.global-header.scrolled .header-nav a {
    color: var(--c-text);
    /* Black/Sumi */
    text-shadow: none;
}

.global-header.scrolled .header-nav a::after {
    background: var(--c-text);
}

/* Scroll Scenes */
.scene {
    min-height: 100svh;
    /* Changed to svh for mobile URL bar safety */
    padding-bottom: 5vh;
    /* Responsive bottom spacing */
    position: relative;
    display: flex;
    flex-direction: column;
    /* Ensure content stacks vertically */
    align-items: center;
    justify-content: center;
    /* Always center vertically */
}

#intro {
    height: 100svh;
    /* Re-apply strict 100svh so it fills screen initially */
    padding-bottom: 0;
}

.center-scene,
.left-scene,
.right-scene {
    min-height: 100svh;
    /* Ensured all scenes default to a full screen height */
}

/* Modal Open Lock */
body.modal-open {
    overflow: hidden !important;
    touch-action: none;
    /* Mobile prevent scroll */
}

/* Removed specific padding-top for #soil and #growth to let flexbox center them */
#soil,
#growth {
    padding-top: 0;
}

/* PC Layout for ABOUT (Asymmetrical Layout) */
@media (min-width: 769px) {
    #soil .content-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 50% / 50% Split */
        grid-template-areas:
            "title desc"
            "lead  desc"
            "image desc";
        column-gap: 80px;
        /* Spacious gap between image/title and text */
        row-gap: 0;
        /* Removed uniform row-gap to allow natural spacing */
        align-items: start;
        max-width: 1200px;
        /* Let it breathe a bit wider */
        width: 90%;
        margin: 0 auto;
        padding: 0 40px;
    }

    #soil .section-title {
        grid-area: title;
        /* Margin-bottom is inherited from standard .section-title (-1.5vh) to match PRODUCT */
        text-align: center;
        /* Center horizontally over the image area */
        width: 100%;
        /* Reset to 100% */
    }

    #soil .section-lead {
        grid-area: lead;
        text-align: center;
        /* Center horizontally */
        width: 100%;
        /* Reset to 100% */
        margin-bottom: 25px;
        /* Space before image starts */
    }

    #soil .section-desc {
        grid-area: desc;
        margin-top: 5px;
        /* Align top of text roughly with top of title */
        text-align: left;
        justify-self: start;
        /* Let it flow naturally from the left of its 50% column */
        width: 100%;
        max-width: 500px;
    }

    #soil .about-image-small {
        grid-area: image;
        width: 100%;
        max-width: 40vh;
        /* Scaled to screen height */
        justify-self: center;
        margin-top: 0;
        border-radius: 4px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    #soil .about-image-small img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    #soil .about-image-small:hover img {
        transform: scale(1.03);
        /* Subtle interaction */
    }

    #soil .about-image-wrapper {
        grid-column: 1 / -1;
        /* Span full width */
        width: 100%;
        margin-top: 60px;
    }
}

/* PC Layout for CONCEPT (Match Asymmetrical Layout of ABOUT) */
@media (min-width: 769px) {
    #growth .concept-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 50% / 50% Split */
        grid-template-areas:
            "title title"
            "lead  lead"
            "image desc";
        column-gap: 80px;
        align-items: flex-start;
        /* Align the top of the image and the text perfectly */
        max-width: 1200px;
        /* Match ABOUT */
        width: 90%;
        margin: 0 auto;
        padding: 0 40px;
    }

    #growth .concept-title {
        grid-area: title;
        margin-bottom: 8px;
        /* Gentle spacing */
        text-align: center;
        width: 100%;
    }

    #growth .concept-lead {
        grid-area: lead;
        margin-bottom: 40px;
        /* Space before image starts */
        text-align: center;
        width: 100%;
        letter-spacing: 0.05em;
    }

    #growth .concept-image-slider {
        grid-area: image;
        width: 100%;
        max-width: min(500px, 45vh);
        /* Scale with height */
        justify-self: center;
        margin-top: 0;
    }

    #growth .concept-desc {
        grid-area: desc;
        margin-top: 0;
        text-align: left;
        /* Keep left alignment for readability */
        justify-self: center;
        /* Center the text block itself inside the column */
        width: 100%;
        max-width: 450px;
    }
}

.about-image-wrapper {
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* filter: sepia(0.2) contrast(0.9); Enable if retro look needed */
    border-radius: 2px;
}

/* Small Image inside ABOUT */
.about-image-small {
    width: 100%;
    /* max width for its container */
    max-width: 450px;
    /* Adjusted to fit the ABOUT text column nicely */
    margin-top: 20px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    /* Center the image exactly under the ABOUT text */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-image-small img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Concept Image Slider (Matches about-image-small) */
.concept-image-slider {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4 / 3;
    /* Approximate ratio for the landscape photos */
    margin-top: 20px;
    margin-bottom: 30px;
    margin-right: auto;
    /* Push to left slightly to align with right-aligned title on PC */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #e0e0e0;
    /* placeholder while loading */
}

/* Base slide styles */
.concept-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlideshow 40s infinite;
    /* 4 images * 10s each = 40s total */
}

/* Stagger the animations for each of the 4 images */
.concept-image-slider .slide:nth-child(1) {
    animation-delay: 0s;
}

.concept-image-slider .slide:nth-child(2) {
    animation-delay: 10s;
}

.concept-image-slider .slide:nth-child(3) {
    animation-delay: 20s;
}

.concept-image-slider .slide:nth-child(4) {
    animation-delay: 30s;
}

/* Continuous Crossfade Animation
   Total duration: 40s
   We want it visible for 10s.
   Fade in starts slightly before to blend, but we can do a simple chunk:
   0%   : fade in starts (or is visible)
   5%   : fully visible (2s to fade in)
   25%  : starts fading out (after 10s)
   30%  : fully faded out (2s to fade out)
   100% : stays faded out
*/
@keyframes fadeSlideshow {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Typography */
.main-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.2rem, 4vh, 2.5rem);
    /* Scaled to viewport height for vertical text */
    font-weight: 500;
    letter-spacing: 0.3em;
    line-height: 2;
    /* Space between vertical lines */
    margin-bottom: 0;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    /* Strong glow for readability */
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin-left: auto;
    margin-right: auto;
    /* Center the block itself */
    display: block;
    /* Use block layout for text-align */
    text-align: left;
    /* Align text to TOP (Head alignment) */
    width: fit-content;
    /* Hug content so margin:auto works */
    min-height: auto;
    /* Allow centering to work by removing fixed height */
    white-space: nowrap;
    /* Prevent auto-wrapping */
}

.section-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 8vh, 4rem);
    /* Scale with height */
    margin-bottom: -1.5vh;
    color: var(--c-gold);
}

.section-lead {
    font-family: var(--font-main);
    font-size: clamp(1.1rem, 3vh, 1.5rem);
    /* Scale with height */
    margin-top: 0;
    margin-bottom: 3vh;
    color: var(--c-gold);
}


.section-desc {
    font-size: clamp(0.85rem, 1.8vh, 0.95rem);
    /* Scale with height */
    line-height: 1.8;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .section-desc {
        font-size: 0.85rem;
        /* Smaller for mobile to prevent wrapping */
        letter-spacing: 0.02em;
        line-height: 2;
    }

    .content-left {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* Layouts */
.content-center {
    text-align: center;
}

/* Removed conflicting .content-left/.content-right overrides to restore full width */

/* Horizontal Scroll (Harvest) */
.scene.harvest-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0vh;
    /* Reduced padding further */
    padding-bottom: 2vh;
}

.spacer-block {
    width: 20vw;
    /* Reduced from 60vw to bring first item in faster */
    height: 10px;
    /* Prevent collapse */
}

.horizontal-wrapper {
    height: 68vh;
    /* Slightly more room for vertical breathing */
    width: 100%;
    overflow: hidden;
}

.horizontal-container {
    display: flex;
    height: 100%;
    width: max-content;
    align-items: flex-start;
    padding-top: 2vh;
    padding-left: 0;
    padding-right: 50vw;
    gap: 8vw;
}

.h-item {
    flex-shrink: 0;
}

.title-card {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Global Product Title above Horizontal Scroll */
.product-title-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2vh;
    padding-bottom: 2vh;
}

.product-card {
    position: relative;
    width: min(clamp(320px, 60vw, 550px), 60vh);
    /* Reduced from 70vh for better height-responsiveness */
    max-height: 100%;
}

.p-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    margin-bottom: 1.5vh;
    /* Height-responsive margin */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.p-image-wrap img {
    width: 100%;
    height: 100%;
    /* Fill the container */
    max-height: none;
    /* Let aspect ratio dictate height */
    object-fit: cover;
    /* Crop slightly if necessary to guarantee identical shapes */
    display: block;
    transition: transform 0.8s ease;
}

.p-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(184, 149, 85, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

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

.product-card:hover .p-glow {
    opacity: 1;
}

.p-name {
    font-family: var(--font-main);
    margin-bottom: 1vh;
    /* Height-responsive margin */
    font-size: 1.2rem;
    color: #000;
}

.p-desc {
    font-size: clamp(0.75rem, 1.2vh, 0.9rem);
    /* Scale font-size with height */
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.p-btn {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    transition: all 0.3s;
}

.p-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.circle-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
    text-decoration: none;
    text-align: center;
    font-family: var(--font-main);
    font-size: 1.2rem;
    transition: all 0.5s;
}

.circle-link:hover {
    background: var(--c-gold);
    color: #fff;
    transform: scale(1.1);
}

/* Constellation Journal */
.constellation-scene {
    height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Custom Layout */
    padding-top: 10vh;
}

.constellation-grid {
    position: relative;
    width: 100%;
    height: 80vh;
    margin-top: 50px;
}

.star-node {
    position: absolute;
    width: 200px;
    /* Interaction */
    cursor: pointer;
}

.star-point {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    border: 1px solid #aaa;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.star-node:hover .star-point {
    transform: scale(1.5);
    background: var(--c-gold);
    border-color: var(--c-gold);
    box-shadow: 0 0 20px rgba(184, 149, 85, 0.5);
}

.star-date {
    display: block;
    font-size: 0.8rem;
    color: var(--c-gold);
    margin-bottom: 5px;
}

.star-title {
    font-family: var(--font-main);
    font-size: 1rem;
    color: #000;
}

.constellation-line {
    position: absolute;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    transform-origin: left center;
}

/* Credits */
.credits-scene {
    min-height: 150vh;
    /* Changed from height to min-height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    margin-top: 5vh;
    /* Ensure separation from FAQ */
    position: relative;
    z-index: 1;
}

#faq {
    position: relative;
    z-index: 2;
    padding: 150px 0;
}

.credits-roll {
    text-align: center;
}

.credit-role {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.2em;
    margin-top: 40px;
    margin-bottom: 10px;
}

.credit-name {
    font-size: 1.2rem;
    font-family: var(--font-main);
}

.final-logo {
    margin-top: 60px;
    opacity: 0.8;
}

.final-logo img {
    height: clamp(4.5rem, 15vh, 6.5rem);
    /* Further increased for a bold, centered presence */
    width: auto;
    display: block;
    margin: 0 auto;
    filter: contrast(0.9) brightness(0.9);
}

/* Farm Info Section */
.farm-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    font-family: var(--font-sub);
}

.info-row {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: baseline;
}

.info-label {
    width: 140px;
    font-size: 0.8rem;
    color: var(--c-gold);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    font-family: var(--font-main);
}

.info-value {
    font-size: clamp(0.9rem, 1.8vh, 1rem);
    line-height: 1.8;
    color: #444;
}

@media (max-width: 768px) {
    .farm-info {
        padding: 0 5%;
    }

    .info-row {
        flex-direction: column;
        gap: 8px;
        padding: 15px 0;
    }

    .info-label {
        width: 100%;
    }
}

/* Footer Bottom (Legal & Copyright) */
.footer-bottom {
    margin-top: 50px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.85rem;
    font-family: var(--font-sub);
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: var(--c-gold);
}

.footer-links .separator {
    color: #ddd;
    font-size: 0.8rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.15em;
    font-family: var(--font-sub);
    text-transform: uppercase;
}

body {
    transition: background-color 0.8s ease-out;
    /* Smooth JS color changes */
}

/* Cinematic Contact Form */
.contact-section-container {
    max-width: 650px;
    margin: 100px auto 0;
    text-align: left;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.cinematic-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: #555;
    font-family: var(--font-main);
}

.form-group .required {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sub);
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

.form-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.form-agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.contact-success-msg {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-success-msg p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .contact-section-container {
        margin-top: 60px;
    }
}

.explore-btn {
    display: inline-block;
    padding: 15px 50px;
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
    text-decoration: none;
    margin-top: 30px;
    letter-spacing: 0.2em;
    transition: all 0.3s;
}

.explore-btn:hover {
    background: var(--c-gold);
    color: #000;
}

/* Journal note.com Integration Styles */
.constellation-bg-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    /* Subtle background decorative lines */
    pointer-events: none;
}

.article-gallery {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 columns for better asymmetry control */
    gap: 40px;
    width: 90%;
    max-width: 1000px;
    margin: 80px auto 0;
    align-items: start;
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    font-family: var(--font-main);
    letter-spacing: 0.2em;
    opacity: 0.6;
}

/* Removed legacy vertical-only styles to allow horizontal alignment */
.article-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    /* width: min(100%, 35vh);  -- REMOVED to allow .product-card to take over */
    margin: 0 auto;
}

/* Asymmetric staggering removed for horizontal scroll consistency */

/* Recipe Cards in Horizontal Scroll */
.article-card {
    transition: transform 0.3s ease;
}

.article-card .article-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.5vh;
    /* Height-responsive margin */
}

.article-card .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Maintain cinematic uniform crop */
    transition: transform 0.8s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.1);
}

.article-content {
    padding: 20px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-date {
    font-size: 0.65rem;
    color: var(--c-gold);
    margin-bottom: 1vh;
    /* Height-responsive margin */
    display: block;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.article-card-title {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3a3a3a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    font-weight: 500;
}

.article-card:hover .article-card-title {
    color: #000;
}

/* Add a subtle number/index for style */
.article-card::before {
    content: "0" attr(data-index);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.6rem;
    color: var(--c-gold);
    opacity: 0.4;
    letter-spacing: 0.1em;
    z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .content-left,
    .content-right {
        position: relative;
        left: auto;
        right: auto;
        text-align: center;
        margin: 0 auto;
    }

    .horizontal-container {
        width: max-content;
        padding-left: 0;
        padding-right: 0;
        gap: 0;
    }

    .h-item {
        width: 100vw;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 5vh 10vw 0;
        opacity: 0.2;
        transition: opacity 0.5s;
    }

    .article-gallery {
        display: none;
    }

    .constellation-bg-layer {
        display: none;
        /* Hide lines on mobile for cleaner look */
    }
}

.scroll-prompt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    opacity: 0.5;
    animation: blink 2s infinite;
    pointer-events: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.2
    }

    50% {
        opacity: 0.8
    }
}

/* Standardize padding for all scenes to be height-responsive */
.scene {
    padding-top: 10vh;
    padding-bottom: 10vh;
}

/* Ensure placeholder content is centered and scaled */
.center-scene {
    text-align: center;
    width: 100%;
}

/* Mobile Adjustments (continued) */
@media (max-width: 768px) {
    .section-lead {
        font-size: 1.1rem;
    }

    .scene {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

/* Meraki Dictionary Modal */
.meraki-dict-btn {
    display: inline-block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--c-gold, #b89555);
    text-decoration: none;
    border-bottom: 1px solid var(--c-gold, #b89555);
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}

.meraki-dict-btn:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {

    /* Hide the PC horizontal menu bar */
    .global-header {
        display: none !important;
    }

    /* Make hamburger menu sticky/fixed on mobile */
    .hamburger-btn {
        position: fixed;
        top: 25px;
        right: 25px;
        margin-top: 0;
        z-index: 2100;
        /* Stays above everything */
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
        padding: 10px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hamburger-btn span {
        position: relative;
        top: auto !important;
        margin: 3px 0;
    }

    /* Ensure hamburger lines are visible on light backgrounds when scrolled */
    .hamburger-btn.scrolled span {
        background: var(--c-text);
    }

    /* Reduce title size to fit mobile screens better */
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
        margin-bottom: 0px;
    }

    /* Increase horizontal padding for Information section */
    .farm-info {
        padding: 0 10% !important;
    }

    /* Increase horizontal padding for Contact section */
    .contact-section-container {
        padding: 0 8% !important;
        margin-top: 50px;
    }

    /* Consistent padding for forms */
    .cinematic-form {
        gap: 20px;
    }

    /* Stack footer links vertically */
    .footer-links {
        flex-direction: column;
        gap: 15px;
        /* Adjust gap for vertical stacking */
        text-align: center;
    }

    /* Hide separators on mobile */
    .footer-links .separator {
        display: none;
    }
}

.dict-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #faf9f6;
    /* Very simple, elegant whitish-greige */
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overscroll-behavior: contain;
}

.dict-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.dict-content-wrapper {
    width: 90%;
    height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Vertical Text Container */
.dict-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: #2a2a2a;
    height: 100%;
    max-height: 85vh;
    /* Responsive max-height */
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    /* Allows text cols to wrap horizontally */
    overflow-x: auto;
    /* Scroll horizontally if it exceeds viewport */
    padding: 20px 0;
}

/* Adjustments for WebKit text orientation */
.dict-vertical-text * {
    -webkit-text-orientation: upright;
    text-orientation: upright;
}

.dict-header {
    margin-right: 40px;
    /* Space on right side in vertical layout */
}

.dict-title {
    font-size: clamp(1.6rem, 4.5vh, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    margin: 0;
}

.dict-ruby {
    font-size: clamp(0.7rem, 1.5vh, 0.85rem);
    color: #777;
    margin-top: 15px;
    /* Spacing down the vertical line */
    display: inline-block;
}

.dict-entry {
    margin-right: clamp(15px, 3vw, 30px);
    /* Reduced from 20px-40px */
}

.dict-num {
    font-size: clamp(0.9rem, 2vh, 1.1rem);
    font-weight: bold;
    margin-bottom: 5px;
    /* Reduced from 15px */
    display: inline-block;
}

.dict-entry p {
    font-size: clamp(0.9rem, 1.9vh, 1.05rem);
    line-height: 2.0;
    /* Reduced from 2.2 */
    /* Wide elegant line height */
    letter-spacing: 0.12em;
    margin: 0;
}

.dict-quote {
    margin-right: clamp(30px, 6vw, 70px);
    /* Significant gap before the concluding sentence */
    font-size: clamp(1rem, 2.5vh, 1.2rem);
    letter-spacing: 0.2em;
}

/* Close Button */
.dict-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10000;
}

.dict-close span {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 1px;
    background-color: #333;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dict-close span:nth-child(1) {
    transform: rotate(45deg);
}

.dict-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.dict-close:hover span:nth-child(1) {
    transform: rotate(135deg);
}

.dict-close:hover span:nth-child(2) {
    transform: rotate(45deg);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dict-vertical-text {
        max-height: 500px;
    }

    .dict-title {
        font-size: 1.6rem;
    }

    .dict-entry {
        margin-right: 25px;
    }

    .dict-num {
        font-size: 1rem;
    }

    .dict-entry p {
        font-size: 0.85rem;
        line-height: 2;
    }

    .dict-quote {
        font-size: 1rem;
        margin-right: 40px;
    }
}

/* Recipe Detail Button (Based on Meraki Dictionary style) */
.recipe-detail-btn {
    display: inline-block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--c-gold, #b89555);
    text-decoration: none;
    border-bottom: 1px solid var(--c-gold, #b89555);
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
    cursor: pointer;
}

.recipe-detail-btn:hover {
    opacity: 0.6;
}

/* Recipe Modal (Horizontal Text Layout) */
.recipe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to allow scroll from top */
    overflow-y: auto;
    /* Enable scroll on the modal itself */
    padding: 60px 0;
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
    overscroll-behavior: contain;
    /* Prevent background scroll chaining */
}

.recipe-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.recipe-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: auto 0;
    /* Centering when content is short */
}

.recipe-detail-content {
    max-width: 950px;
    width: 90%;
    /* Removed max-height and overflow-y to let parent handle it */
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: #2a2a2a;
    padding: 30px 40px;
}

.recipe-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    text-align: center;
}

.recipe-tag {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--c-gold);
    display: block;
    margin-bottom: 10px;
}

.recipe-title {
    font-size: clamp(1.8rem, 5vh, 2.4rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    margin: 0;
}

.recipe-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(20px, 4vw, 40px);
}

.recipe-sub {
    font-size: clamp(1.1rem, 2.5vh, 1.2rem);
    border-left: 3px solid var(--c-gold);
    padding-left: 15px;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
}

.step-list {
    padding-left: 20px;
    margin: 0;
}

.step-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: clamp(0.95rem, 2vh, 1.05rem);
}

.step-note {
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-top: 4px;
}

.tip-list {
    list-style: none;
    padding: 0;
}

.tip-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.tip-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--c-gold);
}

/* Close Button (Matching dict-close) */
.recipe-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10000;
}

.recipe-close span {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 1px;
    background-color: #333;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-close span:nth-child(1) {
    transform: rotate(45deg);
}

.recipe-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.recipe-close:hover span:nth-child(1) {
    transform: rotate(135deg);
}

.recipe-close:hover span:nth-child(2) {
    transform: rotate(45deg);
}

/* Scrollbar for modal content */
.recipe-detail-content::-webkit-scrollbar {
    width: 4px;
}

.recipe-detail-content::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-detail-content::-webkit-scrollbar-thumb {
    background: #ccc;
}

/* Mobile Adjustments for Recipe Modal */
@media (max-width: 768px) {
    .recipe-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .recipe-title {
        font-size: 1.8rem;
    }

    .recipe-detail-content {
        padding: 60px 20px 40px;
    }
}

/* Horizontal Scroll Styles */
.horizontal-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    /* To prevent horizontal scrolling of the whole page */
}

.horizontal-container {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.h-item {
    flex: 0 0 auto;
    margin-right: 2vw;
    /* Adjust depending on spacing requirement */
}

/* Ensure sections holding horizontal wrappers stack their children vertically */
.harvest-section {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* Spacer block to push the first item into view or offscreen as desired */
.spacer-block {
    width: 25vw;
}

/* FAQ Modal Styles */
.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    writing-mode: horizontal-tb;
    /* Explicitly horizontal */
}

.faq-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: clamp(1.1rem, 2.5vh, 1.3rem);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
    color: var(--c-text);
}

.faq-question span {
    color: var(--c-gold);
    font-family: var(--font-main);
    font-size: 1.3rem;
}

.faq-answer {
    font-size: clamp(0.9rem, 1.8vh, 1rem);
    line-height: 1.8;
    color: #444;
    padding-left: 32px;
    /* Align with text after Q. */
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
        padding-left: 28px;
    }
}