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

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1e3a8a;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #4b5563;
}

a {
    color: #ec4899;
    text-decoration: none;
}

a:hover {
    color: #db2777;
    text-decoration: underline;
}

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

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

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

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.nav a {
    color: #4b5563;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav a:hover {
    color: #1e3a8a;
    background-color: #f8fafc;
    text-decoration: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Page Hero */
.page-hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    margin-bottom: 60px;
}

.page-hero h1 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.last-updated {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 1rem;
}

/* Info Blocks */
.info-block {
    margin-bottom: 60px;
    text-align: center;
}

.block-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.block-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

/* Content with Image Layout */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.content-with-image.reverse {
    direction: rtl;
}

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

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

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.value-item h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.value-item p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.value-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Company Details */
.company-details {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: left;
}

.detail-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
    gap: 1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    min-width: 120px;
    color: #1e3a8a;
    font-weight: 600;
    flex-shrink: 0;
}

.detail-row span {
    color: #4b5563;
    flex: 1;
}

/* Philosophy Content */
.philosophy-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: left;
}

.philosophy-text {
    margin-bottom: 2rem;
}

.philosophy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #ec4899;
}

.feature-item h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Policy Sections */
.policy-section {
    margin-bottom: 3rem;
    text-align: left;
}

.policy-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.policy-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.policy-content h3 {
    color: #1e3a8a;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.125rem;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

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

/* Content Block (for empty pages) */
.content-block {
    margin-bottom: 60px;
}

.empty-content {
    background: white;
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.empty-content p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

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

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #374151;
    padding-bottom: 2rem;
}

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

.footer-logo .brand-name {
    color: white;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .page-hero {
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    .content-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-with-image.reverse {
        direction: ltr;
    }

    .block-content,
    .company-details,
    .empty-content,
    .philosophy-content,
    .policy-content {
        padding: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-features {
        grid-template-columns: 1fr;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-row strong {
        min-width: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}