/* ============================================================
   tokens
   ============================================================ */
:root {
  --bg:           #FFFFFF;
  --bg-soft:      #F2F1EE;       /* warm greige, MUJI-inspired */
  --bg-tint:      #FFFFFF;
  --fg:           #333333;
  --muted:        rgba(51,51,51,1);     /* body text — solid; was .92 but read as too light/thin */
  --muted-soft:   rgba(51,51,51,.75);   /* sub labels, captions */
  --faint:        rgba(51,51,51,.32);

  /* dual-tone academic accent — Waseda crimson × Keio navy */
  --crimson:      #8C2332;
  --crimson-deep: #6F1A26;
  --crimson-soft: rgba(140,35,50,.06);
  --crimson-tint: #F4E4E6;

  --navy:         #1B2A4E;
  --navy-deep:    #0F1B36;
  --navy-soft:    rgba(27,42,78,.06);
  --navy-tint:    #DDE3EE;

  --gold:         #1D1D1B;

  /* default accent = crimson; navy used selectively as --accent-2 */
  --accent:       #8C2332;
  --accent-deep:  #6F1A26;
  --accent-soft:  rgba(140,35,50,.06);
  --accent-tint:  #F4E4E6;
  --accent-rgb:   140, 35, 50;
  --accent-2:     #1B2A4E;
  --accent-2-deep:#0F1B36;

  --skin:         #f3d2b3;
  --border:       rgba(26,26,26,.10);
  --border-strong:rgba(26,26,26,.22);
  --card:         #ffffff;
  --dark-bg:      #111418;
  --dark-fg:      #FAFAF8;
  --dark-muted:   rgba(250,247,243,.62);
  --dark-border:  rgba(250,247,243,.12);

  --font-en:     "Noto Sans JP", "Helvetica Neue", sans-serif;
  --font-jp:     "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-heading: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-base:   "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mincho: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;

  /* Japanese-first type scale. 12px is supplementary information only;
     explanatory copy begins at 16px. */
  --text-xs:   12px;   /* source, date, compact supplementary metadata */
  --text-sm:   14px;   /* navigation, controls, compact labels */
  --text-base: 16px;   /* standard explanatory copy */
  --text-md:   18px;   /* lead text and important supporting copy */
  --text-lg:   20px;   /* lead text, sub-headings */
  --text-xl:   26px;   /* h3/h4-level headings */
  --text-2xl:  34px;   /* large headings */
  --text-3xl:  46px;   /* h2 section headings */
  --text-4xl:  84px;   /* hero heading */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    700; /* hero watermark only; avoid synthetic weight */

  --max:    1200px;
  --pad-x:  clamp(20px, 5vw, 80px);
  --pad-y:  var(--space-section);
  --radius: 10px;
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(26,26,26,.04), 0 4px 12px rgba(26,26,26,.04);
  --shadow-md: 0 4px 16px rgba(26,26,26,.05), 0 16px 40px rgba(26,26,26,.06);

  /* z-index scale — local decorative layers stay low (0-2),
     nav/overlay layers jump to a distinct tier (50+) so the two
     never collide by accident. */
  --z-base:     0;
  --z-local:    1;
  --z-raised:   2;
  --z-header:   50;
  --z-overlay:  55;
  --z-menu-btn: 60;
}

/* ============================================================
   reset + base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--fg);
  font-size: var(--text-base);
  line-height: 1.8;
  letter-spacing: 0;
  font-feature-settings: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: var(--weight-regular);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* mono-style labels (uppercase, tracked) */
.eyebrow,
.label,
.meta-label,
.mono {
  font-family: var(--font-en);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  text-transform: uppercase;
}

/* dual-accent helpers */
.crimson { color: var(--crimson); }
.navy    { color: var(--navy); }
.gold    { color: var(--gold); }

/* navy variant: scope navy as the active accent (used per-element) */
.use-navy {
  --accent:      var(--navy);
  --accent-deep: var(--navy-deep);
  --accent-soft: var(--navy-soft);
  --accent-tint: var(--navy-tint);
}

