/* ============================================================
   鎮西学院大学 社会情報学部（仮称）LP — style.css
   ============================================================ */
:root {
    --primary  : #8F1F3D;
    --primary-d: #6e1630;
    --accent   : #850914;
    --dark     : #1a1a1a;
    --gray     : #555;
    --lgray    : #888;
    --border   : #ddd;
    --bg       : #fff;
    --bg-alt   : #f5f0f1;
    --news-bg  : #f9f6f7;
    --serif    : 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    --sans     : 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    --maxw     : 1100px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--dark); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* 文節改行ユニット（SPで文節ごとに改行させるための単位。PCでは無効） */
.wb { display: inline; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 12px 20px; border-radius: 6px;
    font-size: 13px; font-weight: 700; line-height: 1.4;
    text-align: center; transition: all .2s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); }
.btn--outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); padding: 9px 22px; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn__arrow { font-size: 15px; }

/* ── HEADER BAR (PC.pngデザイン再現) ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.site-header__logo {
    display: flex; align-items: center; gap: 8px;
}
.site-header__logo-link { display: inline-block; line-height: 0; }
.site-header__logo img { height: 36px; width: auto; }
.site-header__logo-text {
    font-size: 13px; font-weight: 700; color: var(--primary);
    line-height: 1.3;
}
.site-header__right {
    text-align: right;
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}
.site-header__right strong { color: var(--primary); font-size: 14px; display: block; text-align: right; }
.site-header__line1 { display: inline-block; position: relative; left: 13px; }

/* ── FLOATING NAV ── */
.float-nav {
    position: fixed; right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex; flex-direction: column;
    background: #fff;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: -2px 2px 16px rgba(0,0,0,.15);
    border: 1px solid var(--border);
    border-right: none;
}
.float-nav__item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; padding: 16px 14px;
    color: var(--primary); font-size: 11px; font-weight: 700;
    transition: background .2s, color .2s;
    border-bottom: 1px solid var(--border);
    min-width: 64px;
}
.float-nav__item:last-child { border-bottom: none; }
.float-nav__item:hover { background: var(--primary); color: #fff; }
.float-nav__icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
}
.float-nav__icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: filter .2s;
}
/* 建物アイコンは横長なので、他と同じ大きさに見えるよう拡大 */
.float-nav__icon--wide img { width: 132%; max-width: none; height: auto; }
/* ホバー時はアイコンを白に */
.float-nav__item:hover .float-nav__icon img { filter: brightness(0) invert(1); }

/* ── HERO ── */
.hero { width: 100%; line-height: 0; overflow: hidden; }
.hero__img { width: 100%; height: auto; display: block; }
.hero__img--pc { display: block; }
.hero__img--sp { display: none; }

/* ── FACULTY OVERVIEW（白カード・FVに被せる） ── */
.faculty-overview {
    background: var(--bg-alt);
    padding: 0 0 24px;
}
.faculty-overview__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    max-width: var(--maxw);
    margin: -118px auto 0;
    padding: 18px 28px;
    display: flex;
    align-items: stretch;
    gap: 18px;
    position: relative;
    z-index: 10;
}
/* 左：マークロゴのみ（大きめ） */
.faculty-overview__title-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-right: 0;
}
.faculty-overview__mark {
    width: 128px;
    height: 128px;
    object-fit: contain;
}
/* 右側全体 */
.faculty-overview__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* 上段：学部名テキスト */
.faculty-overview__heading {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.3;
}
.faculty-overview__heading span {
    font-size: 20px;
    color: var(--primary);
    margin-left: 4px;
}
/* 区切り線 */
.faculty-overview__divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}
/* 注記 */
/* PCは右側の画像列がボタン列より背が高く、ボタン下に余白が生まれるため、
   注記をネガティブマージンでボタンのすぐ下まで引き上げる
   （注記のテキストは左寄せで短く、右端の画像とは重ならない） */
