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

body {
    font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FAFAFA;
}

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

/* Header */
.header {
    background-color: #FFF;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    flex-shrink: 0;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #C41E3A;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #C41E3A 0%, #8B1538 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.hero-image {
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #D4AF37;
    border-radius: 2px;
}

/* About Matsuri */
.about-matsuri {
    background-color: #FFF;
    text-align: center;
}

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

.content-text p {
    font-size: 18px;
    line-height: 1.8;
}

/* Image Containers */
.image-container {
    text-align: center;
}

.section-image, .festival-image, .community-image, .product-image, .calendar-image, .gallery-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.festival-image, .community-image {
    height: 250px;
    object-fit: cover;
}

.calendar-image {
    height: 400px;
    object-fit: cover;
}

.product-image {
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.gallery-image {
    height: 200px;
    object-fit: cover;
}

/* Seasonal Festivals */
.seasonal-festivals {
    background-color: #F8F8F8;
    text-align: center;
}

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

.festival-card {
    background-color: #FFF;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.festival-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 15px;
}

.festival-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Traditional Elements */
.traditional-elements {
    background-color: #FFF;
    text-align: center;
}

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

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

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

.element-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 15px;
}

.element-item p {
    font-size: 16px;
}

/* Products Section */
.products {
    background-color: #F8F8F8;
    text-align: center;
}

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

.product-card {
    background-color: #FFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 15px;
}

.product-card p {
    font-size: 16px;
    margin-bottom: 25px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #C41E3A;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #A01729;
}

/* Cultural Heritage */
.cultural-heritage {
    background-color: #FFF;
    text-align: center;
}

.heritage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.heritage-text p {
    font-size: 18px;
    line-height: 1.8;
}

/* Local Communities */
.local-communities {
    background-color: #F8F8F8;
    text-align: center;
}

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

.community-card {
    background-color: #FFF;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.community-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 15px;
}

.community-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Festival Calendar */
.festival-calendar {
    background-color: #FFF;
    text-align: center;
}

.calendar-content {
    text-align: center;
}

.calendar-content p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* Gallery Preview */
.gallery-preview {
    background-color: #F8F8F8;
    text-align: center;
}

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item .image-placeholder {
    height: 200px;
    border-radius: 0;
}

/* Contact Section */
.contact {
    background-color: #FFF;
}

.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: #F8F8F8;
    border-radius: 15px;
}

.contact-icon svg {
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 16px;
    color: #666;
}

/* Footer */
.footer {
    background-color: #2C2C2C;
    color: #FFF;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: start;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    color: #C41E3A;
}

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

.footer-links a {
    color: #CCC;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    text-align: right;
    justify-self: end;
}

.footer-copyright p {
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .content-grid,
    .heritage-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .festival-grid,
    .elements-grid,
    .product-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-logo {
        justify-self: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-copyright {
        justify-self: center;
        text-align: center;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .footer-brand {
        font-size: 20px;
    }
}