/* 実績ページ専用CSS */

/* 実績ヒーローセクション */
.works-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    margin-top: -80px;
    padding-top: 160px;
}

.works-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.works-hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

/* 実績統計 */
.works-stats {
    padding: 80px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    display: block;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 実績一覧 */
.works-list {
    padding: 80px 0;
}

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

.work-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.work-item:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.work-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-content {
    padding: 30px;
}

.work-category {
    background: #f0f4ff;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 16px;
}

.work-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.work-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.work-title a:hover {
    color: #667eea;
}

.work-description {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 実績詳細 */
.work-detail {
    padding: 80px 0;
}

.work-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

.work-detail-header {
    text-align: center;
    margin-bottom: 60px;
}

.work-detail-category {
    background: #f0f4ff;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.work-detail-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.work-detail-summary {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.work-detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin: 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
}

.work-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
}

.work-info-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.work-info-list {
    list-style: none;
}

.work-info-list li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.work-info-list li:last-child {
    border-bottom: none;
}

.info-label {
    width: 120px;
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

/* カテゴリーフィルター */
.works-filter {
    background: #f8f9fa;
    padding: 60px 0;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    background: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 関連実績 */
.related-works {
    padding: 80px 0;
    background: #f8f9fa;
}

.related-works h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .works-hero h1 {
        font-size: 32px;
    }
    
    .works-hero p {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .work-detail-title {
        font-size: 28px;
    }
    
    .work-detail-summary {
        font-size: 16px;
    }
    
    .work-detail-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .work-detail-image {
        height: 250px;
        font-size: 48px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}