/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 16px 0;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.brand-name {
    font-size: 24px;
    font-weight: 600;
    color: #4F46E5;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 40px 0 80px;
    background: #f8fafc;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.update-date {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 8px;
}

/* Content Blocks */
.content-block {
    background: white;
    margin-bottom: 32px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content-block h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #4F46E5;
}

.content-block h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.content-block p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block.centered {
    text-align: center;
}

/* Policy Lists */
.policy-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.policy-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #64748b;
    line-height: 1.6;
}

.policy-list li:before {
    content: "•";
    color: #4F46E5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact Info */
.contact-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4F46E5;
    margin-top: 16px;
}

.contact-info p {
    margin-bottom: 8px;
    color: #1e293b;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Services Grid (About page) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.service-item {
    padding: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.service-item h3 {
    color: #4F46E5;
    margin-bottom: 12px;
}

.service-item p {
    margin-bottom: 0;
    font-size: 14px;
}

/* About Page Specific Styles */
.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
}

.mission-icon svg {
    width: 100%;
    height: 100%;
}

.mission-text {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 24px;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.services-overview {
    margin-top: 40px;
}

.service-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    max-width: 200px;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 30px;
    height: 30px;
}

.flow-arrow {
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

.commitment-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.commitment-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
}

.commitment-icon svg {
    width: 100%;
    height: 100%;
}

.commitment-text {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
}

/* Legal Content Placeholder */
.legal-content {
    min-height: 400px;
}

.legal-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.placeholder-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.legal-placeholder h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 16px;
}

.legal-placeholder p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 20px;
}

.placeholder-note {
    font-size: 14px;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 60px 0 24px;
    margin-top: auto;
}

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

.footer-brand .logo-container {
    padding: 0;
}

.footer-brand .logo-container .brand-name {
    color: white;
}

.footer-brand p {
    margin-top: 16px;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

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

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #4F46E5;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 20px 0 60px;
    }
    
    .page-header {
        margin-bottom: 40px;
        padding: 24px 16px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .content-block {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .content-block h2 {
        font-size: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .story-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-flow {
        flex-direction: column;
        gap: 16px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .legal-placeholder {
        padding: 40px 20px;
    }
    
    .placeholder-icon {
        width: 60px;
        height: 60px;
    }
    
    .placeholder-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .legal-placeholder h3 {
        font-size: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .content-block h2 {
        font-size: 20px;
    }
    
    .legal-placeholder {
        padding: 24px 16px;
    }
    
    .legal-placeholder h3 {
        font-size: 18px;
    }
    
    .story-image img,
    .team-image img {
        height: 200px;
    }
}