/* Frontend styles for Therapist Display Plugin */
.therapist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.therapist-item {
    text-align: center;
    position: relative;
}

.therapist-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.therapist-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 アスペクト比を維持 */
    overflow: hidden;
    margin-bottom: 10px;
}

.therapist-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.new-badge {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: #E5004F;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    z-index: 10;
    border-radius: 0 0 4px 0;
}

.therapist-item h3 {
    font-size: 18.5px;
    margin: 10px 0;
    color: #333;
    font-weight: normal;
    text-align: center;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
    .therapist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .therapist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
    }

    .therapist-item h3 {
        font-size: 16px;
        margin: 8px 0;
    }

    .new-badge {
        font-size: 11px;
        padding: 1px 6px;
    }
}