/* =========================================================
   KG高等学院 厚木キャンパス — サイトリニューアル
   基本方針: 公式ロゴカラー(#0063a3 / #c83226 / #fdfefe)に基づく
   ブルー基調の、あたたかく安心感のあるデザイン
   ========================================================= */

:root {
  --cream: #fdfefe;
  --cream-alt: #eef4f9;
  --paper: #ffffff;
  --ink: #1f2d38;
  --ink-soft: #56707d;
  --ink-faint: #8ea0aa;
  /* 公式ロゴのブルー(#0063a3)を基調カラーとして使用 */
  --coral: #0063a3;
  --coral-dark: #004d80;
  --coral-soft: #e3edf6;
  /* セカンダリのブルー(少し明るいトーンで変化をつける) */
  --sage: #3d7ea6;
  --sage-dark: #2c6488;
  --sage-soft: #e6f0f5;
  /* 公式ロゴのレッド(#c83226)は差し色として控えめに使用（お知らせの強調タグ等） */
  --gold: #c83226;
  --gold-soft: #fbe9e7;
  /* ヘッダー／フッターの文字用アクセント（レッドより優しい印象のスカイブルー） */
  --accent-blue: #6fb2df;
  --line: #dbe6ee;
  --shadow-sm: 0 2px 10px rgba(15, 45, 66, 0.07);
  --shadow-md: 0 10px 30px rgba(15, 45, 66, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 45, 66, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-h: 76px;
  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

section {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--alt {
  background: var(--cream-alt);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--coral-dark);
  background: var(--coral-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 107, 79, 0.32);
}

.btn--primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(217, 107, 79, 0.4);
}

.btn--ghost {
  background: #fff;
  color: var(--coral-dark);
  border-color: var(--coral-soft);
}

.btn--ghost:hover {
  border-color: var(--coral);
  transform: translateY(-2px);
}

.btn--sage {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 10px 24px rgba(95, 138, 86, 0.3);
}

.btn--sage:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Top notice bar ---------- */
.top-bar {
  background: var(--ink);
  color: #eaf2f6;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

.top-bar a {
  color: var(--accent-blue);
  font-weight: 700;
  margin-left: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(253, 248, 241, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1260px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.footer-brand .brand-logo-img {
  height: 34px;
}

/* オフィシャルロゴは白抜き版が無いため、紺背景のフッターでは
   白いプレート上に載せて視認性を確保する */
.brand-logo-plate {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--sage));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  line-height: 1.3;
}

.brand-text .en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 500;
}

.brand-text .jp {
  display: block;
  font-size: 16.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-cta .btn {
  padding: 11px 22px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.is-open span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile dropdown nav: always taken out of normal flow / flex flow via
   fixed positioning, and collapsed by default. Only .nav-toggle (mobile-only)
   can ever open it, so this is safe to define outside the breakpoint too. */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.3s ease;
  z-index: 490;
}

.mobile-nav.is-open {
  max-height: calc(100vh - var(--header-h));
}

.mobile-nav ul {
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-size: 15.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin: 14px 24px 20px;
  display: block;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, var(--gold-soft) 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, var(--sage-soft) 0%, transparent 40%), var(--cream);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-title .accent {
  color: var(--coral-dark);
  position: relative;
  white-space: nowrap;
}

.hero-lead {
  margin-top: 24px;
  font-size: 16.5px;
  color: var(--ink-soft);
  white-space: pre-line;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-tags {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  font-size: 13px;
  font-weight: 700;
  color: var(--sage-dark);
  background: var(--sage-soft);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero-media {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2480 / 3508;
  object-fit: cover;
}

.hero-badge {
  position: static;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}

.hero-badge .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--coral-dark);
  line-height: 1;
}

.hero-badge .cap {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Features (strengths) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon { background: var(--coral-soft); }
.feature-card:nth-child(2) .feature-icon { background: var(--sage-soft); }
.feature-card:nth-child(3) .feature-icon { background: var(--gold-soft); }

.feature-title {
  font-size: 18.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Voices for whom / list ---------- */
.fit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.fit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
}

.fit-item .dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- Course cards ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.course-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.course-card .tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.course-card.week4 .tag { background: var(--coral-soft); color: var(--coral-dark); }
.course-card.week1 .tag { background: var(--sage-soft); color: var(--sage-dark); }

.course-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
}

.course-card p {
  font-size: 15px;
  color: var(--ink-soft);
}

.course-card .note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 59, 48, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-more {
  text-align: center;
  margin-top: 34px;
}

/* ---------- Admission steps ---------- */
.admission-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 40px;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 4px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--coral-soft) 0 6px, transparent 6px 12px);
}

