/* ============================
   研修会社ランキングページ
   ============================ */

.rc-hero {
    background: linear-gradient(135deg, #0f2a44 0%, #1e3a5f 50%, #2a4a73 100%);
    color: #fff;
    text-align: center;
    padding: 64px 20px 56px;
    position: relative;
    overflow: hidden;
}
.rc-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(255,193,7,.10) 0%, transparent 45%),
        radial-gradient(circle at 82% 72%, rgba(25,118,210,.10) 0%, transparent 45%);
    pointer-events: none;
}
.rc-hero > .container { position: relative; z-index: 1; }
.rc-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #6b3a00;
    font-weight: 700;
    font-size: .82rem;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    letter-spacing: .02em;
}
.rc-hero-badge i { font-size: .76rem; }
.rc-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: .02em;
}
.rc-hero-sub {
    font-size: 1rem;
    line-height: 1.85;
    margin: 0 auto;
    color: rgba(255,255,255,.92);
    max-width: 720px;
}
.rc-hero-sub strong { color: #ffd54f; }

@media (max-width: 768px) {
    .rc-hero { padding: 44px 16px 36px; }
    .rc-hero-title { font-size: 1.45rem; }
    .rc-hero-sub { font-size: .9rem; }
}

/* セクション */
.rc-section {
    padding: 52px 0 60px;
    background: #fff;
}
.rc-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f2a44;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.5;
}
.rc-section-title-em { color: #ff3008; }
.rc-section-sub {
    text-align: center;
    color: #5a6b7a;
    font-size: .88rem;
    margin: 0 0 32px;
}

.rc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.rc-item {
    position: relative;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    margin-bottom: 16px;
}
.rc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,42,68,.10);
    border-color: #ff3008;
}

