/* ==============================
   グローバルページ（世界とつながる学び）
   ============================== */

.lead:has(+ .exam-banner) {
    margin-bottom: 40px;
}

/* --- exam-banner ランキング ---*/
/* 画像バナー：最後の exam-banner と h3-title の間に 40px の余白 */
.exam-banner:has(+ .h3-title),
.exam-banner:has(+ .exam-banner--text:last-of-type + .h3-title) {
    margin-bottom: 40px;
}

/* テキストフォールバック（ランキング画像がない間） */
.exam-banner--text {
    display: block;
    position: relative;
    border: 2px solid #000;
    padding: 16px 52px 16px 16px;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
}
.exam-banner--text + .exam-banner--text {
    margin-bottom: 8px;
}
.exam-banner--text:has(+ .h3-title) {
    margin-bottom: 40px;
}
.exam-banner__text-content {
    display: block;
}
.exam-banner__text-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}
.exam-banner__text-achievement {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1.4;
    margin-bottom: 6px;
}
.exam-banner__text-desc {
    font-size: 12px;
    line-height: 1.6;
    color: #444;
}
.exam-banner--text .arrow-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

/* --- グローバルニュース Swiper（card-slider--subpage-option）--- */
.card-slider--subpage-option {
    margin-left: -16px;
    margin-right: -32px;
    margin-bottom: 16px;
}
.card-slider--subpage-option .slider-btn {
    top: 193px;
}
/* タイトルを2行+…で統一（section-interest.css と同条件で上書き確保） */
.card-slider--subpage-option .interest-card__title {
    min-height: 37px; 
    max-height: calc(14px * 1.3 * 2 + 8px); 
    overflow: hidden;
}

.global-section-last .dotted-cta {
    padding-top: 0;
    margin-top: 40px;
}
.global-section-last .dotted-cta__inner {
    background: #fff;
}
.global-section-last .dotted-cta:not(:last-child) {
    margin-bottom: 40px;
}
.global-section-last .dotted-cta .links a {
    margin-left: 0;
}

