/* 事例資料カード専用スタイル */

.case-card {
    background: #fafafa;
    border: 1px solid #bdbcbd;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #f5f5f5;
    overflow: hidden;
}

.case-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.case-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6b6b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.case-card-content {
    padding: 14px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.case-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.case-tag.tag-category {
    background: #fff;
    color: #3d9eac;
    border: 1px solid #3d9eac;
}

.case-tag.tag-target {
    background: #e8f5e9;
    color: #388e3c;
}

.case-tag.tag-industry {
    background: #fff3e0;
    color: #f57c00;
}

.case-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #204a5e;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.case-text-link {
    text-decoration: underline !important;
    color: #333;
    line-height: 1.5;
    display: block;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.case-text-link:visited {
    color: #333;
}

.case-text-link:hover {
    color: #71AF42 !important;
    text-decoration-color: #71AF42 !important;
}

.case-description {
    font-size: 13px;
    color: #204a5e;
    line-height: 1.6;
    margin-bottom: 16px;
}

.case-info-item {
    margin-bottom: 5px;
}

.case-icon-wrapper {
    color: #3d9eac;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.case-info-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    font-size: 10px;
    border-radius: 4px;
}

.case-info-label {
    color: #3d9eac;
    line-height: 24px;
    font-weight: bold;
}

.case-info-text {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.case-info-text i {
    display: inline-block;
    padding-right: 5px;
    color: #333;
    font-size: 12px;
}

.case-info-item:last-child .case-info-text {
    margin-bottom: 0;
}

.case-company {
    margin-bottom: 12px;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.case-company a {
    color: #006699;
    text-decoration: underline;
    transition: color 0.2s;
}

.case-company a:hover {
    color: #FF9900 !important;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.case-update-date {
    font-size: 12px;
    color: #999;
}

.case-download-btn {
    background: #71af42;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.case-download-btn:hover {
    background: #5d8f35;
}

.case-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.case-file-status-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #71AF42;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    font-weight: bold;
}

.case-file-status-badge.orange {
    background-color: #FF9900;
}
