/* Column Page Styles */

.page-header {
    background: linear-gradient(135deg, #1a2b3c 0%, #3498db 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.column-section {
    padding: 80px 0;
}

.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.column-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.column-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.column-content {
    padding: 30px;
}

.column-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a2b3c;
    line-height: 1.4;
}

.column-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.column-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.column-link:hover {
    color: #2c3e50;
}

/* フィルター機能のスタイル */
.column-filter {
    margin-bottom: 60px;
}

.filter-radio {
    display: none;
}

.filter-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.filter-label {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.filter-label:hover {
    background: #e9ecef;
    border-color: #0066cc;
    color: #0066cc;
}

.filter-label.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.filter-radio:checked + .filter-label {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.filter-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
}

.filter-radio:checked + .filter-label .filter-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* フィルタリング機能 */
.column-card {
    display: block; /* デフォルトで表示 */
}

/* 「すべて」が選択された場合 */
.column-filter:has(#filter-all:checked) ~ .column-grid .column-card {
    display: block;
}

/* 各カテゴリが選択された場合の表示制御 */
.column-filter:has(#filter-aws:checked) ~ .column-grid .column-card:not([data-category*="AWS"]) {
    display: none;
}
.column-filter:has(#filter-cloud:checked) ~ .column-grid .column-card:not([data-category*="クラウド"]):not([data-category*="インフラ"]):not([data-category*="システム移行"]) {
    display: none;
}
.column-filter:has(#filter-ai:checked) ~ .column-grid .column-card:not([data-category*="AI・機械学習"]) {
    display: none;
}
.column-filter:has(#filter-data:checked) ~ .column-grid .column-card:not([data-category*="データ"]) {
    display: none;
}
.column-filter:has(#filter-dx:checked) ~ .column-grid .column-card:not([data-category*="DX"]):not([data-category*="開発プロセス"]):not([data-category*="組織"]):not([data-category*="コスト最適化"]):not([data-category*="運用"]):not([data-category*="セキュリティ"]):not([data-category*="BCP"]) {
    display: none;
}

/* ページネーション */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #fff;
}

.pagination-link:hover:not(.pagination-current) {
    background-color: #f5f5f5;
    border-color: #0066cc;
    color: #0066cc;
}

.pagination-current {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    cursor: default;
}

.pagination-prev,
.pagination-next {
    min-width: auto;
    font-weight: 400;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #999;
    user-select: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .column-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .column-section {
        padding: 60px 0;
    }

    .filter-labels {
        gap: 10px;
        justify-content: center;
    }

    .filter-label {
        padding: 8px 16px;
        font-size: 0.9rem;
        flex: 0 0 auto;
        min-width: auto;
        text-align: center;
    }

    /* ページネーション モバイル対応 */
    .pagination {
        margin-top: 40px;
    }

    .pagination-list {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .pagination-ellipsis {
        width: 36px;
        height: 36px;
    }

    .pagination-prev,
    .pagination-next {
        padding: 0 12px;
    }
}