/* ============================================================
   /results/ 進路実績
   2026-10-06  Illustrator「進路」レイアウト準拠
   画像は本CSSと同一フォルダ（/admission/assets/css/）に配置
   ============================================================ */
.rp-page {
    --rp-ink: #333333;
    --rp-heading: #222222;
    --rp-cyan: #38b2ce;
    --rp-line: #c9c9c9;
    --rp-sep: #b9b9b9;
    color: var(--rp-ink);
}

/* 共通テンプレート(page-subpage-template.css)の h2/h3 装飾を無効化 */
.rp-page h2,
.rp-page h3 {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    text-decoration: none !important;
    padding: 0 !important;
}
.rp-page h2::before,
.rp-page h2::after,
.rp-page h3::before,
.rp-page h3::after {
    content: none !important;
    display: none !important;
}

.rp-section {
    padding: clamp(28px, 4vw, 52px) 0;
}
.rp-section + .rp-section {
    border-top: 1px solid #ececec;
}

/* 2カラム（左：見出し＋本文／右：写真） */
.rp-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.4vw, 32px);
    align-items: start;
}
.rp-copy {
    display: grid;
    gap: 14px;
    align-content: start;
}
.rp-title {
    margin: 0;
    color: var(--rp-heading) !important;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.rp-lead {
    margin: 0;
    color: var(--rp-ink);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 700;
    line-height: 1.85;
}
.rp-text {
    margin: 0;
    color: var(--rp-ink);
    font-size: 0.95rem;
    line-height: 2;
}
.rp-photo {
    margin: 0;
    overflow: hidden;
}
.rp-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* 進学実績ボックス */
.rp-results {
    position: relative;
    margin-top: clamp(20px, 2.6vw, 34px);
    padding: clamp(22px, 2.6vw, 34px);
    border: 1px solid var(--rp-line);
    border-radius: 2px;
}
.rp-results__badge {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 10px 24px;
    background: var(--rp-cyan);
    color: #ffffff;
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.02em;
}
.rp-list {
    margin: clamp(38px, 4.4vw, 50px) 0 0;
    color: var(--rp-ink);
    font-size: 0.95rem;
    line-height: 2.1;
    word-break: break-word;
}
.rp-sep {
    color: var(--rp-sep);
    margin: 0 0.12em;
}
.rp-note {
    margin: 14px 0 0;
    text-align: right;
    color: var(--rp-ink);
    font-size: 0.92rem;
    line-height: 1.9;
}

/* 海外大学リスト */
.rp-overseas {
    list-style: none;
    margin: clamp(38px, 4.4vw, 50px) 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.rp-overseas li {
    color: var(--rp-ink);
    font-size: 0.95rem;
    line-height: 1.9;
}
.rp-overseas__name {
    font-weight: 500;
}
.rp-overseas__note {
    margin-left: 0.4em;
    font-weight: 700;
}

/* レスポンシブ */
@media (min-width: 900px) {
    .rp-section--domestic .rp-row {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    }
    .rp-section--overseas .rp-row {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    }
}
@media (max-width: 899px) {
    .rp-section {
        padding: 30px 0;
    }
    /* SPは 見出し＋本文 → 写真 の縦積み */
    .rp-photo {
        order: 2;
    }
    .rp-copy {
        order: 1;
    }
    .rp-list,
    .rp-overseas {
        line-height: 2;
    }
    .rp-note {
        text-align: left;
    }
}
