:root {
  --navy: #08275c;
  --orange: #f57c00;
  --white: #ffffff;
  --bg: #f7f8fc;
  --text-muted: #4a5875;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* 8px grid */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --page-x: 16px;
  --section-y: 12px;

  /* Typography */
  --text-heading: 18px;
  --text-body: 14px;
  --text-caption: 12px;

  /* Components */
  --icon-size: 24px;
  --btn-height: 48px;
  --card-radius: 12px;
  --card-padding: 8px;
  --card-min-h: 78px;
  --shadow-card: 0 4px 16px rgba(8, 39, 92, 0.1);

  /* Vertical rhythm */
  --gap-head-body: 8px;
  --gap-body-btn: 8px;
  --gap-heading-content: 8px;
  --gap-card-text: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Yu Gothic', 'Hiragino Sans', sans-serif;
  font-size: var(--text-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: calc(var(--btn-height) + var(--s1) + var(--safe-bottom));
}

body.page-sub {
  padding-bottom: 0;
}

a { color: inherit; }

.accent { color: var(--orange); font-weight: 700; }

/* Typography utilities */
.heading {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.4;
}

.text-body {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.6;
}

.text-caption {
  margin: 0;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--text-muted);
}

.text-bold { font-weight: 700; }

.section-heading {
  margin-bottom: var(--gap-heading-content);
}

/* Layout */
.section-inner {
  width: 100%;
  max-width: 100%;
}

.header,
.hero,
.content-section,
.cta-section,
.sub-main,
.contact-main,
.footer,
.sticky-cta {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s1);
  padding-bottom: var(--s1);
  background: var(--white);
  border-bottom: 1px solid rgba(8, 39, 92, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--orange);
  border-radius: var(--s1);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--text-body);
}

.brand-name {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.3;
}

.brand-sub {
  margin: 0;
  font-size: var(--text-caption);
  line-height: 1.3;
}

.menu-btn {
  flex-shrink: 0;
  width: var(--btn-height);
  height: var(--btn-height);
  border: none;
  background: none;
  font-size: var(--text-heading);
  cursor: pointer;
  color: var(--navy);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(8, 39, 92, 0.1);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  min-height: var(--btn-height);
  padding: var(--s1) var(--page-x);
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 500;
  border-bottom: 1px solid rgba(8, 39, 92, 0.06);
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  padding-top: var(--s2);
  padding-bottom: var(--s2);
  background: url('images/top_img.png') 85% center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.92) 38%,
    rgba(255, 255, 255, 0.6) 58%,
    rgba(255, 255, 255, 0.15) 78%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

@media (max-width: 639px) {
  .hero {
    background-position: 88% center;
  }
}

@media (min-width: 640px) {
  .hero {
    background-position: 78% center;
  }
}

.hero .section-inner {
  position: relative;
  z-index: 1;
  max-width: 92%;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 var(--s1);
  padding: 4px var(--s2);
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.hero-title {
  margin: 0 0 var(--s1);
  font-size: clamp(1.25rem, 5.8vw, 1.625rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.hero-title-line {
  display: block;
}

.hero-sub {
  margin: 0 0 var(--gap-card-text);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

.hero-accent {
  margin: 0 0 var(--s1);
  font-size: clamp(1.75rem, 9vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--orange);
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  margin-bottom: var(--s1);
}

.hero-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--s2);
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  white-space: nowrap;
}

.hero-service-icon {
  font-size: var(--icon-size);
  line-height: 1;
}

.hero-service-x {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.hero-closing {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
}

.eyebrow {
  margin: 0 0 var(--gap-head-body);
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--navy);
}

/* Card base */
.card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
}

.content-section--alt .card {
  background: var(--white);
}

/* Features */
.content-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--bg);
}

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

.features-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  overflow: hidden;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--card-min-h);
  padding: var(--card-padding);
  text-align: center;
  border-right: 1px solid rgba(8, 39, 92, 0.08);
  border-bottom: 1px solid rgba(8, 39, 92, 0.08);
}

.feature:nth-child(2n) { border-right: none; }
.feature:nth-child(n + 3) { border-bottom: none; }

.feature .icon {
  margin: 0 0 var(--gap-card-text);
  font-size: var(--icon-size);
  line-height: 1;
  height: var(--icon-size);
}

.feature .text-body {
  margin-bottom: var(--gap-card-text);
}