.rc-item-link {
    display: flex;
    align-items: stretch;
    text-decoration: none !important;
    color: inherit;
    padding: 18px 18px 18px 64px;
    min-height: 130px;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.rc-item-link:hover { text-decoration: none !important; }
.rc-item-link:focus { outline: none; }
.rc-item-link:focus-visible { box-shadow: inset 0 0 0 2px #1976d2; }

/* アコーディオンアイコン */
.rc-accordion-icon {
    transition: transform .2s ease;
}
.rc-item.is-open .rc-accordion-icon {
    transform: rotate(180deg);
    color: #ff3008;
}

/* パネル (展開部) */
.rc-panel {
    border-top: 1px solid #eef2f6;
    background: #fafbfc;
}
.rc-panel[hidden] { display: none !important; }
.rc-panel-inner {
    padding: 18px 22px 22px 64px;
}
.rc-panel-title {
    font-size: .92rem;
    font-weight: 700;
    color: #0f2a44;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rc-panel-title i { color: #ff3008; font-size: .85rem; }
.rc-panel-empty {
    color: #7a8693;
    font-size: .85rem;
    margin: 0;
    padding: 12px 0;
    text-align: center;
}

/* プランリスト */
.rc-plans {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.rc-plan {
    border-bottom: 1px solid #eef2f6;
}
.rc-plan:last-child { border-bottom: none; }
.rc-plan-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    text-decoration: none !important;
    color: inherit;
    transition: background .15s ease;
    border-radius: 4px;
}
.rc-plan-link:hover {
    background: #fff;
    text-decoration: none !important;
}
.rc-plan-rank {
    flex: 0 0 22px;
    width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f2a44;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 50%;
}
.rc-plan-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 42px;
    background: #f5f7fa;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-plan-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.rc-plan-thumb-ph { color: #b0bac5; font-size: 1.1rem; }
.rc-plan-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .9rem;
    font-weight: 600;
    color: #0f2a44;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rc-plan-arrow {
    flex: 0 0 18px;
    color: #a0aab5;
    font-size: .78rem;
}
.rc-plan-link:hover .rc-plan-arrow { color: #ff3008; }

/* パネル下部アクション */
.rc-panel-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px dashed #d8dee5;
}
.rc-panel-more {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff6b6b, #ff3008);
    color: #fff !important;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 999px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.rc-panel-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255,48,8,.25);
    color: #fff !important;
}
.rc-panel-sub {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .85rem;
    color: #5a6b7a !important;
    text-decoration: none !important;
}
.rc-panel-sub:hover { color: #1976d2 !important; text-decoration: underline !important; }

/* ランクバッジ */
.rc-rank {
    position: absolute;
    top: 0; left: 0;
    width: 52px;
    height: 100%;
    background: linear-gradient(180deg, #f5f7fa, #e8edf3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e5e9ef;
    color: #5a6b7a;
}
.rc-rank-num {
    font-family: 'Montserrat', 'Hiragino Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.rc-rank i { font-size: .95rem; margin-bottom: 4px; }

.rc-item.rank-1 .rc-rank {
    background: linear-gradient(180deg, #fff3a0, #ffc107);
    color: #5b3d05;
    border-right-color: #d39e00;
}
.rc-item.rank-2 .rc-rank {
    background: linear-gradient(180deg, #ecf0f3, #c0c8d0);
    color: #2c3e50;
    border-right-color: #94a0ad;
}
.rc-item.rank-3 .rc-rank {
    background: linear-gradient(180deg, #ffd9ad, #d6803d);
    color: #4a2400;
    border-right-color: #a85e1f;
}

/* ロゴ */
.rc-item-logo {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafbfc;
    border: 1px solid #eef2f7;
    margin-right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-item-logo img {
    max-width: 80%; max-height: 80%;
    object-fit: contain; display: block;
}
.rc-item-logo-ph {
    color: #b0bac5; font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}

/* テキスト */
.rc-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.rc-item-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f2a44;
    margin: 0;
    line-height: 1.4;
}
.rc-item-subtitle {
    font-size: .82rem;
    color: #5a6b7a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rc-item-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.rc-item-cat {
    display: inline-block;
    background: #eef3fa;
    color: #1e3a5f;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.6;
}

/* 管理者専用デバッグ表示 */
.rc-admin-debug {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
    padding: 6px 8px;
    background: #fffbe6;
    border: 1px dashed #f0c674;
    border-radius: 4px;
    font-size: .72rem;
    color: #5b3d05;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.rc-admin-debug-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #8a5a00;
    font-size: .68rem;
    padding: 2px 6px;
    background: #f5c842;
    border-radius: 3px;
    margin-right: 2px;
}
.rc-admin-debug-label i { font-size: .65rem; }
.rc-admin-debug-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    background: #fff;
    border: 1px solid #e8d088;
    border-radius: 3px;
    line-height: 1.5;
}
.rc-admin-debug-item strong {
    font-weight: 700;
    color: #0f2a44;
}
.dbg-won    { border-color: #ffc107; }
.dbg-won    strong { color: #b58400; }
.dbg-select { border-color: #64b5f6; }
.dbg-select strong { color: #1565c0; }
.dbg-hearing{ border-color: #81c784; }
.dbg-hearing strong{ color: #2e7d32; }
.dbg-wait   { border-color: #b0bec5; }
.dbg-wait   strong { color: #455a64; }
.dbg-pv     { border-color: #ce93d8; }
.dbg-pv     strong { color: #6a1b9a; }
.dbg-score  { border-color: #ffab91; }
.dbg-score  strong { color: #bf360c; }
.rc-item-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2px;
}
.rc-item-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    color: #7a8693;
    font-weight: 600;
}
.rc-item-stat i { font-size: .72rem; color: #a0aab5; }

/* パイプライン保有バッジ */
.rc-pl-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: .02em;
    line-height: 1.5;
}
.rc-pl-badge-won     { background:#fff3cd; color:#7a4f00; border:1px solid #ffc107; }
.rc-pl-badge-select  { background:#e3f2fd; color:#0d47a1; border:1px solid #64b5f6; }
.rc-pl-badge-hearing { background:#e8f5e9; color:#1b5e20; border:1px solid #81c784; }
.rc-pl-badge-wait    { background:#f5f5f5; color:#555;    border:1px solid #cfd4d9; }

.rc-item-arrow {
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #a0aab5;
    font-size: .9rem;
    margin-left: 12px;
}
.rc-item:hover .rc-item-arrow { color: #ff3008; }

.rc-empty {
    text-align: center;
    color: #7a8693;
    padding: 30px 0;
    font-size: .9rem;
}

/* モバイル */
@media (max-width: 640px) {
    .rc-section { padding: 36px 0 44px; }
    .rc-section-title { font-size: 1.2rem; }

    .rc-item-link {
        padding: 14px 12px 14px 48px;
        min-height: 100px;
    }
    .rc-rank { width: 38px; }
    .rc-rank-num { font-size: 1.2rem; }
    .rc-rank i { font-size: .78rem; }

    .rc-item-logo {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
        margin-right: 12px;
    }
    .rc-item-name { font-size: .95rem; }
    .rc-item-subtitle {
        font-size: .76rem;
        -webkit-line-clamp: 1;
    }
    .rc-item-cat { font-size: .68rem; padding: 2px 6px; }
    .rc-item-stats { gap: 10px; }
    .rc-item-stat { font-size: .74rem; }
    .rc-item-arrow { display: none; }
    .rc-accordion-icon { display: flex !important; }

    .rc-panel-inner { padding: 14px 14px 16px 48px; }
    .rc-plan-thumb { flex: 0 0 48px; width: 48px; height: 36px; }
    .rc-plan-name { font-size: .82rem; }
    .rc-panel-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .rc-panel-more { width: 100%; }
}

/* ============================
   更新日 / CTA / 内部リンク
   ============================ */
.rc-hero-update {
    margin: 4px 0 14px !important;
    color: rgba(255,255,255,.78);
    font-size: .82rem;
}

.rc-cta-banner {
    max-width: 880px;
    margin: 36px auto 14px !important;
    padding: 0 !important;
    text-align: center;
}
.rc-cta-banner a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.rc-cta-banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15,42,68,.18);
}
.rc-cta-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.rc-internal-link {
    max-width: 880px;
    margin: 8px auto 0 !important;
    text-align: right;
    padding-right: 4px;
}
.rc-internal-link a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1976d2 !important;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none !important;
    transition: color .15s ease;
}
.rc-internal-link a:hover {
    color: #ff3008 !important;
    text-decoration: underline !important;
}
.rc-internal-link a i {
    font-size: .72rem;
    color: #ff3008;
}

@media (max-width: 640px) {
    .rc-cta-banner { margin: 24px auto 10px !important; padding: 0 12px !important; }
    .rc-internal-link { text-align: left; padding: 0 4px; }
    .rc-internal-link a { font-size: .85rem; }
}
