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

:root {
    --primary-color: #4F46E5;
    --secondary-color: #F8BBD9;
    --accent-color: #1E293B;
    --background-color: #FFFFFF;
    --surface-color: #F8FAFC;
    --border-color: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --spacing-unit: 8px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header */
.header {
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 3) 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.logo {
    display: block;
}

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

.brand-name a {
    color: inherit;
}

/* Hero Section */
.hero {
    padding: calc(var(--spacing-unit) * 12) 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    text-align: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: calc(var(--spacing-unit) * 8);
    align-items: center;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--text-secondary);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    border: none;
    border-radius: calc(var(--spacing-unit) * 1);
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: calc(var(--spacing-unit) * 2);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

.analytics-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: calc(var(--spacing-unit) * 2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-img,
.mission-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: calc(var(--spacing-unit) * 2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
    padding: calc(var(--spacing-unit) * 12) 0;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
    font-size: 2.5rem;
    color: var(--text-primary);
}

/* Features Section */
.features {
    background-color: var(--surface-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.feature-card {
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--spacing-unit) * 2);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.feature-card h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Integration Section */
.integration {
    text-align: center;
}

.integration-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.integration-visual {
    display: flex;
    justify-content: center;
}

.integration-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: calc(var(--spacing-unit) * 2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.integration-description {
    text-align: left;
}

.integration-description p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    max-width: 600px;
    margin: 0 auto;
}

.integration-item {
    text-align: center;
}

.tool-icon {
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    justify-content: center;
}

.tool-image {
    width: 48px;
    height: 48px;
    border-radius: calc(var(--spacing-unit) * 1);
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.integration-item p {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--surface-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.step {
    text-align: center;
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--spacing-unit) * 2);
    border: 1px solid var(--border-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.step h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    margin: 0;
}

/* Analytics Section */
.analytics {
    text-align: center;
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    align-items: center;
}

.analytics-text ul {
    list-style: none;
    padding-left: 0;
}

.analytics-text li {
    padding: calc(var(--spacing-unit) * 1) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: calc(var(--spacing-unit) * 3);
}

.analytics-text li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
}

.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--surface-color);
    border-radius: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--border-color);
}

/* Products Section */
.products {
    background-color: var(--surface-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.product-card {
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--spacing-unit) * 2);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

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

.product-card.featured::before {
    content: '人気';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border-radius: calc(var(--spacing-unit) * 2);
    font-size: 0.875rem;
    font-weight: 500;
}

.product-card h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-primary);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.product-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: left;
}

.product-card li {
    padding: calc(var(--spacing-unit) * 1) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: calc(var(--spacing-unit) * 3);
}

.product-card li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: calc(var(--spacing-unit) * 1);
}

.product-btn {
    background-color: var(--primary-color);
    color: white;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    border: none;
    border-radius: calc(var(--spacing-unit) * 1);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-family: 'Noto Sans JP', sans-serif;
}

.product-btn:hover {
    background-color: var(--accent-color);
}

/* Testimonials Section */
.testimonials {
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.testimonial {
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--spacing-unit) * 2);
    border: 1px solid var(--border-color);
}

.testimonial-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--surface-color);
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.testimonial p {
    font-style: italic;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-secondary);
}

.testimonial-author {
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
}

/* Contacts Section */
.contacts {
    background-color: var(--surface-color);
    text-align: left;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.contact-icon {
    flex-shrink: 0;
    padding: calc(var(--spacing-unit) * 1);
}

.contact-item h4 {
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--text-primary);
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-form {
    background-color: var(--background-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--spacing-unit) * 2);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--text-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-group label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-weight: 500;
    color: var(--text-primary);
}

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

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

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    border: none;
    border-radius: calc(var(--spacing-unit) * 1);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: white;
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.footer-brand .brand-name {
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-brand p {
    color: #CBD5E1;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
}

.footer-section h4 {
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.footer-section a {
    color: #CBD5E1;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 4);
    border-top: 1px solid #475569;
}

.footer-bottom p {
    color: #CBD5E1;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-color);
    margin: 5% auto;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: calc(var(--spacing-unit) * 2);
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: calc(var(--spacing-unit) * 3);
    top: calc(var(--spacing-unit) * 3);
    transition: color 0.2s ease;
}

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

.modal-content h2 {
    margin-bottom: calc(var(--spacing-unit) * 4);
    margin-top: 0;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
        text-align: center;
    }
    
    .analytics-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
    }
    
    .integration-showcase {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
    }
    
    .integration-description {
        text-align: center;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-unit: 6px;
    }
    
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: calc(var(--spacing-unit) * 8) 0;
    }
    
    .hero {
        padding: calc(var(--spacing-unit) * 8) 0;
    }
    
    .features-grid,
    .steps-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .integration-grid {
        grid-template-columns: 1fr;
    }
}