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

:root {
    --color-primary: #2c5282;    /* 深藍 */
    --color-secondary: #fbb6ce;  /* 桜色 */
    --color-accent: #c6ad8f;     /* 麻色 */
    --color-white: #ffffff;
    --color-gray-100: #f7fafc;
    --color-gray-200: #edf2f7;
    --color-gray-300: #e2e8f0;
    --color-gray-600: #718096;
    --color-gray-800: #2d3748;
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif JP', Georgia, serif;
    --spacing-unit: 8px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    font-size: 16px;
    font-weight: 400;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-gray-200);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--spacing-unit) * 2) 0;
}

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

.logo {
    flex-shrink: 0;
}

.brand-info h1.brand-name {
    margin-bottom: calc(var(--spacing-unit) / 2);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.brand-info h1.brand-name a {
    color: inherit;
    text-decoration: none;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-weight: 300;
    margin: 0;
}

/* Buttons */
.cta-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
}

.cta-button:hover {
    background-color: #2a4f7a;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.cta-button.large {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-white) 100%);
    padding: calc(var(--spacing-unit) * 10) 0;
}

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

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

.features-image-main {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.benefits-image-main {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--color-gray-600);
}

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

/* Image Placeholders */
.image-placeholder {
    background-color: var(--color-gray-200);
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 6);
    width: 100%;
    height: 300px;
    color: var(--color-gray-600);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Sections */
section {
    padding: calc(var(--spacing-unit) * 10) 0;
}

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

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

/* Services */
.services {
    background-color: var(--color-gray-100);
    text-align: center;
}

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

.service-card {
    background-color: var(--color-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.service-icon {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

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

.service-card p {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* Features */
.features {
    text-align: center;
}

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

.features-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

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

.feature-bullet {
    flex-shrink: 0;
    margin-top: calc(var(--spacing-unit) / 2);
}

.feature-item h4 {
    margin-bottom: calc(var(--spacing-unit) / 2);
    color: var(--color-primary);
}

.feature-item p {
    margin-bottom: 0;
    color: var(--color-gray-600);
}

/* Target Users */
.target-users {
    background-color: var(--color-gray-100);
    text-align: center;
}

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

.user-card {
    background-color: var(--color-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.user-icon {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

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

.user-card p {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* Products */
.products {
    text-align: center;
}

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

.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 4);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

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

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

.product-header {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.product-header h3 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit));
}

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

.product-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-gray-600);
}

.product-features {
    list-style: none;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.product-features li {
    padding: calc(var(--spacing-unit)) 0;
    border-bottom: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
}

.product-button:hover {
    background-color: #2a4f7a;
    box-shadow: var(--shadow-md);
}

/* How it Works */
.how-it-works {
    background-color: var(--color-gray-100);
    text-align: center;
}

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

.step {
    text-align: center;
    background-color: var(--color-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

.step h4 {
    margin-bottom: calc(var(--spacing-unit));
    color: var(--color-primary);
}

.step p {
    margin-bottom: 0;
    color: var(--color-gray-600);
}

/* Benefits */
.benefits {
    text-align: center;
}

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

.benefit-item {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item h4 {
    margin-bottom: calc(var(--spacing-unit));
    color: var(--color-primary);
    font-size: 1.125rem;
}

.benefit-item p {
    margin-bottom: 0;
    color: var(--color-gray-600);
}

/* Testimonials */
.testimonials {
    background-color: var(--color-gray-100);
    text-align: center;
}

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

.testimonial-card {
    background-color: var(--color-white);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-gray-800);
    font-size: 1.125rem;
    line-height: 1.8;
}

.testimonial-author strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: calc(var(--spacing-unit) / 2);
}

.testimonial-author span {
    color: var(--color-gray-600);
    font-size: 0.875rem;
}

/* Contact */
.contact {
    background-color: var(--color-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

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

.contact-icon {
    flex-shrink: 0;
    margin-top: calc(var(--spacing-unit) / 2);
}

.contact-item h4 {
    margin-bottom: calc(var(--spacing-unit) / 2);
    color: var(--color-primary);
}

.contact-item p {
    margin-bottom: 0;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.contact-form-section {
    text-align: center;
}

.contact-note {
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: calc(var(--spacing-unit) * 3);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    font-size: 1.125rem;
    font-weight: 500;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
}

.footer-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.875rem;
    padding: calc(var(--spacing-unit) / 2) 0;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 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);
}

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

.close {
    color: var(--color-gray-600);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 3);
}

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

.modal h3 {
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) / 2);
    font-weight: 500;
    color: var(--color-gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--color-gray-300);
    border-radius: calc(var(--border-radius) / 2);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background-color: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
    
    .header-content {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-main-image {
        height: 250px;
    }
    
    .features-image-main,
    .benefits-image-main {
        height: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-content,
    .benefits-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid,
    .users-grid,
    .products-grid,
    .steps-container,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-main-image {
        height: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: calc(var(--spacing-unit) * 3);
    }
}