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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #2D3A20;
    background-color: #F5F5F0;
}

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

/* Centered sections for index page */
.centered-section {
    text-align: center;
}

.centered-section .container > * {
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.header {
    background-color: #F5F5F0;
    padding: 20px 0;
    border-bottom: 1px solid #E0E0DB;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 500;
    color: #2D3A20;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F5F5F0 0%, #E8E8E0 100%);
    padding: 60px 0 80px;
    text-align: center;
}

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

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.2em;
    font-weight: 500;
    color: #2D3A20;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    width: 100%;
    max-height: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.15);
}

/* Image Styles */
.about-img, .school-img, .product-img, .gallery-img, .content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-img {
    height: 280px;
}

.school-img {
    height: 220px;
}

.product-img {
    height: 240px;
}

.content-img {
    height: 220px;
}

.about-img {
    height: 320px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5em;
    font-weight: 500;
    color: #2D3A20;
    text-align: center;
    margin-bottom: 50px;
}

/* About Section */
.about {
    background-color: #FAFAF8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #2D3A20;
}

.about-image {
    height: 300px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: #FAFAF8;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3em;
    color: #2D3A20;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Schools Section */
.schools {
    background-color: #FAFAF8;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.school-card {
    background-color: #F5F5F0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.1);
}

.school-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4em;
    color: #2D3A20;
    margin-bottom: 20px;
    border-bottom: 2px solid #D44638;
    padding-bottom: 10px;
}

.school-image {
    height: 200px;
    margin-bottom: 20px;
}

.school-card p {
    color: #666;
    line-height: 1.6;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: #FAFAF8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.1);
}

.product-image {
    height: 200px;
}

.product-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3em;
    color: #2D3A20;
    margin: 20px 20px 10px;
}

.product-price {
    font-size: 1.2em;
    font-weight: 600;
    color: #D44638;
    margin: 0 20px;
}

.product-card p {
    color: #666;
    margin: 15px 20px;
    line-height: 1.6;
}

.product-btn {
    background-color: #4A5D3A;
    color: #F5F5F0;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    margin: 20px;
    width: calc(100% - 40px);
}

.product-btn:hover {
    background-color: #2D3A20;
}

/* Gallery Section */
.gallery {
    background-color: #FAFAF8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
}

.feature-item h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4em;
    color: #2D3A20;
    margin-bottom: 20px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Contacts Section */
.contacts {
    background-color: #FAFAF8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background-color: #F5F5F0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(74, 93, 58, 0.1);
}

.contact-details h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2em;
    color: #2D3A20;
    margin-bottom: 8px;
}

.contact-details p {
    color: #666;
    font-size: 1.1em;
}

/* Footer */
.footer {
    background-color: #2D3A20;
    color: #F5F5F0;
    padding: 40px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .brand-name {
    color: #F5F5F0;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.footer-links a {
    color: #F5F5F0;
    text-decoration: none;
    font-size: 1em;
}

.footer-links a:hover {
    color: #D44638;
}

.footer-copyright {
    color: #999;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .hero-image {
        max-height: 250px;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .schools-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-nav {
        gap: 8px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8em;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .service-card,
    .school-card {
        padding: 30px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}