/* 研究室レビューカード用CSS */
.latest_laboratory_reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 8px;
    width: 100%;
}

.laboratory-review-card {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.laboratory-review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #c0c0c0;
    transform: translateY(-2px);
}

.lab-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.lab-card-link:hover {
    text-decoration: none;
}

.lab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.lab-name-section .lab-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.lab-name-section .professor-name {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 500;
}

.course-tags,
.department-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.course-tag,
.department-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.course-tag.tag1,
.department-tag.tag1 {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.course-tag.tag2,
.department-tag.tag2 {
    background: linear-gradient(135deg, #9c27b0, #8e24aa);
}

.course-tag.tag3,
.department-tag.tag3 {
    background: linear-gradient(135deg, #4caf50, #43a047);
}

.course-tag.tag4,
.department-tag.tag4 {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.course-tag.tag5,
.department-tag.tag5 {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.review-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #666;
}

.review-year,
.review-grade {
    padding: 5px 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
}

.lab-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.has-coretime {
    color: #e74c3c;
    font-weight: 700;
}

.no-coretime {
    color: #27ae60;
    font-weight: 700;
}

.atmosphere-section,
.teaching-style-section,
.guidance-section {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.guidance-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guidance-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guidance-item:not(:last-child) {
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.teaching-style-label,
.atmosphere-label {
    font-size: 13px;
    color: #495057;
    margin-block: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teaching-style-content {
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.teaching-style-text {
    font-size: 13px;
    line-height: 1.5;
    color: #495057;
    display: block;
}

.guidance-tags,
.atmosphere-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.guidance-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 16px;
    background-color: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
}

.guidance-frequency-label {
    font-size: 13px;
    color: #495057;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guidance-frequency-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.guidance-frequency-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 16px;
    background-color: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
}

.atmosphere-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 16px;
    background-color: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
}

.more-tags {
    font-size: 10px;
    padding: 4px 8px;
    color: #6c757d;
    font-style: italic;
    font-weight: 500;
    background: #e9ecef;
    border-radius: 12px;
}

.blur_parts .latest_laboratory_reviews {
    filter: blur(3px);
    pointer-events: none;
}

.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.detail-link-text {
    font-size: 13px;
    color: #3498db;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.laboratory-review-card:hover .detail-link-text {
    color: #2980b9;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .lab-card-link {
        padding: 16px;
    }

    .lab-name-section .lab-name {
        font-size: 16px;
    }

    .lab-stats-grid {
        gap: 12px;
        padding: 12px;
    }

    .stat-value {
        font-size: 14px;
    }
}