/**
 * Custom Theme Styles for でんきほあん WordPress Theme
 * 
 * This file contains additional styles to ensure proper integration
 * with WordPress and compatibility with the React application.
 */

/* ============================================================
   WordPress Integration Styles
   ============================================================ */

/* Ensure full-width layout */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* React Root Container */
#root {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Site Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.site-branding a {
    display: flex;
    align-items: center;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0052a3;
}

.site-title a {
    color: #0052a3;
    text-decoration: none;
}

.site-title a:hover {
    color: #00a86b;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #0052a3;
}

/* Site Content */
.site-content {
    flex: 1;
    width: 100%;
}

/* Site Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-navigation {
    margin-bottom: 2rem;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-navigation a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: #00a86b;
}

.copyright {
    margin: 0;
    font-size: 0.875rem;
    color: #999999;
    text-align: center;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
    }

    .main-navigation {
        gap: 1rem;
        margin-top: 0.75rem;
    }

    .main-navigation ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .site-branding img {
        max-height: 50px;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .footer-navigation ul {
        gap: 1rem;
    }

    .site-footer {
        padding: 1.5rem 0.75rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .main-navigation {
        gap: 0.5rem;
    }

    .main-navigation ul {
        gap: 0.5rem;
    }

    .site-title {
        font-size: 1rem;
    }

    .site-branding img {
        max-height: 40px;
    }
}

/* ============================================================
   Accessibility
   ============================================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0052a3;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0052a3;
    outline-offset: 2px;
}

/* ============================================================
   Print Styles
   ============================================================ */

@media print {
    .site-header,
    .site-footer,
    .main-navigation {
        display: none;
    }

    body {
        background-color: white;
    }

    #root {
        min-height: auto;
    }
}
