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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #2C3E2D;
    background-color: #FEFEFE;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.header {
    background-color: #F5F5DC;
    padding: 20px 0;
    border-bottom: 2px solid #8B5A3C;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container a {
    text-decoration: none;
    color: inherit;
}

.logo {
    flex-shrink: 0;
}

.brand-name {
    font-size: 32px;
    font-weight: 600;
    color: #2C3E2D;
    letter-spacing: 2px;
}

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

/* Main Content */
.main-content {
    flex: 1;
    padding: 60px 0;
    background-color: #FEFEFE;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 42px;
    color: #2C3E2D;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #8B5A3C;
    margin: 20px auto;
}

.page-subtitle {
    font-size: 18px;
    color: #8B5A3C;
    font-weight: 400;
}

/* Content Blocks */
.content-block {
    margin-bottom: 50px;
}

.block-title {
    font-size: 28px;
    color: #2C3E2D;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.block-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2C3E2D;
}

.block-content p {
    margin-bottom: 20px;
}

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

/* Philosophy Grid for About Page */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.philosophy-item {
    background-color: #F9F9F7;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(44, 62, 45, 0.1);
    border: 1px solid #E0E0E0;
}

.philosophy-item h3 {
    font-size: 20px;
    color: #8B5A3C;
    margin-bottom: 15px;
    font-weight: 500;
}

.philosophy-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.philosophy-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

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

.text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2C3E2D;
}

.text-content p {
    margin-bottom: 20px;
}

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

.image-placeholder {
    background-color: #D3D3D3;
    height: 250px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Empty Content for Template Pages */
.empty-content {
    background-color: #F9F9F7;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #D0D0D0;
    color: #888;
}

.empty-content p {
    font-size: 18px;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #2C3E2D;
    color: #F5F5DC;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: start;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #F5F5DC;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.footer-nav a:hover {
    border-bottom-color: #8B5A3C;
}

.footer-copyright {
    justify-self: end;
}

.footer-copyright p {
    font-size: 14px;
    color: #B0B0B0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
    
    .block-title {
        font-size: 24px;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-with-image .image-placeholder {
        order: -1;
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-logo {
        justify-self: center;
    }
    
    .footer-copyright {
        justify-self: center;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .page-header {
        margin-bottom: 40px;
    }
    
    .empty-content {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .block-title {
        font-size: 22px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .empty-content p {
        font-size: 16px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
}