/* Flow */
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.flow-item {
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-height: var(--card-min-h);
  padding: var(--card-padding);
}

.flow-step {
  flex-shrink: 0;
  width: var(--s4);
  height: var(--s4);
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  font-size: var(--text-body);
  font-weight: 700;
  border-radius: 50%;
}

.flow-body .text-body {
  margin-bottom: var(--gap-card-text);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--btn-height);
  padding: var(--s1) var(--s2);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(8, 39, 92, 0.2);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

/* CTA */
.cta-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--bg);
}

.cta-btn {
  position: relative;
  gap: var(--s1);
}

.cta-badge {
  position: absolute;
  top: calc(var(--s1) * -1);
  left: var(--s2);
  padding: var(--s1) var(--s2);
  background: var(--orange);
  color: var(--white);
  font-size: var(--text-caption);
  font-weight: 700;
  border-radius: 999px;
}

.cta-arrow {
  font-size: var(--text-body);
  opacity: 0.9;
}

.cta-sub {
  margin-top: var(--gap-body-btn);
  text-align: center;
}

/* Sub page cards */
.price-card,
.access-card,
.instructor-card,
.contact-form-section,
.thanks-box {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
}

.price-list,
.access-list,
.faq-list {
  margin: 0;
}

.price-row,
.access-row,
.faq-item {
  padding: var(--s1) 0;
  border-bottom: 1px solid rgba(8, 39, 92, 0.08);
}

.price-row:last-child,
.access-row:last-child,
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-row dt,
.access-row dt,
.faq-item dt {
  margin: 0 0 var(--s1);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
}

.price-row dd,
.access-row dd,
.faq-item dd {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.6;
}

.price-row dd a,
.faq-item dd a {
  color: var(--orange);
  font-weight: 700;
}

.section-cta {
  margin-top: var(--gap-body-btn);
}

.access-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin-top: var(--gap-body-btn);
}

.access-actions .section-cta {
  margin-top: 0;
}

/* Instructor */
.instructor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  text-align: center;
}

.instructor-avatar {
  width: var(--btn-height);
  height: var(--btn-height);
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--orange);
  font-size: var(--text-body);
  font-weight: 700;
  border-radius: 50%;
}

.instructor-role {
  margin: 0 0 var(--s1);
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.instructor-body .heading {
  margin-bottom: var(--gap-head-body);
}

.instructor-desc {
  margin: 0 0 var(--s1);
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
}

.instructor-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s1);
}

.instructor-tags li {
  padding: var(--s1) var(--s2);
  background: var(--bg);
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 700;
}

/* Footer */
.footer {
  padding-top: var(--section-y);
  padding-bottom: calc(var(--btn-height) + var(--s2) + var(--safe-bottom));
  background: var(--navy);
  color: var(--white);
}

.footer-label,
.footer .text-caption {
  color: rgba(255, 255, 255, 0.85);
}

.footer-name {
  margin-top: var(--s1);
}

.footer-kana {
  margin-top: var(--s1);
  color: rgba(255, 255, 255, 0.9);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s1);
  margin-top: var(--s1);
}

.footer-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  padding: var(--s1);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--s1);
  text-decoration: none;
  font-size: var(--text-caption);
  font-weight: 700;
}

.footer-copy,
.footer .footer-copy {
  margin-top: var(--s1);
  color: rgba(255, 255, 255, 0.6);
}

.footer.footer-sub {
  padding-bottom: var(--section-y);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding-top: var(--s1);
  padding-bottom: calc(var(--s1) + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(8, 39, 92, 0.1);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, opacity 0.25s;
}

.sticky-cta.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Sub pages */
.page-sub {
  padding-bottom: var(--section-y);
}

.sub-main,
.contact-main {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.page-head {
  margin-bottom: var(--gap-heading-content);
}

.page-head .eyebrow {
  margin-bottom: var(--gap-head-body);
}

.page-head .heading {
  margin-bottom: var(--gap-head-body);
}

.page-desc {
  margin: 0;
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.6;
}

.sub-section {
  margin-bottom: var(--s1);
}

.form-group {
  margin-bottom: var(--s1);
}

.form-group label {
  display: block;
  margin-bottom: var(--s1);
  font-size: var(--text-body);
  font-weight: 700;
}

.required,
.optional {
  font-size: var(--text-caption);
  font-weight: 700;
}

.required { color: var(--orange); }
.optional { color: var(--text-muted); font-weight: 500; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--s2);
  font-size: var(--text-body);
  font-family: inherit;
  color: var(--navy);
  border: 1px solid rgba(8, 39, 92, 0.2);
  border-radius: var(--s1);
  background: var(--bg);
}

.contact-form textarea {
  resize: vertical;
  min-height: var(--card-min-h);
}

.form-submit {
  margin-top: var(--s1);
}

.back-link {
  margin: var(--s1) 0 0;
  text-align: center;
  font-size: var(--text-body);
}

.back-link a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.thanks-box {
  text-align: center;
}

.thanks-icon {
  width: var(--btn-height);
  height: var(--btn-height);
  margin: 0 auto var(--s1);
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-heading);
  font-weight: 700;
}

