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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background-color: #F5F2E8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Color Variables */
:root {
    --hinoki-beige: #F5F2E8;
    --indigo-blue: #3B4F6B;
    --sumi-charcoal: #1F2937;
    --cedar-green: #2D4A3E;
    --accent-warm: #D4A574;
    --border-light: #E5E7EB;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--hinoki-beige) 0%, #F0EDE5 100%);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    text-align: center;
}

.brand {
    margin-bottom: 3rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--sumi-charcoal);
    letter-spacing: 0.05em;
}

.brand-subtitle {
    font-size: 1.2rem;
    color: var(--indigo-blue);
    font-weight: 300;
    letter-spacing: 0.1em;
}

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

.hero-content h2 {
    font-size: 2.2rem;
    color: var(--sumi-charcoal);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--indigo-blue);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-product {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
    background-color: var(--cedar-green);
    color: white;
}

.btn-primary:hover {
    background-color: #245036;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--indigo-blue);
    border: 2px solid var(--indigo-blue);
}

.btn-secondary:hover {
    background-color: var(--indigo-blue);
    color: white;
}

.btn-product {
    background-color: var(--accent-warm);
    color: white;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
}

.btn-product:hover {
    background-color: #C49660;
    transform: translateY(-1px);
}

/* Sections */
section {
    padding: 5rem 0;
    text-align: center;
}

section:nth-child(even) {
    background-color: white;
}

section h3 {
    font-size: 2rem;
    color: var(--sumi-charcoal);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--indigo-blue);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Introduction Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--indigo-blue);
    text-align: left;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--cedar-green);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.3rem;
    color: var(--sumi-charcoal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--indigo-blue);
    line-height: 1.6;
}

/* Showcase Section */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.showcase-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.showcase-item h4 {
    font-size: 1.3rem;
    color: var(--sumi-charcoal);
    margin: 1.5rem 1.5rem 1rem;
    font-weight: 600;
}

.showcase-item p {
    color: var(--indigo-blue);
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
}

/* Joinery Section */
.joinery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.joinery-text h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.joinery-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--indigo-blue);
    text-align: left;
}

.joinery-text ul {
    list-style: none;
}

.joinery-text li {
    padding: 0.5rem 0;
    color: var(--indigo-blue);
    position: relative;
    padding-left: 1.5rem;
}

.joinery-text li:before {
    content: '•';
    color: var(--cedar-green);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Products Section */
.products {
    background: white;
}

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

.product-card {
    background: var(--hinoki-beige);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.3rem;
    color: var(--sumi-charcoal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-info p {
    color: var(--indigo-blue);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-price {
    font-size: 1.2rem;
    color: var(--cedar-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Artisan Network */
.network-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    color: var(--cedar-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--indigo-blue);
    font-weight: 500;
}

/* Knowledge Base */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.knowledge-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-warm);
}

.knowledge-item h4 {
    font-size: 1.3rem;
    color: var(--sumi-charcoal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.knowledge-item p {
    color: var(--indigo-blue);
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: var(--sumi-charcoal);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--indigo-blue);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

.contact-form h4 {
    font-size: 1.3rem;
    color: var(--sumi-charcoal);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cedar-green);
}

/* Footer */
.footer {
    background-color: var(--sumi-charcoal);
    color: var(--hinoki-beige);
    padding: 4rem 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--hinoki-beige);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-description {
    color: #9CA3AF;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-warm);
}

.footer-contact {
    color: #D1D5DB;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Image Placeholders */
.intro-img, .showcase-img, .joinery-img, .product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
}

.joinery-img {
    height: 400px;
}

/* 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);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #9CA3AF;
}

.close:hover {
    color: var(--sumi-charcoal);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--sumi-charcoal);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .intro-grid,
    .joinery-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons button {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        align-items: center;
    }
    
    .network-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h3 {
        font-size: 1.6rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: 1rem 0;
    }
}