/* ===== リニューアル修正（2026-10）: style.css の後に読み込む ===== */
/* MVバッジ：「国立医学生」を数値の80%に（従来は親基準の0.8emで小さくなっていた） */
.c-mv__badge-text--word { font-size: 0.9rem; }
@media (width >= 48rem) { .c-mv__badge-text--word { font-size: 1.44rem; } }

/* 合格実績 */
.c-achv__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
.c-achv__split > div { background: var(--color-white); border-radius: var(--radius-lg); padding: 0.875rem 1rem; text-align: center; }
.c-achv__split dt { font-size: var(--text-sm); font-weight: 700; }
.c-achv__split dd { font-size: var(--text-sm); font-weight: 700; }
.c-achv__split .c-num { font-size: var(--text-4xl); color: var(--color-brand); line-height: 1.15; margin-right: 0.1em; }
.c-achv__title { font-weight: 700; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-ink); margin-top: 2rem; }
.c-achv__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.c-achv__list li { padding-block: 0.625rem; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); font-weight: 700; line-height: 1.5; }
.c-achv__list li span { color: var(--color-brand); white-space: nowrap; }
.c-achv__list--sub li { font-weight: 400; }
@media (width >= 48rem) {
  .c-achv__split { gap: 1rem; }
  .c-achv__list { gap: 0 2rem; }
  .c-achv__list li { font-size: var(--text-base); }
}

/* LINE追従バナー（SP）：×を控えめにし、中身を画面中央に揃える */
@media (width < 48rem) {
  .c-float { padding: 0.625rem 1rem 0.75rem; }
  .c-float__close { top: 0; right: 0; width: 2rem; height: 2rem; font-size: 0.875rem; opacity: 0.45; }
}

/* CTA：余白を詰め、見出しを大きく。SPは中央揃え */
.c-cta__body p { text-wrap: pretty; }
body .c-cta { gap: 1rem; padding: 1rem; }
.c-cta__body { gap: 0.625rem; }
.c-cta__action { margin-top: 0.25rem; }
.c-cta__title { font-size: var(--text-2xl); line-height: 1.4; }
@media (width < 48rem) { .c-cta__body { text-align: center; } }
@media (width >= 48rem) {
  body .c-cta { gap: 2rem; padding: 2rem; }
  .c-cta__title { font-size: var(--text-3xl); }
}

/* 文節単位で改行（途中で折り返さない） */
.u-phrase { display: inline-block; }

/* MVバッジ：2つに絞り、大きく・左右に余白 */
.c-mv__badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-mv__badges li { padding: 0.625rem 1rem; }
.c-mv__badges svg { width: 2rem; height: 2rem; }
.c-mv__badge-text { font-size: 1.4rem; }
@media (width >= 48rem) {
  .c-mv__badges { grid-template-columns: repeat(2, 17rem); max-width: 35.5rem; gap: 1.5rem; }
  .c-mv__badges li { min-height: 7rem; padding: 0.75rem 1.25rem; }
  .c-mv__badges svg { width: 2.5rem; height: 2.5rem; }
  .c-mv__badge-text { font-size: 2.3rem; }
}

/* MV（SP）：上部で背景写真を見せ、文字を下げてグラデーションで白へ */
@media (width < 48rem) {
  .c-mv__slide { background-position: 65% top; }
  .c-mv__slides::after {
    background: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0) 20%, rgb(255 255 255 / .85) 40%, rgb(255 255 255 / .95) 55%, rgb(255 255 255 / .95) 100%);
  }
  /* 写真を大きく見せるため、文字の開始を下げた（2026-11 先方確認。15rem → 18rem） */
  .c-mv__body { padding-top: 18rem; }
}

