/* ========================================
   市場調査レポートのカード（トップページ・レポート一覧で共通）
   マークアップ：template-parts/report-card.php
   PC：3列 / タブレット：2列 / スマホ：サムネイル左のリスト
======================================== */
.report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.report-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    color: var(--color-text, #0f172a);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card-link:hover,
.report-card-link:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.report-card-link:focus-visible {
    outline: 2px solid var(--color-primary, #1e40af);
    outline-offset: 3px;
}

.report-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-base-dark, #f1f5f9);
}

.report-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.report-card-link:hover .report-card-image img {
    transform: scale(1.03);
}

.report-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 20px 22px 22px;
}

.report-card-cat {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 0;
    background: var(--color-primary, #1e40af);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.report-card-title {
    margin: 0;
    color: var(--color-text, #0f172a);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.report-card-link:hover .report-card-title {
    color: var(--color-primary, #1e40af);
}

.report-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--color-primary, #1e40af);
    font-size: 1.3rem;
    font-weight: 700;
}

.report-card-more svg {
    transition: transform 0.3s ease;
}

.report-card-link:hover .report-card-more svg {
    transform: translateX(3px);
}

/* 一覧ページはタイトルを4行まで表示（トップページは3行） */
.rep-archive .report-card-title {
    -webkit-line-clamp: 4;
}

@media (max-width: 1024px) {
    .report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .report-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .report-card-link {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 12px;
        border-radius: 0;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    }

    .report-card-image {
        flex: 0 0 120px;
        border-radius: 0;
    }

    .report-card-body {
        gap: 4px;
        padding: 0;
    }

    .report-card-cat {
        padding: 2px 8px;
        font-size: 1.1rem;
    }

    .report-card-title {
        font-size: 1.4rem;
        line-height: 1.55;
    }

    .report-card-more {
        display: none;
    }
}