.step:last-child::before {
  display: none;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.step-body h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.info-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-row .k {
  color: var(--ink-faint);
  flex-shrink: 0;
}

.info-row .v {
  text-align: right;
  font-weight: 500;
}

.contact-methods {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-methods a,
.contact-methods span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.info-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* ---------- Voices ---------- */
.voices-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x proximity;
}

.voices-scroller::-webkit-scrollbar {
  height: 8px;
}

.voices-scroller::-webkit-scrollbar-thumb {
  background: var(--coral-soft);
  border-radius: 999px;
}

.voice-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  height: 150px;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 14px;
}

.voice-card img {
  height: 100%;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

/* ---------- Outcomes accordion ---------- */
.outcomes {
  margin-top: 56px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.accordion-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.accordion-trigger .year-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-dark);
  background: var(--coral-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-right: 10px;
}

.accordion-trigger .chev {
  transition: transform 0.25s ease;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-trigger .chev {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding: 4px 26px 26px;
  display: grid;
  gap: 16px;
}

.outcome-group h5 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sage-dark);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.outcome-group p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------- News ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 14.5px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.news-date {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--ink-faint);
  font-size: 13px;
  width: 92px;
}

.news-tag {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.news-tag.important {
  background: var(--gold-soft);
  color: var(--gold);
}

.news-item a {
  color: var(--coral);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-note {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Access ---------- */
.access-top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.access-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.access-card .addr {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.access-card .sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.access-notice {
  background: var(--gold-soft);
  color: #8f2d24;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.route-guide h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.route-step {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  aspect-ratio: 4/3;
}

.route-step img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-fig {
  margin: 0;
  text-align: center;
}

.route-fig figcaption {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.route-step .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(74, 59, 48, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- About / partners ---------- */
.about-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
  color: var(--ink-soft);
  font-size: 15px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partner-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.partner-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  margin: 0 auto 14px;
  border-radius: 12px;
  display: block;
}

.partner-card .name {
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Bottom CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
  border-radius: var(--radius-lg);
  margin: 0 24px;
}

.cta-band h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-band p {
  opacity: 0.92;
  font-size: 15px;
  margin-bottom: 30px;
}

.cta-band .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.cta-band .btn--white {
  background: #fff;
  color: var(--coral-dark);
}

.cta-band .btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d7e3ea;
  padding: 64px 0 28px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-text .jp { color: #fff; }
.footer-brand .brand-text .en { color: #a8c1cf; }

.footer-brand p {
  margin-top: 16px;
  font-size: 13.5px;
  color: #b9cad3;
  line-height: 1.9;
}

.footer-col h5 {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #93a7b3;
}

.footer-bottom a {
  color: #c7dae4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 400;
  border: none;
  cursor: pointer;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 22, 16, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 40px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 2000;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .admission-wrap {
    grid-template-columns: 1fr;
  }
  .access-top {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Header/nav switches to the hamburger menu well before the nav links would
   ever wrap or collide with the CTA button — measured empirically: with the
   full 7-item nav + CTA, overflow starts around 1000-1019px, so the switch
   happens at 1060px to keep a safety margin. */
@media (max-width: 1090px) {
  .main-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .fit-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .route-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: 1fr; }
  .voice-card { height: 120px; padding: 8px 10px; }
  .cta-band { margin: 0 12px; padding: 52px 20px; }
  .brand-text .jp { font-size: 14.5px; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-row .v { text-align: left; }
}
