/* 帝塚山大学 公募制推薦LP
   レイアウトの考え方：マークシートを上から順に塗っていくように、1列で迷わず読める縦の流れ。
   色・文字・余白はすべてここの変数から使う。 */
:root {
  --c-main: #1C6F6A;        /* 公募制推薦の青緑（文字・ボタン） */
  --c-main-soft: #DCEEEC;   /* 青緑の面 */
  --c-brand: #A81144;       /* 校章えんじ（Web出願・強調ラベル） */
  --c-accent: #FFD23F;
  --c-hero: #268079;        /* ファーストビューの帯（白文字 4.7:1） */
  --c-hero-dark: #11433F;   /* 帯の上のタグ */      /* マークシートの黄色（マーカー・塗りつぶし） */
  --c-text: #23302E;        /* 本文 */
  --c-bg: #F3F8F7;          /* ページ背景 */
  --c-surface: #FFFFFF;     /* カード */
  --c-muted: #55625F;       /* 補足文字（背景・白の上で4.5:1以上） */
  --c-line: #C9DCD9;        /* 罫線 */

  --f-head: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "YuGothic", "Meiryo", sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic Medium", "YuGothic", "Meiryo", sans-serif;

  /* 文字サイズ（スマホ基準→PCで少し大きく） */
  --fs-xs: 0.75rem;   /* 12px 注記 */
  --fs-sm: 0.875rem;  /* 14px 補足 */
  --fs-md: 1rem;      /* 16px 本文 */
  --fs-lg: 1.125rem;  /* 18px リード */
  --fs-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);  /* 小見出し */
  --fs-2xl: clamp(1.625rem, 1.2rem + 2vw, 2.375rem);  /* セクション見出し */
  --fs-3xl: clamp(1.875rem, 1.3rem + 3vw, 3.25rem);   /* キャッチ */

  /* 余白は8の倍数 */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 40px; --sp-6: 48px; --sp-8: 64px; --sp-14: 112px;
  --r-card: 12px; --r-btn: 999px;
  --shadow: 0 2px 0 rgba(28,111,106,.12), 0 8px 24px rgba(28,111,106,.08);
  --wrap: 1080px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--f-body); font-size: var(--fs-md); line-height: 1.8;
  word-break: auto-phrase; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-main); text-underline-offset: 3px; }
a:hover { color: var(--c-brand); }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 80px; }
p { margin: 0; text-wrap: pretty; }
.nowrap { display: inline-block; }
.nw { white-space: nowrap; }

/* ---- 枠と区切り ---- */
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--sp-8); }
.section--tint { background: var(--c-main-soft); }
.section--white { background: var(--c-surface); }
@media (min-width: 768px) { .section { padding-block: var(--sp-14); } }

/* ---- 見出し ---- */
.h-sec, .h-sub, .catch { font-family: var(--f-head); font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; letter-spacing: .02em; }
.h-sec { font-size: var(--fs-2xl); }
.h-sub { font-size: var(--fs-xl); }
.catch { font-size: var(--fs-3xl); line-height: 1.3; }
.sec-head { display: grid; gap: var(--sp-2); justify-items: center; text-align: center; margin-bottom: var(--sp-5); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm);
  color: var(--c-main); letter-spacing: .12em;
}
.lead { font-size: var(--fs-lg); }
.note { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.7; }

/* 蛍光ペン（マーカー） */
.marker {
  background-image: linear-gradient(transparent 62%, var(--c-accent) 62%);
  background-repeat: no-repeat; background-size: 100% 100%;
  padding-inline: 2px;
}