/* ============================================================
   hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: clamp(72px, 11vh, 128px) var(--pad-x);
  background: var(--bg-soft);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: var(--z-local);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-text {
  position: relative;
  z-index: var(--z-local);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: clamp(20px, 3vw, 32px);
  max-width: 640px;
}
.eyebrow {
  font-size: var(--text-xs);
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
}
/* Full commitment to background texture, not readable copy: huge, very
   faint, allowed to bleed off the top/left/right edges and sit behind
   the heading — at this size/opacity it reads as structure, not text,
   so overlapping the foreground no longer hurts legibility. */
.hero-watermark {
  position: absolute;
  top: clamp(-120px, -11vw, -60px);
  left: -4%;
  right: -4%;
  z-index: var(--z-base);
  text-align: right;
  font-family: var(--font-en);
  font-size: clamp(90px, 15vw, 220px); /* intentionally beyond the type scale — background texture, not readable copy */
  font-weight: var(--weight-black);
  line-height: .92;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  white-space: normal;
  pointer-events: none;
}
@media (max-width: 640px) {
  /* Dropped from the mobile layout entirely (was a small readable eyebrow
     line) to reclaim vertical space so the hero's CTAs land within the
     first screen — already aria-hidden, so this is purely a visual
     change; the text stays in the DOM, matching desktop's decorative-
     only treatment of the same element. */
  .hero-watermark {
    display: none;
  }
}
.hero-heading {
  position: relative;
  z-index: var(--z-local);
  margin-bottom: clamp(24px, 3vw, 36px);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-feature-settings: normal;
  font-size: clamp(42px, 7vw, var(--text-4xl));
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--fg);
  word-break: normal;
  overflow-wrap: anywhere;
}
/* Two tightly-fit boxes (one per line) instead of one big card — a shade
   darker than the page's own warm gray, flush left, light shadow for lift. */
.hero-title-box {
  display: inline-block;
  background: #fff;
  padding: .12em .32em;
  border-radius: 6px;
  box-shadow: 0 6px 16px -10px rgba(26, 26, 26, .18);
}
.hero-title-gold { color: #1D1D1B; }
.hero-title-box-2 {
  margin-top: .22em;
}
.hero-badges {
  position: relative;
  z-index: var(--z-local);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(16px, 2.2vw, 22px);
}
.hero-badge {
  font-family: var(--font-jp);
  font-size: clamp(var(--text-xs), 1.05vw, var(--text-sm));
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  color: var(--fg);
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: var(--radius-full);
  padding: 7px 17px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .64), 0 8px 20px -16px rgba(29, 29, 27, .30);
  backdrop-filter: saturate(130%) blur(12px);
  -webkit-backdrop-filter: saturate(130%) blur(12px);
}
@media (max-width: 480px) {
  .hero-badges { gap: 3px; }
  .hero-badge { padding: 6px 6px; }
}
.hero-sub {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, var(--text-md));
  line-height: 1.8;
  font-weight: var(--weight-medium);
  margin-top: clamp(18px, 2.8vw, 30px);
}
.hero-actions { display: flex; justify-content: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
/* Hero CTAs: bigger + shadow-elevated (scoped override — .btn-primary/
   .btn-ghost stay unchanged elsewhere on the site). */
.hero-actions .btn {
  padding: 18px 34px;
  font-size: var(--text-md);
}
.hero-actions .btn-primary,
.hero-actions .btn-primary:hover {
  box-shadow: 0 10px 24px -8px rgba(26, 26, 26, .35);
}
/* .btn-ghost has no fill elsewhere on the site, but here it can sit over
   the background watermark text — give it an opaque white fill (relying
   on the shadow for definition, no border) so the letters behind it
   don't show through. */
.hero-actions .btn-ghost {
  background: #fff;
  border: none;
  box-shadow: 0 10px 24px -10px rgba(26, 26, 26, .22);
}
.hero-actions .btn-ghost:hover {
  background: #fff;
  box-shadow: 0 12px 28px -10px rgba(26, 26, 26, .28);
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ============================================================
   section base
   ============================================================ */
.section {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}
/* full-bleed sections, alternating white/gray in page order:
   about(white) / courses(gray) / exam-data(white) / blog(gray) /
   profile(white) / faq(gray) / flow(white) */
#about, #courses, #exam-data-preview, #flow, #blog-preview, #profile, #faq {
  max-width: none;
}
#about > *, #courses > *, #exam-data-preview > *, #flow > *, #blog-preview > *, #profile > *, #faq > * {
  max-width: var(--max);
  margin-inline: auto;
}
#courses, #blog-preview, #faq {
  background: var(--bg-soft);
}
#courses {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.blog-preview-scroller-wrap {
  position: relative;
}
.blog-preview-scroller {
  display: flex;
  gap: clamp(20px, 2.4vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad-x);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.blog-preview-scroller::-webkit-scrollbar { display: none; }
.blog-preview-scroller.is-centered { justify-content: center; }
.blog-preview-scroller .blog-card,
.blog-preview-scroller .blog-skeleton-card {
  scroll-snap-align: start;
}
.blog-preview-scroller .blog-card { flex: 0 0 clamp(260px, 28vw, 320px); }
.blog-preview-scroller .blog-skeleton-card { flex: 0 0 300px; }
.blog-preview-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,26,26,.10);
  transition: border-color .2s, transform .2s;
  z-index: var(--z-raised);
}
.blog-preview-arrow:hover { border-color: var(--accent-tint); transform: translateY(-50%) scale(1.06); }
.blog-preview-arrow[hidden] { display: none; }
.blog-preview-arrow.is-prev { left: -22px; }
.blog-preview-arrow.is-next { right: -22px; }
@media (max-width: 900px) {
  .blog-preview-arrow { display: none; }
}
.blog-preview-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-content);
}