.faculty-overview__note {
    font-size: 11px;
    color: var(--lgray);
    line-height: 1.6;
    margin-top: -36px;
}
/* 下段：スペック＋ボタン＋画像 横一列 */
.faculty-overview__bottom {
    display: flex;
    align-items: center;
    gap: 20px;
}
.faculty-specs {
    display: flex;
    gap: 26px;
    flex-shrink: 0;
}
.faculty-specs__item dt {
    font-size: 12px;
    color: var(--lgray);
    margin-bottom: 3px;
}
.faculty-specs__item dd {
    font-size: 23px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
}
.faculty-specs__item dd small {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    display: block;
}
.faculty-overview__ctas {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 6px;
}
.faculty-overview__ctas .btn {
    justify-content: flex-start;
    text-align: left;
    padding: 18px 14px;
    gap: 8px;
    line-height: 1.6;
    width: 146px;
    flex-shrink: 0;
}
.faculty-overview__ctas .btn__arrow { margin-left: auto; }
.faculty-overview__img-wrap {
    margin-left: 10px;
    flex-shrink: 0;
    text-align: center;
    align-self: flex-start;
}
.faculty-overview__img-wrap img {
    width: 244px;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #e8e0e3;
    display: block;
}
.faculty-overview__img-caption {
    font-size: 11px;
    color: var(--lgray);
    text-align: center;
    margin-top: 4px;
}

/* ── NEWS ── */
.news { padding: 40px 0 48px; background: var(--bg); }
.news__header {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-bottom: 12px;
}
.news__title {
    font-family: var(--serif); font-size: 26px;
    font-weight: 900; color: var(--dark); letter-spacing: .02em;
}
.news__more { font-size: 13px; color: var(--primary); font-weight: 700; }
.news__more:hover { text-decoration: underline; }
.news__list { border-top: 1px solid var(--primary); }
.news__item {
    display: grid;
    grid-template-columns: 96px 64px 1fr 20px;
    align-items: center; gap: 12px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px; cursor: pointer;
    transition: background .15s;
}
.news__item:hover { background: var(--news-bg); }
.news__item--placeholder { color: var(--lgray); }
.news__date { font-size: 13px; color: var(--gray); white-space: nowrap; }
.news__badge {
    display: inline-block;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 3px; text-align: center;
}
.news__text { color: var(--dark); line-height: 1.5; }
.news__chevron { color: var(--primary); font-size: 18px; text-align: right; }

/* ── 3つの学びの特徴 ── */
.features { padding: 34px 0; background: var(--bg); }
.features .container { border-top: 1px solid var(--border); padding-top: 24px; }
.features__title {
    font-family: var(--serif); font-size: 22px; font-weight: 900;
    color: var(--dark); margin-bottom: 22px;
}
.features__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.feature-card {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 4px 0;
}
.feature-card + .feature-card { border-left: 1px solid var(--border); padding-left: 12px; }
.feature-card__row { display: flex; align-items: flex-start; gap: 12px; }
.feature-card__icon { flex-shrink: 0; width: 74px; }
.feature-card__icon img { width: 100%; height: auto; image-rendering: pixelated; }
.feature-card__body { flex: 1; min-width: 0; }
.feature-card__num {
    display: block; margin-bottom: 2px; line-height: 1;
}
.feature-card__lead {
    font-size: 13px; font-weight: 500; color: var(--gray);
    line-height: 1.6; margin-bottom: 4px;
}
.feature-card__num-fig {
    font-family: var(--serif); font-size: 36px; font-weight: 900;
    color: var(--primary); line-height: 1;
}
.feature-card__heading {
    font-size: 15px; font-weight: 700;
    color: var(--dark); line-height: 1.6;
    text-wrap: balance;
}
.feature-card__btn-wrap { margin-top: 18px; text-align: center; }

