/* ============================================================
   RANKING HUB  /assets/css/pages/ranking.css
   prefix: rk-
   Accent: Gold #d4a843
   ============================================================ */

:root {
    --rk-gold:      #d4a843;
    --rk-gold-dim:  rgba(212,168,67,0.18);
    --rk-gold-line: rgba(212,168,67,0.28);
    --rk-bg:        #0c0c0e;
    --rk-card:      #101012;
    --rk-card-hov:  #18180e;
    --rk-border:    rgba(255,255,255,0.07);
    --rk-text:      #f0ece4;
    --rk-text-sub:  rgba(240,236,228,0.55);
    --rk-text-dim:  rgba(240,236,228,0.28);
    --rk-pad:       clamp(80px,14vw,240px);
}

/* ============================================================
   HERO
   bg: /assets/img/pages/ranking/hero-bg.jpg
   ============================================================ */
.rk-hero {
    position: relative;
    width: 100%;
    height: 42vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0800;
}
.rk-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/pages/ranking/hero-bg.jpg');
    background-size: cover;
    background-position: 50% 30%;
    background-color: #1a1200;
    opacity: .42;
    filter: blur(1px);
    z-index: 1;
}
.rk-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg,
        rgba(212,168,67,.18) 0%,
        rgba(10,8,0,.55)    55%,
        rgba(10,8,0,.92)   100%);
    z-index: 2;
}
.rk-hero__text {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}
.rk-hero__eyebrow {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .55em;
    color: var(--rk-gold);
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: .8;
}
.rk-hero__title {
    font-size: clamp(2.8rem,8vw,5.5rem);
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: .12em;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 16px;
    text-shadow: 0 0 40px rgba(212,168,67,.25);
}
.rk-hero__sub {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    letter-spacing: .1em;
    margin: 0;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.rk-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    height: 52px;
    background: var(--rk-bg);
    border-top:    1px solid var(--rk-border);
    border-bottom: 1px solid var(--rk-border);
    width: 100vw;
    margin-left:  calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}
.rk-divider__line {
    flex: 1;
    height: 1px;
    background: var(--rk-gold-line);
    opacity: .4;
}
.rk-divider__label {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .5em;
    color: var(--rk-gold);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============================================================
   PRIMARY — BIG TIER LIST CARD
   左: テキスト  右: ティア可視化デコレーション
   ============================================================ */
.rk-primary {
    background: var(--rk-bg);
    border-bottom: 1px solid var(--rk-border);
    width: 100vw;
    margin-left:  calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0 var(--rk-pad);
    box-sizing: border-box;
}

.rk-main-card {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--rk-border);
    border-top: none;
    background: var(--rk-card);
    min-height: 340px;
    transition: background .3s;
}
.rk-main-card:hover { background: var(--rk-card-hov); }

.rk-main-card__bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/pages/ranking/tier-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: #1a1400;
    opacity: .12;
    z-index: 0;
    transition: opacity .5s;
}
.rk-main-card:hover .rk-main-card__bg { opacity: .22; }

.rk-main-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12,12,14,.95) 30%, rgba(12,12,14,.6) 70%, rgba(12,12,14,.3) 100%);
    z-index: 1;
}

.rk-main-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px 48px 40px;
}

.rk-main-card__tag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.rk-num {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .4em;
    color: var(--rk-text-dim);
}
.rk-tag {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .35em;
    color: var(--rk-gold);
    border: 1px solid var(--rk-gold-line);
    background: var(--rk-gold-dim);
    padding: 3px 10px;
    text-transform: uppercase;
}

.rk-main-card__title {
    font-size: clamp(1.8rem,3vw,2.5rem);
    font-weight: 900;
    color: var(--rk-text);
    margin: 0 0 12px;
    line-height: 1.15;
    position: relative;
    padding-bottom: 14px;
}
.rk-main-card__title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 32px; height: 2px;
    background: var(--rk-gold);
    transition: width .4s cubic-bezier(.165,.84,.44,1);
}
.rk-main-card:hover .rk-main-card__title::after { width: 72px; }

.rk-main-card__desc {
    font-size: .88rem;
    color: var(--rk-text-sub);
    line-height: 1.8;
    margin: 0 0 28px;
}