.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: var(--space-content);
  max-width: 760px;
}
.section-head h2 {
  font-family: var(--font-heading);
  font-feature-settings: normal;
  font-size: clamp(28px, 4vw, var(--text-3xl));
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: 1.45;
}
.section-head h2 .accent { color: var(--accent); }
.section-head p {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, var(--text-md));
  line-height: 2;
  max-width: 60ch;
  font-weight: var(--weight-medium);
}
.section-head.is-center {
  align-items: center;
  text-align: center;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.section-head.is-center p { max-width: 64ch; }

/* ============================================================
   why — 4-up grid with icons (alternating crimson / navy)
   ============================================================ */
.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.why-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(20px, 2.4vw, 32px);
  row-gap: 20px;
  align-items: start;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.why-item .why-icon { grid-row: span 4; }
.why-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow:
    0 1px 3px rgba(26, 26, 26, .04),
    0 18px 40px rgba(26, 26, 26, .10);
}
.why-icon {
  width: 120px; height: 120px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.why-icon i.ph {
  font-size: 52px;
  color: var(--muted);
  line-height: 1;
}
.why-icon svg { width: 52px; height: 52px; color: var(--muted); }
/* (icons unified to grey) */
.why-icon--navy {
  background: var(--bg-soft);
  border-color: var(--border);
}
.why-icon--navy i.ph { color: var(--muted); }
.why-item-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.why-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1D1D1B;
  color: #fff;
  font-family: var(--font-en);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: 1;
  font-feature-settings: "lnum" 1;
  flex-shrink: 0;
}
.why-item h3 {
  font-family: var(--font-heading);
  font-feature-settings: normal;
  font-size: clamp(21px, 2.1vw, var(--text-xl));
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: 1.6;
}
.why-item h3 .title-marker {
  border: 0;
  padding: 0;
}
.why-item p { color: var(--muted); font-size: var(--text-base); line-height: 1.85; font-weight: var(--weight-medium); }
#about .why-item p { font-size: var(--text-base); }

/* alternate accent across the 4 cards */
.why-item:nth-child(2),
.why-item:nth-child(4) {
  --accent: var(--navy);
  --accent-deep: var(--navy-deep);
  --accent-soft: var(--navy-soft);
  --accent-tint: var(--navy-tint);
  --accent-rgb: 27, 42, 78;
}

.why-item.is-diagram {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-content: start;
}
.why-item.is-diagram > p { align-self: start; margin: 0; }

/* ===== About SOLA information panels =====
   Each card uses the same calm panel frame.  The contents stay specific
   (selection, course list or online guidance) without looking like a fake
   browser window. */
