/* =========================================
   基本設定
   ========================================= */
:root {
    --primary-color: #003366; /* 敬愛ブルー */
    --accent-color: #C1A058;  /* ゴールド */
    --text-color: #333;
    --bg-gray: #f9f9f9;
    --white: #fff;
    --font-base: "Noto Sans JP", sans-serif;
    --font-serif: "Noto Serif JP", serif;
    --font-en: "Cormorant Garamond", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-base); color: var(--text-color); line-height: 1.8; background-color: var(--white); }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* =========================================
   共通クラス
   ========================================= */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 90px 0; }
.bg-gray { background-color: var(--bg-gray); }

.section-title-wrapper { text-align: center; margin-bottom: 50px; }
.en-title { display: block; color: var(--accent-color); font-family: var(--font-en); font-size: 1.5rem; letter-spacing: 0.1em; margin-bottom: 10px; font-weight: bold; }
.ja-title { font-family: var(--font-serif); font-size: 2.2rem; color: var(--primary-color); }

/* PC/SP 表示切り替え用クラス */
@media (min-width: 769px) {
    .sp-only { display: none !important; }
}

/* =========================================
   ヘッダー
   ========================================= */
.header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; color: var(--primary-color); font-family: var(--font-serif); }

.sub-logo { 
    font-size: 1em; /* 文字サイズを本体と同じ倍率に変更 */
    color: var(--accent-color); 
    font-family: var(--font-en); 
    margin-left: 10px; 
    font-weight: bold; 
}
.btn-header { background-color: var(--primary-color); color: var(--white); padding: 10px 20px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; transition: opacity 0.3s; }
.btn-header:hover { opacity: 0.8; }

/* =========================================
   ヒーローセクション
   ========================================= */
.hero {
    height: 100vh; min-height: 600px;
    background-image: url('../images/I1.jpg'); /* 画像のパス */
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 30, 60, 0.4); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 20px; }

.hero-tag {
    font-family: var(--font-base);
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--white);
    background-color: var(--accent-color);
    display: inline-block;
    padding: 5px 20px;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    border-radius: 2px;
}

.hero-title-en { 
    font-family: var(--font-en); 
    font-size: 5rem; 
    line-height: 1.0; 
    margin-bottom: 30px; 
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); 
}

.hero-subtitle-ja { 
    font-family: var(--font-serif); 
    font-size: 1.2rem; 
    font-weight: 500; 
    letter-spacing: 0.05em; 
    line-height: 1.8;
}

/* =========================================
   校長挨拶セクション
   ========================================= */
.message-box { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
}

.message-text { flex: 1; }
.message-img-area { flex: 1; max-width: 400px; text-align: center; }

/* 校長写真 */
.principal-photo { 
    border-radius: 8px; 
    box-shadow: 10px 10px 0 var(--bg-gray); 
    width: 100%; 
    height: auto; 
}

