/* ============================================================
   /study-abroad/about/ 専用スタイルシート
   GUIDE BOOK 23「あなたにぴったりの留学は？」準拠
   ============================================================ */

.sa-frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

/* ---- ヘッダー（見出し導入部） ---- */
.sa-head {
    text-align: center;
}

.sa-eyebrow {
    margin: 0;
    color: #8a8a8a;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sa-title {
    position: relative;
    display: inline-block;
    margin: 10px 0 18px;
    color: #1f1f1f;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

/* タイトル背後の薄いオレンジの地球儀装飾 */
.sa-title::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130px;
    height: 130px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 35% 35%, #fdeacb 0%, #fbe0b6 60%, rgba(251, 224, 182, 0.4) 100%);
    border-radius: 50%;
    opacity: 0.85;
    z-index: -1;
}

.sa-head .sa-copy {
    max-width: 1200px;
    margin: 0 auto;
    color: #333333;
    font-size: 1rem;
    line-height: 2;
    text-align: left;
}

.sa-sublead {
    margin: 26px 0 0;
    color: #ef8b28;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.45;
}

/* ---- 3カード ---- */
.sa-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 30px;
}

.sa-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 26px 26px;
    background: #ffffff;
    border: 2px solid #f5a623;
    border-radius: 16px;
    overflow: hidden;
}

.sa-card__number {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5a623;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    z-index: 2;
}

.sa-card__head {
    padding-top: 60px;
    text-align: center;
}

.sa-card__illo {
    display: block;
    width: auto;
    height: 74px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.sa-card__head h3 {
    margin: 0 0 10px;
    color: #1f1f1f;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.3;
}

.sa-card__lead {
    margin: 0;
    color: #1f1f1f;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.7;
    text-align: left;
}

.sa-card__photo {
    margin: 16px 0;
    overflow: hidden;
    border-radius: 12px;
}

.sa-card__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.sa-card__list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.sa-card__list li {
    position: relative;
    padding-left: 19px;
    color: #1f1f1f;
    font-size: 0.92rem;
    line-height: 1.75;
}

.sa-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef8b28;
}