.mockup-panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
}
.mockup-chrome {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.mockup-chrome-dot { display: none; }
.mockup-chrome-title {
  position: relative;
  padding-left: 10px;
  font-family: var(--font-jp);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--fg);
  letter-spacing: 0;
}
.mockup-chrome-title::before {
  content: '';
  position: absolute;
  top: .28em;
  bottom: .28em;
  left: 0;
  width: 3px;
  border-radius: var(--radius-full);
  background: var(--accent);
}
.mockup-body { padding: 12px 16px; }

/* ① フィルターUIモックアップ */
.filter-mockup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-radius: var(--radius);
  font-family: var(--font-jp);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: 10px;
}
.filter-mockup-row.is-off { color: var(--muted-soft); }
.filter-mockup-row.is-on { color: #fff; }
.filter-mockup-row.is-on.is-waseda { background: var(--crimson); }
.filter-mockup-row.is-on.is-keio { background: var(--navy); }
.filter-mockup-check {
  width: 19px; height: 19px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  display: grid; place-items: center;
}
.filter-mockup-check svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: transparent;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.filter-mockup-row.is-on .filter-mockup-check {
  background: #fff;
  border-color: #fff;
}
.filter-mockup-row.is-on .filter-mockup-check svg { stroke: var(--fg); }

/* ② 選択カードUIモックアップ */
.select-mockup-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-family: var(--font-jp); font-weight: var(--weight-semibold); font-size: var(--text-base);
  margin-bottom: 8px;
}
.select-mockup-option.is-waseda { border-color: var(--crimson); background: var(--crimson-soft); color: var(--crimson-deep); }
.select-mockup-option.is-keio { border-color: var(--navy); background: var(--navy-soft); color: var(--navy-deep); }
.select-mockup-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.select-mockup-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.select-mockup-result {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  margin-top: 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-family: var(--font-jp); font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--fg);
}
.select-mockup-result-icon { width: 15px; height: 15px; flex-shrink: 0; }
.select-mockup-result-icon circle { fill: var(--accent); }
.select-mockup-result-icon path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ③ コース一覧UIモックアップ */
.catalog-mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.catalog-mockup-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.catalog-mockup-check {
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.catalog-mockup-check.is-waseda { background: var(--crimson); }
.catalog-mockup-check.is-keio { background: var(--navy); }
.catalog-mockup-check svg {
  width: 11px; height: 11px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.catalog-mockup-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.catalog-mockup-body strong { font-family: var(--font-jp); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--fg); }
.catalog-mockup-body span { font-family: var(--font-jp); font-size: var(--text-xs); color: var(--muted-soft); }

/* ④ オンライン指導の要点 */
.online-support-list { list-style: none; display: grid; }
.online-support-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.online-support-list li:first-child { padding-top: 0; }
.online-support-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.online-support-number {
  padding-top: 1px;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
}
.online-support-list strong,
.online-support-list span:not(.online-support-number) {
  display: block;
  font-family: var(--font-jp);
}
.online-support-list strong {
  color: var(--fg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.55;
}
.online-support-list span:not(.online-support-number) {
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.55;
}

.why-diagram {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  gap: 14px;
  margin-top: 20px;
  padding: 12px 4px 0;
}

@media (max-width: 720px) {
  .why { grid-template-columns: 1fr; }
  .why-item { grid-template-columns: 1fr; }
  .why-item.is-diagram { grid-template-rows: auto auto auto; }
  .why-item .why-icon {
    grid-row: auto;
    justify-self: center;
    margin-bottom: 4px;
  }
  .catalog-mockup-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   courses
   ============================================================ */
.course-block + .course-block { margin-top: var(--space-section); }
.course-block { scroll-margin-top: 74px; }
.course-block-head {
  margin-bottom: var(--space-content);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
}
.course-block-head h3 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3vw, 40px);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: 1.4;
}
.course-block-head h3::after {
  content: none;
}
.course-block-media {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 10px;
  box-shadow: 0 8px 18px -12px rgba(20,20,20,.38);
  overflow: hidden;
  /* Optical alignment with the visual center of large Japanese headings. */
  transform: translateY(2px);
}
.course-block-media.is-general {
  background:
    radial-gradient(88% 74% at 0% 100%, rgba(255,120,174,.94), transparent 70%),
    radial-gradient(78% 94% at 92% 8%, rgba(255,188,92,.90), transparent 72%),
    linear-gradient(135deg, #ffb177, #f177b6 52%, #9564e9);
}
.course-block-media.is-ao {
  background:
    radial-gradient(86% 74% at 4% 96%, rgba(151,123,255,.88), transparent 70%),
    radial-gradient(76% 90% at 96% 2%, rgba(104,215,255,.94), transparent 72%),
    linear-gradient(135deg, #6fd8ff, #6aa7f7 48%, #a477e8);
}
.course-block-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 42%);
}
.course-subblock + .course-subblock { margin-top: var(--space-content); }
.course-subblock-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.course-subblock-head h4 {
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.5vw, var(--text-md));
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: 1.4;
}
.course-grade-tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.course-grade-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-family: var(--font-jp);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
  white-space: nowrap;
}
/* ============================================================
   course-school-grid (2-column university layout)
   ============================================================ */
