/* Accessibility Simplified - WCAG 2.1 AA 準拠 */
/* Bootstrapのアクセシビリティ機能で不足する部分のみ */

/* ==================== スキップリンク ==================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 4px 4px;
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.skip-link:focus {
    transform: translateY(0%);
}

/* ==================== 強化されたフォーカス表示 ==================== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus {
    outline: 3px solid #0d6efd !important; /* Bootstrap primary相当 */
    outline-offset: 2px !important;
    box-shadow: 0 0 0 1px #ffffff, 0 0 0 4px #0d6efd !important;
}

/* ==================== タッチターゲットサイズ ==================== */
.btn,
.page-link,
.dropdown-item {
    min-width: 44px;
    min-height: 44px;
}

/* ==================== スクリーンリーダー用 ==================== */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

/* ==================== 高コントラストモード ==================== */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* ==================== ボタン強化スタイル ==================== */
.btn-enhanced {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    min-height: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (min-width: 768px) {
    .btn-enhanced {
        font-size: 1.5rem;
        padding: 1rem 3rem;
        min-height: 4rem;
    }
}

.btn-enhanced:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-enhanced:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==================== モーション設定への配慮 ==================== */
@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;
    }
    
    .btn-enhanced:hover {
        transform: none;
    }
}