/* case-study-list.css */

/* ページタイトルセクションはmain1.cssとcase-study.cssで共通化されているため、ここでは追加記述なし */

/* 事例グリッド */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 柔軟な列数 */
    gap: 30px;
    margin-top: 50px;
    justify-content: center; /* カードを中央寄せ */
}

.case-study-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* 画像のはみ出しを防ぐ */
    text-align: left;
    display: flex; /* カード全体をフレックスボックスに */
    flex-direction: column; /* 縦方向に要素を並べる */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* リンクの下線を消す */
    color: inherit; /* テキスト色を親から継承 */
}

.case-study-card:hover {
    transform: translateY(-5px); /* 少し浮き上がるエフェクト */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 のアスペクト比を維持 (高さ / 幅 * 100%) */
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をカバーするように表示 */
}

.industry-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.industry-transport {
    background-color: #28a745; /* 運送業は緑 */
}

.industry-coop {
    background-color: #ffc107; /* 協同組合は黄色 */
    color: #333; /* 黄色背景なので文字色を濃く */
}

.industry-other {
    background-color: #6c757d; /* その他はグレー */
}


.card-content {
    padding: 20px;
    flex-grow: 1; /* コンテンツ部分が残りのスペースを埋める */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1; /* ハイライト部分が残りのスペースを埋める */
}

.card-highlights li {
    font-size: 15px;
    color: #666;
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.card-highlights li::before {
    content: "・"; /* ドット */
    color: #007bff;
    position: absolute;
    left: 0;
    top: 0;
}

.read-more {
    display: block;
    text-align: right;
    font-size: 15px;
    color: #007bff;
    font-weight: bold;
    margin-top: auto; /* 下部に配置 */
}

.read-more:hover {
    text-decoration: underline;
}

/* CTA（下部） */
.cta-bottom-case-study-list {
    background-color: #e0f2f7; /* 明るい青緑系の背景 */
    padding: 40px;
    margin-top: 60px;
    border-radius: 10px;
    text-align: center;
}

.cta-bottom-case-study-list .cta-text {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .case-study-grid {
        grid-template-columns: 1fr; /* 1列表示に */
        gap: 20px;
    }
    .case-study-card {
        max-width: 400px; /* カードの最大幅を設定し中央寄せ */
        margin: 0 auto;
    }
    .card-title {
        font-size: 20px;
    }
    .card-subtitle {
        font-size: 15px;
    }
    .card-highlights li {
        font-size: 14px;
    }
    .cta-bottom-case-study-list .cta-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 15px;
    }
    .card-title {
        font-size: 18px;
    }
    .card-subtitle {
        font-size: 14px;
    }
    .industry-tag {
        font-size: 12px;
        padding: 3px 8px;
    }
}