.course-school-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}
.school-column {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.school-header {
  padding: 18px 26px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
/* 一般入試（集中講座・添削コース）: ベタ塗り */
.school-column-waseda .school-header { background: var(--crimson); }
.school-column-keio .school-header { background: var(--navy); }
.school-name {
  font-family: var(--font-jp);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  color: #ffffff;
}
.school-count {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  letter-spacing: 0;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
}
/* 総合型選抜・AO入試: 一般入試と統一し、同じベタ塗りにする */
.school-courses {
  display: grid;
  grid-auto-rows: 1fr;
  flex: 1;
}
.school-course {
  padding: 27px 26px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 100px;
  transition: background .2s;
  font-family: var(--font-jp);
  text-decoration: none;
  color: inherit;
}
.school-course:last-child { border-bottom: none; }
.school-column-waseda .school-course:not(.is-disabled):hover { background: var(--crimson-soft); }
.school-column-keio .school-course:not(.is-disabled):hover { background: var(--navy-soft); }
.school-course.is-disabled {
  cursor: not-allowed;
  opacity: .55;
  pointer-events: none;
}
.school-course.is-disabled .school-course-arrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
/* 早慶共通 個別指導コース — full-width available highlight card */
.kobetsu-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px) clamp(24px, 3.5vw, 38px);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-content);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.kobetsu-card:hover {
  border-color: #E8DFCF;
  box-shadow: 0 16px 36px -20px rgba(26,26,26,.20);
  transform: translateY(-2px);
}
.kobetsu-main { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.kobetsu-badge {
  align-self: flex-start;
  font-family: var(--font-jp);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: 0;
  color: #fff;
  background: #8A7355;
  padding: 4px 13px; border-radius: var(--radius-full);
}
.kobetsu-name {
  font-family: var(--font-jp);
  font-size: clamp(18px, 2.1vw, var(--text-lg));
  font-weight: var(--weight-semibold); letter-spacing: 0;
  color: var(--fg);
}
.kobetsu-desc {
  font-family: var(--font-jp);
  font-size: var(--text-sm); line-height: 1.85; color: var(--muted);
  max-width: 64ch;
}
.kobetsu-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-jp);
  font-size: var(--text-base); font-weight: var(--weight-semibold);
  color: #fff; background: #8A7355;
  padding: 12px 26px; border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background .2s;
}
.kobetsu-card:hover .kobetsu-cta { background: #6E5A42; }
.kobetsu-cta .arrow { transition: transform .2s; }
.kobetsu-card:hover .kobetsu-cta .arrow { transform: translateX(3px); }

/* ============================================================
   course-entry-grid (一般入試 / 総合型選抜 entry cards)
   ============================================================ */
.course-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: var(--space-content);
}
.course-entry-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.course-entry-card:hover {
  border-color: rgba(26, 26, 26, .18);
  box-shadow: 0 16px 36px -20px rgba(26, 26, 26, .20);
  transform: translateY(-2px);
}
.course-entry-media {
  display: block;
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 2.75 / 1;
}
.course-entry-media.is-general {
  background:
    radial-gradient(78% 140% at 8% 112%, rgba(255, 141, 161, .94) 0%, rgba(255, 141, 161, 0) 63%),
    radial-gradient(74% 118% at 100% -12%, rgba(255, 201, 133, .96) 0%, rgba(255, 201, 133, 0) 65%),
    radial-gradient(84% 106% at 66% 86%, rgba(255, 172, 130, .82) 0%, rgba(255, 172, 130, 0) 68%),
    linear-gradient(135deg, #ffbb84 0%, #ff92aa 50%, #ffd39e 100%);
}
.course-entry-media.is-ao {
  background:
    radial-gradient(82% 130% at 2% 112%, rgba(94, 224, 196, .94) 0%, rgba(94, 224, 196, 0) 62%),
    radial-gradient(76% 124% at 100% -14%, rgba(122, 198, 246, .96) 0%, rgba(122, 198, 246, 0) 66%),
    radial-gradient(78% 102% at 61% 70%, rgba(110, 214, 214, .8) 0%, rgba(110, 214, 214, 0) 66%),
    linear-gradient(135deg, #82cdea 0%, #5fd6c2 50%, #ade8d4 100%);
}
.course-entry-media::before,
.course-entry-media::after {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: 0;
  pointer-events: none;
  filter: blur(18px);
}
.course-entry-media::before {
  background: linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, .28) 46%, transparent 68%);
  transform: rotate(-9deg) scale(1.24);
  opacity: .82;
}
.course-entry-media::after {
  background: radial-gradient(ellipse at 50% 52%, rgba(255, 255, 255, .24), transparent 61%);
  transform: scale(1.15);
}
.course-entry-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: clamp(24px, 3vw, 32px);
}
.course-entry-badge {
  align-self: flex-start;
  font-family: var(--font-jp);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  color: var(--fg);
  background: rgba(29, 29, 27, .06);
  border: 1px solid rgba(29, 29, 27, .10);
  padding: 5px 13px;
  border-radius: var(--radius-full);
}
.course-entry-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, var(--text-xl));
  font-weight: var(--weight-semibold);
  color: var(--fg);
}
.course-entry-desc {
  font-family: var(--font-jp);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.9;
  color: var(--muted);
}
.course-entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--fg);
  color: #fff;
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: background .2s, transform .15s;
}
.course-entry-cta .arrow { transition: transform .2s; }
.course-entry-card:hover .course-entry-cta { background: #343432; }
.course-entry-card:hover .course-entry-cta .arrow { transform: translateX(3px); }
@media (max-width: 640px) {
  .course-entry-grid { grid-template-columns: 1fr; }
  .course-entry-media { aspect-ratio: 3 / 1; }
}

.general-sub-label {
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.sub-label-text {
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.4vw, 32px);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  color: var(--fg);
}
.sub-label-badge {
  position: relative;
  top: 2px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-jp);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  color: var(--muted);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 11px;
}
.course-school-grid + .general-sub-label { margin-top: var(--space-content); }
.general-sub-label + .kobetsu-card { margin-top: var(--space-tight); }
.course-block-desc {
  font-family: var(--font-jp);
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, var(--text-md));
  font-weight: var(--weight-medium);
  line-height: 1.9;
  max-width: 68ch;
  margin: 20px 0 32px;
}
.course-block-head .course-block-desc { margin: 28px 0 0; }
.course-block-ao .course-block-head { margin-bottom: 0; }
.course-block-head + .course-block-desc { margin-top: 22px; }
@media (max-width: 640px) {
  .course-block-head {
    gap: 12px;
  }
  .course-block-head h3 { font-size: 30px; }
  .sub-label-text { font-size: 28px; }
  .course-block-media {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 9px;
  }
}
@media (max-width: 720px) {
  .kobetsu-card { flex-direction: column; align-items: flex-start; }
  .kobetsu-cta { align-self: stretch; justify-content: center; }
}

