/**
 * レスポンシブスタイル
 * 
 * @version 2.0.0
 * @package SenkyoShigotonin
 */

/* ==================== Tablet (〜1024px) ==================== */
@media (max-width: 1024px) {
    :root {
        --container-padding: 15px;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }
    
    .header-container {
        padding: 6px var(--container-padding);
        flex-wrap: wrap;
    }

    .header-contact--minimal {
        max-width: min(260px, 55vw);
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-item {
        min-width: 88px;
    }

    .nav-link {
        font-size: 0.74rem;
        padding: 6px 3px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== Mobile (〜640px) ==================== */
@media (max-width: 640px) {
    :root {
        --container-padding: 10px;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    /* Typography */
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Header（縦を詰める） */
    .header-container {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 4px;
    }
    
    .site-logo-wordmark {
        font-size: clamp(0.95rem, 4.5vw, 1.15rem);
    }
    
    .site-tagline {
        display: none;
    }
    
    .header-contact {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .header-contact--minimal {
        align-items: flex-start;
        max-width: 100%;
    }
    
    .header-contact-phone,
    .header-contact-mail {
        font-size: 0.68rem;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        flex-shrink: 0;
    }
    
    .site-branding {
        order: 1;
        flex: 1;
        min-width: 0;
    }
    
    /* Navigation（マストヘッドは main.css の max-width:980px で制御） */
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .btn-xlarge {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
    
    /* Flash Messages */
    .flash-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    /* Footer */
    .footer-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-list {
        text-align: center;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .mobile-menu-toggle,
    .main-navigation,
    .flash-message,
    .back-to-top,
    .cta-section {
        display: none !important;
    }
    
    .site-header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .site-footer {
        border-top: 1px solid #000;
    }
}

@media (max-width: 900px) {
    .home-value-band__inner {
        grid-template-columns: 1fr;
    }

    .home-service-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .campaign-content {
        grid-template-columns: 1fr;
    }

    .election-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .election-link {
        justify-self: start;
    }

    .page-home .hero-cta,
    .page-home .hero-cta--impact {
        flex-direction: column;
    }

    .page-home .hero-cta .btn,
    .page-home .hero-cta--impact .btn {
        width: 100%;
        text-align: center;
    }

    .page-home .hero-pillars {
        grid-template-columns: 1fr;
        max-width: none;
    }

    body.page-home .flash-message {
        top: 72px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ==================== Dark Mode (Optional) ==================== */
@media (prefers-color-scheme: dark) {
    /* ダークモード対応は今後実装 */
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== High Contrast Mode ==================== */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    .nav-link {
        border-width: 3px;
    }
}





