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

:root {
    --primary-color: #274060;
    --accent-color: #E63946;
    --bg-color: #F5F1E8;
    --text-color: #1C1C1C;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-color: #E5E5E5;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(28, 28, 28, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    flex-shrink: 0;
}

.brand-name {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background-color: var(--white);
}

.hero-content {
    text-align: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.hero-image-placeholder img {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-color);
    text-align: center;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

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

.feature-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Content Grid Sections */
.ai-studio, .commercial, .brand-model, .api-services {
    padding: 80px 0;
    text-align: center;
}

.ai-studio {
    background-color: var(--white);
}

.commercial {
    background-color: var(--bg-color);
}

.brand-model {
    background-color: var(--white);
}

.api-services {
    background-color: var(--bg-color);
}

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

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.content-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

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

.product-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.product-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.product-card li {
    padding: 8px 0;
    color: #666;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

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

.enterprise-btn {
    background-color: var(--primary-color);
}

.enterprise-btn:hover {
    background-color: #1e324a;
}

.training-btn {
    background-color: #2E7D32;
}

.training-btn:hover {
    background-color: #1B5E20;
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
}

.contact-icon {
    flex-shrink: 0;
    padding: 10px;
    background-color: var(--bg-color);
    border-radius: 50%;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

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

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.footer-section h4 {
    color: var(--bg-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 241, 232, 0.2);
    color: var(--bg-color);
}

/* Image Placeholders */
.image-placeholder, .product-image .image-placeholder {
    background-color: var(--light-gray);
    border: 2px dashed var(--border-color);
    padding: 60px 20px;
    text-align: center;
    color: #999;
    border-radius: 8px;
    font-size: 0.9rem;
}

.product-image {
    margin-bottom: 20px;
}

.product-image .image-placeholder {
    padding: 40px 20px;
}

/* 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: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

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

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

.submit-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.submit-button:hover {
    background-color: #1e324a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image-placeholder img {
        height: 250px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-image img {
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px;
    }
}