/* Footer CTA card: coming-soon button */
.footer-cta-apply-item.is-coming-soon .footer-cta-card-btn.is-disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: .85;
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--border);
}
.school-course-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.school-course-uni {
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}
.school-column-waseda .school-course-uni { color: var(--crimson-deep); }
.school-column-keio .school-course-uni { color: var(--navy-deep); }
.school-course-name {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: 1.55;
  color: var(--fg);
}
.school-course-date {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--muted-soft);
}
.school-course-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.school-course-tag {
  font-family: var(--font-jp);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--muted);
  letter-spacing: 0;
}
.school-column-waseda .school-course-tag { background: var(--crimson-tint); color: var(--crimson-deep); }
.school-column-keio .school-course-tag { background: var(--navy-tint); color: var(--navy-deep); }
.school-course-tag.is-strong { color: #fff; font-weight: var(--weight-semibold); }
.school-column-waseda .school-course-tag.is-strong { background: var(--crimson); }
.school-column-keio .school-course-tag.is-strong { background: var(--navy); }
.school-course-arrow {
  font-family: var(--font-en);
  font-size: var(--text-md);
  color: var(--muted-soft);
  transition: transform .2s, color .2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.school-column-waseda .school-course:hover .school-course-arrow { color: var(--crimson); transform: translateX(3px); }
.school-column-keio .school-course:hover .school-course-arrow { color: var(--navy); transform: translateX(3px); }

@media (max-width: 760px) {
  .course-school-grid { grid-template-columns: 1fr; }
}

/* .faq-* component styles now live in shared/site-style.css
   (reused by faq.html's full categorized list). The homepage only shows
   a curated cross-category highlight list (not the full 4-category
   breakdown, which lives on faq.html), so narrow it for readability. */
#faq .faq-list { max-width: 760px; margin: 0 auto; }

/* ============================================================
   profile
   ============================================================ */
.profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.profile-side .avatar-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.profile-side .avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-main { display: flex; flex-direction: column; gap: 28px; }
.profile-name {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 10px 18px;
}
.profile-name .jp {
  font-family: var(--font-jp);
  font-size: clamp(22px, 3vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  line-height: 1.2;
}
.profile-name .en {
  font-family: var(--font-en);
  font-size: clamp(13px, 1vw, var(--text-base));
  font-weight: var(--weight-regular);
  letter-spacing: 0;
  color: var(--muted);
}
.profile-roles {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.profile-roles li {
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.85;
  padding-left: 16px;
  position: relative;
}
.profile-roles li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1px;
  background: var(--fg);
}

.profile-body { display: flex; flex-direction: column; gap: 18px; }
.profile-body p {
  font-family: var(--font-jp);
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 2.05;
}
.profile-body .lead {
  color: var(--fg);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: 1.9;
}
.profile-body .closing {
  font-family: var(--font-jp);
  color: var(--fg);
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  line-height: 1.95;
  margin-top: 8px;
}
.profile-cta {
  margin-top: 12px;
  display: flex;
}

@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
  .profile-side .avatar-wrap { max-width: 180px; margin: 0 auto; }
}

/* Workflow: payment method note */
.payment-note {
  max-width: var(--max);
  margin: var(--space-content) auto 0;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-family: var(--font-jp);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}
.payment-note strong {
  font-weight: var(--weight-semibold);
  color: var(--fg);
  font-size: var(--text-sm);
  background: transparent;
  border: none;
  padding: 0;
  letter-spacing: 0;
  white-space: nowrap;
}
.payment-note strong::after { content: "："; color: var(--muted-soft); margin-left: 2px; }
.payment-note-icon {
  width: 20px; height: 20px;
  color: var(--muted-soft);
  flex-shrink: 0;
  align-self: center;
}
/* ============================================================
   Typography sample — homepage only
   ------------------------------------------------------------
   This is the first implementation of docs/typography-and-text-
   contrast-rules.md. It intentionally leaves course LPs and exam-data
   untouched until this page has been visually approved.
   ============================================================ */
/* Body and UI copy keep neutral tracking. Headings inherit the shared
   --tracking-heading token from site-style.css. */
body.page-home :is(p, a, button, label, li, th, td, dt, dd, span) {
  letter-spacing: 0 !important;
}

body.page-home .hero-heading {
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

body.page-home .hero-sub,
body.page-home .section-head p,
body.page-home .course-block-desc,
body.page-home .why-item p,
body.page-home .profile-body p,
body.page-home .footer-brand .desc,
body.page-home .course-entry-desc {
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.9;
}

body.page-home .section-head h2,
body.page-home .course-block-head h3,
body.page-home .course-subblock-head h4,
body.page-home .why-item h3,
body.page-home .profile-name .jp {
  line-height: 1.4;
}

/* 12px is reserved for short source/date/metadata text. */
body.page-home .hero-badge,
body.page-home .course-grade-tag,
body.page-home .school-course-tag,
body.page-home .footer-bottom,
body.page-home .footer h5 {
  font-size: var(--text-xs);
}