/* ---- マークシートの丸（モチーフ） ---- */
.bubble {
  --b-w: 1.6em; --b-h: 1.05em;
  display: inline-grid; place-items: center; flex: none;
  width: var(--b-w); height: var(--b-h); border-radius: 50%;
  border: 2px solid currentColor; color: var(--c-main);
  font-family: var(--f-head); font-weight: 700; font-size: .8em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bubble.is-filled { background: var(--c-accent); border-color: var(--c-text); color: var(--c-text); }
.bubble--lg { --b-w: 2.6em; --b-h: 1.7em; font-size: 1rem; }
.bubbles { display: inline-flex; gap: 6px; vertical-align: middle; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  min-height: 56px; padding: 12px var(--sp-4);
  border-radius: var(--r-btn); border: 2px solid transparent;
  font-family: var(--f-head); font-weight: 700; font-size: var(--fs-md); line-height: 1.3;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn::after { content: ""; width: .5em; height: .5em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); flex: none; }
.btn--apply { background: var(--c-brand); color: #fff; box-shadow: 0 4px 0 #6E0B2D; }
.btn--guide { background: var(--c-main); color: #fff; box-shadow: 0 4px 0 #11433F; }
.btn--sub { background: var(--c-surface); color: var(--c-main); border-color: var(--c-main); }
.btn:hover { transform: translateY(2px); color: inherit; }
.btn--apply:hover { color: #fff; box-shadow: 0 2px 0 #6E0B2D; }
.btn--guide:hover { color: #fff; box-shadow: 0 2px 0 #11433F; }
.btn--sub:hover { color: var(--c-main); background: var(--c-main-soft); }
.btn--pdf::before { content: "PDF"; font-size: .6875rem; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.22); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.btn-row .btn { flex: 1 1 240px; max-width: 360px; }

/* ---- バッジ ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-btn);
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.5; white-space: nowrap;
  background: var(--c-surface); color: var(--c-main); border: 2px solid var(--c-main);
}
.badge--brand { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.badge--accent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-text); }
.badges { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

/* ---- カード ---- */
.card {
  background: var(--c-surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: var(--sp-3); display: grid; gap: var(--sp-1); align-content: start; min-width: 0;
}
.card__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-lg); line-height: 1.5; margin: 0; display: flex; align-items: center; gap: var(--sp-1); }
.grid { display: grid; gap: var(--sp-2); }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } .grid--4 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* 数字（日付・金額） */
.num { font-family: var(--f-head); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.num--xl { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.1; color: var(--c-main); }

/* ---- 表 ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-card); box-shadow: var(--shadow); background: var(--c-surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; min-width: 560px; }
.table th, .table td { padding: 12px var(--sp-2); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.table thead th { background: var(--c-main); color: #fff; font-weight: 700; white-space: nowrap; }
.table td { white-space: nowrap; }
.table tbody th { background: var(--c-main-soft); font-weight: 700; white-space: nowrap; }
.table tr:last-child > * { border-bottom: 0; }

/* ---- よくある質問 ---- */
.faq { display: grid; gap: var(--sp-1); }
.faq details { background: var(--c-surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--sp-2) var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--f-head); font-size: 1.5rem; color: var(--c-main); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .faq__a { padding: 0 var(--sp-3) var(--sp-3) calc(var(--sp-3) + 2.6em); }

/* ---- 写真 ---- */
.photo { border-radius: var(--r-card); overflow: hidden; background: var(--c-main-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   ステップ2：ヘッダー・ファーストビュー
   ========================================================= */
.site-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 64px; padding-block: var(--sp-1); }
.site-head__logo { display: block; flex: none; }
.site-head__logo img { height: 36px; width: auto; }
.site-head__nav { display: flex; align-items: center; gap: var(--sp-2); }
.site-head__link { display: none; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.site-head .btn { min-height: 44px; padding: 8px var(--sp-3); font-size: var(--fs-sm); box-shadow: 0 3px 0 #6E0B2D; }
.site-head .btn--apply { display: none; }
@media (min-width: 768px) {
  .site-head__logo img { height: 44px; }
  .site-head__link, .site-head .btn--apply { display: inline-flex; }
}

/* ファーストビュー：青緑の帯＋オリジナルのイラスト */
.hero { background: var(--c-surface); }
.hero__band { position: relative; overflow: hidden; background: var(--c-hero); }
.hero__band::before { /* マークシートの丸を並べた地模様 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(ellipse 13px 8px at 50% 50%, transparent 10px, rgba(255,255,255,.12) 11px, rgba(255,255,255,.12) 12px, transparent 13px);
  background-size: 40px 28px;
}
.hero__stage { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; padding-block: var(--sp-3) 0; }
.hero__center { display: grid; justify-items: center; gap: 12px; text-align: center; width: 100%; max-width: 640px; padding-bottom: var(--sp-4); }
.hero__say {
  position: relative; background: var(--c-surface); color: var(--c-text);
  border: 3px solid var(--c-text); border-radius: 16px; padding: 8px 20px;
  font-family: var(--f-head); font-weight: 700; font-size: var(--fs-md); line-height: 1.5;
}
.hero__say::after { /* 吹き出しのしっぽ */
  content: ""; position: absolute; left: 14%; bottom: -13px; width: 18px; height: 18px;
  background: var(--c-surface); border-right: 3px solid var(--c-text); border-bottom: 3px solid var(--c-text);
  transform: skewX(-30deg) rotate(45deg);
}
.hero__title { margin: 8px 0 0; color: #fff; font-family: var(--f-head); font-weight: 700; line-height: 1.1; letter-spacing: .06em; font-size: clamp(3rem, 2rem + 5vw, 6rem); display: grid; gap: 10px; }
.hero__pre { font-size: var(--fs-sm); letter-spacing: .08em; line-height: 1.5; }
.hero__tags { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hero__tags li {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px;
  background: var(--c-hero-dark); color: #fff; font-weight: 700; font-size: var(--fs-sm); line-height: 1.4; white-space: nowrap;
}
.hero__tags .bubble { font-size: .7rem; border-color: var(--c-text); }
@media (max-width: 359px) { .hero__tags li { font-size: .8125rem; gap: 6px; padding-inline: 4px; } .hero__tags .bubble { display: none; } }
/* 特待生の帯（金額入り） */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__pill {
  width: 100%; display: grid; justify-items: center; gap: 2px; margin-top: 4px;
  background: var(--c-accent); color: var(--c-text); border: 3px solid var(--c-text); border-radius: 20px;
  padding: 12px 16px; box-shadow: 0 5px 0 var(--c-hero-dark); line-height: 1.3;
}
.hero__pill-who { font-weight: 700; font-size: var(--fs-sm); }
.hero__pill-main { font-family: var(--f-head); font-weight: 700; font-size: 1.375rem; white-space: nowrap; }
.hero__pill-main b { font-size: 2.125rem; color: var(--c-brand); margin-left: 4px; letter-spacing: .02em; }
.hero__pill-yen { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.hero__pill-yr { font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--r-btn); background: var(--c-text); color: #fff; }
.hero__pill-yen s { font-size: var(--fs-md); text-decoration-thickness: 2px; }
.hero__pill-arrow { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid var(--c-brand); }
.hero__pill-yen b { font-family: var(--f-head); font-size: 1.125rem; color: var(--c-brand); }
.hero__pill-yen b .num { font-size: 2.125rem; line-height: 1; }
.hero__pill-note { color: #fff; font-size: var(--fs-xs); line-height: 1.6; }
@media (min-width: 1024px) {
  .hero__pill { grid-template-columns: auto auto auto; align-items: center; justify-content: center; column-gap: 24px; border-radius: var(--r-btn); padding: 10px 32px; }
  .hero__pill-who { text-align: right; display: grid; }
  .hero__pill-main { padding-inline: 24px; border-inline: 2px dashed rgba(35,48,46,.35); }
}

.hero__char { display: block; height: auto; }
.hero__char--a, .hero__char--b { position: absolute; bottom: 0; width: 96px; }
.hero__char--a { left: max(8px, env(safe-area-inset-left, 0px)); bottom: auto; top: 14px; width: 84px; }
.hero__char--b { display: none; }
@media (max-width: 1023px) {
  /* スマホ・タブレット：男の子のイラストの横に吹き出し */
  .hero__say { margin-left: 96px; justify-self: start; font-size: .9375rem; }
  .hero__say::after { left: -12px; bottom: 50%; transform: translateY(50%) rotate(135deg) skewX(-10deg); }
  .hero__center { padding-top: 8px; }
}

@media (min-width: 1024px) { .hero__tags { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) {
  .hero__char--a { width: 120px; top: 24px; }
}
@media (min-width: 1024px) {
  .hero__stage { grid-template-columns: 1fr minmax(0, 740px) 1fr; align-items: end; gap: var(--sp-3); padding-top: var(--sp-5); }
  .hero__center { max-width: none; padding-bottom: var(--sp-5); }
  .hero__say { font-size: var(--fs-lg); padding: 10px 28px; }
  /* 2人を元のイラスト集と同じ縮尺で表示する（男の子の幅＝左右の列の幅、女の子は 281/381 倍） */
  .hero__char--a, .hero__char--b { position: static; display: block; --col: calc((min(100vw, 1112px) - 760px) / 2); }
  /* 2人の顔の大きさをそろえる（顔の幅を実測：男子175/381px、女子164/281px → 女子は男子の0.787倍の幅） */
  .hero__char--a, .hero__char--b { --cw: clamp(140px, var(--col), 180px); max-width: none; height: auto; }
  .hero__char--a { width: var(--cw); }
  .hero__char--b { width: calc(var(--cw) * .787); }
  .hero__char--a { justify-self: end; }
  .hero__char--b { justify-self: start; }
}

.hero__below { display: grid; gap: var(--sp-3); padding-block: var(--sp-3) var(--sp-6); }
.hero__cta { display: grid; gap: var(--sp-2); align-content: start; }
.hero__cta .lead { text-align: center; font-size: var(--fs-md); }
@media (min-width: 1024px) {
  .hero__below { grid-template-columns: 1.3fr 1fr; align-items: center; gap: var(--sp-5); padding-block: var(--sp-5); }
  .hero__cta .lead { text-align: left; }
  .hero .btn-row { justify-content: flex-start; }
}

/* 日程：出願 → 試験 → 合格発表 のタイムライン */
.sched { display: grid; gap: var(--sp-2); padding: var(--sp-2); border-radius: var(--r-card); background: var(--c-bg); border: 2px solid var(--c-main); min-width: 0; }
.sched__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1); }
.sched__tabs { display: inline-flex; padding: 3px; border-radius: var(--r-btn); background: var(--c-surface); border: 2px solid var(--c-main); }
.sched__tab { appearance: none; border: 0; cursor: pointer; min-height: 36px; min-width: 76px; padding: 4px 16px; border-radius: var(--r-btn); background: transparent; color: var(--c-main); font: 700 var(--fs-sm)/1 var(--f-head); }
.sched__tab[aria-selected="true"] { background: var(--c-main); color: #fff; }
.sched__count { margin-left: auto; font-weight: 700; font-size: var(--fs-sm); color: var(--c-text); }
.sched__count b { font-family: var(--f-head); font-size: 1.75rem; line-height: 1; color: var(--c-brand); margin-inline: 2px; font-variant-numeric: tabular-nums; }
.sched__count:empty { display: none; }

.sched__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.sched__step { position: relative; display: grid; grid-template-columns: 28px 1fr; grid-template-areas: "dot label" "dot date" "dot sub"; column-gap: 12px; row-gap: 2px; padding-block: 8px; min-width: 0; }
.sched__step .bubble { grid-area: dot; align-self: start; margin-top: 3px; position: relative; z-index: 1; background: var(--c-surface); }
.sched__step:not(:last-child)::after { /* 丸をつなぐ線 */ content: ""; position: absolute; left: 13px; top: 30px; bottom: -10px; border-left: 2px dashed var(--c-main); }
.sched__label { grid-area: label; font-weight: 700; font-size: var(--fs-sm); color: var(--c-main); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.sched__date { grid-area: date; font-family: var(--f-head); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.sched__date b { font-size: 1.5rem; line-height: 1.2; white-space: nowrap; }
.sched__date small { font-size: var(--fs-xs); font-family: var(--f-body); white-space: nowrap; }
.sched__sub { grid-area: sub; font-size: var(--fs-xs); color: var(--c-muted); font-weight: 700; }
.sched__now { display: none; font-size: .6875rem; line-height: 1.4; padding: 1px 8px; border-radius: var(--r-btn); background: var(--c-brand); color: #fff; }
/* 過ぎた段は塗りつぶし、いまの段は強調 */
.sched__step.is-done .bubble { background: var(--c-main); border-color: var(--c-main); }
.sched__step.is-now .bubble { background: var(--c-accent); border-color: var(--c-text); box-shadow: 0 0 0 4px rgba(255,210,63,.45); }
.sched__step.is-now .sched__now { display: inline-block; }
.sched__step.is-now .sched__date { color: var(--c-brand); }

@media (min-width: 640px) {
  /* 横に並べたタイムライン */
  .sched { padding: var(--sp-3); }
  .sched__steps { grid-template-columns: repeat(3, 1fr); column-gap: var(--sp-2); }
  .sched__step { grid-template-columns: 1fr; grid-template-areas: "dot" "label" "date" "sub"; row-gap: 6px; padding: 0; justify-items: start; }
  .sched__step .bubble { margin-top: 0; }
  .sched__step:not(:last-child)::after { left: 34px; right: calc(-1 * var(--sp-2) - 4px); top: 9px; bottom: auto; border-left: 0; border-top: 2px dashed var(--c-main); }
}
@media (min-width: 1024px) {
  /* PC：ボタンの下に日程を横いっぱいで */
  .hero__below { grid-template-columns: 1fr; gap: var(--sp-3); }
  .hero__cta { justify-items: center; }
  .hero__cta .lead { text-align: center; }
  .hero .btn-row { justify-content: center; width: 100%; }
  .hero .btn-row .btn { max-width: 340px; }
  .sched { grid-template-columns: auto 1fr; align-items: center; column-gap: var(--sp-5); padding: var(--sp-3) var(--sp-5); }
  .sched__top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sched__count { margin-left: 0; }
}

.hero .btn-row .btn { flex: 1 1 220px; }

/* 読み込み時：タグの丸が1つずつ塗られる（合計0.7秒以内） */
.js .hero__tags .bubble { transition: background-color .2s ease; }
.js .hero:not(.is-in) .hero__tags .bubble { background: transparent; border-color: #fff; }
.hero__tags li:nth-child(2) .bubble { transition-delay: .15s; }
.hero__tags li:nth-child(3) .bubble { transition-delay: .3s; }
.hero__tags li:nth-child(4) .bubble { transition-delay: .45s; }


/* =========================================================
   ステップ3：ひと目でわかる・タイプ別・途中のボタン
   ========================================================= */
.sec-lead { max-width: 40em; color: var(--c-text); }
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: grid; gap: var(--sp-1); align-content: start; min-width: 0; padding: var(--sp-3); border-radius: var(--r-card); background: var(--c-bg); border-top: 4px solid var(--c-main); }
.fact__head { display: grid; justify-items: start; gap: 6px; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-xl); line-height: 1.4; color: var(--c-main); }
.fact__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.fact__num .num { font-size: 1.75rem; line-height: 1.2; color: var(--c-text); }
.fact__num small { font-size: var(--fs-xs); font-weight: 700; margin-right: 8px; }

.types { display: grid; gap: var(--sp-3); }
@media (min-width: 768px) { .types { grid-template-columns: repeat(2, 1fr); } }
.type { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--sp-2); min-width: 0; padding: var(--sp-3); border-radius: var(--r-card); background: var(--c-surface); box-shadow: var(--shadow); }
.type__head { display: flex; align-items: center; gap: 12px; }
.type__title { margin: 0; display: grid; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-xl); line-height: 1.35; text-wrap: balance; }
.type__who { font-family: var(--f-body); font-size: var(--fs-xs); color: var(--c-muted); letter-spacing: .08em; }
.type--pick .type__head .bubble { background: var(--c-accent); border-color: var(--c-text); color: var(--c-text); }

/* 受け方：見出しの答えになる帯 */
.type__way { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--c-main); color: #fff; }
.type__arrow { flex: none; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid var(--c-accent); }
.type__name { display: grid; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-lg); line-height: 1.35; }
.type__sub { font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 700; opacity: .9; }
.type__pts { margin-left: auto; flex: none; font-size: var(--fs-xs); font-weight: 700; padding: 2px 10px; border-radius: var(--r-btn); background: rgba(255,255,255,.18); white-space: nowrap; }

/* 項目名｜内容 を左右にそろえた行 */
.type__rows { margin: 0; display: grid; align-content: start; }
.type__row { display: grid; grid-template-columns: 5em 1fr; gap: 12px; align-items: baseline; padding-block: 10px; border-top: 1px solid var(--c-line); }
.type__row:last-child { border-bottom: 1px solid var(--c-line); }
.type__row dt { white-space: nowrap; font-size: var(--fs-xs); font-weight: 700; color: var(--c-main); letter-spacing: .04em; }
.type__row dd { margin: 0; min-width: 0; line-height: 1.7; }
.type__row strong { background: linear-gradient(transparent 60%, var(--c-accent) 60%); }
.type .note { margin: 0; }

.eiken { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 479px) {
  .type { padding: var(--sp-2); }
  .type__row { grid-template-columns: 4.5em 1fr; gap: 8px; }
  .type__way { padding: 10px 12px; }
}
.eiken span { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; border-radius: 8px; background: var(--c-bg); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eiken b { font-size: var(--fs-xs); color: var(--c-muted); }

.mid-cta { display: grid; gap: var(--sp-2); justify-items: center; margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-3); border-radius: var(--r-card); background: var(--c-surface); border: 2px dashed var(--c-main); text-align: center; }
.mid-cta__text { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-lg); }
.mid-cta .btn-row { width: 100%; }
@media (max-width: 479px) {
  .mid-cta { padding: var(--sp-3) 12px; }
  .mid-cta__text { font-size: var(--fs-md); }
  .btn { padding-inline: var(--sp-2); }
}

@media (max-width: 1023px) { .fact__head { display: flex; align-items: center; gap: var(--sp-1); } }
@media (min-width: 1024px) { .fact__head { font-size: var(--fs-lg); } }
#about { padding-top: var(--sp-6); }
@media (max-width: 767px) {
  /* スマホ：金額を入れた分、帯の中を少し詰めてボタンを上げる */
  .hero__center { gap: 10px; padding-bottom: var(--sp-3); }
  .hero__tags li { min-height: 40px; padding-block: 6px; }
  .hero__pill { padding: 8px 12px 10px; }
  .hero__pill-main b, .hero__pill-yen b .num { font-size: 1.875rem; }
  .hero__below { padding-top: var(--sp-2); }
}


/* =========================================================
   ステップ4：チャンスを広げる仕組み・特待生制度
   ========================================================= */
.chances { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
@media (min-width: 1024px) { .chances { grid-template-columns: repeat(3, 1fr); } }
.chance { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2); align-items: start; align-content: start; padding: var(--sp-3); border-radius: var(--r-card); background: var(--c-bg); min-width: 0; }
.chance__no { margin: 0; }
.chance__body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.chance__title { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-xl); line-height: 1.4; text-wrap: balance; }
@media (min-width: 1024px) { .chance { grid-template-columns: 1fr; } .chance__title { font-size: var(--fs-lg); } }

/* 2日間の比較 */
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.day { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: 10px; background: var(--c-surface); border: 2px solid var(--c-line); }
.day__d { font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); }
.day__s { font-weight: 700; }
.day__s .num { font-size: 1.75rem; line-height: 1.1; }
.day--best { border-color: var(--c-brand); }
.day--best .day__s { color: var(--c-brand); }
.day__tag { position: absolute; top: -11px; right: -4px; padding: 1px 8px; border-radius: var(--r-btn); background: var(--c-brand); color: #fff; font-size: .6875rem; font-weight: 700; white-space: nowrap; }

/* 2回判定 */
.twice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.twice__item { padding: 6px 12px; border-radius: 8px; background: var(--c-surface); border: 2px solid var(--c-main); font-size: var(--fs-sm); white-space: nowrap; }
.twice__item b { color: var(--c-main); }
.twice__plus { font-family: var(--f-head); font-weight: 700; color: var(--c-main); }

/* 検定料 */
.fee { margin: 0; display: grid; gap: 6px; }
.fee div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--c-surface); }
.fee dt { font-size: var(--fs-sm); }
.fee dd { margin: 0; font-weight: 700; white-space: nowrap; }
.fee .num { font-size: var(--fs-lg); }

/* 特待生 */
.schol { display: grid; gap: var(--sp-3); }
@media (min-width: 900px) { .schol { grid-template-columns: 1.15fr 1fr; } }
.schol__card { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-4) var(--sp-3); border-radius: var(--r-card); background: var(--c-surface); box-shadow: var(--shadow); min-width: 0; }
.schol__h { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-xl); }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 4em 1fr auto; align-items: center; gap: 12px; }
.bar__label { font-size: var(--fs-sm); font-weight: 700; }
.bar__track { position: relative; height: 36px; border-radius: 8px; background: var(--c-bg); overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c-line); border-radius: 8px; }
.bar--half .bar__fill { background: var(--c-accent); border: 2px solid var(--c-text); }
.bar__cut { position: absolute; left: 50%; top: 0; bottom: 0; display: grid; place-items: center; padding-left: 10px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-brand); border-left: 2px dashed var(--c-brand); }
.bar__val { font-weight: 700; white-space: nowrap; min-width: 5em; text-align: right; }
.bar__val .num { font-size: 1.75rem; line-height: 1; }
.bar--half .bar__val { color: var(--c-brand); }
.js .schol .bar__fill { transition: width .7s ease; }
.js .schol:not(.is-in) .bar__fill { width: 0; }
.schol__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; padding: 16px; border-radius: 12px; background: var(--c-accent); border: 3px solid var(--c-text); box-shadow: 0 5px 0 var(--c-text); text-align: center; font-weight: 700; line-height: 1.1; }
.schol__total-l, .schol__total-r { font-size: var(--fs-lg); }
.schol__total b { font-family: var(--f-head); color: var(--c-brand); font-size: 1.5rem; white-space: nowrap; }
.schol__total b .num { font-size: clamp(3rem, 2.4rem + 3vw, 4.25rem); letter-spacing: -.01em; }
.yen-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.yen-table th, .yen-table td { padding: 8px 10px; border-bottom: 1px solid var(--c-line); text-align: right; white-space: nowrap; }
.yen-table thead th { font-size: var(--fs-xs); color: var(--c-muted); }
.yen-table thead th:first-child { text-align: left; color: var(--c-main); }
.yen-table__cap { caption-side: top; text-align: left; padding: 8px 10px; margin-bottom: 4px; border-radius: 8px; background: var(--c-main-soft); color: var(--c-main); font-size: var(--fs-xs); font-weight: 700; }
.yen-table__sum small { display: block; font-size: var(--fs-xs); color: var(--c-muted); font-weight: 700; }
.yen-table tbody th { text-align: left; font-weight: 700; }
.yen-table small { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 400; }
.yen-table td:last-child b { color: var(--c-brand); }
.yen-table__sum th, .yen-table__sum td { border-bottom: 0; border-top: 2px solid var(--c-text); font-weight: 700; font-size: var(--fs-md); }
.schol__save { font-weight: 700; }
.schol__save b { color: var(--c-brand); font-size: var(--fs-lg); }
.schol__save .num { font-size: 1.5rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li { display: flex; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px dashed var(--c-line); }
.checks b { color: var(--c-main); }
.checks__goal { padding: 10px 16px; border-radius: var(--r-btn); background: var(--c-main); color: #fff; font-weight: 700; text-align: center; }
.checks__goal b { font-family: var(--f-head); font-size: 1.25rem; color: var(--c-accent); margin-left: 4px; }
@media (max-width: 479px) {
  .chance { grid-template-columns: 1fr; padding: var(--sp-2); }
  .schol__card { padding: var(--sp-3) var(--sp-2); }
  .bar { grid-template-columns: 3.5em 1fr auto; gap: 8px; }
}
@media (max-width: 374px) {
  .bar { grid-template-columns: 3em 1fr auto; }
  .bar__val { min-width: 0; }
  .bar__val .num { font-size: 1.375rem; }
  .yen-table th, .yen-table td { padding: 8px 4px; }
  .yen-table small { display: block; }
}


/* =========================================================
   ステップ5：合格後も安心・日程・科目
   ========================================================= */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 960px; margin-inline: auto; }
.flow__step { position: relative; display: grid; grid-template-columns: 5.5em 32px 1fr; align-items: center; gap: 12px; padding-block: 12px; }
.flow__step:not(:last-child)::after { content: ""; position: absolute; left: calc(5.5em + 12px + 15px); top: calc(50% + 12px); bottom: calc(-50% + 12px); border-left: 2px dashed var(--c-main); }
.flow__when { font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); text-align: right; white-space: nowrap; }
.flow__step .bubble { justify-self: center; position: relative; z-index: 1; }
.flow__what { display: grid; padding: 12px 16px; border-radius: 10px; background: var(--c-bg); line-height: 1.5; }
.flow__what b { font-family: var(--f-head); font-size: var(--fs-lg); }
.flow__step--goal .flow__what { background: var(--c-brand); color: #fff; }
.flow__step--goal .bubble { background: var(--c-brand); border-color: var(--c-brand); }
.flow__note { max-width: 960px; margin: var(--sp-2) auto 0; text-align: center; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
  .flow__step { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; justify-items: center; text-align: center; padding: 0; gap: 8px; align-items: start; }
  .flow__when { text-align: center; }
  .flow__step:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% - var(--sp-2) + 24px); top: calc(1.5em + 18px); bottom: auto; border-left: 0; border-top: 2px dashed var(--c-main); }
  .flow__step--goal:not(:last-child)::after { display: none; }
  .flow__what { height: 100%; width: 100%; align-content: start; }
}
@media (max-width: 479px) { .flow__step { grid-template-columns: 4.5em 28px 1fr; gap: 8px; } .flow__step:not(:last-child)::after { left: calc(4.5em + 8px + 13px); } }