.thanks-box .heading {
  margin-bottom: var(--gap-head-body);
}

.thanks-box .cta-btn {
  margin-top: var(--gap-body-btn);
}

@media (min-width: 640px) {
  body {
    max-width: 430px;
    margin-inline: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
}

@media (min-width: 768px) {
  .sticky-cta {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }

  .sticky-cta.is-hidden {
    transform: translateX(-50%) translateY(100%);
  }
}

/* Schedule page */
.schedule-main {
  padding-top: var(--s2);
}

.schedule-stepper {
  margin-bottom: var(--s3);
}

.schedule-stepper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.schedule-stepper-sep {
  flex-shrink: 0;
  padding-top: 6px;
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.schedule-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.schedule-step-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1;
}

.schedule-step-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.schedule-step--done .schedule-step-icon {
  background: var(--navy);
  color: var(--white);
}

.schedule-step--current .schedule-step-icon {
  background: var(--navy);
  color: var(--white);
}

.schedule-step--current .schedule-step-label {
  color: var(--navy);
  font-weight: 700;
}

.schedule-head {
  text-align: center;
  margin-bottom: var(--s3);
}

.schedule-title {
  position: relative;
  display: inline-block;
  padding-bottom: var(--s1);
  margin-bottom: var(--gap-head-body);
}

.schedule-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.schedule-title-sub {
  display: block;
  font-size: var(--text-body);
  font-weight: 700;
  margin-top: 2px;
}

.schedule-summary {
  padding: var(--s2);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  border: 1px solid rgba(8, 39, 92, 0.1);
}

.schedule-summary--info {
  background: #eef4fb;
}

.schedule-summary-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s1);
}

.schedule-summary-body {
  flex: 1;
  min-width: 0;
}

.schedule-summary-icon {
  flex-shrink: 0;
  font-size: var(--icon-size);
  line-height: 1;
}

.schedule-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1.4;
}

.schedule-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.schedule-section-heading {
  margin-bottom: var(--s2);
  font-size: var(--text-body);
}

.schedule-class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s1);
}

.schedule-class-card {
  display: flex;
  flex-direction: column;
  padding: var(--s2) var(--s1);
  border: 1px solid rgba(8, 39, 92, 0.2);
  box-shadow: none;
}

