/* ================================
   事例一覧ページ - モダンデザイン
   ================================ */

/* リセット & ベース */
.contentWrap-fullwidth {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    min-height: 100vh;
}

.contentsMain-fullwidth {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* シンプルなページタイトル */
.contentsMain-titleSec {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e0e7ff;
}

.contentsMain-titleSec .headingLarge {
    font-size: 3rem;
    color: #1a365d;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .contentsMain-titleSec {
        padding: 2rem 1rem 1.5rem;
    }
    
    .contentsMain-titleSec .headingLarge {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .contentsMain-titleSec .headingLarge {
        font-size: 2rem;
    }
}

/* CTAセクション */
.contentsMain-ctaSec {
    background: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 2px solid #0078c8;
    border-radius: 8px;
    font-size: 1.68rem; /* 20%増加: 1.4 * 1.2 = 1.68 */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn-primary {
    background: #0078c8;
    color: #ffffff;
    border-color: #0078c8;
}

.cta-btn-primary:hover {
    background: #005a9f;
    border-color: #005a9f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 200, 0.3);
}

.cta-btn-secondary {
    background: transparent;
    color: #0078c8;
    border-color: #0078c8;
}

.cta-btn-secondary:hover {
    background: #0078c8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 200, 0.3);
}

@media (max-width: 768px) {
    .contentsMain-ctaSec {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-btn {
        min-width: 280px;
        padding: 1.2rem 2rem;
        font-size: 1.56rem; /* 20%増加: 1.3 * 1.2 = 1.56 */
    }
}

@media (max-width: 480px) {
    .contentsMain-ctaSec {
        padding: 2rem 1rem;
    }
    
    .cta-btn {
        min-width: 100%;
        font-size: 1.44rem; /* 20%増加: 1.2 * 1.2 = 1.44 */
    }
}

/* 事例コンテナ */
.caseStudy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #ffffff;
}

/* 件数表示 */
.caseStudy-count {
    text-align: left;
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin-left: 0;
    transform: none;
}

.caseStudy-count p {
    font-size: 1.17rem; /* 30%増加: 0.9 * 1.3 = 1.17 */
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* グリッドレイアウト - 高度なレスポンシブ */
.caseStudy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInGrid 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* タブレット表示 */
@media (max-width: 1024px) and (min-width: 769px) {
    .caseStudy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* SP表示 - 2列レイアウト */
@media (max-width: 768px) {
    .caseStudy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* 極小画面 */
@media (max-width: 480px) {
    .caseStudy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* 事例アイテム - モダンカードデザイン */
.caseStudy-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 120, 200, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    height: 100%;
    border: 1px solid rgba(0, 120, 200, 0.06);
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.caseStudy-item:nth-child(1) { animation-delay: 0.1s; }
.caseStudy-item:nth-child(2) { animation-delay: 0.2s; }
.caseStudy-item:nth-child(3) { animation-delay: 0.3s; }
.caseStudy-item:nth-child(4) { animation-delay: 0.4s; }
.caseStudy-item:nth-child(5) { animation-delay: 0.5s; }
.caseStudy-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.caseStudy-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 120, 200, 0.15);
    border-color: rgba(0, 120, 200, 0.2);
}

.caseStudy-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
    position: relative;
}

/* 画像エリア - 16:9比率対応 */
.caseStudy-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9の比率を維持 */
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff, #e8f3ff);
}

.caseStudy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.caseStudy-item:hover .caseStudy-image img {
    transform: scale(1.08);
}

.caseStudy-noimage {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0078c8, #005a9f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* バッジ - プレミアムデザイン */
.caseStudy-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
}

.caseStudy-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.92rem; /* 15%増加: 0.8 * 1.15 = 0.92 */
    font-weight: 600;
    color: #ffffff;
    border-radius: 20px;
    margin-right: 4px;
    margin-bottom: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .caseStudy-badge {
        font-size: 0.86rem; /* 15%増加: 0.75 * 1.15 = 0.86 */
        padding: 0.25rem 0.6rem;
    }
}

/* バッジの色分け - ブルー系グラデーション */
.badge-survey { 
    background: linear-gradient(135deg, #0078c8, #005a9f);
    box-shadow: 0 4px 15px rgba(0, 120, 200, 0.4);
}
.badge-inspection { 
    background: linear-gradient(135deg, #4da6ff, #0078c8);
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.4);
}
.badge-transport { 
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}
.badge-monitoring { 
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.4);
}
.badge-default { 
    background: linear-gradient(135deg, #90caf9, #1565c0);
    box-shadow: 0 4px 15px rgba(144, 202, 249, 0.4);
}

/* コンテンツエリア - エレガントデザイン */
.caseStudy-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (max-width: 768px) {
    .caseStudy-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .caseStudy-content {
        padding: 0.8rem;
    }
}

/* メタ情報（タグ・日付） */
.caseStudy-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.caseStudy-category {
    background: #f0f8ff;
    color: #0078c8;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 120, 200, 0.2);
    flex-shrink: 0;
}

.caseStudy-date {
    font-size: 1.04rem; /* 15%増加: 0.9 * 1.15 = 1.035 ≈ 1.04 */
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .caseStudy-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .caseStudy-category {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
    
    .caseStudy-date {
        font-size: 0.98rem; /* 15%増加: 0.85 * 1.15 = 0.9775 ≈ 0.98 */
    }
}

.caseStudy-title {
    font-size: clamp(1.27rem, 3.45vw, 1.5rem); /* 15%増加: 1.1*1.15=1.27, 3*1.15=3.45, 1.3*1.15=1.5 */
    font-weight: 700;
    color: #1a365d;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.caseStudy-item:hover .caseStudy-title {
    color: #0078c8;
}

@media (max-width: 768px) {
    .caseStudy-title {
        font-size: clamp(1.15rem, 3.22vw, 1.38rem); /* 15%増加: 1*1.15=1.15, 2.8*1.15=3.22, 1.2*1.15=1.38 */
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    .caseStudy-title {
        font-size: 1.21rem; /* 15%増加: 1.05 * 1.15 = 1.2075 ≈ 1.21 */
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }
}

/* 空の状態 - エレガント */
.caseStudy-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fbff, #e8f3ff);
    border-radius: 20px;
    color: #4a5568;
    font-size: 1.4rem;
    font-weight: 500;
}

.caseStudy-empty::before {
    content: '📋';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* ページネーション - プレミアムデザイン */
.caseStudy-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.caseStudy-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1.2rem;
    text-decoration: none;
    color: #0078c8;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 120, 200, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.caseStudy-pagination .page-numbers::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.caseStudy-pagination .page-numbers:hover::before {
    left: 100%;
}

.caseStudy-pagination .page-numbers:hover,
.caseStudy-pagination .page-numbers.current {
    background: linear-gradient(135deg, #0078c8, #005a9f);
    color: #ffffff;
    border-color: #0078c8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 200, 0.4);
}

.caseStudy-pagination .page-numbers.prev,
.caseStudy-pagination .page-numbers.next {
    font-weight: 700;
    padding: 0 1.8rem;
    font-size: 1.05rem;
}

/* スマートロード & パフォーマンス最適化 */
@media (max-width: 768px) {
    .contentWrap-fullwidth {
        padding: 0;
    }
    
    .caseStudy-container {
        padding: 2rem 1rem;
    }
    
    .caseStudy-pagination .page-numbers {
        min-width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }
}

/* 極小画面での最適化 */
@media (max-width: 480px) {
    .caseStudy-container {
        padding: 1.5rem 0.8rem;
    }
    
    .caseStudy-count {
        margin-bottom: 1.5rem;
    }
    
    .caseStudy-count p {
        font-size: 1.11rem; /* 30%増加: 0.85 * 1.3 = 1.105 ≈ 1.11 */
    }
    
    .caseStudy-pagination {
        margin-top: 3rem;
    }
    
    .caseStudy-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .caseStudy-pagination .page-numbers.prev,
    .caseStudy-pagination .page-numbers.next {
        padding: 0 1.2rem;
        font-size: 0.95rem;
    }
}

/* ダークモード対応を無効化 - 常にライトモードで表示 */
/* @media (prefers-color-scheme: dark) {
    .caseStudy-container {
        background: #1a202c;
    }
    
    .caseStudy-item {
        background: #2d3748;
        border-color: rgba(0, 120, 200, 0.2);
    }
    
    .caseStudy-title {
        color: #ffffff;
    }
    
    .caseStudy-category {
        background: rgba(0, 120, 200, 0.2);
        color: #87ceeb;
    }
    
    .caseStudy-date {
        color: #a0aec0;
    }
    
    .caseStudy-count {
        background: linear-gradient(135deg, #0078c8, #005a9f);
        color: #ffffff;
    }
} */

/* 高度なマイクロインタラクション */
.caseStudy-item {
    cursor: pointer;
}

.caseStudy-item:active {
    transform: translateY(-6px) scale(0.98);
}

/* タッチデバイス最適化 */
@media (hover: none) and (pointer: coarse) {
    .caseStudy-item:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 120, 200, 0.08);
    }
    
    .caseStudy-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* フォーカス状態のアクセシビリティ */
.caseStudy-link:focus {
    outline: 3px solid #0078c8;
    outline-offset: 2px;
    border-radius: 12px;
}

.caseStudy-pagination .page-numbers:focus {
    outline: 3px solid #0078c8;
    outline-offset: 2px;
}

/* プリロード & レイジーロード対応 */
.caseStudy-image img[loading="lazy"] {
    transition-delay: 0.1s;
}

/* GPU加速の最適化 */
.caseStudy-item,
.caseStudy-image img,
.caseStudy-badge {
    will-change: transform;
}

/* Reduced Motion対応 */
@media (prefers-reduced-motion: reduce) {
    .caseStudy-item,
    .caseStudy-image img,
    .caseStudy-badge,
    .caseStudy-pagination .page-numbers {
        animation: none;
        transition: none;
    }
    
    .caseStudy-grid {
        animation: none;
        opacity: 1;
    }
}