@import 'color-palette.css';

/* Skip to main content（キーボード・スクリーンリーダー） */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    padding: 12px 16px;
    background: var(--primary-color, #667eea);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
}

/* ARIA 拡張スタイル */
[aria-label] {
    cursor: pointer;
}

[role="button"] {
    display: inline-block;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 記事ナビゲーションスタイル */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.nav-prev,
.nav-next {
    flex: 1;
    text-decoration: none;
    color: var(--primary-color, #667eea);
    font-weight: 600;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 200px;
}

.nav-prev:hover,
.nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--primary-dark, #5a6fd8);
}

.nav-prev.disabled,
.nav-next.disabled {
    color: #ccc;
    pointer-events: none;
    background: #f8f9fa;
}

/* 地図見出しスタイル */
.map-section-title {
    font-size: 1.8rem;
    color: var(--primary-color, #667eea);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color, #667eea);
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .article-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-prev,
    .nav-next {
        min-width: 100%;
    }
}
