.trn-ranking-new-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 0 30px;
    box-sizing: border-box;
}

.trn-ranking-heading {
    margin-bottom: 14px;
    text-align: center;
}

.trn-ranking-heading-sub {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    color: #888;
}

.trn-ranking-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.35;
}

.trn-ranking-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trn-ranking-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

.trn-ranking-card.trn-rank-1 {
    border: 2px solid #d5aa28;
}

.trn-ranking-card.trn-rank-2 {
    border: 2px solid #aeb4bb;
}

.trn-ranking-card.trn-rank-3 {
    border: 2px solid #b87942;
}

.trn-public-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 12px;
    background: #222;
    color: #fff;
    font-weight: 700;
}

.trn-rank-1 .trn-public-rank {
    background: linear-gradient(135deg, #b48810, #e8ca62);
}

.trn-rank-2 .trn-public-rank {
    background: linear-gradient(135deg, #858b92, #c9cdd2);
}

.trn-rank-3 .trn-public-rank {
    background: linear-gradient(135deg, #985d31, #cf9362);
}

.trn-medal {
    margin-right: 4px;
    font-size: 22px;
}

.trn-public-rank-number {
    font-size: 26px;
    line-height: 1;
}

.trn-public-rank-unit {
    font-size: 14px;
}

.trn-card-inner {
    display: grid;
    grid-template-columns: minmax(190px, 34%) 1fr;
    align-items: stretch;
}

.trn-image-link {
    display: block;
    min-height: 245px;
    background: #f2f2f2;
}

.trn-therapist-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 245px;
    object-fit: cover;
}

.trn-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 245px;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
}

.trn-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
}

.trn-therapist-name {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .03em;
    color: #222;
}

.trn-therapist-name a {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-decoration: none;
}

.trn-therapist-name a:hover {
    opacity: .72;
}

.trn-profile-data {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.trn-profile-data span:not(:last-child)::after {
    content: "/";
    margin-left: 14px;
    color: #bbb;
}

.trn-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.trn-tags span {
    display: inline-block;
    padding: 4px 9px;
    background: #f1f1f1;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.trn-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 170px;
    padding: 10px 16px;
    background: #222;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: opacity .2s ease;
}

.trn-profile-button:hover {
    opacity: .8;
}

.trn-ranking-empty {
    padding: 24px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fafafa;
}

@media (max-width: 700px) {
    .trn-ranking-new-wrap {
        max-width: 100%;
        padding: 8px 8px 24px;
    }

    .trn-ranking-heading {
        margin-bottom: 16px;
    }

    .trn-ranking-heading h2 {
        font-size: 26px;
    }

    .trn-ranking-cards {
        gap: 12px;
    }

    .trn-ranking-card {
        border-radius: 10px;
    }

    .trn-public-rank {
        padding: 7px 10px;
    }

    .trn-medal {
        font-size: 18px;
    }

    .trn-public-rank-number {
        font-size: 22px;
    }

    .trn-card-inner {
        display: grid;
        grid-template-columns: 40% 60%;
        align-items: stretch;
    }

    .trn-image-link,
    .trn-therapist-image,
    .trn-no-image {
        min-height: 185px;
        height: 100%;
    }

    .trn-therapist-image {
        width: 100%;
        object-fit: cover;
        aspect-ratio: auto;
    }

    .trn-no-image {
        aspect-ratio: auto;
        padding: 8px;
        box-sizing: border-box;
        text-align: center;
        font-size: 11px;
    }

    .trn-card-content {
        padding: 14px 12px;
        justify-content: center;
        min-width: 0;
    }

    .trn-therapist-name {
        margin-bottom: 8px;
        font-size: 19px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .trn-profile-data {
        gap: 4px 8px;
        margin-bottom: 9px;
        font-size: 12px;
        line-height: 1.5;
    }

    .trn-profile-data span:not(:last-child)::after {
        margin-left: 8px;
    }

    .trn-tags {
        gap: 4px;
        margin-bottom: 10px;
    }

    .trn-tags span {
        padding: 3px 7px;
        font-size: 10px;
    }

    .trn-profile-button {
        width: auto;
        min-width: 0;
        max-width: 100%;
        padding: 8px 10px;
        box-sizing: border-box;
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .trn-card-inner {
        grid-template-columns: 42% 58%;
    }

    .trn-image-link,
    .trn-therapist-image,
    .trn-no-image {
        min-height: 170px;
    }

    .trn-card-content {
        padding: 11px 9px;
    }

    .trn-therapist-name {
        font-size: 17px;
    }

    .trn-profile-data {
        font-size: 11px;
    }

    .trn-profile-button {
        font-size: 11px;
        padding: 7px 8px;
    }
}
