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

.rt-hero {
    background: linear-gradient(135deg, #0f2a44 0%, #1e3a5f 50%, #2a4a73 100%);
    color: #fff;
    text-align: center;
    padding: 64px 20px 56px;
    position: relative;
    overflow: hidden;
}
.rt-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(255,48,8,.10) 0%, transparent 45%);
    pointer-events: none;
}
.rt-hero > .container { position: relative; z-index: 1; }
.rt-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;
}
.rt-hero-badge i { font-size: .76rem; }
.rt-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: .02em;
}
.rt-hero-sub {
    font-size: 1rem;
    line-height: 1.85;
    margin: 0 auto;
    color: rgba(255,255,255,.92);
    max-width: 720px;
}
.rt-hero-sub strong { color: #ffd54f; }

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

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

/* リスト共通 */
.rt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.rt-list-top10 .rt-item { margin-bottom: 14px; }
.rt-list-top5 .rt-item { margin-bottom: 10px; }

.rt-item {
    position: relative;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.rt-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,42,68,.10);
    border-color: #ff3008;
}

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

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

/* パネル (展開部) */
.rt-panel {
    border-top: 1px solid #eef2f6;
    background: #fafbfc;
}
.rt-panel[hidden] { display: none !important; }
.rt-panel-inner {
    padding: 14px 18px 18px 56px;
}
.rt-panel-block {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
}
.rt-panel-block-target { border-left: 3px solid #1976d2; }
.rt-panel-block-issue  { border-left: 3px solid #ff8a65; }
.rt-panel-block-goal   { border-left: 3px solid #43a047; }
.rt-panel-block-head {
    font-size: .8rem;
    font-weight: 700;
    color: #0f2a44;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.rt-panel-block-target .rt-panel-block-head i { color: #1565c0; }
.rt-panel-block-issue  .rt-panel-block-head i { color: #ff5722; }
.rt-panel-block-goal   .rt-panel-block-head i { color: #2e7d32; }
.rt-panel-block-text {
    margin: 0;
    font-size: .85rem;
    line-height: 1.75;
    color: #4a5566;
}
.rt-panel-list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
    counter-reset: rtitem;
}
.rt-panel-list li {
    position: relative;
    font-size: .85rem;
    line-height: 1.7;
    color: #4a5566;
    padding-left: 4px;
    margin-bottom: 2px;
}
.rt-panel-list li::before {
    counter-increment: rtitem;
    content: counter(rtitem) ".";
    position: absolute;
    left: -16px;
    font-weight: 700;
    color: #0f2a44;
    font-size: .82rem;
}
.rt-panel-block-target .rt-panel-list li::before { color: #1565c0; }
.rt-panel-block-issue  .rt-panel-list li::before { color: #ff5722; }
.rt-panel-block-goal   .rt-panel-list li::before { color: #2e7d32; }
.rt-panel-empty {
    color: #7a8693;
    font-size: .85rem;
    text-align: center;
    padding: 8px 0 12px;
    margin: 0;
}
.rt-panel-actions {
    text-align: center;
    padding-top: 4px;
}
.rt-panel-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    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;
}
.rt-panel-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255,48,8,.25);
    color: #fff !important;
}

/* TOP5 用のパネル余白調整 */
.rt-item-sm .rt-panel-inner { padding: 12px 14px 16px 50px; }

/* ランクバッジ */
.rt-rank {
    position: absolute;
    top: 0; left: 0;
    width: 44px;
    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;
}
.rt-rank-num {
    font-family: 'Montserrat', 'Hiragino Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}
.rt-rank i { font-size: .85rem; margin-bottom: 3px; }

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

/* サムネ */
.rt-item-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f7fa;
    margin-right: 16px;
    display: block;
}
.rt-item-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.rt-item-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    color: #b0bac5;
    font-size: 1.8rem;
}

/* テキスト */
.rt-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rt-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f2a44;
    margin: 0 0 5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rt-item-company {
    font-size: .78rem;
    color: #7a8693;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}
.rt-item-company i { font-size: .7rem; color: #a0aab5; }
.rt-item-summary {
    font-size: .78rem;
    color: #5a6b7a;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* TOP5 (小さめ) */
.rt-item-sm .rt-item-link {
    padding: 10px 14px 10px 50px;
    min-height: 80px;
}
.rt-item-sm .rt-rank {
    width: 38px;
}
.rt-item-sm .rt-rank-num {
    font-size: 1.2rem;
}
.rt-item-sm .rt-item-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    margin-right: 12px;
}
.rt-item-sm .rt-item-title {
    font-size: .92rem;
    -webkit-line-clamp: 1;
}

/* カテゴリ別ブロック */
.rt-cat-block {
    margin-bottom: 36px;
}
.rt-cat-block:last-child { margin-bottom: 0; }
.rt-cat-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2a44;
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 4px solid #ff3008;
    line-height: 1.5;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.rt-cat-title span {
    font-weight: 600;
    color: #5a6b7a;
    font-size: .92rem;
    margin-left: 4px;
}

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

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

    .rt-item-link {
        padding: 12px 12px 12px 44px;
        min-height: 80px;
    }
    .rt-rank { width: 34px; }
    .rt-rank-num { font-size: 1.05rem; }
    .rt-rank i { font-size: .7rem; }

    .rt-item-thumb {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        margin-right: 10px;
    }
    .rt-item-title { font-size: .9rem; }
    .rt-item-summary { display: none; }
    .rt-item-arrow { display: none; }
    .rt-accordion-icon { display: flex !important; }

    .rt-panel-inner { padding: 12px 14px 14px 44px; }
    .rt-item-sm .rt-panel-inner { padding: 10px 12px 14px 38px; }
    .rt-panel-block { padding: 8px 12px; }
    .rt-panel-more { width: 100%; justify-content: center; }

    .rt-item-sm .rt-item-link {
        padding: 10px 10px 10px 38px;
        min-height: 70px;
    }
    .rt-item-sm .rt-rank { width: 30px; }
    .rt-item-sm .rt-item-thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }
    .rt-cat-title { font-size: 1rem; padding-left: 10px; }
}

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

/* 記事中CTAバナー (estimate) */
.rt-cta-banner {
    max-width: 820px;
    margin: 36px auto 14px !important;
    padding: 0 !important;
    text-align: center;
}
.rt-cta-banner a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.rt-cta-banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15,42,68,.18);
}
.rt-cta-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 内部リンク */
.rt-internal-link {
    max-width: 820px;
    margin: 8px auto 0 !important;
    text-align: right;
    padding-right: 4px;
}
.rt-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;
}
.rt-internal-link a:hover {
    color: #ff3008 !important;
    text-decoration: underline !important;
}
.rt-internal-link a i {
    font-size: .72rem;
    color: #ff3008;
}

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

/* カテゴリ別 おすすめへの誘導リンク */
.rt-internal-link-cat {
    text-align: right;
    margin: 6px auto 8px !important;
    max-width: 820px;
    padding-right: 4px;
}
.rt-internal-link-cat a {
    font-size: .85rem;
}
@media (max-width: 640px) {
    .rt-internal-link-cat { text-align: left; padding: 0 4px; }
}