/* カード別テーマカラー */
.sa-card--pink .sa-card__list li::before   { background: #f26f9e; }
.sa-card--blue .sa-card__list li::before   { background: #5ab6f0; }
.sa-card--green .sa-card__list li::before  { background: #7fb35d; }

.sa-card--pink   { border-color: #f26f9e; }
.sa-card--blue   { border-color: #5ab6f0; }
.sa-card--green  { border-color: #7fb35d; }

/* ---- 目安レベル帯（カード下部にフル幅で固定） ---- */
.sa-card__level {
    margin: auto -26px 0;
    text-align: center;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.sa-card__level-label {
    margin: 0;
    padding: 10px 14px 9px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.sa-card__level-value {
    margin: 0;
    padding: 9px 14px 12px;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 1.02rem;
    font-weight: 900;
}

.sa-card--pink  .sa-card__level-label { background: #f26f9e; }
.sa-card--blue  .sa-card__level-label { background: #5ab6f0; }
.sa-card--green .sa-card__level-label { background: #7fb35d; }

/* ---- フッター（相談会案内） ---- */
.sa-foot {
    margin-top: 34px;
    text-align: center;
}

.sa-foot__note {
    margin: 0 0 14px;
    color: #1f1f1f;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.9;
}

.sa-foot__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 34px;
    border-radius: 999px;
    background: #ef8b28;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sa-foot__link::after {
    content: "▶";
    font-size: 0.8em;
}

.sa-foot__link:hover {
    opacity: 0.85;
}

/* ---- レスポンシブ ---- */
@media (min-width: 900px) {
    .sa-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px;
    }

    .sa-card__head h3 {
        font-size: 1.42rem;
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .sa-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .sa-card {
        padding: 0 16px 16px;
    }

    .sa-card__level {
        margin: auto -16px 0;
    }
}

@media (max-width: 599px) {
    .sa-frame {
        padding: 8px 0 0;
    }

    .sa-title::before {
        width: 96px;
        height: 96px;
    }
}

/* ============ コースバナー（常時2カラム横1列） ============ */
.sa-banners {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px;
    margin: 50px 0 0;
}

.sa-banner {
    display: block;
    overflow: hidden;
    border-radius: 0px;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.sa-banner:hover {
    opacity: 0.88;
}

.sa-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* 極小画面のみ縦積み */
@media (max-width: 480px) {
    .sa-banners {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
}

/* ============================================================
   留学者数統計セクション（「入学相談会はこちら」ボタンの上）
   ============================================================ */
.sa-stats { margin-top: 46px; }
.sa-stats__title { text-align: center; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900; line-height: 1.4; }
.sa-stats__title span { display: block; font-size: .8em; font-weight: 700; color: #555; margin-top: 6px; }
.sa-stats__grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 26px; }
.sa-stats__item { background: #fff; border: 1px solid #d8d8d8; border-radius: 16px; padding: 22px 20px 20px; }
.sa-stats__heading { text-align: center; font-size: 1.05rem; font-weight: 900; margin: 0 0 4px; }
.sa-stats__heading::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px; background: #ef8b28; vertical-align: 1px; }
.sa-stats__note { text-align: center; font-size: .78rem; color: #8a8a8a; margin: 10px 0 0; line-height: 1.6; }

/* ---- 棒グラフ（年別推移） ---- */
.sa-barchart { padding: 18px 6px 0; }
.sa-barchart__plot { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; height: 320px; border-bottom: 2px solid #d8d8d8; border-left: 2px solid #d8d8d8; padding: 0 4px; }
.sa-barchart__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1; }
.sa-barchart__value { font-size: .82rem; font-weight: 900; margin-bottom: 4px; }
.sa-barchart__bar { width: min(46px, 80%); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #2b62b8 0%, #003C8C 100%); height: calc(var(--h) * 1%); animation: sa-bar-grow 1s ease both; }
.sa-barchart__col--accent .sa-barchart__bar { background: linear-gradient(180deg, #ffab52 0%, #ef8b28 100%); }
.sa-barchart__labels { display: flex; justify-content: space-around; gap: 8px; padding: 6px 4px 0; }
.sa-barchart__labels span { flex: 1; text-align: center; font-size: .78rem; font-weight: 700; color: #555; }
@keyframes sa-bar-grow { from { height: 0; } }

/* ---- ドーナツ円グラフ ---- */
.sa-donutwrap { display: flex; align-items: center; gap: 20px; padding: 16px 4px 0; flex-wrap: wrap; justify-content: center; }
.sa-donut { position: relative; flex: 0 0 auto; width: 210px; height: 210px; border-radius: 50%; background: conic-gradient(var(--c1) 0 var(--p1), var(--c2) var(--p1) var(--p2), var(--c3) var(--p2) var(--p3), var(--c4) var(--p3) 100%); }
.sa-donut::before { content: ""; position: absolute; inset: 26%; background: #fff; border-radius: 50%; }
.sa-donut__hole { position: absolute; inset: 26%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 1; line-height: 1.3; }
.sa-donut__hole small { font-size: .72rem; font-weight: 700; color: #8a8a8a; letter-spacing: .06em; }
.sa-donut__hole strong { font-size: 1.5rem; font-weight: 900; }
.sa-donut__hole span { font-size: .75rem; font-weight: 700; }
.sa-legend { list-style: none; flex: 1 1 160px; min-width: 150px; display: grid; gap: 9px; padding: 0; margin: 0; }
.sa-legend li { display: flex; align-items: baseline; gap: 8px; font-size: .85rem; font-weight: 700; }
.sa-legend .chip { flex: 0 0 auto; align-self: center; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.sa-legend .num { margin-left: auto; font-weight: 900; white-space: nowrap; }
.sa-legend .pct { font-size: .78rem; color: #8a8a8a; font-weight: 700; white-space: nowrap; }

@media (min-width: 900px) {
    .sa-stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
