.jb-ranking-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
    max-width: 900px;
    margin: 2em auto;
    color: #333;
    line-height: 1.5;
}
.jb-ranking-wrap * { box-sizing: border-box; }
.jb-ranking-header {
    background: #ff7405;
    padding: 1em;
    text-align: center;
    border-radius: 8px 8px 0 0;
}
.jb-ranking-header .jb-main {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.jb-register-count {
    background: #fff;
    border: 1px solid #ffd6ad;
    border-top: none;
    padding: 8px 0;
    text-align: center;
    font-size: .9em;
}
.jb-tabs {
    display: flex;
    background: #fff7ef;
    padding: 4px 8px 0;
    border: 1px solid #ffd6ad;
    border-top: none;
    border-bottom: 1px solid #ff7405;
    gap: 4px;
    margin: 0;
}
.jb-tab {
    flex: 1;
    padding: .7em .5em;
    font-size: 16px;
    font-weight: 600;
    color: #a75a20;
    background: #ffe1bf;
    border: 1px solid #ffd2aa;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}
.jb-tab.active {
    background: #fff;
    color: #ff7405;
    font-weight: 700;
    border-color: #ff7405;
    border-top: 3px solid #ff7405;
}
.jb-tab-content { border: 1px solid #ff7405; border-top: none; }
.jb-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.jb-table th {
    padding: .8em .5em;
    background: #fff7ef;
    font-size: 15px;
    border-bottom: 1px solid #ffd6ad;
    border-right: 1px solid #ffd6ad;
}
.jb-table td {
    padding: 1em .6em;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #f0f0f0;
    background: #fff;
    font-size: 15px;
}
.jb-table th:last-child,
.jb-table td:last-child { border-right: none; }
.service-logo {
    width: 120px;
    height: 60px;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.service-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ff7405;
    text-decoration: underline !important;
}
.col-rating, .col-jobs, .col-cta, .col-service { text-align: center; }
.rating-box .score { color: #ff7405; font-weight: 700; }
.rating-box .star-row { color: #f59e0b; font-size: 20px; }
.jobs-num { font-weight: 700; }
.jobs-num.unknown-text { color: #999; }
.detail-btn-container { display: inline-block; position: relative; }
.detail-btn-shadow {
    position: absolute;
    top: 3px; left: 1px; right: -1px; bottom: -3px;
    background: linear-gradient(135deg, #b45400, #8a4000);
    border-radius: 8px;
    z-index: 1;
}
.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 1.2em;
    background: linear-gradient(135deg, #ff8c1a 0%, #ff7405 30%, #e96400 70%, #d45a00 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #d45a00;
    position: relative;
    z-index: 2;
}
.detail-btn .shine-effect,
.detail-btn .gloss-effect { display: none; }

.yorisoi-agent-detail__heading {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    border-bottom: 3px solid #ff7405;
    padding-bottom: 8px;
    margin: 0 0 16px;
}
.yorisoi-agent-detail__image { margin: 0 0 16px; border-radius: 8px; overflow: hidden; }
.yorisoi-agent-detail__image img { width: 100%; height: auto; display: block; }
.yorisoi-agent-detail__desc p { font-size: 15px; color: #444; line-height: 1.75; margin: 0 0 12px; }
.yorisoi-agent-detail__specs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.yorisoi-agent-detail__specs td { border: 1px solid #e0e0e0; padding: 10px 14px; }
.yorisoi-spec-label { background: #fff7ef; font-weight: 600; width: 140px; }
.yorisoi-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c1a 0%, #ff7405 50%, #e96400 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
}
.yorisoi-agent-detail__cta { text-align: center; }

.yorisoi-review-group-label { font-size: 14px; font-weight: 700; color: #ff7405; margin: 24px 0 8px; }
.yorisoi-reviews-scroll-hint { text-align: right; font-size: 11px; color: #999; margin-bottom: 4px; }
.yorisoi-reviews-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}
.yorisoi-review-card {
    flex: 0 0 280px;
    min-width: 280px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    scroll-snap-align: start;
}
.yorisoi-review-header { padding: 14px 16px 0; }
.yorisoi-avatar-image, .yorisoi-avatar-placeholder {
    width: 44px; height: 44px; border-radius: 50%; display: block;
}
.yorisoi-avatar-placeholder { background: #f0f0f0; }
.yorisoi-review-content { padding: 12px 16px 0; max-height: 90px; overflow: hidden; }
.yorisoi-expand-checkbox:checked ~ .yorisoi-review-content { max-height: 600px; }
.yorisoi-expand-checkbox { display: none; }
.yorisoi-review-text { font-size: 13px; line-height: 1.7; color: #444; }
.yorisoi-review-overlay { padding: 8px 16px 14px; text-align: center; }
.yorisoi-expand-button {
    font-size: 12px;
    font-weight: 600;
    color: #ff7405;
    border: 1px solid #ff7405;
    border-radius: 16px;
    padding: 4px 14px;
    display: inline-block;
    cursor: pointer;
}
.yorisoi-collapse-text { display: none; }
.yorisoi-expand-checkbox:checked ~ .yorisoi-review-overlay .yorisoi-expand-text { display: none; }
.yorisoi-expand-checkbox:checked ~ .yorisoi-review-overlay .yorisoi-collapse-text { display: inline; }

.yorisoi-related-heading {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    background: whitesmoke;
    border-left: 4px solid #ff7405;
    padding: 10px 14px;
    margin: 32px 0 12px;
}
.yorisoi-related-intro { font-size: 14px; color: #555; line-height: 1.7; margin: 0 0 16px; }
.yorisoi-related-links { display: flex; flex-direction: column; gap: 12px; }
.yorisoi-related-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: #333 !important;
}
.yorisoi-related-thumb { width: 160px; flex-shrink: 0; }
.yorisoi-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yorisoi-related-body { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
.yorisoi-related-date { font-size: 12px; color: #999; margin-bottom: 4px; }
.yorisoi-related-title { font-size: 14px; font-weight: 700; line-height: 1.5; }

@media screen and (max-width: 600px) {
    .yorisoi-review-card { flex: 0 0 240px; min-width: 240px; }
    .yorisoi-related-thumb { width: 110px; }
}