/* 無料オンライン相談：流れ（5ステップ） */
.c-flow5 { display: grid; gap: 0.75rem; counter-reset: none; }
.c-flow5 li { display: grid; grid-template-columns: 2.75rem minmax(0,1fr); column-gap: 0.875rem; align-items: center; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 0.875rem 1rem; }
.c-flow5__num { grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-brand); color: var(--color-white); font-weight: 700; font-size: 1.125rem; }
.c-flow5 h3 { font-size: var(--text-base); line-height: 1.4; margin: 0; }
.c-flow5 p { font-size: var(--text-sm); line-height: 1.6; margin: 0; }
@media (width >= 64rem) {
  .c-flow5 { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; }
  .c-flow5 li { grid-template-columns: 1fr; text-align: center; justify-items: center; align-content: start; row-gap: 0.5rem; padding: 1.5rem 1rem; }
  .c-flow5__num { grid-row: auto; width: 3rem; height: 3rem; }
  .c-flow5 h3 { font-size: var(--text-lg); }
}
/* 持ち帰れる学習計画＋予約パネル */
.c-plan { display: grid; gap: 1.5rem; margin-top: 3rem; }
.c-plan__fig { margin: 0; }
.c-plan__fig img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: 0 2px 12px rgb(0 0 0 / .08); }
.c-plan__title { font-size: var(--text-xl); line-height: 1.5; text-align: center; margin-bottom: 1.25rem; }
@media (width >= 64rem) {
  .c-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; max-width: 64rem; margin-inline: auto; margin-top: 4rem; }
  .c-plan__title { font-size: var(--text-2xl); text-align: left; }
}

.c-plan__title { font-weight: 700; text-align: center; }
@media (width >= 64rem) { .c-plan__title { text-align: center; } .c-plan { align-items: end; } }

@media (width < 48rem) { .c-plan__slash { display: none; } }

/* ステップ内CTAボタン：PCは中央揃え */
@media (width >= 48rem) { .c-steps__action { display: flex; justify-content: center; } }

/* ステップ下部のボタン（本文・画像の外、カード中央） */
.c-steps__action--center { padding: 0 1.25rem 1.25rem; }
@media (width >= 48rem) { .c-steps__action--center { padding: 0 2rem 2rem; margin-top: -0.5rem; } }

.l-header__cta { white-space: nowrap; }

/* ドロワー：「コース一覧」はリンク、右の▼で5コースを開閉 */
.l-drawer__list summary > a { flex: 1; color: inherit; text-decoration: none; }
.l-drawer__list summary::after { content: "▼"; font-size: 0.75rem; padding: 0.5rem 0.25rem 0.5rem 1.5rem; transition: transform .2s; }
.l-drawer__list details[open] summary::after { content: "▼"; transform: rotate(180deg); }

/* MVサブコピー：キャッチの文字の左端に合わせて少し右へ */
.c-mv__lead { padding-left: 0.25rem; }
@media (width >= 48rem) { .c-mv__lead { padding-left: 0.375rem; } }

/* 強調（合格率80%など） */
.c-em { color: var(--color-brand); font-weight: 700; font-size: 1.25em; }