.facts-box { display: grid; gap: 12px; }
.facts-box__h { margin: 0; }
.table--sched { min-width: 720px; }
.table--sched small { display: block; font-size: var(--fs-xs); font-weight: 400; }
.table--sched thead small { display: inline; }
.table--sched td b { color: var(--c-brand); }
.table-hint { display: none; }
@media (max-width: 767px) { .table-hint { display: block; } }

.subjects { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
@media (min-width: 900px) { .subjects { grid-template-columns: repeat(3, 1fr); } }
.subj { display: grid; gap: 10px; align-content: start; padding: var(--sp-3); border-radius: var(--r-card); background: var(--c-surface); box-shadow: var(--shadow); min-width: 0; }
.subj__h { margin: 0; display: grid; justify-items: start; gap: 6px; font-family: var(--f-head); font-size: var(--fs-lg); line-height: 1.4; }
.subj__tag { padding: 2px 10px; border-radius: var(--r-btn); background: var(--c-main); color: #fff; font-size: var(--fs-xs); font-family: var(--f-body); }
.subj__list { display: flex; flex-wrap: wrap; gap: 6px; }
.subj__list span { padding: 4px 12px; border-radius: 8px; background: var(--c-main-soft); color: var(--c-main); font-weight: 700; white-space: nowrap; }
.subj__list small { font-size: var(--fs-xs); }
.subj b { color: var(--c-brand); }

.points { display: grid; gap: 12px; margin-top: var(--sp-5); }
.points__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 768px) { .points__list { grid-template-columns: repeat(3, 1fr); } .points__list li { grid-template-columns: 1fr auto; } .points__calc { grid-column: 1 / -1; grid-row: 2; } }
.points__list li { display: grid; grid-template-columns: 6em 1fr auto; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--c-surface); }
.points__name { font-weight: 700; }
.points__calc { font-size: var(--fs-sm); color: var(--c-muted); }
.points__sum { white-space: nowrap; }
.points__sum .num { font-size: 1.5rem; color: var(--c-main); }
@media (max-width: 479px) { .points__list li { grid-template-columns: 1fr auto; } .points__calc { grid-column: 1 / -1; grid-row: 2; } }

