:root {
    --color-primary: #1e3a8a;
    --color-primary-light: #3b82f6;
    --color-indigo: #4338ca;
    --color-indigo-dark: #312e81;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-background: #ffffff;
    --color-background-alt: #f9fafb;
    --color-background-dark: #111827;
    --color-border: #e5e7eb;
    --max-width: 1200px;
    --spacing-unit: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    line-height: 1.7;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    background: var(--color-background);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-indigo);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 2.5);
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-indigo);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-indigo);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 50%, #6366f1 100%);
    color: white;
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(67, 56, 202, 0.3) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
    opacity: 0.95;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
    background: var(--color-indigo);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.btn:hover {
    background: var(--color-indigo-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 56, 202, 0.3);
}

.btn-large {
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 3);
    font-size: 1.125rem;
}

.btn-white {
    background: white;
    color: var(--color-indigo);
}

.btn-white:hover {
    background: var(--color-background-alt);
    color: var(--color-indigo-dark);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--color-indigo);
}

/* Section Styles */
.section {
    padding: calc(var(--spacing-unit) * 8) 0;
}

.section-alt {
    background: var(--color-background-alt);
}

.section-dark {
    background: var(--color-background-dark);
    color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.section-header h2 {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 3);
}

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

.philosophy-icon {
    font-size: 4rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.philosophy-item h3 {
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--color-indigo);
}

.philosophy-item p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 5);
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 3);
}

.two-column-layout.reverse {
    direction: rtl;
}

.two-column-layout.reverse > * {
    direction: ltr;
}

.column-content {
    padding: calc(var(--spacing-unit) * 2);
}

.column-content p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.column-image {
    width: 100%;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-indigo);
    font-weight: 500;
}

/* Quote */
.quote {
    border-left: 4px solid var(--color-indigo);
    padding-left: calc(var(--spacing-unit) * 2);
    margin: calc(var(--spacing-unit) * 3) 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-indigo);
}

.section-dark .quote {
    border-left-color: white;
    color: white;
}

/* Process Steps */
.process-steps {
    margin-top: calc(var(--spacing-unit) * 3);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

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

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-indigo);
    min-width: 60px;
}

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

.step p {
    color: var(--color-text-light);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 3);
}

.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 56, 202, 0.15);
}

.gallery-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 500;
}

.gallery-item h3 {
    padding: calc(var(--spacing-unit) * 1.5);
    padding-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 1.25rem;
}

.gallery-item p {
    padding: 0 calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1.5);
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Care Grid */
.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 3);
}

.care-item {
    padding: calc(var(--spacing-unit) * 2);
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.care-item:hover {
    box-shadow: 0 8px 16px rgba(67, 56, 202, 0.1);
    transform: translateY(-4px);
}

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

.care-item h3 {
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--color-indigo);
}

.care-item p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Values Content */
.values-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.values-content h2 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.values-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--color-text-light);
}

.values-content .lead {
    font-size: 1.375rem;
    color: var(--color-text);
}

.values-content strong {
    color: var(--color-indigo);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 100%);
    color: white;
    text-align: center;
    padding: calc(var(--spacing-unit) * 8) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.cta-section > .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.cta-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: var(--color-background-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 3) 0;
}

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

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 990px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: calc(var(--spacing-unit) * 6) 0;
    }

    .section {
        padding: calc(var(--spacing-unit) * 5) 0;
    }

    .philosophy-grid,
    .gallery-grid,
    .care-grid {
        grid-template-columns: 1fr;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 3);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 750px) {
    .hero {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

    .section {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .process-steps {
        gap: calc(var(--spacing-unit) * 2.5);
    }

    .step {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1);
    }

    .step-number {
        font-size: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