/* 併用プラン */
.c-combo-wrap { margin-top: 3rem; padding: 1.5rem 1.25rem; background: var(--color-white); border: 2px solid var(--color-brand); border-radius: var(--radius-lg); }
.c-combo-wrap__title { font-size: var(--text-xl); text-align: center; color: var(--color-brand); margin-bottom: 0.75rem; }
.c-combo-wrap__lead { font-size: var(--text-sm); line-height: 1.8; margin-top: 0.5rem; }
.c-combo { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.c-combo__item { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem; }
.c-combo__name { font-weight: 700; }
.c-combo__price { color: var(--color-brand); font-weight: 700; margin-top: 0.25rem; }
.c-combo__price .c-num { font-size: var(--text-2xl); }
.c-combo__dl { display: grid; gap: 0.25rem; margin-top: 0.5rem; font-size: var(--text-sm); }
.c-combo__dl > div { display: flex; gap: 0.75rem; }
.c-combo__dl dt { flex: none; width: 4.5rem; font-weight: 700; }
@media (width >= 48rem) {
  .c-combo-wrap { padding: 2rem; }
  .c-combo-wrap__lead { text-align: center; }
  .c-combo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
/* コース一覧：料金表示・併用カード */
.c-card__price { font-weight: 700; color: var(--color-brand); }
.c-card__price .c-num { font-size: var(--text-2xl); }
.c-card--combo { border: 2px dashed var(--color-brand); }

.c-card__price small { display: block; font-size: var(--text-xs); color: var(--color-ink); font-weight: 700; }
@media (width >= 48rem) {
  .c-card--row:has(.c-card__price) { grid-template-columns: 15rem minmax(0, 1fr) 9.5rem auto; }
  .c-card__price { white-space: nowrap; }
}

@media (width < 48rem) { .c-combo-wrap__title { font-size: 1.125rem; white-space: nowrap; } .c-combo-wrap__lead { text-align: center; } }

/* ===== トップ修正（2026-10-21 フィードバック） ===== */
.c-mv__lead { letter-spacing: 0.06em; }
/* FVのリード：Safari（iPhone）は text-wrap: pretty の行の組み直しで「進／捗」のように単語の途中で折り返すため、通常の折り返しに戻す。SP の改行位置は <br class="md:hidden"> で決めている */
.c-mv__lead { text-wrap: wrap; }
.c-mv__badges li { justify-content: center; }
.c-course-top > .c-card { position: relative; overflow: visible; }
.c-course-top .c-card__meta { position: absolute; top: -0.75rem; left: 1.25rem; margin: 0; }
.c-news--top > li:nth-child(n+6) { display: none; }
@media (width < 48rem) { .c-news--top > li:nth-child(n+4) { display: none; } }
@media (width >= 48rem) {
  .c-cta__body p .u-phrase { display: inline; }
  .c-float { width: auto; }
  .c-float__lead { white-space: nowrap; }
}

.c-page-header__cta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.c-page-header__note { font-size: var(--text-xs); font-weight: 700; opacity: 0.9; }

/* ===== 各ページ修正（2026-10-21 フィードバック） ===== */
.c-faq__q-text { word-break: auto-phrase; text-wrap: pretty; }
.c-table thead td { border-bottom: 2px solid var(--color-brand); }
.c-table--fixed thead tr > :first-child { width: 11rem; }
.c-table--fixed tbody th { white-space: normal; word-break: auto-phrase; }
.c-table--center th, .c-table--center td { vertical-align: middle; }
.c-course-nav > li { display: flex; }
.c-course-nav > li > a { flex: 1; justify-content: center; }
@media (width >= 48rem) {
  .c-table--sticky:not(.c-table--fixed) { min-width: 0; }
  .c-table--sticky:not(.c-table--fixed) th, .c-table--sticky:not(.c-table--fixed) td { padding-inline: 0.625rem; }
  .c-course-nav--2col > li { flex-basis: calc((100% - 1.5rem) / 2); }
}
.c-entry-quick { display: grid; justify-items: center; gap: 0.75rem; margin-bottom: 3rem; text-align: center; }
.c-entry-quick__btns { display: grid; gap: 0.75rem; width: 100%; max-width: 36rem; }
.c-entry-quick__note { font-size: var(--text-sm); font-weight: 700; }
@media (width >= 48rem) { .c-entry-quick__btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.c-mv__badges li { min-height: 0; padding-block: 0.625rem; }
@media (width >= 48rem) { .c-mv__badges li { min-height: 0; padding-block: 1rem; } }

.c-panel__img { aspect-ratio: 16 / 10; overflow: hidden; }
.c-panel__img img { width: 100%; height: 100%; object-fit: cover; }

.c-course-top .c-badge--brand { background: var(--color-white); color: var(--color-brand); border: 1.5px solid var(--color-brand); box-shadow: 0 2px 6px rgb(0 0 0 / .15); }
@media (width < 48rem) {
  .c-voice-scroll { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--container-pad, 1.25rem) * -1); padding: 0.25rem var(--container-pad, 1.25rem) 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .c-voice-scroll::-webkit-scrollbar { display: none; }
  .c-voice-scroll > li { flex: 0 0 82%; scroll-snap-align: center; }
}

/* MV（PC）：横長の画面では写真の上下が切れるため、頭が切れないよう上端を基準にする */
@media (width >= 48rem) {
  .c-mv__slide { background-position: 65% top; }
  /* 横長の画面ほど写真が拡大されて一部しか見えなくなるため、高さを画面幅に合わせて伸ばす
     （幅の半分。画面の高さ（ヘッダー分を引く）を上限、原本の 42rem を下限にする） */
  .c-mv__body { min-height: max(42rem, min(calc(100svh - 4.5rem), 50vw)); }
}
/* MV の1枚目（稲岡の写真）：SP は人物が左端に寄るため中央寄りに。PC は顔がコピーに隠れないよう、高さに合わせて右寄せにする */
.c-mv__slide--first { background-position: 38% top; }
@media (width >= 48rem) {
  .c-mv__slide.c-mv__slide--first { background-size: auto 100%; background-position: right top; background-repeat: no-repeat; background-color: #fff; }
}

/* 合格実績（AchievementsSummary）：左に合格率と国公立・私立の人数、右に年度別の合格校（概要資料「合格実績」のページの構成） */
.c-achv { display: grid; gap: 2rem; margin-top: 1.5rem; }
.c-achv__rate { background: var(--color-white); border-radius: var(--radius-lg); padding: 1.5rem 1rem; }
.c-achv__main > .c-achv__title:first-child { margin-top: 0; }
.c-achv__years > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 1rem; padding-block: 0.875rem; border-bottom: 1px solid var(--color-border); }
.c-achv__years dt { display: flex; flex-direction: column; line-height: 1.4; }
.c-achv__year-label { font-weight: 700; font-size: var(--text-lg); }
.c-achv__year-result { font-size: var(--text-sm); }
.c-achv__year-result strong { color: var(--color-brand); font-weight: 700; margin-left: 0.15em; }
.c-achv__years ul { display: grid; gap: 0.25rem 1.5rem; font-size: var(--text-sm); font-weight: 700; line-height: 1.6; }
@media (width >= 48rem) {
  .c-achv { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 2.5rem; }
  .c-achv__years > div { grid-template-columns: 8rem minmax(0, 1fr); }
}
@media (width >= 64rem) {
  .c-achv__years ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 記事本文の表：罫線・余白・見出しマスの背景。スマホでは表だけを横スクロール（ページ全体は横にずれない） */
.swell .post_content .c-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5em; }
.swell .post_content table { border-collapse: collapse; width: 100%; font-size: .875rem; line-height: 1.7; }
.swell .post_content th,
.swell .post_content td { border: 1px solid #D9D2CE; padding: .6em .8em; vertical-align: top; text-align: left; }
.swell .post_content thead th,
.swell .post_content tbody th,
.swell .post_content tbody td:first-child { background: #FBF2F0; font-weight: 700; white-space: nowrap; }
@media (max-width: 47.99rem) {
  .swell .post_content table { width: auto; min-width: 100%; }
  .swell .post_content td { min-width: 12em; }
}

/* コラム：この記事の話し手（columns.speakers。本文の最初の見出しの前） */
.c-speakers { margin: 2rem 0; padding: 1.25rem 1.25rem 1rem; background: var(--color-brand-tint); border-radius: var(--radius-lg); }
.c-speakers__title { font-weight: 700; color: var(--color-brand-dark); margin: 0 0 0.75rem; }
.c-speakers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.c-speakers__item { display: flex; gap: 0.875rem; align-items: flex-start; background: var(--color-white); border-radius: var(--radius-md); padding: 0.875rem 1rem; margin: 0; }
.c-speakers__photo { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.c-speakers__body { min-width: 0; }
.c-speakers__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem; margin: 0 0 0.25rem; }
.c-speakers__role { font-size: var(--text-xs); font-weight: 700; color: var(--color-white); background: var(--color-brand); border-radius: 999px; padding: 0.125rem 0.625rem; line-height: 1.6; }
.c-speakers__name { font-weight: 700; }
.c-speakers__profile { font-size: var(--text-sm); line-height: 1.8; color: var(--color-ink-muted); margin: 0; }
.c-speakers__note { font-size: var(--text-xs); color: var(--color-ink-muted); margin: 0.75rem 0 0; }

/* 黄色マーカーは常に太字にする（2026-11 お客様指定。管理画面でマーカーだけ付けた場合も太字で表示） */
.swell .yellow_line, .swell .mark_yellow { font-weight: 700; }