@media (min-width: 1024px) and (max-width: 1199px) {
  .hero__tags li { font-size: .8125rem; gap: 6px; padding-inline: 4px; }
  .hero__pill { column-gap: 12px; padding-inline: 20px; }
  .hero__pill-main { padding-inline: 12px; }
}

@media (max-width: 767px) {
  /* スマホ：日程表を区分ごとのカードに */
  .facts-box .table-scroll { overflow: visible; box-shadow: none; background: transparent; }
  .table--sched { min-width: 0; }
  .table--sched thead { display: none; }
  .table--sched, .table--sched tbody { display: grid; gap: 12px; }
  .table--sched tr { display: grid; grid-template-columns: 1fr; border-radius: var(--r-card); background: var(--c-surface); box-shadow: var(--shadow); overflow: hidden; }
  .table--sched tbody th { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; background: var(--c-main); color: #fff; border: 0; }
  .table--sched tbody th small { display: inline; }
  .table--sched td { grid-column: 1 / -1; display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; align-items: baseline; padding: 10px 16px; white-space: normal; }
  .table--sched td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 700; color: var(--c-main); }
}


/* =========================================================
   ステップ6：出願までの流れ・FAQ・最終CTA・フッター・固定CTA
   ========================================================= */
.wrap--narrow { max-width: 820px; }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 0; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2); padding-bottom: var(--sp-3); }
.step:not(:last-child)::before { content: ""; position: absolute; left: calc(1.3em - 1px); top: 1.9em; bottom: 4px; border-left: 2px dashed var(--c-main); }
.step > div { display: grid; gap: 4px; padding: 4px 0 0; min-width: 0; }
.step__t { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-lg); line-height: 1.4; }
.step b { color: var(--c-brand); }
.step__link { justify-self: start; font-weight: 700; font-size: var(--fs-sm); }
.step__link::after { content: " ›"; }
.steps__warn { max-width: 820px; margin: var(--sp-2) auto 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 14px 18px; border-radius: 10px; background: #FDEEF2; border-left: 4px solid var(--c-brand); font-size: var(--fs-sm); }
.steps__warn b { color: var(--c-brand); }

.faq .faq__a { padding: 0 var(--sp-3) var(--sp-3) calc(var(--sp-3) + 2.6em); }
.faq summary { line-height: 1.5; }
.faq summary .bubble { flex: none; --b-w: 2.4em; --b-h: 1.6em; font-size: .8125rem; }
.faq details[open] { box-shadow: 0 0 0 2px var(--c-main), var(--shadow); }
@media (max-width: 479px) { .faq summary { padding: 12px 14px; gap: 10px; } .faq .faq__a { padding: 0 14px 16px; } }

.final { position: relative; overflow: hidden; background: var(--c-hero); color: #fff; }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(ellipse 13px 8px at 50% 50%, transparent 10px, rgba(255,255,255,.12) 11px, rgba(255,255,255,.12) 12px, transparent 13px); background-size: 40px 28px; }
.final__in { position: relative; display: grid; justify-items: center; padding-block: var(--sp-8) var(--sp-6); }
.final__body { display: grid; justify-items: center; gap: var(--sp-2); text-align: center; width: 100%; max-width: 720px; }
.final__pre { background: var(--c-surface); color: var(--c-text); border: 3px solid var(--c-text); border-radius: 16px; padding: 6px 20px; font-family: var(--f-head); font-weight: 700; }
.final__title { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-2xl); line-height: 1.4; text-wrap: balance; }
.final__btns { width: 100%; }
.final .btn--guide { background: var(--c-surface); color: var(--c-main); box-shadow: 0 4px 0 var(--c-hero-dark); }
.final .btn--guide:hover { color: var(--c-main); background: var(--c-main-soft); }
.final .btn--guide.btn--pdf::before { background: var(--c-main-soft); }
.final__req { color: #fff; font-weight: 700; }
.final__req:hover { color: var(--c-accent); }
.final__char { display: none; }
@media (min-width: 1024px) {
  .final__in { grid-template-columns: 1fr minmax(0, 720px) 1fr; align-items: end; padding-bottom: 0; gap: var(--sp-3); }
  .final__body { padding-bottom: var(--sp-8); }
  .final__char { display: block; width: 170px; max-width: none; height: auto; justify-self: end; }
  .final__char--b { width: 134px; justify-self: start; }
}

.site-foot { background: #1A2624; color: #E6EEEC; font-size: var(--fs-sm); }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--c-accent); }
.site-foot__in { display: grid; gap: var(--sp-4); padding-block: var(--sp-6) var(--sp-4); }
@media (min-width: 768px) { .site-foot__in { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.site-foot__contact { display: grid; gap: 4px; }
.site-foot__h { font-size: var(--fs-xs); letter-spacing: .1em; color: #A9BDB9; }
.site-foot__org { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-lg); }
.site-foot__tel .num { font-size: 1.5rem; font-weight: 700; margin-inline: 4px; user-select: all; }
.site-foot__tel small { color: #A9BDB9; }
.site-foot__mail { user-select: all; overflow-wrap: anywhere; }
.site-foot__nav { display: grid; gap: 10px; }
.site-foot__nav a { text-decoration: none; display: inline-flex; gap: 6px; }
.site-foot__nav a::before { content: "›"; color: var(--c-accent); }
.site-foot__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding-block: var(--sp-3); border-top: 1px solid rgba(255,255,255,.12); }
.site-foot__bottom img { height: 32px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; box-sizing: content-box; }
.site-foot__bottom small { color: #A9BDB9; font-size: var(--fs-xs); }

/* スマホの画面下に固定するボタン */
.fixed-cta { display: none; }
@media (max-width: 767px) {
  .fixed-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(255,255,255,.96); box-shadow: 0 -4px 16px rgba(0,0,0,.12);
    transform: translateY(0); transition: transform .25s ease;
  }
  .fixed-cta[hidden] { display: grid !important; transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .fixed-cta .btn { min-height: 48px; padding: 8px; font-size: var(--fs-sm); box-shadow: none; }
  .fixed-cta .btn::after { display: none; }
  .site-foot { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}


/* =========================================================
   見直し：目次・日程表の2行化・学べること
   ========================================================= */
.jump { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.jump__in { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.jump__in::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: var(--r-btn); border: 2px solid var(--c-main); color: var(--c-main); background: var(--c-surface); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
.jump a:hover { background: var(--c-main-soft); color: var(--c-main); }
.jump .bubble { font-size: .6rem; }
.jump a:hover .bubble { background: var(--c-accent); border-color: var(--c-text); }
@media (min-width: 900px) { .jump__in { justify-content: center; } }

.table--sched .exams { display: grid; gap: 6px; }
.table--sched .exam { display: grid; line-height: 1.5; }
.table--sched .exam small { display: block; font-size: var(--fs-xs); color: var(--c-muted); font-weight: 700; }

.learn__in { display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 900px) { .learn__in { grid-template-columns: 1.1fr 1fr; gap: var(--sp-6); } }
.learn__text { display: grid; gap: var(--sp-2); justify-items: start; min-width: 0; }
.learn__catch { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); line-height: 1.3; color: var(--c-brand); letter-spacing: .04em; }
.learn__list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.learn__list { grid-template-columns: 1fr 1fr; }
.learn__list li { display: grid; gap: 0; padding: 10px 14px; border-radius: 10px; background: var(--c-bg); border-left: 4px solid var(--c-main); }
.learn__list b { font-family: var(--f-head); }
.learn__list span { font-size: var(--fs-xs); color: var(--c-muted); }
.learn__photo { aspect-ratio: 3 / 2; box-shadow: var(--shadow); }


/* =========================================================
   見直し2：文字を減らし、イラスト・アイコンで見せる
   ========================================================= */
.ico { width: 48px; height: 48px; color: var(--c-main); flex: none; }

/* ひと目でわかる（アイコンタイル） */
.facts--icon { grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 1024px) { .facts--icon { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); } }
.facts--icon .fact { justify-items: center; text-align: center; gap: 6px; padding: var(--sp-3) 12px; border-top: 0; border-radius: 16px; }
.facts--icon .ico { width: 56px; height: 56px; }
.facts--icon .fact__head { display: block; font-size: var(--fs-lg); }
.facts--icon .fact p:not(.fact__head) { font-size: var(--fs-sm); font-weight: 700; line-height: 1.5; }
.facts--icon small { display: block; font-size: .6875rem; font-weight: 400; color: var(--c-muted); margin-top: 2px; }
@media (min-width: 1024px) { .facts--icon .fact__head { font-size: var(--fs-xl); } }

/* タイプ別カードの人物 */
.type__pic { position: relative; flex: none; width: 76px; height: 76px; }
.type__face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--c-main-soft); }
.type__face img { position: absolute; left: 50%; top: 6px; width: 74px; height: auto; transform: translateX(-50%); }
.type__pic .bubble { position: absolute; left: -8px; top: -6px; z-index: 1; --b-w: 2.4em; --b-h: 1.6em; font-size: .875rem; background: var(--c-surface); }
.type__pic .bubble.is-filled { background: var(--c-accent); }
@media (min-width: 768px) { .type__pic { width: 88px; height: 88px; } .type__face img { width: 86px; } }

/* 2科目→2通りの判定 */
.split { display: grid; grid-template-columns: 1fr auto 1.3fr; align-items: center; gap: 8px; }
.split__in, .split__out { display: grid; gap: 6px; }
.split span { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--c-surface); border: 2px solid var(--c-line); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.split .num { font-size: 1.125rem; }
.split small { font-size: .6875rem; color: var(--c-muted); }
.split__out span { border-color: var(--c-main); }
.split__out .split__best { border-color: var(--c-brand); }
.split__out .split__best .num { color: var(--c-brand); }
.split__in .split__best { border-color: var(--c-brand); }
.split__arrow { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid var(--c-main); }

/* 出願までの流れ（アイコン付き） */
.steps--icon .step { grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 10px; border-radius: 14px; background: var(--c-bg); }
.steps--icon .step::before { display: none; }
.step__no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent); border: 2px solid var(--c-text); font-family: var(--f-head); font-weight: 700; font-size: .875rem; }
.step__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-surface); }
.step__ico .ico { width: 36px; height: 36px; }
.steps--icon .step > div { padding: 0; gap: 2px; }
.steps--icon .step p { font-size: var(--fs-sm); }
.steps--icon .step__t { font-size: var(--fs-md); }
@media (min-width: 900px) {
  .steps--icon { max-width: none; grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .steps--icon .step { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: start; margin: 0; padding: var(--sp-3) 12px; position: relative; }
  .steps--icon .step__no { position: absolute; top: 10px; left: 10px; }
  .steps--icon .step__ico { width: 72px; height: 72px; }
  .steps--icon .step__ico .ico { width: 44px; height: 44px; }
  .steps--icon .step__link { justify-self: center; }
}
@media (max-width: 374px) { .steps--icon .step { gap: 8px; padding: 10px 12px; } .step__ico { width: 44px; height: 44px; } .step__ico .ico { width: 28px; height: 28px; } }
.split .split__arrow { padding: 0; background: none; border-radius: 0; border: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid var(--c-main); }


/* =========================================================
   メリハリ：見出しを大きく・要所をステッカー風に・特待生を黄色で
   ========================================================= */
/* 見出し */
.h-sec { font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem); line-height: 1.35; }
.sec-head { gap: 12px; margin-bottom: var(--sp-6); }
.eyebrow { padding: 6px 16px 6px 10px; border-radius: var(--r-btn); background: var(--c-main); color: #fff; letter-spacing: .1em; }
.eyebrow .bubble { border-color: var(--c-text); }
.marker { background-image: linear-gradient(transparent 58%, var(--c-accent) 58%, var(--c-accent) 92%, transparent 92%); }
.sec-lead { font-weight: 700; font-size: var(--fs-lg); }

/* ステッカー風（太い線＋ずらした影） */
.type, .chance, .schol__card, .fact, .subj, .steps--icon .step {
  border: 3px solid var(--c-text); box-shadow: 5px 5px 0 var(--c-text); border-radius: 16px;
}
.facts--icon .fact { background: var(--c-surface); }
#about { background: var(--c-bg); }
.chance { background: var(--c-surface); }
#chance { background: var(--c-bg); }
.steps--icon .step { background: var(--c-surface); }
.type:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--c-text); border-color: var(--c-text); }
.type__way { border-radius: 10px; }
.facts--icon .ico { width: 64px; height: 64px; padding: 8px; border-radius: 50%; background: var(--c-main-soft); box-sizing: content-box; }