.message-text h4 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 20px; border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 5px; font-family: var(--font-serif); }
.signer { margin-top: 30px; text-align: right; font-weight: bold; font-family: var(--font-serif); font-size: 1.1rem; }
.signer-mobile {
    margin-top: 15px;
    font-weight: bold;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* =========================================
   コンセプトセクション（強調ボックス）
   ========================================= */
.concept-intro { text-align: center; max-width: 800px; margin: 0 auto 50px; font-weight: 500; font-size: 1.1rem; }

/* 強調ボックス */
.highlight-box {
    background-color: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center; /* ここで中身をセンター寄せ */
}

.highlight-title {
    display: inline-block; /* センター寄せのためにインラインブロック化 */
    font-size: 1.8rem;
    color: var(--primary-color);
    font-family: var(--font-serif);
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    background: linear-gradient(transparent 70%, #ffeb3b 70%); /* 黄色マーカー風 */
    padding: 0 10px;
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.highlight-list li:last-child { margin-bottom: 0; }

/* テキスト強調用マーカー（薄い水色） */
.marker {
    background: linear-gradient(transparent 60%, #e1f5fe 60%);
    padding: 0 5px;
}

.intro-sub-text {
    text-align: center;
    margin-top: 30px;
    font-weight: 500;
}
/* 赤字強調用クラス */
.text-red {
    color: #bf0000;     /* 品のある濃い赤 */
    font-weight: bold;  /* 太字にしてさらに強調 */
    font-size: 1.2rem;  /* 少しだけ大きくする */
    background: linear-gradient(transparent 70%, #ffcccc 70%); /* 薄い赤のマーカー線も引く */
    padding: 0 5px;     /* マーカーのための余白 */
    display: inline-block; /* マーカーを綺麗に見せる */
}

/* スマホでの調整 */
@media (max-width: 768px) {
    .text-red {
        font-size: 1.1rem; /* スマホでは大きすぎないように調整 */
        background: linear-gradient(transparent 60%, #ffcccc 60%); /* マーカー位置調整 */
    }
}

/* チャート部分 */
.chart-wrapper { display: flex; justify-content: center; margin-bottom: 60px; }
.chart-box { display: flex; justify-content: center; align-items: center; position: relative; width: 100%; max-width: 700px; height: 350px; }
.chart-item {
    background: rgba(255,255,255,0.95);
    border: 3px solid var(--primary-color);
    width: 280px; height: 280px;
    border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.chart-item h5 { font-family: var(--font-en); font-size: 1.5rem; color: var(--primary-color); margin-bottom: 5px; line-height: 1.1; }
.chart-item p { text-align: center; font-weight: bold; font-size: 0.9rem; line-height: 1.4; }

/* 比率ラベル */
.ratio-label {
    background: var(--text-color); color: #fff;
    font-family: var(--font-en); font-weight: bold; font-size: 1.2rem;
    padding: 2px 10px; border-radius: 15px; margin-bottom: 10px;
}

.left-circle { left: 50%; transform: translateX(-85%); border-color: var(--primary-color); z-index: 1; }
.right-circle { right: 50%; transform: translateX(85%); border-color: var(--accent-color); z-index: 2; background: var(--primary-color); color: var(--white); }
.right-circle h5 { color: var(--accent-color); }
.right-circle p { color: #eee; }
.right-circle .ratio-label { background: var(--accent-color); color: var(--primary-color); }

.chart-cross { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 2.5rem; color: var(--text-color); font-family: var(--font-en); z-index: 3; background: #fff; width: 50px; height: 50px; border-radius: 50%; line-height: 50px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); font-weight: bold; }

/* =========================================
   カリキュラム詳細
   ========================================= */
.curriculum-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail-card { background: var(--white); padding: 30px 20px; border-radius: 8px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid #ddd; }
.icon-box { display: inline-block; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-family: var(--font-en); margin-bottom: 15px; font-size: 0.9rem; }
.jp { background: #eef2f6; color: var(--primary-color); border-top-color: var(--primary-color); }
.en { background: #fdf8e8; color: #9a7d3a; }
.native { background: #fceceb; color: #d9534f; }
.detail-card:nth-child(1) { border-top-color: var(--primary-color); }
.detail-card:nth-child(2) { border-top-color: var(--accent-color); }
.detail-card:nth-child(3) { border-top-color: #d9534f; }
.detail-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-color); }
.subject-list { font-weight: bold; font-size: 0.9rem; margin-bottom: 15px; color: var(--text-color); }
.desc { font-size: 0.9rem; text-align: left; color: #666; line-height: 1.6; }

/* =========================================
   担任メッセージ
   ========================================= */
.teacher-profile { display: flex; align-items: center; gap: 40px; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee; margin-bottom: 40px; }
.teacher-img { flex-shrink: 0; width: 220px; height: 220px; border-radius: 50%; overflow: hidden; border: 5px solid #eef2f6; background: #eee; }
.teacher-img img { width: 100%; height: 100%; object-fit: cover; }
.teacher-info { flex: 1; }
.teacher-info h4 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--primary-color); margin-bottom: 10px; line-height: 1.4; }
.teacher-role { color: var(--accent-color); font-weight: bold; margin-bottom: 20px; display: block; font-size: 0.9rem; }
.teacher-message { font-size: 0.95rem; line-height: 1.8; }

/* ネイティブ教員用（反転） */
.reverse { flex-direction: row-reverse; background: #fffbf0; border-color: var(--accent-color); }
.reverse .teacher-img { border-color: var(--accent-color); }

/* =========================================
   入試情報
   ========================================= */
.admission-box { background: var(--white); padding: 40px; border-radius: 8px; border: 1px solid #eee; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.admission-lead { font-weight: bold; margin-bottom: 40px; }
.exam-steps { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.step { background: #f5f5f5; padding: 25px 20px; width: 280px; border-radius: 8px; position: relative; text-align: center; }
.step-label { background: #777; color: #fff; font-size: 0.8rem; padding: 3px 12px; border-radius: 20px; display: inline-block; margin-bottom: 15px; font-weight: bold; letter-spacing: 0.05em; }
.step h5 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-color); font-family: var(--font-serif); }
.step-desc { font-size: 0.9rem; line-height: 1.6; }
.note { font-size: 0.8rem; color: #888; display: block; margin-top: 5px; }
.highlight-step { background: #fff; border: 2px solid var(--accent-color); box-shadow: 0 5px 15px rgba(193, 160, 88, 0.2); transform: scale(1.02); }
.highlight-step .step-label { background: var(--accent-color); color: var(--primary-color); }
.highlight-step h5 { color: var(--primary-color); }

/* =========================================
   イベント (CTA)
   ========================================= */
.event-section { background-color: var(--primary-color); color: var(--white); }
.event-box { text-align: center; max-width: 800px; margin: 0 auto; }
.event-badge { background: var(--accent-color); color: var(--primary-color); display: inline-block; padding: 5px 20px; font-weight: bold; border-radius: 50px; margin-bottom: 20px; }
.event-title { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 20px; }
.event-title span { font-size: 1rem; display: block; margin-top: 10px; font-weight: normal; }
.event-desc { margin-bottom: 40px; }
.event-details { text-align: left; background: var(--white); color: var(--text-color); padding: 30px; border-radius: 8px; margin-bottom: 40px; }
.event-details dl { display: flex; border-bottom: 1px solid #ddd; padding: 15px 0; }
.event-details dl:last-child { border-bottom: none; }
.event-details dt { width: 100px; font-weight: bold; color: var(--primary-color); }
.event-details dd { flex: 1; }
.btn-cta { display: inline-block; background-color: var(--accent-color); color: var(--primary-color); font-size: 1.2rem; font-weight: bold; padding: 20px 60px; border-radius: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform 0.2s; }
.btn-cta:hover { transform: scale(1.05); }
.small { font-size: 0.8rem; color: #666; }

/* フッター */
.footer { background: #222; color: #999; padding: 40px 0; text-align: center; }


/* =========================================
   クラス編成・システム情報（追加分）
   ========================================= */
.system-info-wrapper {
    margin-bottom: 50px;
}

.system-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 5px solid var(--accent-color); /* ゴールドのライン */
}

.system-main-title {
    text-align: center;
    font-family: var(--font-en);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.system-card {
    text-align: left;
}

.system-card h5 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-serif);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* アイコン装飾 */
.sys-icon-area { margin-bottom: 10px; }
.sys-icon {
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-en);
    font-size: 0.9rem;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

.sys-text {
    font-size: 1rem;
    line-height: 1.8;
}

.highlight-line {
    background: linear-gradient(transparent 60%, #fff59d 60%);
    font-weight: bold;
}

/* リストスタイル */
.sys-list {
    list-style: none;
    padding: 0;
}

.sys-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.sys-list li:last-child { margin-bottom: 0; }

.label-jp {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 3px;
}
.label-jp::before { content: "●"; color: var(--primary-color); margin-right: 5px; }

.label-en {
    color: #d9534f; /* 赤系のアクセント */
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 3px;
}
.label-en::before { content: "●"; color: #d9534f; margin-right: 5px; }

/* スマホ対応の追記 */
@media (max-width: 768px) {
    .system-grid {
        grid-template-columns: 1fr; /* 縦並び */
        gap: 30px;
    }
    .system-box {
        padding: 25px;
    }
}

/* =========================================
   Global Competence 理念バナー（図版付き）
   ========================================= */
.global-comp-wrapper {
    margin-top: 60px; /* 上のカードとの間隔 */
}

.global-comp-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    display: flex; /* 横並びレイアウト */
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 6px solid var(--primary-color); /* 上部に知的な紺ライン */
}

/* --- 左側：画像エリア --- */
.gc-image-area {
    flex: 1; /* 幅の比率 */
    text-align: center;
}

.gc-image-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* 画像に薄い枠線をつける場合 */
    border: 1px solid #eee;
}

.gc-caption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

/* --- 右側：テキストエリア --- */
.gc-text-area {
    flex: 1; /* 幅の比率 */
}

.gc-header-row {
    margin-bottom: 15px;
}

.gc-badge {
    background: #555;
    color: #fff;
    font-size: 0.75rem;
    font-family: var(--font-en);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 5px;
    vertical-align: middle;
}

.gc-header-row h4 {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1;
    margin-left: 10px;
    vertical-align: middle;
}

.gc-jp-title {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color); /* ゴールドの下線 */
    display: inline-block;
    padding-bottom: 5px;
}

.gc-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.gc-desc strong {
    color: var(--primary-color);
    background: linear-gradient(transparent 70%, #e1f5fe 70%);
}

/* ポイントリスト */
.gc-points {
    list-style: none;
    padding: 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.gc-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.gc-points li:last-child { margin-bottom: 0; }

.gc-points li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .global-comp-box {
        flex-direction: column; /* 縦並びに変更 */
        padding: 25px;
        gap: 30px;
    }

    .gc-header-row h4 {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        font-size: 1.6rem;
    }
    
    .gc-image-area {
        order: -1; /* 画像を上に持ってくる場合は -1。下にしたい場合は削除 */
        width: 100%;
    }
}
/* スマホ対応 */
@media (max-width: 768px) {
    .global-comp-box {
        flex-direction: column; /* 縦並びに変更 */
        padding: 25px;
        gap: 30px;
    }

    .gc-header-row h4 {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        font-size: 1.6rem;
    }
    
    .gc-image-area {
        order: -1; /* 画像を上に持ってくる場合は -1。下にしたい場合は削除 */
        width: 100%;
    }
}

/* スマホ対応の追記 */
@media (max-width: 768px) {
    .global-comp-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px;
        border-left: none; /* スマホでは左線なし */
        border-top: 6px solid var(--primary-color); /* 上線に変更 */
    }
    
    .global-comp-header {
        flex: auto;
        width: 100%;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        text-align: left; /* スマホでは左寄せに戻す */
    }

    .global-comp-header h4 {
        font-size: 1.6rem;
    }
}


/* =================================
   フッター (メインサイト統一デザイン)
================================== */
.site-footer {
    background-color: #003B7C; /* メインサイトと同じ濃い紺色 */
    color: #ecf0f1;
    padding: 60px 0 0;
    font-size: 0.9rem;
    margin-top: 0;
}

.site-footer a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--accent-color); /* ゴールド */
    opacity: 1;
}

.footer-container {
    display: flex;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 左側：学校情報 */
.footer-info {
    flex: 1 1 300px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    display: block;
}

.footer-info h4 {
    font-family: var(--font-base); /* LPのフォントに合わせる */
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #fff;
    font-weight: bold;
}

.footer-info p {
    margin: 0 0 10px 0;
    line-height: 1.7;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* SNSアイコン */
.footer-social {
    margin-top: 25px;
}

.footer-social a {
    font-size: 1.5rem;
    margin-right: 20px;
    display: inline-block;
}

/* 右側：ナビゲーション */
.footer-nav {
    flex: 2 1 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-nav-column {
    flex: 1 1 150px;
}

.footer-nav-column h4 {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-base);
}

.footer-nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-column li {
    margin-bottom: 12px;
}

.footer-nav-column a {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* コピーライト */
.copyright {
    padding: 20px;
    text-align: center;
    background-color: #003366; /* 少し暗くする */
}

.copyright p {
    margin: 0;
    font-size: 0.8rem;
    color: #95a5a6;
}

/* スマホ対応の追記 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 0 20px 40px; /* 横余白を追加 */
        text-align: left;
    }
    
    .footer-nav {
        gap: 40px 20px; /* 行間広め */
    }
    
    .footer-nav-column {
        flex-basis: calc(50% - 10px); /* 2列にする */
    }
}

/* =========================================
   スマホ対応 (@media) 最終微調整版
   ========================================= */
@media (max-width: 768px) {
    /* 
       ヒーロー画像の調整 
    */
    .hero {
        /* 高さはそのままでOK */
        height: 80vh;       
        min-height: 600px;  
        
        /* 
           画像の位置：
           左右: 25% 
           上下: 100% (下端合わせ)
        */
        background-position: 25% 100% !important;
        
        /* 文字の配置設定 */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* 上詰め配置 */
        align-items: center;
        
        /* 
           ▼▼▼ ここを修正しました ▼▼▼
           文字の開始位置（上の余白）を減らして、文字全体を上に引き上げます。
           140px → 90px に変更
           (もっと上げたい場合は 60px などにしてください)
        */
        padding-top: 150px;
        padding-bottom: 0;
    }

    .hero-content {
        padding: 0 20px;
        width: 100%;
        padding-bottom: 20px;
    }

    /* 
       ▼▼▼ 文字ブロックをコンパクトにする調整 ▼▼▼
    */
    .hero-tag {
        font-size: 0.9rem;
        /* 下の余白を詰める */
        margin-bottom: 15px; 
    }

    .hero-title-en { 
        font-size: 3.0rem; /* 少しだけ小さくして圧迫感を減らす */
        margin-bottom: 15px; /* 余白を詰める */
        line-height: 1.0; 
    }
    
/* スマホ対応部分（抜粋） */
    
    .hero-subtitle-ja { 
        font-size: 1rem; 
        line-height: 1.8;  /* 読みやすい行間 */
        letter-spacing: 0.05em; /* 文字間を少しだけ整える */
        margin-bottom: 0; /* 下の余白は不要（親要素で制御済み） */
    }
    
    /* 校長挨拶のレイアウト変更：写真を上に */
    .message-box { 
        flex-direction: column; 
    }
    .message-img-area { 
        order: -1; 
        margin-bottom: 20px;
        width: 100%;
        max-width: 300px;
    }
    .message-text { text-align: left; }
    .principal-photo { box-shadow: 5px 5px 0 var(--bg-gray); }

    /* コンセプト強調ボックスの調整 */
    .highlight-title { font-size: 1.5rem; } 
    .highlight-list li { font-size: 1rem; text-align: left; }

    /* チャート調整 */
    .chart-box { flex-direction: column; height: auto; padding: 20px 0; }
    .chart-item { position: relative; width: 220px; height: 220px; margin-bottom: 10px; left: auto !important; right: auto !important; transform: none !important; }
    .chart-cross { position: relative; top: auto; left: auto; transform: none; margin: -25px 0; z-index: 5; }

    .curriculum-details { grid-template-columns: 1fr; }
    
    /* 担任メッセージ */
    .teacher-profile { flex-direction: column; text-align: center; padding: 30px 20px; }
    .reverse { flex-direction: column; }
    .teacher-img { margin: 0 auto 20px; }
    .teacher-info h4 { text-align: center; }
    
    /* 入試ステップ */
    .exam-steps { flex-direction: column; align-items: center; }
    .step { width: 100%; }
    
    /* システム情報（追加分） */
    .system-grid { grid-template-columns: 1fr; gap: 30px; }
    .system-box { padding: 25px; }

    /* GCP（追加分） */
    .global-comp-box { flex-direction: column; padding: 25px; gap: 30px; }
    .gc-header-row h4 { display: block; margin-left: 0; margin-top: 5px; font-size: 1.6rem; }
    .gc-image-area { order: -1; width: 100%; }

    /* イベント詳細 */
    .event-details dl { flex-direction: column; }
    .btn-cta { width: 100%; padding: 15px; }

    /* 表示制御 */
    .pc-only { display: none !important; }
    .sp-only { display: inline; }
	
	 /* 見出し「敬愛型イマージョン教育」などのサイズ調整 */
    .ja-title {
        font-size: 1.6rem; /* 2.2remから縮小して1行に収める */
        line-height: 1.4;
    }

    /* ヘッダーの文字が大きくなった分、スマホでは少し全体を縮小して崩れを防ぐ */
    .logo {
        font-size: 1.1rem; /* スマホでは少し控えめに */
    }
	    /* ▼▼▼ ここを追加してください ▼▼▼ */
    
    .teacher-message {
        /* 1. 両端揃えにする */
        text-align: justify;
        text-justify: inter-ideograph; /* 日本語の文字間隔を自動調整 */
        
        /* 2. 文字サイズをほんの少し小さくして収まりを良くする */
        font-size: 0.9rem; 
        
        /* 3. 文字間をわずかに詰める（これが「1文字落ち」防止に効きます） */
        letter-spacing: -0.03em; 
    }
    
}
/* =========================================
   Q&Aセクション
   ========================================= */
.qa-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.qa-box {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}
.qa-box:last-child { border-bottom: none; }

.q-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.q-icon {
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-en);
    font-size: 1.2rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.q-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 5px; /* アイコンと高さを合わせる */
    line-height: 1.5;
}

.a-row {
    display: flex;
    align-items: flex-start;
}

.a-icon {
    background: var(--accent-color);
    color: var(--white);
    font-family: var(--font-en);
    font-size: 1.2rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.a-text {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
}


/* =========================================
   LINE誘導・待機ページデザイン
   ========================================= */
.status-label {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 5px 20px;
    border-radius: 30px;
    display: inline-block;
    font-family: var(--font-en);
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.ja-event-title {
    font-size: 1.2rem;
    display: block;
    margin-top: 15px;
    font-family: var(--font-base);
    font-weight: normal;
}

.event-info-text {
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 2;
}

.event-info-text strong {
    color: var(--accent-color);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--accent-color);
}

/* LINEエリア */
.line-cta-area {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.line-lead {
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.btn-line {
    display: block; /* 全幅にする */
    background-color: #06c755; /* LINE Green */
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 18px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.4);
    transition: transform 0.2s;
    text-decoration: none;
    margin-bottom: 15px;
}

.btn-line:hover {
    transform: scale(1.03);
    background-color: #05b54d;
}

.line-icon {
    font-family: sans-serif; /* LINEロゴっぽく */
    font-weight: 900;
    margin-right: 10px;
    font-size: 1.4rem;
    vertical-align: middle;
}

.line-note {
    font-size: 0.8rem;
    color: #888;
}

/* スマホ対応の追記 */
@media (max-width: 768px) {
    .line-cta-area {
        padding: 30px 20px;
    }
    .btn-line {
        font-size: 1rem;
        padding: 15px;
    }
    .q-text { font-size: 1.1rem; }
    .a-text { padding: 15px; }
}