/* ケース一覧ブロック - フロントエンド用スタイル */

.case-list-block {
    margin: 40px 0;
    padding: 0 20px;
}

.case-list-title {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.case-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.case-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 20px;
}

.case-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.case-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-title a:hover {
    color: #007cba;
}

.case-risks {
    margin-bottom: 15px;
}

.case-risks h5 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #666;
    font-weight: bold;
}

.case-risks ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.case-risks li {
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #555;
}

.case-prices {
    margin-bottom: 15px;
}

.case-prices h5 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #666;
    font-weight: bold;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    border-bottom: none;
}

.price-left {
    font-weight: bold;
    color: #333;
}

.price-right {
    color: #007cba;
    font-weight: bold;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.8em;
    color: #666;
}

.case-date {
    color: #999;
}

.case-method {
    background: #007cba;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .case-list-block {
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .case-list-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .case-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .case-image {
        height: 150px;
    }
    
    .case-content {
        padding: 15px;
    }
    
    .case-title {
        font-size: 1.1em;
    }
    
    .case-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .case-list-block {
        padding: 0 5px;
    }
    
    .case-list-title {
        font-size: 1.3em;
    }
    
    .case-content {
        padding: 12px;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

