/* 
 * マルチページ記事専用スタイル
 * ファイル: wwwroot/css/multipage.css
 * 目的: single.htmlのインラインスタイルを外部化
 */

/* ===== ページコンテンツの表示制御 ===== */
/* デフォルトはすべてのページを非表示 */
.multipage-container .page-content {
    display: none !important;
}

/* アクティブページのみ表示 */
.multipage-container .page-content.active {
    display: block !important;
}

/* JavaScriptが読み込まれるまでは最初のページのみ表示 */
.multipage-container:not(.js-initialized) .page-content:first-of-type {
    display: block !important;
}

.multipage-container:not(.js-initialized) .page-content:not(:first-of-type) {
    display: none !important;
}

/* ===== ページネーションナビゲーション ===== */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

/* ===== ページボタン ===== */
.page-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #dee2e6;
    background-color: white;
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-btn:focus {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

/* ===== ページタイトル ===== */
.page-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    .pagination-nav {
        gap: 0.25rem;
        padding: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .page-btn {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 0.8rem;
    }
}

/* ===== アクセシビリティ改善 ===== */
@media (prefers-reduced-motion: reduce) {
    .page-btn {
        transition: none;
    }
    
    .page-btn:hover:not(:disabled) {
        transform: none;
    }
}

/* ===== ハイコントラストモード対応 ===== */
@media (prefers-contrast: high) {
    .pagination-nav {
        border-width: 2px;
    }
    
    .page-btn {
        border-width: 2px;
    }
    
    .page-btn.active {
        background-color: #0056b3;
        border-color: #0056b3;
    }
}
