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

:root {
    /* Color System */
    --primary-color: #6B8E47;
    --primary-light: #8FA865;
    --primary-dark: #4A6B2F;
    --secondary-color: #8B7355;
    --accent-color: #D4AF37;
    --success-color: #5D8F5D;
    --warning-color: #E8A317;
    --error-color: #C85A54;
    
    /* Neutral Colors */
    --neutral-50: #F5F5DC;
    --neutral-100: #F0F0E8;
    --neutral-200: #E5E5D3;
    --neutral-300: #D1D1BE;
    --neutral-400: #A8A894;
    --neutral-500: #8F8F7A;
    --neutral-600: #6F6F5A;
    --neutral-700: #4F4F3A;
    --neutral-800: #2F2F1A;
    --neutral-900: #1A1A0A;
    
    /* Typography */
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif JP', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(107, 142, 71, 0.1);
    --shadow-md: 0 4px 12px rgba(107, 142, 71, 0.15);
    --shadow-lg: 0 8px 24px rgba(107, 142, 71, 0.2);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--neutral-900);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }

p {
    margin-bottom: var(--space-md);
    color: var(--neutral-700);
    line-height: 1.7;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

/* Header */
.header {
    background: rgba(245, 245, 220, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    filter: drop-shadow(var(--shadow-sm));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-700);
    margin-bottom: var(--space-2xl);
}

.hero-image-placeholder {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Section Styles */
.centered-section {
    text-align: center;
}

.centered-section .section-content {
    max-width: 800px;
    margin: 0 auto;
}

.centered-section .section-content.reverse {
    direction: ltr;
    max-width: 1000px;
}

.mission {
    padding: var(--space-3xl) 0;
    background: white;
}

.section-content {
    max-width: 600px;
    margin: 0 auto;
}

.mission-icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-700);
}

/* Feature Sections */
.tea-utensils {
    padding: var(--space-3xl) 0;
    background: var(--neutral-50);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--neutral-600);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.feature-item {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.feature-item p {
    color: var(--neutral-600);
    font-size: 0.95rem;
}

/* Content Sections */
.tatami-planning,
.tea-rooms,
.seasonal-kits {
    padding: var(--space-3xl) 0;
}

.tatami-planning {
    background: white;
}

.tea-rooms {
    background: var(--neutral-50);
}

.seasonal-kits {
    background: white;
}

.tatami-planning .section-content,
.tea-rooms .section-content,
.seasonal-kits .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.tatami-planning .section-content.reverse,
.tea-rooms .section-content.reverse,
.seasonal-kits .section-content.reverse {
    direction: rtl;
}

.tatami-planning .section-content.reverse > *,
.tea-rooms .section-content.reverse > *,
.seasonal-kits .section-content.reverse > * {
    direction: ltr;
}

.content-text {
    padding: var(--space-lg);
}

.content-image {
    display: flex;
    justify-content: center;
}

.content-photo {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Learning Section */
.learning {
    padding: var(--space-3xl) 0;
    background: var(--neutral-50);
}

.section-header.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Products Section */
.products {
    padding: var(--space-3xl) 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.product-item {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin: var(--space-lg) var(--space-lg) var(--space-sm);
    font-size: 1.25rem;
}

.product-description {
    margin: 0 var(--space-lg) var(--space-lg);
    color: var(--neutral-600);
    font-size: 0.95rem;
}

.product-price {
    margin: 0 var(--space-lg) var(--space-sm);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
}

.product-button {
    width: calc(100% - 2rem);
    margin: 0 var(--space-lg) var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-button:hover {
    background: var(--primary-dark);
}

/* Contacts Section */
.contacts {
    padding: var(--space-3xl) 0;
    background: var(--neutral-50);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    flex-shrink: 0;
    margin-top: var(--space-xs);
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.contact-details p {
    color: var(--neutral-700);
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--neutral-50);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-section {
    gap: var(--space-md);
}

.footer-brand .brand-name {
    color: var(--neutral-50);
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--neutral-200);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--neutral-50);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 220, 0.2);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--neutral-200);
    font-size: 0.875rem;
    margin: 0;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--space-lg);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.cookie-text p {
    margin: 0;
    color: var(--neutral-50);
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--neutral-50);
    color: var(--primary-color);
}

.cookie-btn.accept:hover {
    background: white;
}

.cookie-btn.reject {
    background: transparent;
    color: var(--neutral-200);
}

.cookie-btn.reject:hover {
    background: var(--neutral-200);
    color: var(--primary-color);
}

.cookie-btn.customize {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.cookie-btn.customize:hover {
    background: var(--neutral-700);
    border-color: var(--neutral-700);
}

.cookie-btn.save {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.cookie-btn.save:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.cookie-link {
    color: var(--neutral-100);
    text-decoration: underline;
    font-size: 0.9rem;
    padding: var(--space-sm);
}

.cookie-link:hover {
    color: white;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cookie-modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--neutral-50);
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--neutral-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.cookie-close:hover {
    background: var(--neutral-200);
}

.cookie-modal-body {
    padding: var(--space-xl);
    max-height: 400px;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--neutral-200);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.cookie-category h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.cookie-category p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-300);
    transition: 0.2s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--primary-color);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: var(--neutral-400);
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--neutral-200);
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    background: var(--neutral-50);
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--neutral-50);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--neutral-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background: var(--neutral-200);
}

.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--neutral-800);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[readonly] {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.submit-button {
    width: 100%;
    padding: var(--space-lg);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tatami-planning .section-content,
    .tea-rooms .section-content,
    .seasonal-kits .section-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-item,
    .contact-item {
        padding: var(--space-lg);
    }
}