.schedule-class-id {
  margin: 0 0 4px;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.schedule-class-meta,
.schedule-class-time {
  margin: 0 0 4px;
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.schedule-class-day-badges {
  display: flex;
  gap: 6px;
  margin: var(--s1) 0;
}

.schedule-day-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1;
}

.schedule-class-footer {
  margin-top: auto;
  padding-top: var(--s1);
  border-top: 1px solid rgba(8, 39, 92, 0.1);
}

.schedule-class-footer-text {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

.schedule-class-footer-text + .schedule-class-footer-text {
  margin-top: 2px;
}

.schedule-upcoming {
  padding: var(--s2);
  background: #fff8f0;
  border: 2px dashed var(--orange);
  border-radius: var(--card-radius);
  text-align: center;
}

.schedule-upcoming-icon {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: var(--s1);
}

.schedule-upcoming-title {
  margin: 0 0 var(--s1);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.4;
}

.schedule-upcoming-text {
  margin-bottom: var(--s2);
  text-align: left;
}

.schedule-upcoming-btn {
  width: 100%;
  margin-bottom: var(--s1);
  font-size: var(--text-caption);
  padding-left: var(--s1);
  padding-right: var(--s1);
}

.schedule-upcoming-note {
  margin: 0;
  text-align: left;
}

.schedule-calendar-heading {
  margin-bottom: var(--s2);
}

.schedule-calendar {
  overflow: hidden;
  margin-bottom: var(--s2);
  padding: 0;
}

.schedule-calendar-month {
  margin: 0;
  padding: var(--s1) var(--s2);
  background: var(--navy);
  color: var(--white);
  font-size: var(--text-body);
  font-weight: 700;
  text-align: center;
}

.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: var(--s1);
}

.cal-head {
  padding: 4px 0;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
}

.cal-head--sun { color: #d32f2f; }
.cal-head--sat { color: #1565c0; }

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 2px 0 4px;
  text-align: center;
}

.cal-cell--empty {
  visibility: hidden;
}

.cal-cell--sat { background: transparent; }

.cal-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}

.cal-date--sun { color: #d32f2f; }
.cal-date--sat { color: #1565c0; }

.cal-date--session {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
}

.cal-session {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
}

.cal-cell--holiday {
  background: #fff0f0;
  border-radius: 4px;
}

.cal-holiday-mark {
  font-size: 9px;
  font-weight: 700;
  color: #d32f2f;
  line-height: 1;
}

.cal-date--holiday {
  color: #d32f2f;
  font-weight: 700;
}

.schedule-notice {
  padding: var(--s2);
  background: #fff8e8;
  border: 1px solid rgba(245, 124, 0, 0.25);
  border-radius: var(--card-radius);
}

.schedule-notice-title {
  margin: 0 0 var(--s1);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--orange);
}

.schedule-notice-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: var(--text-caption);
  color: var(--navy);
  line-height: 1.6;
}

.schedule-notice-list li + li {
  margin-top: var(--s1);
}

.schedule-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--s1);
  margin-top: var(--s3);
}

.schedule-back {
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  gap: var(--s1);
}

.schedule-cta {
  flex: 1;
  width: auto;
  min-width: 0;
}

.schedule-cta.btn-accent {
  color: var(--navy);
}

.btn-accent {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.3);
}

.schedule-disclaimer {
  margin-top: var(--s1);
  text-align: center;
}

@media (min-width: 400px) {
  .schedule-step-label {
    font-size: var(--text-caption);
  }

  .cal-cell {
    min-height: 48px;
  }

  .cal-date {
    width: 28px;
    height: 28px;
    font-size: var(--text-caption);
  }

  .cal-session {
    font-size: 10px;
  }
}

/* ------------------------------------------------------------------
   Opening splash — used on index.html only
   Quiet brand intro: logo fade → title → subtitle → fade out
   ------------------------------------------------------------------ */
body.home.is-opening {
  overflow: hidden;
}

.opening-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--white);
  animation: opening-splash-out 1s ease forwards;
  animation-delay: 3s;
}

.opening-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s3);
}

.opening-logo {
  display: block;
  width: clamp(88px, 24vw, 120px);
  height: auto;
  margin-bottom: var(--s2);
  opacity: 0;
  animation: opening-logo-in 1s ease forwards;
}

.opening-brand {
  margin: 0 0 6px;
  font-size: clamp(1.125rem, 4.5vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
  line-height: 1.3;
  opacity: 0;
  animation: opening-text-in 0.75s ease forwards;
  animation-delay: 1.1s;
}

.opening-sub {
  margin: 0;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0;
  animation: opening-text-in 0.75s ease forwards;
  animation-delay: 1.55s;
}

@keyframes opening-logo-in {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  70% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes opening-text-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes opening-splash-out {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-splash {
    animation: none;
    opacity: 0;
    visibility: hidden;
  }
}

/* Classroom page */
.classroom-hero {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.classroom-photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.classroom-hero .classroom-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.classroom-gallery-section {
  margin-bottom: var(--s2);
}

.classroom-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s1);
}

.classroom-gallery--pair {
  gap: var(--s2);
}

.classroom-gallery-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.classroom-gallery .classroom-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.classroom-gallery--pair .classroom-photo {
  aspect-ratio: 4 / 3;
}

.classroom-closing {
  padding: var(--s2);
  text-align: center;
  background: #eef4fb;
  border: 1px solid rgba(8, 39, 92, 0.1);
}

.classroom-closing-title {
  margin: 0 0 var(--s1);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.classroom-closing-text {
  margin: 0 0 var(--s2);
  text-align: left;
  color: var(--navy);
}