.rk-main-card__cta {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .25em;
    color: var(--rk-gold);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--rk-gold-line);
    transition: color .25s, border-color .25s;
}
.rk-main-card:hover .rk-main-card__cta { color: #fff; border-color: rgba(255,255,255,.3); }

/* ── Tier preview deco (right side) ── */
.rk-main-card__deco {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    border-left: 1px solid var(--rk-border);
}

.rk-tier-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.rk-tier-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rk-tier-label {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .05em;
    flex-shrink: 0;
    border: 1px solid;
}

.rk-tier-row--s .rk-tier-label { color: #ffd700; border-color: rgba(255,215,0,.4); background: rgba(255,215,0,.1); }
.rk-tier-row--a .rk-tier-label { color: #ff9040; border-color: rgba(255,144,64,.4); background: rgba(255,144,64,.08); }
.rk-tier-row--b .rk-tier-label { color: #7fddff; border-color: rgba(127,221,255,.4); background: rgba(127,221,255,.08); }
.rk-tier-row--c .rk-tier-label { color: #aaa; border-color: rgba(170,170,170,.3); background: rgba(170,170,170,.06); }
.rk-tier-row--d .rk-tier-label { color: #666; border-color: rgba(102,102,102,.3); background: rgba(102,102,102,.05); }

.rk-tier-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.rk-tier-dots span {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    transition: background .3s;
}

.rk-tier-row--s .rk-tier-dots span { background: rgba(255,215,0,.15); border-color: rgba(255,215,0,.3); }
.rk-tier-row--a .rk-tier-dots span { background: rgba(255,144,64,.1);  border-color: rgba(255,144,64,.25); }
.rk-tier-row--b .rk-tier-dots span { background: rgba(127,221,255,.08); border-color: rgba(127,221,255,.2); }
.rk-main-card:hover .rk-tier-dots span { opacity: .85; }

/* ============================================================
   CRITERIA
   ============================================================ */
.rk-criteria {
    background: var(--rk-bg);
    border-bottom: 1px solid var(--rk-border);
    width: 100vw;
    margin-left:  calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 56px 0 64px;
    box-sizing: border-box;
}

.rk-criteria__inner {
    padding: 0 var(--rk-pad);
    box-sizing: border-box;
}

.rk-criteria__lead {
    margin-bottom: 36px;
}

.rk-criteria__en {
    display: block;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .5em;
    color: var(--rk-gold);
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: .7;
}

.rk-criteria__title {
    font-size: clamp(1.4rem,2.5vw,1.9rem);
    font-weight: 900;
    color: var(--rk-text);
    margin: 0 0 10px;
    line-height: 1.2;
}

.rk-criteria__desc {
    font-size: .85rem;
    color: var(--rk-text-sub);
    line-height: 1.7;
    margin: 0;
}

.rk-criteria__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--rk-border);
}

.rk-crit {
    background: var(--rk-card);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: background .3s;
}
.rk-crit::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--rk-gold);
    transition: width .4s;
}
.rk-crit:hover { background: var(--rk-card-hov); }
.rk-crit:hover::after { width: 100%; }

.rk-crit__icon {
    width: 36px;
    height: 36px;
    color: var(--rk-gold);
    opacity: .65;
    margin-bottom: 4px;
}
.rk-crit:hover .rk-crit__icon { opacity: 1; }

.rk-crit__label {
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .45em;
    color: var(--rk-gold);
    text-transform: uppercase;
}

.rk-crit__name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rk-text);
    margin: 0;
    line-height: 1.3;
}

.rk-crit__text {
    font-size: .8rem;
    color: var(--rk-text-sub);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   NAVIGATE
   ============================================================ */
.rk-nav-section {
    background: var(--rk-bg);
    border-bottom: 1px solid var(--rk-border);
    width: 100vw;
    margin-left:  calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0 var(--rk-pad);
    box-sizing: border-box;
}

.rk-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rk-border);
    border: 1px solid var(--rk-border);
    border-top: none;
}

.rk-navcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 28px;
    background: var(--rk-card);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background .3s;
}
.rk-navcard::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 0;
    background: var(--rk-gold);
    transition: height .35s;
}
.rk-navcard:hover { background: var(--rk-card-hov); }
.rk-navcard:hover::before { height: 100%; }

.rk-navcard__body { flex: 1; min-width: 0; }

.rk-navcard__en {
    display: block;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .45em;
    color: var(--rk-gold);
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: .7;
}

.rk-navcard__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--rk-text);
    margin: 0 0 5px;
    line-height: 1.3;
}

.rk-navcard__desc {
    font-size: .78rem;
    color: var(--rk-text-sub);
    line-height: 1.6;
    margin: 0;
}

.rk-navcard__arrow {
    font-size: 1rem;
    color: var(--rk-text-dim);
    flex-shrink: 0;
    transition: color .25s, transform .25s;
}
.rk-navcard:hover .rk-navcard__arrow { color: var(--rk-gold); transform: translateX(4px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .rk-main-card  { grid-template-columns: 1fr; }
    .rk-main-card__deco { display: none; }
    .rk-criteria__grid { grid-template-columns: 1fr; }
    .rk-nav-grid   { grid-template-columns: 1fr; }
    .rk-primary,
    .rk-criteria,
    .rk-nav-section {
        padding-left: 24px;
        padding-right: 24px;
    }
    .rk-divider { padding: 0 20px; }
}

@media (max-width: 768px) {
    .rk-hero { height: 36vh; min-height: 260px; }
    .rk-main-card__body { padding: 28px 20px; }
    .rk-criteria { padding: 40px 0 48px; }
    .rk-criteria__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .rk-criteria__grid { grid-template-columns: 1fr; }
}