/* Base Settings
-------------------------------- */
:root {
    --color-primary: #2C1810;
    --color-secondary: #8B4513;
    --color-accent: #BE3433;
    --color-background: #F5F3F0;
    --color-text: #333333;
    --content-width-large: 1200px;
    --content-width-medium: 960px;
    --side-padding: max(1.25rem, 5vw);
    --font-main: 'Noto Sans JP', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
}

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

html {
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Layout Components */
.container {
    width: 100%;
    max-width: var(--content-width-large);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
}

.section-inner {
    width: 100%;
    max-width: var(--content-width-medium);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

/* Header Styles */
.header {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
 }

.header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--side-padding);
    max-width: var(--content-width-large);
    margin: 0 auto;
}

.g-nav__logo {
    width: clamp(80px, 10vw, 120px);
    z-index: 1001;
}

.g-nav__logo img {
    width: 100%;
    height: auto;
}

.nav-list {
    display: none;
}

@media (min-width: 768px) {
    .header {
        min-height: 100svh;
    }
    .nav-list {
        display: flex;
        gap: clamp(1.5rem, 3vw, 2.5rem);
        list-style: none;
        margin: 0;
    }

    .header__action {
        width: 85%;
        bottom: -10%;
    }

    .nav-list a {
        color: var(--color-primary);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

    .nav-list a:hover {
        color: var(--color-accent);
    }
}

/* Header Background */
.header__background {
    position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 80vh;
}

img.responsive-image {
    text-align: center;
    margin: 0 auto;
}

.background-image {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    filter: blur(8px) brightness(0.8);
    transform: scale(1.1);
}

/* Header Content */
.header__content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: var(--content-width-medium);
    text-align: center;
    z-index: 10;
}

.main-title {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sub-title {
    font-size: clamp(1rem, 4vw, 1.5rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    line-height: 1.5;
    background-color: #652d1a;
    color: white;
    padding: 7px;
}

/* Header Action Image */
.header__action {
    position: absolute;
   bottom: -5vh;
   left: 50%;
   transform: translateX(-50%);
   width: 70%;
   max-width: 800px;
   height: auto;
   aspect-ratio: 16/9;
   z-index: 5;
}

.parallax-wrapper {
    position: relative;
   width: 100%;
   height: 100%;
   opacity: 0;
   transform: translateY(30px);
}

.parallax-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-image {
    position: absolute;
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 12px;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    position: relative;
    padding: 4rem 0;
    overflow: visible;
}

.about-container {
    width: 90%;
    max-width: var(--content-width-medium);
    margin: 0 auto;
}

.about-tree {
    position: fixed;
    right: 5%;
    top: 20vh;
    height: 60vh;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.tree-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 150px;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.tree-image.growth-20 { clip-path: inset(80% 0 0 0); }
.tree-image.growth-40 { clip-path: inset(60% 0 0 0); }
.tree-image.growth-60 { clip-path: inset(40% 0 0 0); }
.tree-image.growth-80 { clip-path: inset(20% 0 0 0); }
.tree-image.growth-100 { clip-path: inset(0 0 0 0); }

.about-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    max-width: var(--content-width-medium);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: minmax(280px, 1fr) 2fr;
        align-items: start;
    }
    .about-container {
        width: 100%;
        padding: 0 1.5rem;
    }

    .text-content {
        padding: 0;
    }
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.6;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    color: var(--color-primary);
    text-align: center;
}

.text-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-content p {
    width: 100%;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.text-content p.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* History Gallery - Scroll Animation */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add data-scroll attribute to gallery items */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Products Section */
.grid-container {
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);
    max-width: var(--content-width-large);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* News Section */
.news-list {
    max-width: var(--content-width-medium);
    margin: 0 auto;
}

.news-item {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-date {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact {
    background-color: white;
}

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

.contact-form {
    background: var(--color-background);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.privacy-policy {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.submit-button {
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 52, 51, 0.3);
}

/* Footer */
.footer {
    background: white;
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Mobile Menu */
.hamburger-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

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

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Slide Menu */
.slide-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.slide-menu.is-open {
    transform: translateX(0);
}

.menu-container {
    padding: 4rem 2rem;
}

.menu-logo {
    width: 80px;
    margin: 0 auto 2rem;
}

.menu-list {
    list-style: none;
}

.menu-list li:not(:last-child) {
    margin-bottom: 1rem;
}

.menu-list a { 
    display: block;
    padding: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu-list a:hover {
    color: var(--color-accent);
}

/* Form Message Styles */
.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animation States */
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Print Styles */
@media print {
    .header__nav,
    .hamburger-button,
    .slide-menu,
    .contact-form {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .section {
        page-break-inside: avoid;
    }
}


.instagram {
    background: #fff;
    padding: 4rem 0;
}

.instagram-profile {
    max-width: 500px;
    margin: 0 auto 3rem;
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.profile-bio {
    margin: 1rem 0;
    line-height: 1.6;
}

.follow-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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