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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Logo and Brand Styles */
.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.logo {
    flex-shrink: 0;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: #C41E3A;
    letter-spacing: 0.05em;
}

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

.hero-title {
    font-size: 2.5rem;
    color: #2c1810;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #5d4e37;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.placeholder-text {
    color: #8b7355;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Centered Content */
.centered-content {
    text-align: center;
}

.centered-content .content-grid,
.centered-content .practices-grid,
.centered-content .services-grid,
.centered-content .festivals-grid,
.centered-content .program-grid,
.centered-content .testimonials-grid {
    text-align: left;
}

.centered-content .content-flex {
    text-align: left;
}

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

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

h2 {
    font-size: 2.2rem;
    color: #2c1810;
    text-align: center;
    margin-bottom: 48px;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    color: #C41E3A;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Grid Layouts */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.content-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.content-image.large {
    width: 400px;
    height: 300px;
    border-radius: 12px;
}

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

.practice-item {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-left: 4px solid #FFD700;
}

.practice-item p {
    color: #666;
    line-height: 1.7;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #fff8f0 0%, #f5f0eb 100%);
}

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

.service-item {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #f0e6d2;
}

.service-item h3 {
    color: #C41E3A;
    margin-bottom: 16px;
}

.service-item p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}

.price {
    font-weight: 600;
    color: #C41E3A;
}

.cta-button {
    background: linear-gradient(135deg, #C41E3A 0%, #a01729 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

/* Content Flex Layout */
.content-flex {
    display: flex;
    gap: 48px;
    align-items: center;
}

.text-content {
    flex: 1;
}

.text-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-image.medium {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}


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

.festival-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.festival-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.festival-item h3,
.festival-item p {
    padding: 0 24px;
}

.festival-item h3 {
    padding-top: 24px;
    margin-bottom: 12px;
}

.festival-item p {
    padding-bottom: 24px;
    color: #666;
    line-height: 1.7;
}

/* Spiritual Guidance */
.guidance-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.text-block {
    flex: 1;
}

.text-block p {
    color: #666;
    line-height: 1.7;
}

/* Education Programs */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.program-item {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-top: 4px solid #FFD700;
}

.program-item p {
    color: #666;
    line-height: 1.7;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #fff8f0 0%, #f5f0eb 100%);
}

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

.testimonial-item {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-item p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-item cite {
    color: #C41E3A;
    font-weight: 600;
    font-style: normal;
}

/* Contact Section */
.contact {
    background: #2c1810;
    color: #fff;
}

.contact h2 {
    color: #fff;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-item h3 {
    color: #FFD700;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.contact-item p {
    font-size: 1.1rem;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
}

.contact-item a:hover {
    color: #FFD700;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}

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

.footer-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: #C41E3A;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .content-flex {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .guidance-content {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }
    
    .footer-content {
        justify-content: center;
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-links-group {
        flex-direction: row;
        gap: 16px;
    }
    
    .services-grid,
    .practices-grid,
    .festivals-grid,
    .program-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}