/* ── コース紹介 ── */
.courses { padding: 34px 0; background: var(--bg); }
.courses .container { border-top: 1px solid var(--border); padding-top: 24px; }
.courses__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.section-heading { font-family: var(--serif); font-size: 22px; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.section-sub { font-size: 13px; color: var(--gray); margin-bottom: 0; }
.courses__head .section-heading { margin-bottom: 0; }
.courses__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.course-card {
    background: #fff; border-radius: 8px;
    padding: 20px 22px;
    display: flex; align-items: center; gap: 42px;
}
.course-card--ba { border: 1.5px solid var(--primary); }
.course-card--sd { border: 1.5px solid #2c3e6e; }
.course-card__char { flex-shrink: 0; image-rendering: pixelated; align-self: center; width: auto; }
.course-card--ba .course-card__char { height: 178px; }
.course-card--sd .course-card__char { height: 158px; position: relative; top: 18px; }
.course-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.course-card__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--lgray); margin-bottom: 6px; }
.course-card__catch { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.course-card__heading { font-size: 26px; font-weight: 900; line-height: 1.3; margin-bottom: 12px; letter-spacing: .02em; }
.course-card--ba .course-card__heading { color: var(--primary); }
.course-card--sd .course-card__heading { color: #2c3e6e; }
.course-card__desc { font-size: 11.5px; color: var(--gray); line-height: 1.95; }
.course-card__btn-wrap { margin-top: auto; padding-top: 16px; text-align: right; }

/* ── 4年間の学びの流れ ── */
.journey { padding: 34px 0; background: var(--bg); }
.journey .container { border-top: 1px solid var(--border); padding-top: 24px; }
.journey .section-heading { margin-bottom: 22px; }
.journey__grid { display: flex; align-items: stretch; gap: 8px; }
.journey__arrow {
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; color: var(--dark); flex-shrink: 0;
}
.journey__card {
    flex: 1; min-width: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 16px 9px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.journey__card-icon { width: 52px; height: 56px; display: flex; align-items: flex-end; }
.journey__card-icon img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; image-rendering: pixelated; }
.journey__card-body { flex: 1; }
.journey__card-nen { font-size: 14px; font-weight: 900; color: var(--primary); line-height: 1.3; }
.journey__card-title { font-size: 15px; font-weight: 700; color: var(--dark); letter-spacing: .02em; margin-bottom: 6px; }
.journey__card-lead { font-size: 11px; font-weight: 700; color: var(--dark); line-height: 1.7; }
.journey__card-desc { font-size: 10px; color: var(--gray); line-height: 1.75; }
.journey__card-foot { display: flex; align-items: center; gap: 8px; }
.journey__lv { font-size: 13px; font-weight: 900; color: var(--dark); }
.journey__bar { flex: 1; height: 8px; border-radius: 4px; background: #e5e0e2; overflow: hidden; }
.journey__bar-fill { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* ── 想定される進路 ── */
.career { padding: 34px 0; background: var(--bg-alt); }
.career .container { padding-top: 8px; }
.career__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px; margin-bottom: 24px;
}
.career__item {
    border: 1px solid var(--border); border-radius: 6px;
    padding: 12px 10px; display: flex; align-items: center;
    gap: 8px; background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.career__icon-wrap {
    width: 60px; height: 60px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.career__icon-wrap img { width: 60px; height: 60px; object-fit: contain; }
.career__item-title { font-size: 12.5px; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1.4; }
.career__item-desc { font-size: 11px; color: var(--gray); line-height: 1.5; }
.career__cta { text-align: center; margin-top: 8px; }

/* ── Q&A ── */
.qa { padding: 34px 0; background: var(--bg); }
.qa__inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.qa__title { font-family: var(--serif); font-size: 26px; font-weight: 900; color: var(--dark); margin-bottom: 10px; }
.qa__desc { font-size: 14px; color: var(--gray); margin-bottom: 20px; line-height: 1.7; }
.qa__left { position: relative; min-height: 330px; }
/* アコーディオンの開始位置を左カラムの本文（.qa__desc）の高さに合わせる
   ＝ .qa__title の高さ（26px × 1.7）＋ margin-bottom 10px */
.qa__right { padding-top: calc(26px * 1.7 + 10px); }
.qa__cta-row { display: flex; align-items: flex-end; margin-top: 20px; }

/* キャラクター＋吹き出しのグループ（PC） */
.qa__figure {
    position: absolute; right: 46px; top: 104px;
    width: 260px; height: 217px;
    pointer-events: none;
}
.qa__chars {
    display: flex; align-items: flex-end; gap: 8px;
    position: absolute; left: 0; top: 89px;
}
.qa__chars img { height: 128px; width: auto; image-rendering: pixelated; }

/* 吹き出し（上半分をカットした開いた形） */
.qa__bubble {
    position: absolute; left: 96px; top: 4px;
    width: 164px; aspect-ratio: 200 / 108;
    container-type: inline-size;
    color: var(--primary);
}
.qa__bubble-shape {
    position: absolute; inset: 0; width: 100%; height: 100%;
    overflow: visible;
}
.qa__bubble-shape--sp { display: none; }
.qa__bubble-text {
    position: absolute; left: 5%; right: 3%; top: 4%; height: 63%;
    display: flex; flex-direction: column; justify-content: center;
    font-family: var(--sans);
    font-size: 8.6cqw; line-height: 1.5;
    font-weight: 500; color: var(--primary);
    text-align: center; white-space: nowrap;
}
.qa__bubble-text span { display: block; }

/* 人物まわりのあしらい（ドット風の四角） */
.qa__deco { position: absolute; display: block; }
.qa__deco--1 { left: -46px; top: 121px; width: 15px; height: 15px; background: #c98da0; }
.qa__deco--2 { left: -64px; top: 147px; width: 11px; height: 11px; background: #e0b6c3; }
.qa__deco--3 { left: -40px; top: 167px; width: 8px;  height: 8px;  background: #e8cdd5; }
.qa__deco--4 { left: 138px; top: 139px; width: 13px; height: 13px; background: #cf95a7; }
.qa__deco--5 { left: 162px; top: 167px; width: 9px;  height: 9px;  background: #e5c5cf; }

/* Q&A アコーディオン */
.qa__item {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
    transition: background-color .25s ease, border-color .25s ease;
}
.qa__item.is-open { background: #faeff3; border-color: #e6c8d3; }
.qa__q {
    display: flex; align-items: center; gap: 14px;
    width: 100%; text-align: left; padding: 14px 18px;
    font-family: inherit; font-size: 15px; font-weight: 700;
    color: var(--primary); line-height: 1.5;
}
.qa__badge {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-weight: 900; font-size: 16px; line-height: 1;
}
.qa__q-text { flex: 1 1 auto; }
.qa__chev { flex: 0 0 auto; width: 18px; transition: transform .3s ease; }
.qa__chev svg { width: 100%; height: auto; display: block; }
.qa__item.is-open .qa__chev { transform: rotate(180deg); }
.qa__a-wrap { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.qa__a { padding: 0 20px 18px 66px; font-size: 14px; color: var(--gray); line-height: 1.8; }

/* 中間幅（タブレット〜小さめのPC）：本文と重なるため、
   キャラクター＋吹き出しはボタン行の下（右寄せ）に通常フローで配置 */
@media (min-width: 768px) and (max-width: 1099px) {
    .qa__left { min-height: 0; }
    .qa__cta-row { align-items: flex-start; flex-wrap: wrap; }
    .qa__cta-row .btn { flex: 0 0 auto; }
    .qa__figure {
        position: relative; right: auto; top: auto;
        flex: 0 0 260px; margin: -14px 0 0 auto;
    }
}

/* ── FOOTER ── */
.footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 36px 0; }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.footer__logo-link { display: inline-block; line-height: 0; }
.footer__logo { height: 28px; width: auto; margin-bottom: 10px; }
.footer__address { font-size: 12px; line-height: 1.9; }
.footer__dept { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer__sns { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.footer__sns-link { width: 28px; height: 28px; color: #fff; }
.footer__sns-link svg { width: 100%; height: 100%; }
.footer__top-btn {
    margin-left: auto; width: 32px; height: 32px;
    background: rgba(255,255,255,.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; transition: background .2s;
}
.footer__top-btn:hover { background: rgba(255,255,255,.35); }
/* 助成表記 */
.footer__grant {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 28px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.25);
}
.footer__grant-label { font-size: 15px; font-weight: 400; color: #fff; }
.footer__grant-logo { height: 40px; width: auto; }
.footer__grant-note { font-size: 14px; font-weight: 400; color: #fff; }

/* ── MODAL ── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 200;
}
.modal-overlay.is-open { display: block; }
.modal {
    display: none; position: fixed;
    top: 50%; right: 0; transform: translateY(-50%);
    width: min(460px, 90vw); max-height: 85vh;
    background: var(--bg); border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 28px rgba(0,0,0,.16);
    z-index: 300; overflow-y: auto;
    padding: 32px 28px 28px;
    flex-direction: column; gap: 14px;
}
.modal.is-open { display: flex; }
.modal__close {
    position: absolute; top: 14px; right: 16px;
    font-size: 20px; color: var(--gray);
}
.modal__close:hover { color: var(--primary); }
.modal__title {
    font-family: var(--serif); font-size: 19px; font-weight: 900;
    color: var(--primary); line-height: 1.4; padding-right: 28px;
    border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 2px;
}
.modal__body { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--gray); line-height: 1.75; }
.modal__img { width: 100%; border-radius: 8px; }
.modal__char { width: 100px; margin: 0 auto; }
.modal__steps {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: var(--primary);
    background: var(--bg-alt); padding: 8px 12px; border-radius: 6px;
}
.modal__career-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; text-align: center; }
.modal__career-grid div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.modal__career-grid img { width: 44px; height: 44px; object-fit: contain; }
.modal__career-grid p { font-size: 11px; color: var(--gray); line-height: 1.4; }
.modal__qa-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.modal__qa-item:last-child { border-bottom: none; }
.modal__q { font-weight: 700; color: var(--primary); margin-bottom: 5px; font-size: 13px; }
.modal__a { color: var(--gray); font-size: 13px; }
.modal__body h4 { font-size: 13px; font-weight: 700; color: var(--dark); margin-top: 6px; }
.modal__body ul { padding-left: 4px; }
.modal__body ul li { font-size: 12px; padding-left: 10px; position: relative; }
.modal__body ul li::before { content: '●'; position: absolute; left: 0; font-size: 7px; color: var(--primary); top: 5px; }

/* ── モーダル内 ステップカード ── */
.step-list { display: flex; flex-direction: column; gap: 12px; }
.step-card {
    background: var(--bg-alt); border-radius: 8px;
    padding: 12px 14px; border-left: 4px solid var(--primary);
}
.step-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.step-card__num {
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    padding: 3px 10px; border-radius: 3px; flex-shrink: 0;
}
.step-card__title { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.step-card__desc { font-size: 12.5px; color: var(--gray); line-height: 1.75; }

/* ============================================================
   ハンバーガー／ドロワー（SP専用・PCでは非表示）
   ============================================================ */
.site-header__menu { display: none; }
.drawer { display: none; }

/* PC・タブレットではモーダル下部の閉じるボタンを隠す */
.modal__close-btn { display: none; }

/* ============================================================
   RESPONSIVE ─ SP（〜767px）
   ============================================================ */
@media screen and (max-width: 767px) {

    /* ── 共通 ── */
    .container { padding: 0 16px; }

    /* ── ヘッダー ── */
    .site-header {
        height: 56px; padding: 0 0 0 14px;
        justify-content: space-between;
    }
    .site-header__logo img { height: 28px; }
    .site-header__right { display: none; }
    .site-header__menu {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 3px;
        width: 56px; height: 56px;
        background: var(--primary); color: #fff;
        flex-shrink: 0;
    }
    .site-header__menu-icon { display: flex; flex-direction: column; gap: 4px; width: 22px; }
    .site-header__menu-icon i { display: block; height: 2px; background: #fff; border-radius: 1px; }
    .site-header__menu-label { font-size: 9px; font-weight: 700; letter-spacing: .06em; }

    /* ── ドロワー ── */
    /* 背景は半透明のオーバーレイのみ。Q&Aより下はパネルを出さず、
       裏側のSPページが透けて見えるようにする */
    .drawer {
        display: block; position: fixed; inset: 0;
        background: rgba(26, 26, 26, .45);
        z-index: 600; padding: 0;
        opacity: 0; visibility: hidden; transition: opacity .25s;
    }
    .drawer.is-open { opacity: 1; visibility: visible; }
    /* 白い面はメニュー項目の高さぶんだけ */
    .drawer__panel {
        position: relative;
        background: #fff;
        padding: 64px 24px 8px;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    }
    .drawer__close {
        position: absolute; top: 14px; right: 18px;
        font-size: 30px; line-height: 1; color: var(--primary);
    }
    .drawer__nav { display: flex; flex-direction: column; }
    .drawer__item {
        display: flex; align-items: center; gap: 16px;
        padding: 18px 8px; font-size: 16px; font-weight: 700;
        color: var(--primary); border-bottom: 1px solid var(--border);
    }
    .drawer__item:last-child { border-bottom: none; }
    /* アイコンは全項目同じ枠サイズ＝テキストの開始位置が揃う */
    .drawer__icon {
        width: 34px; height: 34px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
    }
    .drawer__icon img { width: 100%; height: 100%; object-fit: contain; }
    /* 進路（建物）アイコンは余白が多く小さく見えるため、枠を保ったまま拡大 */
    .drawer__icon--wide img { transform: scale(1.34); }

    /* ── フローティングナビは非表示 ── */
    .float-nav { display: none; }

    /* ── FV ── */
    .hero__img--pc { display: none; }
    /* fv_sp.png 上部のロゴ帯（ヘッダーと重複）をカットし、その分だけ全体を上に詰める
       84px / 750px = 11.2vw */
    .hero__img--sp { display: block; margin-top: -11.2vw; }

    /* ── 学部概要 ── */
    .faculty-overview { padding: 0 0 20px; }
    /* FV画像に対する比率で重ねる（ピンクの女子の右足下の赤い花が1つ見える位置） */
    .faculty-overview__card {
        margin: -18.4vw 16px 0; padding: 16px 16px;
        flex-direction: column; gap: 10px; border-radius: 10px;
    }
    .faculty-overview__title-block { display: none; }
    .faculty-overview__heading {
        font-size: clamp(16px, 4.9vw, 20px);
        display: flex; align-items: center; gap: 9px;
    }
    .faculty-overview__heading::before {
        content: ""; flex-shrink: 0;
        width: clamp(28px, 8.6vw, 36px); height: clamp(28px, 8.6vw, 36px);
        background: url("images/logo_mark_red.png") center/contain no-repeat;
    }
    .faculty-overview__heading span { font-size: clamp(16px, 4.9vw, 20px); }
    /* グレーの横線が2本重なるため、hr側を非表示にして詰める */
    .faculty-overview__divider { display: none; }
    .faculty-overview__right { gap: 6px; }
    /* 注記は学部名のすぐ下へ */
    .faculty-overview__heading { order: 0; }
    .faculty-overview__note {
        order: 1; margin-top: 0;
        font-size: clamp(9.5px, 2.7vw, 10.5px);
    }
    .faculty-overview__bottom { order: 2; flex-direction: column; align-items: stretch; gap: 14px; }
    .faculty-specs {
        flex-direction: column; gap: 0;
        border-top: 1px solid var(--border);
    }
    .faculty-specs__item {
        display: flex; align-items: center; gap: 12px;
        border-bottom: 1px solid var(--border); padding: 8px 2px;
    }
    .faculty-specs__item dt { width: clamp(62px, 20.3vw, 76px); flex-shrink: 0; margin-bottom: 0; font-size: 11px; }
    /* 狭い端末で「2028年4月」が途中で折れないように */
    .faculty-specs__item dd {
        font-size: clamp(15px, 4.8vw, 18px);
        display: flex; align-items: baseline; gap: 6px;
        flex-wrap: wrap; white-space: nowrap;
    }
    .faculty-specs__item dd small {
        display: inline; white-space: normal;
        font-size: clamp(10px, 3.2vw, 12px);
    }
    .faculty-overview__ctas { flex-direction: column; gap: 10px; margin-left: 0; }
    /* 「学部について詳しく見る」を1行に。文字サイズは端末幅で自動調整 */
    .faculty-overview__ctas .btn {
        width: 100%; padding: 15px 16px;
        font-size: clamp(13.5px, 4.1vw, 16.5px);
        line-height: 1.4;
    }
    .faculty-overview__ctas .btn br { display: none; }
    .faculty-overview__img-wrap { margin: 0; padding: 0; align-self: stretch; }
    .faculty-overview__img-wrap img { width: 100%; }

    /* ── NEWS ── */
    .news { padding: 24px 0; }
    .news__title { font-size: 20px; }
    .news__item { grid-template-columns: auto auto 1fr 14px; gap: 4px 10px; padding: 12px 2px; }
    .news__date { font-size: 11px; grid-row: 1; grid-column: 1; }
    .news__badge { grid-row: 1; grid-column: 2; justify-self: start; font-size: 10px; }
    .news__text { grid-column: 1 / 4; grid-row: 2; font-size: 13px; }
    .news__chevron { grid-row: 1 / span 2; grid-column: 4; align-self: center; }

    /* ── セクション共通 ── */
    .features, .courses, .journey, .career, .qa { padding: 26px 0; }
    .features .container,
    .courses .container,
    .journey .container { padding-top: 20px; }
    .features__title, .section-heading, .qa__title { font-size: 19px; }

    /* ── 3つの学びの特徴 ── */
    .features__grid { grid-template-columns: 1fr; gap: 0; }
    .feature-card {
        padding: 16px 0; border-left: none !important;
        border-bottom: 1px solid var(--border);
    }
    /* PC用の padding-left が残っていて02・03だけ右にずれていたのを解除 */
    .feature-card + .feature-card { padding-left: 0; }
    .feature-card:last-child { border-bottom: none; }
    .feature-card__row { gap: 12px; align-items: center; }
    .feature-card__icon { width: 56px; }
    .feature-card__num { margin-bottom: 0; }
    .feature-card__num-fig { font-size: 26px; }
    /* 01の下は改行せず1行に（リード文＋見出しを同じ行に流す） */
    .feature-card__body { font-size: 0; }
    .feature-card__lead,
    .feature-card__heading {
        display: inline;
        white-space: nowrap;   /* 各フレーズの途中では折り返さない */
    }
    .feature-card__lead { font-size: clamp(11px, 3.2vw, 13px); }
    .feature-card__heading { font-size: clamp(12px, 3.6vw, 14.5px); }
    .feature-card__btn-wrap { margin-top: 12px; text-align: left; padding-left: 68px; }

    /* ── コース紹介 ── */
    .courses__head { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 14px; }
    .courses__grid { grid-template-columns: 1fr; gap: 16px; }
    .course-card { padding: 18px 16px; gap: 14px; align-items: center; }
    .course-card--ba .course-card__char { height: 116px; }
    .course-card--sd .course-card__char { height: 104px; top: 0; }
    .course-card__label { font-size: 10px; }
    .course-card__catch { font-size: 12px; }
    .course-card__heading { font-size: 19px; margin-bottom: 8px; }
    .course-card__desc { font-size: 12px; }
    .course-card__desc br { display: none; }
    .course-card__btn-wrap { padding-top: 12px; }

    /* ── 4年間の学びの流れ ── */
    .journey__grid { flex-direction: column; gap: 6px; }
    .journey__card { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 14px; gap: 12px; }
    .journey__card-icon { width: 46px; height: 46px; }
    .journey__card-body { flex: 1; min-width: 0; }
    .journey__card-desc, .journey__card-lead { font-size: 12px; }
    .journey__card-desc br { display: none; }
    .journey__card-title { font-size: 16px; }
    .journey__card-nen { font-size: 13px; }
    .journey__card-foot { width: 100%; }
    .journey__arrow { transform: rotate(90deg); font-size: 15px; padding: 0; }

    /* ── SP用 改行コントロール ──
       .wb を inline-block にすることで「文節の途中では折り返さない」。
       画面幅に入りきる文節までを1行にまとめ、端末幅が変わっても
       単語の途中で切れた不自然な改行が起きないようにする。 */
    .wb { display: inline-block; }
    .career__item-title,
    .career__item-desc,
    .course-card__desc,
    .journey__card-desc,
    .journey__card-lead,
    .qa__desc,
    .qa__a {
        word-break: auto-phrase;   /* 対応ブラウザでは文節単位で自動改行 */
        line-break: strict;        /* 禁則処理を厳格に */
        text-wrap: pretty;
    }

    /* ── 想定される進路 ── */
    .career .container { padding-top: 4px; }
    .career__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .career__item { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; }
    .career__icon-wrap, .career__icon-wrap img { width: 46px; height: 46px; }
    .career__item-title { font-size: clamp(10px, 3.2vw, 12.5px); }
    .career__item-desc { font-size: clamp(9.5px, 2.9vw, 11px); }
    .career__item-desc br { display: none; }

    /* ── Q&A ── */
    .qa__inner { grid-template-columns: 1fr; gap: 20px; }
    .qa__desc { font-size: 13px; max-width: none; }
    .qa__desc br { display: none; }
    .qa__left { min-height: 0; }
    /* SPはPCのグループ配置を解除（吹き出しは一旦非表示） */
    .qa__right { padding-top: 0; }
    .qa__left { min-height: 0; }
    .qa__cta-row { align-items: flex-end; gap: 0; margin-top: 14px; }
    .qa__cta-row .btn { flex: 0 0 auto; }
    /* SPもキャラクター＋吹き出し＋あしらいを1グループとして配置 */
    /* ボタンを削除したので左寄せ */
    .qa__figure {
        display: block; position: relative;
        right: auto; top: auto;
        flex: 0 0 auto; width: 254px; height: 150px;
        margin: 0 auto 0 0;
    }
    .qa__chars { position: absolute; left: 56px; top: auto; bottom: 0; margin: 0; }
    .qa__chars img { height: 96px; }
    /* 本体は口より上。しっぽが左下に伸びる */
    .qa__bubble {
        display: block; left: 116px; top: 5px;
        width: 134px; aspect-ratio: 228 / 150;
    }
    /* 本文は吹き出し本体（viewBox x 28〜224 / y 4〜76）の範囲に合わせる */
    .qa__bubble-text {
        left: 15%; right: 5%; top: 2.7%; height: 48%;
        font-size: 8.6cqw;
    }
    /* SPは長いしっぽのSVGに切り替え */
    .qa__bubble-shape--pc { display: none; }
    .qa__bubble-shape--sp { display: block; }
    /* PCと同じ□のあしらい（人物サイズ比 0.75 で縮小配置） */
    .qa__deco { display: block; }
    .qa__deco--1 { left: 22px;  top: 78px;  width: 11px; height: 11px; }
    .qa__deco--2 { left: 8px;   top: 98px;  width: 8px;  height: 8px; }
    .qa__deco--3 { left: 26px;  top: 113px; width: 6px;  height: 6px; }
    .qa__deco--4 { left: 160px; top: 92px;  width: 10px; height: 10px; }
    .qa__deco--5 { left: 178px; top: 113px; width: 7px;  height: 7px; }
    .qa__q { font-size: 13px; padding: 12px 14px; gap: 10px; }
    .qa__badge { width: 28px; height: 28px; font-size: 14px; }
    .qa__chev { width: 15px; }
    .qa__a { font-size: 12.5px; padding: 0 14px 14px 52px; }

    /* ── モーダル ── */
    .modal {
        top: auto; bottom: 0; right: 0; left: 0;
        transform: none; width: 100%; max-height: 88vh;
        border-radius: 12px 12px 0 0; padding: 24px 18px 20px;
    }
    .modal__title { font-size: 16px; }
    .modal__body { font-size: 13px; }
    .modal__close-btn {
        display: block; width: 100%; margin-top: 16px;
        background: var(--primary); color: #fff;
        font-size: 14px; font-weight: 700; padding: 13px;
        border-radius: 6px;
    }
    .step-card__title { font-size: 13px; }
    .step-card__desc { font-size: 12px; }

    /* ── フッター ── */
    .footer { padding: 28px 0; }
    .footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .footer__top-btn { margin-left: auto; }
    .footer__sns { justify-content: flex-start; }
    .footer__grant {
        margin-top: 22px; padding-top: 18px;
        flex-direction: row; flex-wrap: wrap; align-items: center;
        gap: 10px 10px;
    }
    .footer__grant-label { font-size: 13px; font-weight: 400; }
    .footer__grant-logo { height: 32px; }
    /* 「助成：＋ロゴ」で1行、選定校は次の行へ */
    .footer__grant-note { flex: 0 0 100%; font-size: 12px; font-weight: 400; line-height: 1.6; }
}

