/* THANNECT Staff Manager Styles */

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.trainer-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.trainer-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.trainer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(63, 77, 87, 0.95) 0%, rgba(63, 77, 87, 0.9) 80%, transparent 100%);
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.trainer-card:hover .trainer-overlay {
    transform: translateY(0);
}

.trainer-card:hover img {
    transform: scale(1.05);
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.trainer-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: white;
}

.trainer-overlay .trainer-title {
    font-size: 1rem;
    color: #D4A574;
    margin-bottom: 12px;
    font-weight: 500;
}

.trainer-overlay .trainer-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .trainers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .trainer-card img {
        height: 400px;
    }

    .trainer-overlay {
        padding: 20px;
    }

    .trainer-overlay h3 {
        font-size: 1.3rem;
    }

    .trainer-overlay .trainer-title {
        font-size: 0.9rem;
    }

    .trainer-overlay .trainer-bio {
        font-size: 0.85rem;
    }
}