/* 特待生：黄色の帯で一番目立たせる */
.section--pop { position: relative; background: var(--c-accent); overflow: hidden; }
.section--pop::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(ellipse 13px 8px at 50% 50%, transparent 10px, rgba(35,48,46,.10) 11px, rgba(35,48,46,.10) 12px, transparent 13px); background-size: 40px 28px; }
.section--pop > .wrap { position: relative; }
.section--pop .marker { background-image: linear-gradient(transparent 58%, #fff 58%, #fff 92%, transparent 92%); }
.section--pop .eyebrow { background: var(--c-brand); }
.schol__total { background: var(--c-brand); color: #fff; border-color: var(--c-text); box-shadow: 5px 5px 0 var(--c-text); }
.schol__total b { color: #fff; }
.schol__total b .num { color: var(--c-accent); }
.section--pop .mid-cta { background: var(--c-text); }

/* 途中のボタン：濃い色の帯に */
.mid-cta { background: var(--c-hero); border: 3px solid var(--c-text); border-style: solid; box-shadow: 5px 5px 0 var(--c-text); border-radius: 16px; color: #fff; }
.mid-cta__text { color: #fff; font-size: var(--fs-xl); }
.mid-cta .btn--guide { background: var(--c-surface); color: var(--c-main); box-shadow: 0 4px 0 var(--c-hero-dark); }
.mid-cta .btn--guide:hover { color: var(--c-main); background: var(--c-main-soft); }
.mid-cta .btn--guide.btn--pdf::before { background: var(--c-main-soft); }

/* よくある質問（白背景用） */
#faq .faq details { background: var(--c-bg); box-shadow: none; border: 2px solid var(--c-line); }
#faq .faq details[open] { border-color: var(--c-main); box-shadow: none; }

/* 3つの仕組みの番号を大きく */
.chance__no .bubble--lg { --b-w: 3em; --b-h: 2em; font-size: 1.125rem; }

@media (max-width: 479px) {
  .type, .chance, .schol__card, .fact, .subj, .steps--icon .step, .mid-cta { box-shadow: 4px 4px 0 var(--c-text); }
  .facts--icon .ico { width: 48px; height: 48px; padding: 6px; }
}

/* =========================================================
   日程の見せ方：カレンダー風のカード3枚＋目立つ残り日数
   ========================================================= */
.sched { background: var(--c-surface); border: 3px solid var(--c-text); box-shadow: 5px 5px 0 var(--c-text); border-radius: 16px; gap: var(--sp-3); }
.sched__top { gap: 12px; }
.sched__tabs { border-width: 3px; border-color: var(--c-text); }
.sched__tab { min-height: 44px; min-width: 88px; font-size: var(--fs-md); }
.sched__tab[aria-selected="true"] { background: var(--c-text); }
.sched__count { display: inline-flex; align-items: baseline; gap: 4px; margin-left: auto; padding: 6px 18px; border-radius: var(--r-btn); background: var(--c-brand); color: #fff; font-size: var(--fs-sm); }
.sched__count b { color: var(--c-accent); font-size: 2rem; }

.sched__steps { display: grid; grid-template-columns: 1fr; gap: 28px; }
.sched__step { display: grid; grid-template-columns: 1fr; grid-template-areas: "label" "date" "sub"; gap: 0; padding: 0; text-align: center; border: 3px solid var(--c-text); border-radius: 14px; overflow: visible; background: var(--c-surface); position: relative; }
.sched__step .bubble { display: none; }
.sched__label { grid-area: label; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px; background: var(--c-main); color: #fff; font-size: var(--fs-md); border-radius: 10px 10px 0 0; white-space: nowrap; }
.sched__date { grid-area: date; padding: 14px 8px 4px; color: var(--c-text); white-space: normal; }
.sched__date b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; white-space: nowrap; }
.sched__date small { font-size: var(--fs-sm); font-weight: 700; }
.sched__sub { grid-area: sub; padding: 0 8px 14px; font-size: var(--fs-sm); color: var(--c-text); }
/* カードの間の矢印 */
.sched__step:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: auto; right: auto; bottom: -23px; transform: translateX(-50%); width: 0; height: 0; border: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 14px solid var(--c-text); }
/* いま・終わった段 */
.sched__step.is-now { box-shadow: 0 0 0 5px var(--c-accent); }
.sched__step.is-now .sched__label { background: var(--c-brand); }
.sched__step.is-now .sched__date { color: var(--c-brand); }
.sched__now { background: var(--c-accent); color: var(--c-text); font-size: var(--fs-xs); }
.sched__step.is-done { opacity: .55; }
.sched__step.is-done .sched__label { background: var(--c-muted); }

@media (min-width: 640px) {
  .sched__steps { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .sched__step { grid-template-areas: "label" "date" "sub"; justify-items: stretch; }
  .sched__step:not(:last-child)::after { left: auto; right: -25px; bottom: auto; top: 50%; transform: translateY(-50%); border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 14px solid var(--c-text); border-right: 0; }
}
@media (min-width: 1024px) {
  .sched { grid-template-columns: 1fr; padding: var(--sp-3) var(--sp-4); }
  .sched__top { flex-direction: row; align-items: center; }
  .sched__count { margin-left: auto; }
}
@media (max-width: 479px) {
  .sched { box-shadow: 4px 4px 0 var(--c-text); }
  .sched__top { justify-content: center; }
  .sched__count { margin-left: 0; }
  .sched__steps { gap: 24px; }
  .sched__step { grid-template-columns: 6.5em 1fr; grid-template-areas: "label date" "label sub"; text-align: left; }
  .sched__label { flex-direction: column; border-radius: 10px 0 0 10px; padding: 8px 4px; font-size: var(--fs-sm); gap: 4px; }
  .sched__date { padding: 10px 12px 0; }
  .sched__date b { font-size: 1.5rem; }
  .sched__sub { padding: 0 12px 10px; font-size: var(--fs-xs); }
  .sched__step:not(:last-child)::after { left: 3.25em; bottom: -20px; border-left-width: 11px; border-right-width: 11px; border-top-width: 11px; }
}

/* 5枚目（マークシート）：スマホは横長1枚、PCは5列 */
.facts--icon .fact--wide { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 16px; align-items: center; }
.facts--icon .fact--wide .ico { grid-row: span 2; }
.facts--icon .fact--wide .fact__head { align-self: end; }
.facts--icon .fact--wide p:not(.fact__head) { align-self: start; }
@media (min-width: 1024px) {
  .facts--icon { grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); }
  .facts--icon .fact--wide { grid-column: auto; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .facts--icon .fact--wide .ico { grid-row: auto; }
  .facts--icon .fact__head { font-size: var(--fs-lg); }
}

/* 特待生の条件カード：下の空白にイラストと吹き出し */
.schol__card { display: flex; flex-direction: column; overflow: hidden; }
.schol__card > * + * { margin-top: var(--sp-2); }
.schol__cheer { margin-top: auto !important; display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding-top: var(--sp-2); }
.schol__cheer img { width: 120px; height: auto; margin-bottom: calc(-1 * var(--sp-4)); }
.schol__say { position: relative; display: grid; gap: 2px; margin-bottom: 40px; padding: 12px 18px; border-radius: 16px; background: var(--c-accent); border: 3px solid var(--c-text); font-weight: 700; text-align: center; }
.schol__say b { font-family: var(--f-head); font-size: var(--fs-xl); color: var(--c-brand); }
.schol__say span { font-size: var(--fs-xs); }
.schol__say::after { content: ""; position: absolute; right: -14px; bottom: 18px; width: 18px; height: 18px; background: var(--c-accent); border-right: 3px solid var(--c-text); border-bottom: 3px solid var(--c-text); transform: rotate(-45deg); }
@media (max-width: 479px) { .schol__cheer img { width: 96px; margin-bottom: calc(-1 * var(--sp-3)); } .schol__say { margin-bottom: 28px; padding: 10px 12px; } }

/* 日程と会場の表：読みやすく */
.facts-box .table-scroll { border: 3px solid var(--c-text); box-shadow: 5px 5px 0 var(--c-text); border-radius: 16px; }
.table--sched { font-size: var(--fs-md); }
.table--sched thead th { background: var(--c-text); font-size: var(--fs-sm); padding: 14px 18px; }
.table--sched th, .table--sched td { padding: 20px 18px; vertical-align: middle; border-bottom: 2px solid var(--c-line); }
.table--sched tbody th { width: 5.5em; text-align: center; background: var(--c-surface); }
.table--sched tbody th::before { content: attr(data-term); }
.table--sched tbody tr:first-child th { color: var(--c-main); }
.table--sched tbody tr:nth-child(2) th { color: var(--c-brand); }
.table--sched tbody th { font-family: var(--f-head); font-size: 1.375rem; }
.table--sched tbody tr:nth-child(2) { background: var(--c-bg); }
.table--sched tbody tr:nth-child(2) th { background: var(--c-bg); }
.table--sched td { font-weight: 700; white-space: nowrap; }
.table--sched .exams { gap: 8px; }
.table--sched .exam { display: flex; align-items: center; gap: 10px; }
.table--sched .exam small { flex: none; display: inline-block; width: 7.5em; text-align: center; padding: 2px 6px; border-radius: var(--r-btn); background: var(--c-main-soft); color: var(--c-main); font-size: var(--fs-xs); }
.table--sched .exam b { color: var(--c-brand); font-size: var(--fs-lg); }
@media (max-width: 767px) {
  .facts-box .table-scroll { border: 0; box-shadow: none; }
  .table--sched tr { border: 3px solid var(--c-text); box-shadow: 4px 4px 0 var(--c-text); border-radius: 14px; }
  .table--sched tbody th { width: auto; text-align: left; font-size: var(--fs-lg); color: #fff !important; background: var(--c-main) !important; }
  .table--sched tbody tr:nth-child(2) th { background: var(--c-brand) !important; }
  .table--sched tbody tr:nth-child(2) { background: var(--c-surface); }
  .table--sched td { padding: 12px 16px; border-bottom: 1px solid var(--c-line); white-space: normal; }
  .table--sched .exam { flex-wrap: wrap; gap: 4px 8px; }
  .table--sched .exam b { font-size: var(--fs-md); }
}

.table--sched .venue { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); }

/* ひと目でわかる：6枚（スマホ2列×3、PC3列×2） */
@media (min-width: 1024px) { .facts--icon { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); } }
.table--sched .venue-plus { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: var(--r-btn); background: var(--c-accent); color: var(--c-text); font-size: var(--fs-xs); font-weight: 700; }


/* タイプ別の顔アイコン（正方形に整えた画像） */
.type__face img { inset: 0; top: 0; left: 0; width: 100% !important; height: 100%; transform: none; object-fit: cover; }

/* =========================================================
   3つの仕組み v2：色帯の見出し＋図＋ひとこと
   ========================================================= */
.chances--v2 .chance { display: flex; flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.chance__band { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--c-main); color: #fff; }
.chance__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent); color: var(--c-text); border: 3px solid var(--c-text); font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; }
.chances--v2 .chance__title { color: #fff; font-size: var(--fs-lg); line-height: 1.4; }
.chances--v2 .chance__body { flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 18px; }
.chance__tag { justify-self: start; padding: 2px 12px; border-radius: var(--r-btn); background: var(--c-main-soft); color: var(--c-main); font-size: var(--fs-sm); font-weight: 700; }
.chance__point { margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--c-line); font-weight: 700; text-align: center; }
.chance__point b { color: var(--c-brand); }
.chances__note { margin-top: var(--sp-2); text-align: right; }

/* 1：2日分の棒グラフ */
.days2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; height: 190px; padding: 0 12px; border-bottom: 3px solid var(--c-text); }
.day2 { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.day2__bar { order: 2; width: 70%; height: calc(var(--h) / 225 * 140px); background: var(--c-line); border-radius: 8px 8px 0 0; }
.day2 b { order: 1; font-family: var(--f-head); font-size: 1.75rem; line-height: 1.2; margin-bottom: 4px; }
.day2 b small { font-size: var(--fs-sm); }
.day2__d { position: absolute; bottom: -30px; font-size: var(--fs-sm); font-weight: 700; }
.day2--best .day2__bar { background: var(--c-brand); }
.day2--best b { color: var(--c-brand); }
.day2__crown { order: 0; margin-bottom: 4px; padding: 2px 10px; border-radius: var(--r-btn); background: var(--c-accent); border: 2px solid var(--c-text); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.chances--v2 .chance:first-child .chance__point { margin-top: 30px; }

/* 2：2回の判定 */
.judge { display: grid; gap: 10px; }
.judge__in { display: flex; justify-content: center; gap: 8px; position: relative; padding-bottom: 22px; }
.judge__in::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 14px solid var(--c-text); }
.judge__in span { padding: 6px 14px; border-radius: 10px; border: 2px solid var(--c-line); background: var(--c-bg); font-weight: 700; white-space: nowrap; }
.judge__in .judge__hi { border-color: var(--c-brand); }
.judge__in b { font-size: var(--fs-lg); }
.judge__out { display: grid; gap: 8px; }
.judge__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 3px solid var(--c-main); font-weight: 700; }
.judge__row b { font-family: var(--f-head); font-size: 1.5rem; color: var(--c-main); white-space: nowrap; }
.judge__row b small { font-size: var(--fs-sm); }
.judge__lbl { padding: 2px 8px; border-radius: 6px; background: var(--c-main); color: #fff; font-size: var(--fs-xs); }
.judge__row--hi { border-color: var(--c-brand); }
.judge__row--hi b { color: var(--c-brand); }
.judge__row--hi .judge__lbl { background: var(--c-brand); }

/* 3：志望3つに検定料1つ */
.wish { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.wish__slips { display: grid; gap: 6px; position: relative; }
.wish__slips span { padding: 8px 12px; border-radius: 8px; border: 2px solid var(--c-text); background: var(--c-surface); font-weight: 700; text-align: center; box-shadow: 3px 3px 0 var(--c-line); }
.wish__slips span:first-child { background: var(--c-accent); }
.wish__price { position: relative; display: grid; justify-items: center; padding: 14px 12px; border-radius: 12px; background: var(--c-brand); color: #fff; font-weight: 700; line-height: 1.2; }
.wish__price::before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 14px solid var(--c-brand); }
.wish__price b { font-family: var(--f-head); font-size: 1.75rem; color: var(--c-accent); }
.wish__price small { font-size: var(--fs-xs); }

.schol__cheer img { width: 170px; margin-bottom: calc(-1 * var(--sp-4)); }
.schol__say { margin-bottom: 70px; }
.schol__say::after { bottom: 22px; }
@media (max-width: 479px) { .schol__cheer img { width: 130px; margin-bottom: calc(-1 * var(--sp-3)); } .schol__say { margin-bottom: 50px; } }
/* 日程表：縦の区切り線（PC・タブレット） */
@media (min-width: 768px) {
  .table--sched th + th, .table--sched th + td, .table--sched td + td { border-left: 2px solid var(--c-line); }
  .table--sched thead th + th { border-left-color: rgba(255,255,255,.25); }
}
#faq .faq details { background: var(--c-surface); }
/* 3つの仕組み：カード内を横いっぱいに使う（タブレット幅の右側の空白対策） */
.chances--v2 .chance { align-items: stretch; }
.chances--v2 .chance__body { justify-items: center; }
.chances--v2 .chance__body > .days2, .chances--v2 .chance__body > .judge, .chances--v2 .chance__body > .wish { width: 100%; max-width: 460px; }
.chances--v2 .chance__point { width: 100%; }
@media (min-width: 640px) and (max-width: 1023px) {
  .chances--v2 .chance__body { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; align-items: center; column-gap: var(--sp-4); }
  .chances--v2 .chance__tag { grid-column: 1; grid-row: 1; align-self: end; justify-self: start; }
  .chances--v2 .chance__point { grid-column: 1; grid-row: 2; align-self: start; text-align: left; border-top: 0; padding-top: 0; margin-top: 0 !important; font-size: var(--fs-lg); }
  .chances--v2 .chance__body > .days2, .chances--v2 .chance__body > .judge, .chances--v2 .chance__body > .wish { grid-column: 2; grid-row: 1 / span 2; }
  .chances--v2 .chance:first-child .chance__body { padding-bottom: 46px; }
}

/* ファーストビュー：4年間の総額 */
.hero__pill-yen { gap: 6px 10px; flex-wrap: wrap; justify-content: center; }
.hero__pill-yen b .num { font-size: 2.75rem; line-height: 1; letter-spacing: -.01em; }
.hero__pill-yen b { font-size: 1.25rem; }
.hero__pill-off { font-weight: 700; font-size: var(--fs-md); }
@media (max-width: 767px) { .hero__pill-yen b .num { font-size: 2.25rem; } }
@media (min-width: 1024px) {
  .hero__pill-yen { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-items: start; gap: 0 6px; }
  .hero__pill-yr { grid-column: 1 / -1; justify-self: center; margin-bottom: 2px; }
  .hero__pill-yen b .num { font-size: 2.5rem; }
}

.sched__essay { display: block; width: fit-content; margin: 6px auto 0; padding: 2px 10px; border-radius: var(--r-btn); background: var(--c-main-soft); color: var(--c-main); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
@media (max-width: 479px) { .sched__essay { margin-left: 0; } }

@media (max-width: 479px) {
  .sched__step { grid-template-columns: 5.5em minmax(0, 1fr); }
  .sched__essay { white-space: normal; }
  .sched__date b { font-size: 1.375rem; }
}

/* 科目カード見出し：（マークシート）を2行目に小さく。全角かっこの左の空きを詰める */
.subj__sub { display: block; font-size: .78em; margin-left: -.5em; margin-top: 2px; color: var(--c-main); }

/* 併願OKのアイコン（画像）：円の背景が画像に含まれるので、枠の背景・余白は付けない */
.facts--icon .ico--img { width: 80px; height: 80px; padding: 0; background: none; border-radius: 50%; }
@media (max-width: 479px) { .facts--icon .ico--img { width: 60px; height: 60px; padding: 0; } }

/* Aの丸もBと同じ白地にそろえる（10/16） */
.type--pick .type__pic .bubble { background: var(--c-surface); }

/* 320px幅で「マークシート」「入学検定料は」が途中で折れないよう、アイコンカードの文字を少し小さく */
@media (max-width: 374px) {
  .facts--icon .fact__head { font-size: 1rem; }
  .facts--icon .fact p:not(.fact__head) { font-size: .8125rem; }
}

/* 試験科目と配点（10/16 スマホで分かりにくい→学力試験型／小論文型の2枚にまとめ、配点を同じカードに） */
.exam-box { display: grid; gap: 12px; margin-top: var(--sp-5); }
.exam-box .subjects { margin-top: 0; gap: var(--sp-3); }
@media (min-width: 900px) { .exam-box .subjects { grid-template-columns: 3fr 2fr; align-items: stretch; } }
.ex { gap: 14px; }
.ex__h { margin: 0; font-family: var(--f-head); font-size: var(--fs-xl); line-height: 1.3; color: var(--c-text); }
.ex__h small { font-size: .6em; color: var(--c-main); margin-left: 2px; }
.ex__subj { margin: 0; display: grid; gap: 10px; }
.ex__subj > div { display: grid; grid-template-columns: 3.6em 1fr; align-items: center; gap: 10px; }
.ex__subj dt { justify-self: start; padding: 2px 10px; border-radius: var(--r-btn); background: var(--c-main); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.ex__subj dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 12px; border-radius: 8px; background: var(--c-main-soft); color: var(--c-main); font-weight: 700; white-space: nowrap; }
.chip small { font-size: var(--fs-xs); }
.ex__pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-top: 2px dashed var(--c-line); padding-top: 14px; }
.ex__pts li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 10px 14px; border-radius: 10px; background: var(--c-bg); }
.ex__way { color: var(--c-brand); font-size: var(--fs-md, 1rem); }
.ex__sum { white-space: nowrap; font-weight: 700; }
.ex__sum .num { font-size: 1.5rem; color: var(--c-main); margin-right: 2px; }
.ex__calc { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--c-muted); }
.ex__note { margin: 0; font-size: var(--fs-sm); line-height: 1.7; }

/* 「合否判定①②」ラベルが長くなったので、狭い画面ではラベルを上の段に出す */
@media (max-width: 400px) {
  .judge__row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .judge__lbl { grid-column: 1 / -1; justify-self: start; }
}

/* =========================================================
   動き（10/16 追加：読み進めてもらうための演出）
   - スクロールで要素がふわっと出る（JSが動いたときだけ。動かなければ最初から表示）
   - ファーストビューの2人が軽く揺れる／Web出願ボタンに光が走る
   - 「動きを減らす」設定の端末ではすべて止まる（上の prefers-reduced-motion）
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-shown { opacity: 1; transform: none; }
.js [data-reveal="pop"] { transform: translateY(16px) scale(.94); }
.js [data-reveal="pop"].is-shown { transform: none; }

/* ファーストビューの2人：ゆっくり上下 */
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero__char--a { animation: float-y 3.6s ease-in-out infinite; }
.hero__char--b { animation: float-y 3.6s ease-in-out 1.8s infinite; }
.final__char { animation: float-y 3.6s ease-in-out infinite; }
.final__char--b { animation-delay: 1.8s; }

/* Web出願ボタン：数秒おきに光が走る（矢印の ::after はそのまま） */
.btn--apply { background-image: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.38) 50%, transparent 60%); background-size: 250% 100%; background-repeat: no-repeat; background-position: 150% 0; animation: btn-shine 4.5s ease-in-out 1.5s infinite; }
@keyframes btn-shine { 0%, 70% { background-position: 150% 0; } 100% { background-position: -60% 0; } }

/* 「いまここ」：やさしく点滅 */
@keyframes now-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,63,.7); } 60% { box-shadow: 0 0 0 8px rgba(255,210,63,0); } }
.sched__step.is-now .sched__now { animation: now-pulse 2s ease-out infinite; }

/* フッター最下段：コピーライトを中央揃え（10/17） */
.site-foot__bottom { justify-content: center; text-align: center; }

/* スマホの日程カード：後期（最後の行）にも区切り線を付ける。各カードの一番下だけ線なし（10/17） */
@media (max-width: 767px) {
  .table--sched tr:last-child > td { border-bottom: 1px solid var(--c-line); }
  .table--sched tr > td:last-child { border-bottom: 0; }
}

/* タイプ別カード：帯の下の説明文（D 英語のみなし得点・10/19） */
.type__desc { margin: 0; font-size: var(--fs-sm); line-height: 1.8; }

/* 注記内のリンク（D 募集要項P20・10/19） */
.note__link { display: inline-block; margin-top: 4px; color: var(--c-main); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.note__link::after { content: " ›"; }
.note__link:hover { color: var(--c-brand); }
.note__ref { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
.type__row .note__link { white-space: nowrap; }

/* 10/27 フォントチェック：12px未満だった注記を12pxにそろえる */
.facts--icon small, .split small { font-size: var(--fs-xs); }
.site-foot__tel small { font-size: var(--fs-xs); }
@media (max-width: 374px) { .flow__what b { font-size: var(--fs-md); } }
.faq__q { min-width: 0; }
