/* Case Page Styles - 事例一覧ページ専用のスタイル */

/* ページヘッダー */
.page-header {
    background-image: url('../images/header-bg/case-header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header .breadcrumb {
    position: absolute;
    top: 20px;
    left: 40px;
    color: #fff;
    font-size: 13px;
    z-index: 2;
    text-align: left;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.page-header .breadcrumb a {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
    color: #fff;
}

.breadcrumb-separator,
.breadcrumb-current {
    color: #fff;
    opacity: 0.7;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

/* 事例一覧セクション */
.case-list-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.case-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.case-card:hover .case-title {
    color: var(--primary-color);
}

.case-card:visited {
    color: inherit;
}

.case-image {
    flex-shrink: 0;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.case-logo {
    width: 120px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.case-logo img {
    width: 100%;
    height: auto;
}

.case-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-company {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.case-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.case-summary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    flex: 1;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item {
    display: flex;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.pagination-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-link.current {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-prev,
.pagination-next {
    font-size: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .case-content {
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-card {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .pagination-list {
        gap: 8px;
    }
    
    .pagination-link {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header .breadcrumb {
        top: 15px;
        left: 20px;
        font-size: 12px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .case-list-section {
        padding: 40px 0;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-logo {
        width: 100px;
        margin-bottom: 12px;
    }
    
    .case-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .case-company {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .case-summary {
        font-size: 13px;
    }
    
    .pagination-list {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .pagination-link {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .case-list-section {
        padding: 30px 0;
    }
    
    .case-grid {
        margin-bottom: 40px;
    }
    
    .case-image {
        height: 160px;
    }
    
    .case-content {
        padding: 15px;
    }
    
    .case-logo {
        width: 80px;
        margin-bottom: 10px;
    }
    
    .case-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .case-company {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .case-summary {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .pagination {
        margin-top: 30px;
    }
}