/* ============================================================
   /study-abroad/language/ 専用スタイルシート
   GUIDE BOOK 17・18・19 準拠
   ============================================================ */

.sl-page {
    color: #1f1f1f;
}

.sl-page img {
    max-width: 100%;
    height: auto;
}

.sl-shell {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ GUIDE BOOK 17: ヒーロー（背景なし・コンテナ幅1200px） ============ */
.sl-hero {
    background: none;
}

.sl-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 36px 0 0;
}

.sl-hero__copy {
    padding: 0 20px 28px;
}

.sl-course-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    padding: 8px 30px;
    background: #ef8b28;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.sl-hero__option {
    margin: 0;
    color: #1f1f1f;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.sl-hero__title {
    margin: 4px 0 18px;
    color: #1f1f1f;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
}

.sl-hero__catch {
    margin: 0 0 16px;
    color: #1f1f1f;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.5;
}

.sl-hero__text {
    margin: 0;
    color: #1f1f1f;
    font-size: 0.98rem;
    line-height: 2;
}

.sl-hero__visual {
    margin: 0;
    text-align: center;
}

.sl-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============ 共通セクション ============ */
.sl-section {
    padding: 56px 0;
}

.sl-section--beige {
    background: #fdf1dd;
}

/* ============================================================
   見出し（タイトル周り）— このページで完全定義
   共通テンプレート(page-subpage-template.css)が h2/h3 に付ける
   下線・ボーダー・擬似要素装飾を全て無効化した上で、
   ページ独自の見出しスタイルを指定します。
   ============================================================ */
.sl-page h2,
.sl-page h3 {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    text-decoration: none !important;
    padding-bottom: 0 !important;
}

.sl-page h2::before,
.sl-page h2::after,
.sl-page h3::before,
.sl-page h3::after {
    content: none !important;
    display: none !important;
}

.sl-page .sl-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
}

/* 「語学留学とは」「3カ国留学」: dayページ「コースの強み」と同じ体裁（三角はグリーン） */
.sl-page h2.sl-heading--strength {
    color: #333333 !important;
}

.sl-page h2.sl-heading--strength::before {
    content: "" !important;
    display: block !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-top: 12px solid #3aa155 !important;
    border-right: 12px solid transparent !important;
    border-bottom: none;
    border-left: none;
}

/* オレンジ見出し（英語レベル） */
.sl-page h2.sl-heading--orange {
    color: #ef8b28 !important;
}

/* グリーン見出し */
.sl-page h2.sl-heading--green {
    color: #3aa155 !important;
}

/* 緑三角＋オレンジ太字（ホームステイ） */
.sl-page h2.sl-heading--triangle {
    color: #ef8b28 !important;
}

.sl-page h2.sl-heading--triangle::before {
    content: "" !important;
    display: block !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-left: 14px solid #3aa155 !important;
    border-top: 10px solid transparent !important;
    border-bottom: 10px solid transparent !important;
    border-right: none;
}

/* 吹き出し風フレーム（語学留学先） */
.sl-page h2.sl-heading--bubble {
    display: flex !important;
    width: fit-content !important;
    margin: 0 auto 28px !important;
    padding: 14px 40px !important;
    background: #ef8b28 !important;
    border: 3px solid #ef8b28 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    position: relative !important;
}

.sl-page h2.sl-heading--bubble::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    bottom: -14px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: none !important;
    border-top: 14px solid #ef8b28 !important;
    border-left: 10px solid transparent !important;
    border-right: 10px solid transparent !important;
    border-bottom: none !important;
}

.sl-lead-green {
    margin: 0 0 16px;
    color: #3aa155;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 900;
    line-height: 1.55;
}

.sl-subheading {
    margin: 0 0 14px;
    color: #ef8b28;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 900;
    line-height: 1.35;
}

.sl-subheading--school {
    margin-top: 44px;
}

.sl-copy {
    margin: 0;
    font-size: 0.97rem;
    line-height: 2;
}

/* 2026-10-06: 「英語レベル」— 見出しを左カラム内へ移し、上段の
   アクティビティと同じ体裁（左=見出し＋本文／右=図）に揃える */
.sl-two-col__copy .sl-heading {
    margin-bottom: 0;
}

.sl-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: center;
}
.sl-two-col--top {
    align-items: start;
}

.sl-two-col__copy {
    display: grid;
    gap: 14px;
    align-content: start;
}

.sl-two-col__visual {
    margin: 0;
    overflow: hidden;
}

.sl-two-col__visual img {
    display: block;
    width: 100%;
    height: auto;
}

.sl-beige-panel {
    padding: 28px;
    background: #fdf1dd;
    border-radius: 16px;
}

.sl-wide-visual {
    margin: 0;
    overflow: hidden;
}

.sl-wide-visual img {
    display: block;
    width: 100%;
    height: auto;
}

/* 留学先（2×2 の国カード: 国旗＋テキスト） */
.sl-country-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px 40px;
}

.sl-country {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sl-country__flag {
    flex: 0 0 auto;
    display: block;
    width: auto;
    height: 44px;
    margin-top: 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.sl-country__name {
    margin: 0 0 4px;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.4;
}

.sl-country__meta {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #444444;
}

/* ============ GUIDE BOOK 19: 3カ国留学 ============ */
.sl-section--tricolor {
    background: linear-gradient(180deg, #f2faf4 0%, #ffffff 22%);
}

.sl-tri-head {
    text-align: center;
    margin-bottom: 34px;
}

.sl-tri-lead-green {
    margin-top: 50px;
    color: #3aa155;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.5;
}

.sl-tri-lead-en {
    margin: 4px 0 14px;
    color: #3aa155;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 800;
    line-height: 1.5;
}

.sl-tri-head .sl-copy {
    text-align: left;
}

.sl-cir-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 40px;
}

.sl-circle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #3aa155;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin: 0 auto;
}

.sl-dot-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.sl-dot-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.97rem;
    line-height: 1.8;
}

.sl-dot-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef8b28;
}

.sl-cir-row__body {
    display: grid;
    gap: 6px;
}

.sl-school-photo {
    margin: 0 0 14px;
    overflow: hidden;
}

.sl-school-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.sl-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

.sl-plan-grid__plans {
    margin: 0;
    background: #eaf5ec;
    border-radius: 16px;
    padding: 18px;
    overflow: hidden;
}

.sl-plan-grid__plans img {
    display: block;
    width: 100%;
    height: auto;
}

.sl-plan-grid__photo {
    margin: 0 auto;
    max-width: 320px;
    overflow: hidden;
}

.sl-plan-grid__photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============ レスポンシブ ============ */
@media (min-width: 900px) {
    .sl-hero__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    }

    .sl-hero__copy {
        padding: 0 32px 0 40px;
    }

    .sl-two-col {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    }

    .sl-cir-row {
        grid-template-columns: 120px minmax(0, 1fr);
        align-items: center;
    }

    .sl-country-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sl-plan-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(200px, 0.6fr);
    }

    .sl-section--beige .sl-two-col {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    }
}

@media (max-width: 899px) {
    .sl-section {
        padding: 44px 0;
    }

    .sl-page .sl-heading {
        font-size: 1.55rem;
    }

    .sl-circle-label {
        width: 72px;
        height: 72px;
        font-size: 0.98rem;
    }

    .sl-page h2.sl-heading--bubble {
        padding: 12px 30px !important;
    }
}
