/* Main CSS for 彩歳クラフト */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2D3E50;    /* Indigo blue */
    --secondary-color: #E67E22;  /* Persimmon orange */
    --accent-color: #27AE60;     /* Young grass green */
    --light-color: #F8F9FA;      /* Cream */
    --text-color: #2C3E50;
    --text-light: #6C757D;
    --border-color: #DEE2E6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FEFEFE;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--light-color) 0%, #FFFFFF 100%);
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

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

.brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-color) 0%, #FFFFFF 100%);
    padding: var(--spacing-xxl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

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

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

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

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.hero-image-placeholder,
.about-image-placeholder,
.category-image-placeholder,
.product-image-placeholder,
.community-image-placeholder,
.studios-map-placeholder {
    background: linear-gradient(45deg, #E3F2FD, #F3E5F5);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-light);
    font-style: italic;
}

.studios-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.studios-map svg {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Section Titles */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: var(--spacing-sm) auto 0;
}

/* Sections */
section {
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

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

/* About Platform */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.service-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.course-category {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.course-category:hover {
    transform: translateY(-4px);
}

.category-image {
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.category-image-placeholder {
    min-height: 160px;
    margin: 0;
    border-radius: 0;
    border: none;
}

.course-category h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md) 0;
}

.course-category p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-light);
}

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-image-placeholder {
    min-height: 180px;
    margin: 0;
    border-radius: 0;
    border: none;
}

.product-card h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md) 0;
}

.product-card p {
    padding: 0 var(--spacing-md);
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    padding: var(--spacing-sm) var(--spacing-md);
}

.order-btn {
    width: calc(100% - var(--spacing-lg));
    margin: 0 var(--spacing-md) var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order-btn:hover {
    background: #D35400;
}

/* Community */
.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    text-align: left;
}

.community-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.community-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-color);
}

.community-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Studios */
.studios-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    text-align: left;
}

.studios-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Membership Plans */
.membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.plan-card.featured::before {
    content: '人気';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-card h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.plan-features {
    text-align: left;
}

.plan-features .feature {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

/* Contacts */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-item h4 {
    font-family: 'Noto Serif JP', serif;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.contact-item small {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-small {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-brand {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-lg);
    justify-content: center;
}

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

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

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 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: var(--spacing-xl);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.close {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.modal h2 {
    font-family: 'Noto Serif JP', serif;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

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

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #243342;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .about-content,
    .community-content,
    .studios-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .courses-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .membership-plans {
        grid-template-columns: 1fr;
    }
}