/* ===================================
   BlueLamp - Common Styles (Header/Footer)
   =================================== */

/* CSS Custom Properties */
:root {
    /* BlueLamp Brand Colors */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --text-color: #1e293b;
    --text-light: #94a3b8;
    --text-lighter: #cbd5e1;
    --text-lightest: #e2e8f0;
    --text-white: #f1f5f9;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --dark-bg: #0f172a;
    --dark-bg-light: #1e293b;
    
    /* Layout */
    --max-width: 1200px;
    --container-padding: 20px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", 
                   "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    
    /* Transitions */
    --transition-normal: 0.3s ease;
}

/* Reset CSS */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus Styles for Accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.header-cta {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--transition-normal);
}

.header-cta:hover {
    background: var(--primary-hover);
}

/* Footer */
.footer {
    background: var(--dark-bg-light);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav {
        order: 3;
        width: 100%;
    }
    
    .nav-list {
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .header-cta {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}