/*
================================================
e-Craft Electrician
results.css

施工実績ギャラリー

2026 Phase5
style.cssより分離
================================================
*/
        .cases-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
            padding: 10px 0;
        }

	 .case-card {
            background-color: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s, border-color 0.3s;
            display: flex;
            flex-direction: column;
        }

        .case-card:hover {
            transform: translateY(-4px);
            border-color: var(--primary);
        }

        .case-img-wrapper {
            width: 100%;
            height: 180px; /* 高さを一律固定 */
            background-color: #15161a;
            overflow: hidden;
            position: relative;
        }

        .case-img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 切り抜きフィット */
            object-position: center;
            display: block;
            transition: transform 0.5s ease;
        }

        .case-card:hover .case-img {
            transform: scale(1.05);
        }

        .case-title-box {
            padding: 14px;
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text-main);
            background-color: rgba(255, 255, 255, 0.01);
            border-top: 1px solid var(--border-color);
            flex-grow: 1;
            display: flex;
            align-items: center;
        }

        @media (max-width: 768px) {
            .cases-gallery {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 12px;
            }

            .case-img-wrapper {
                height: 120px;
            }
        }

	.results-table-scroll {
    		width: 100%;
    		overflow-x: auto;
	}

	.results-table-date {
    		width: 15%;
	}

	.results-table-company {
    		width: 20%;
	}	

	.results-table-area {
    		width: 20%;
	}

	.results-table-summary {
    		width: 45%;
	}	

	.results-table-partner-name {
    		width: 70%;
	}

	.results-table-partner-type {
    		width: 30%;
	}	

	.date-badge-muted {
    		background: rgba(255, 255, 255, 0.05);
    		color: var(--text-muted);
    		border: 1px solid var(--border-color);
	}

	/* ==============================
   	Mobile: results table scroll only
	============================== */

@media (max-width: 768px) {
    #results #performance-content-root {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #results #performance-content-root table {
        min-width: 760px;
        width: 760px;
        table-layout: fixed;
        border-collapse: collapse;
    }

    #results #performance-content-root th,
    #results #performance-content-root td {
        writing-mode: horizontal-tb;
        vertical-align: middle;
        padding: 14px 12px;
        line-height: 1.7;
    }

    /* 1列目：年月 */
    #results #performance-content-root th:nth-child(1),
    #results #performance-content-root td:nth-child(1) {
        width: 110px;
        white-space: nowrap;
        word-break: keep-all;
    }

    /* 2列目：元請・施工会社等 */
    #results #performance-content-root th:nth-child(2),
    #results #performance-content-root td:nth-child(2) {
        width: 240px;
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    /* 3列目：地域 */
    #results #performance-content-root th:nth-child(3),
    #results #performance-content-root td:nth-child(3) {
        width: 130px;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 4列目：工事概要 */
    #results #performance-content-root th:nth-child(4),
    #results #performance-content-root td:nth-child(4) {
        width: 280px;
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }
}	
