: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;
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.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 {
  line-height: 1;
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size);
  height: var(--icon-size);
  flex-shrink: 0;
  color: var(--navy);
}

.ui-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-service-icon.ui-icon {
  width: 18px;
  height: 18px;
}

.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 .ui-icon,
.feature-icon {
  margin: 0 0 var(--gap-card-text);
  height: var(--icon-size);
}

.feature .text-body {
  margin-bottom: var(--gap-card-text);
}

/* Flow — vertical journey path (index.html) */
#flow.content-section {
  padding-bottom: var(--s3);
}

.flow-path {
  margin-top: var(--s1);
  margin-bottom: var(--s1);
}

.flow-path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.flow-path-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--orange) 0%,
    rgba(245, 124, 0, 0.4) 60%,
    var(--navy) 100%
  );
  border-radius: 1px;
  opacity: 0.45;
}

.flow-path-step {
  position: relative;
  padding-left: 48px;
  padding-bottom: var(--s3);
}

.flow-path-step:last-child {
  padding-bottom: 0;
}

.flow-path-dot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
}

.flow-path-dot--goal {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(8, 39, 92, 0.25);
}

.flow-path-content {
  padding-top: 8px;
}

.flow-path-content--goal {
  padding: var(--s2);
  background: var(--navy);
  border-radius: var(--card-radius);
  box-shadow: 0 6px 20px rgba(8, 39, 92, 0.22);
}

.flow-path-title {
  margin: 0 0 4px;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.flow-path-desc {
  margin: 0;
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: 1.5;
}

.flow-path-content--goal .flow-path-title,
.flow-path-content--goal .flow-path-desc {
  color: var(--white);
}

.flow-path-content--goal .flow-path-desc {
  opacity: 0.88;
}

.flow-path-arrow {
  display: block;
  width: 8px;
  height: 8px;
  margin: var(--s2) 0 0 11px;
  border-right: 2px solid rgba(245, 124, 0, 0.5);
  border-bottom: 2px solid rgba(245, 124, 0, 0.5);
  transform: rotate(45deg);
}

/* Home — classroom scene (index.html) */
.home-classroom-section {
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  background: var(--bg);
}

.home-classroom-section .section-heading {
  margin-bottom: var(--s2);
}

.home-classroom-visual {
  margin: 0 calc(var(--page-x) * -1) var(--s3);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  box-shadow: 0 8px 28px rgba(8, 39, 92, 0.12);
  border: none;
  background: var(--white);
  line-height: 0;
}

.home-classroom-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.home-classroom-highlights {
  list-style: none;
  margin: 0;
  padding: var(--s2) var(--s1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s1);
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(8, 39, 92, 0.06);
}

.home-classroom-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s1);
  padding: var(--s1) 4px;
}

.home-classroom-highlight + .home-classroom-highlight {
  border-left: 1px solid rgba(8, 39, 92, 0.08);
}

.home-classroom-highlight-icon {
  color: var(--navy);
}

.home-classroom-highlight .text-body {
  margin: 0;
  font-size: var(--text-caption);
  line-height: 1.4;
}

@media (max-width: 359px) {
  .home-classroom-highlights {
    grid-template-columns: 1fr;
    padding: var(--s2);
  }

  .home-classroom-highlight + .home-classroom-highlight {
    border-left: none;
    border-top: 1px solid rgba(8, 39, 92, 0.08);
    padding-top: var(--s2);
  }
}

/* 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 {
  gap: 10px;
  padding: var(--s1) var(--s2);
}

.cta-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 4px;
  line-height: 1.3;
}

.cta-label {
  flex: 1;
  text-align: center;
}

.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-breakdown {
  margin-bottom: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: 1px solid rgba(8, 39, 92, 0.08);
}

.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  padding: 10px 0;
}

.price-breakdown-row + .price-breakdown-row:not(.price-breakdown-row--total) {
  border-top: 1px solid rgba(8, 39, 92, 0.08);
}

.price-breakdown-label {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
}

.price-breakdown-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-breakdown-yen {
  margin-left: 2px;
  font-size: var(--text-body);
  font-weight: 700;
}

.price-breakdown-row--total {
  margin-top: var(--s1);
  padding: var(--s2);
  background: var(--navy);
  border-radius: 8px;
}

.price-breakdown-row--total .price-breakdown-label {
  color: var(--white);
}

.price-breakdown-row--total .price-breakdown-amount {
  font-size: 22px;
  color: var(--orange);
}

.price-breakdown-row--total .price-breakdown-yen {
  color: var(--orange);
}

.price-payment-note-card {
  margin-top: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(8, 39, 92, 0.05);
}

.price-payment-note-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-payment-note-content {
  flex: 1;
  min-width: 0;
}

.price-payment-note-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}

.price-payment-note-icons {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.price-payment-note-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.price-payment-note-item-label {
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-muted);
  text-align: center;
}

.price-payment-note-icon {
  display: block;
  color: rgba(8, 39, 92, 0.45);
}

.price-payment-note-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-muted);
}

.price-payment-note-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
}

.price-payment-reader {
  display: block;
  color: rgba(8, 39, 92, 0.38);
}

.price-breakdown-note {
  margin: var(--s2) 0 0;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.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;
}

.access-contact-dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.75em;
}

.access-walk-note {
  color: #d32f2f;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.6;
}

.section-cta {
  margin-top: var(--gap-body-btn);
}

.access-map {
  margin-top: var(--s2);
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid rgba(8, 39, 92, 0.08);
  background: rgba(8, 39, 92, 0.04);
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}

@media (max-width: 639px) {
  .access-map iframe {
    height: 580px;
  }
}

.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-section {
  margin-bottom: var(--s3);
}

.instructor-card {
  text-align: left;
  padding: var(--s4) var(--s3);
}

.instructor-profile {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.instructor-accent {
  align-self: center;
  width: 100%;
  max-width: 96px;
  margin: 0 auto;
  opacity: 0.92;
}

.instructor-accent-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.instructor-message {
  padding-top: 0;
}

.instructor-desc {
  margin: 0;
}

.instructor-desc p {
  margin: 0 0 var(--s3);
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
}

.instructor-desc p:last-child {
  margin-bottom: 0;
}

.instructor-credentials-block {
  padding-top: var(--s4);
  border-top: 1px solid rgba(8, 39, 92, 0.08);
}

.instructor-subheading {
  margin: 0 0 var(--s2);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
}

.instructor-credentials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.instructor-credential {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--s2);
  background: var(--bg);
  border-radius: 8px;
  border-left: 3px solid var(--navy);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.instructor-credential-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--orange);
}

/* 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: 10px;
  margin-top: var(--s2);
}

.footer-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px var(--s2);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--s1);
  text-decoration: none;
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.footer-copy,
.footer .footer-copy {
  margin-top: var(--s2);
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-admin-link {
  display: inline-block;
  margin-top: var(--s2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
}

.footer-admin {
  margin: 0;
  text-align: center;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: underline;
  outline: none;
}

.admin-auth-dialog[hidden],
#admin-settings-modal[hidden] {
  display: none !important;
}

.admin-auth-dialog:not([hidden]),
#admin-settings-modal:not([hidden]) {
  display: flex !important;
}

.admin-auth-dialog,
#admin-settings-modal {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.admin-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 39, 92, 0.5);
}

.admin-auth-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 12px 40px rgba(8, 39, 92, 0.28);
  box-sizing: border-box;
}

.admin-settings-view[hidden] {
  display: none !important;
}

.admin-auth-title {
  margin: 0 0 20px;
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.admin-auth-label {
  display: block;
  margin: 0 0 8px;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
}

.admin-auth-input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(8, 39, 92, 0.2);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--navy);
  background: var(--white);
  box-sizing: border-box;
}

.admin-auth-input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.admin-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-auth-actions .btn {
  width: 100%;
  margin: 0;
  min-height: 52px;
  font-size: 1rem;
}

.admin-auth-error {
  margin: -4px 0 12px;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1.5;
  color: #d32f2f;
  text-align: left;
}

.admin-auth-error[hidden] {
  display: none !important;
}

.admin-schedule-panel {
  max-width: 400px;
}

.admin-schedule-lead {
  margin: 0 0 14px;
  font-size: var(--text-caption);
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.admin-schedule-list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.admin-schedule-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(8, 39, 92, 0.18);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.admin-schedule-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.admin-schedule-check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(8, 39, 92, 0.35);
  border-radius: 4px;
  background: var(--white);
  box-sizing: border-box;
}

.admin-schedule-item:has(.admin-schedule-input:checked) {
  border-color: var(--navy);
  background: rgba(8, 39, 92, 0.04);
  box-shadow: 0 0 0 2px rgba(8, 39, 92, 0.12);
}

.admin-schedule-item:has(.admin-schedule-input:checked) .admin-schedule-check {
  background: var(--navy);
  border-color: var(--navy);
}

.admin-schedule-item:has(.admin-schedule-input:checked) .admin-schedule-check::after {
  content: "";
  display: block;
  width: 6px;
  height: 10px;
  margin: 3px auto 0;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.admin-schedule-item:has(.admin-schedule-input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.admin-schedule-label {
  flex: 1 1 auto;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}

.briefing-date-closed {
  position: absolute;
  top: 10px;
  left: 40px;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 22px;
  color: #d32f2f;
  white-space: nowrap;
  pointer-events: none;
}

.briefing-date-closed[hidden] {
  display: none !important;
}

.briefing-date-card.is-admin-closed .briefing-date-card-body {
  opacity: 0.72;
  background: rgba(8, 39, 92, 0.03);
}

.briefing-date-card.is-admin-closed {
  cursor: not-allowed;
}

/* スマホのみ: 受付終了表示を確実に見せ、タップ選択も防ぐ（PCレイアウトは維持） */
@media (max-width: 639px) {
  .briefing-date-card.is-admin-closed {
    pointer-events: none;
  }

  .briefing-date-card.is-admin-closed .briefing-date-card-body {
    opacity: 1;
    background: rgba(8, 39, 92, 0.06);
  }

  .briefing-date-card.is-admin-closed .briefing-date-day,
  .briefing-date-card.is-admin-closed .briefing-date-time,
  .briefing-date-card.is-admin-closed .briefing-date-capacity {
    opacity: 0.7;
  }

  .briefing-date-closed {
    top: 8px;
    left: 38px;
    right: 8px;
    z-index: 5;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  .briefing-date-card.is-admin-closed .briefing-date-closed:not([hidden]) {
    display: block !important;
    color: #d32f2f;
    font-weight: 700;
  }
}

.footer.footer-sub {
  padding-bottom: 0;
}

.footer-a2hs {
  margin-top: var(--s4);
  padding: var(--s2) 0 calc(44px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-a2hs-text {
  margin: 0 auto 10px;
  max-width: 15.5em;
  padding: 0;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.75;
  font-size: 11px;
  text-align: center;
}

.footer-a2hs-trigger {
  display: inline-block;
  background: none;
  border: none;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.footer-a2hs-trigger:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Confirm dialog — #confirm-dialog を優先し、Safari(inset未適用時)でも全面モーダルになるようフォールバックを併記 */
#confirm-dialog[hidden],
.confirm-dialog[hidden] {
  display: none !important;
}

#confirm-dialog:not([hidden]),
.confirm-dialog:not([hidden]) {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

#confirm-dialog,
.confirm-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 210;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  width: 100vw;
  height: 100%;
  height: 100vh;
  height: -webkit-fill-available;
  margin: 0;
  padding: 16px;
  padding-bottom: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  /* iOS: fixed が文書内に落ちないよう合成レイヤを確保 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#confirm-dialog .confirm-dialog-backdrop,
.confirm-dialog-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: rgba(8, 39, 92, 0.45);
  pointer-events: auto;
  z-index: 0;
}

#confirm-dialog .confirm-dialog-panel,
.confirm-dialog-panel {
  position: relative;
  z-index: 1;
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 auto;
  flex: 0 1 auto;
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  max-height: min(88vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #ffffff;
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--s3) var(--s2);
  box-shadow: 0 12px 40px rgba(8, 39, 92, 0.22);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#confirm-dialog .confirm-dialog-title,
.confirm-dialog-title {
  margin: 0 0 var(--s1);
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

#confirm-dialog .confirm-dialog-lead,
.confirm-dialog-lead {
  margin: 0 0 var(--s2);
  font-size: var(--text-caption);
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

#confirm-dialog .confirm-dialog-list,
.confirm-dialog-list {
  margin: 0 0 var(--s3);
  padding: 0;
}

#confirm-dialog .confirm-dialog-row,
.confirm-dialog-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(8, 39, 92, 0.08);
}

#confirm-dialog .confirm-dialog-row:first-child,
.confirm-dialog-row:first-child {
  padding-top: 0;
}

#confirm-dialog .confirm-dialog-row dt,
.confirm-dialog-row dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

#confirm-dialog .confirm-dialog-row dd,
.confirm-dialog-row dd {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy);
  white-space: pre-wrap;
  word-break: break-word;
}

#confirm-dialog .confirm-dialog-actions,
.confirm-dialog-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  gap: 10px;
}

#confirm-dialog .confirm-dialog-actions > *,
.confirm-dialog-actions > * {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
}

#confirm-dialog .confirm-dialog-btn,
.confirm-dialog-btn {
  width: 100%;
  margin: 0;
}

#confirm-dialog .confirm-dialog-btn:disabled,
.confirm-dialog-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.a2hs-dialog[hidden] {
  display: none;
}

.a2hs-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.a2hs-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 39, 92, 0.45);
}

.a2hs-dialog-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px 12px 0 0;
  padding: var(--s3);
  box-shadow: 0 -8px 32px rgba(8, 39, 92, 0.2);
}

.a2hs-dialog-close {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.a2hs-dialog-title {
  margin: 0 var(--s4) var(--s2) 0;
  font-size: var(--text-heading);
  color: var(--navy);
}

.a2hs-dialog-section + .a2hs-dialog-section {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid rgba(8, 39, 92, 0.08);
}

.a2hs-dialog-heading {
  margin: 0 0 var(--s1);
  padding-left: 10px;
  border-left: 3px solid var(--orange);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
}

.a2hs-dialog-steps {
  margin: 0;
  padding-left: 1.25em;
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: 1.75;
}

.a2hs-dialog-steps li + li {
  margin-top: 6px;
}

/* 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);
}

/* Briefing application form */
.page-briefing {
  background: #eef1f6;
}

.briefing-main {
  padding: 0 0 var(--s3);
}

.briefing-form-hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--s4) var(--page-x) var(--s3);
}

.briefing-form-hero-inner {
  position: relative;
  text-align: center;
}

.briefing-free-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffc400;
  color: var(--navy);
  line-height: 1.15;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.briefing-free-badge-label {
  font-size: 10px;
  font-weight: 700;
}

.briefing-free-badge-value {
  font-size: 18px;
  font-weight: 800;
}

.briefing-form-title {
  margin: 0 0 var(--s2);
  padding-top: var(--s1);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.briefing-form-lead {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.briefing-form-body {
  margin-top: calc(-1 * var(--s2));
}

.briefing-form-card {
  padding: var(--s3);
  border: 1px solid rgba(8, 39, 92, 0.08);
}

.briefing-fieldset {
  margin: 0 0 var(--s3);
  padding: 0;
  border: none;
}

.briefing-fieldset-legend {
  display: block;
  margin-bottom: var(--s1);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
}

.briefing-fieldset-note {
  margin: 0 0 var(--s2);
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: 1.6;
}

.briefing-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.briefing-date-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.briefing-date-input {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.briefing-date-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: var(--s2) var(--s1);
  border: 1px solid rgba(8, 39, 92, 0.18);
  border-radius: 10px;
  background: var(--white);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.briefing-date-check {
  position: absolute;
  top: 10px;
  left: 10px;
  pointer-events: none;
}

.briefing-date-check-box {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(8, 39, 92, 0.35);
  border-radius: 4px;
  background: var(--white);
  box-sizing: border-box;
}

.briefing-date-card:has(.briefing-date-input:checked) .briefing-date-check-box {
  background: var(--navy);
  border-color: var(--navy);
}

.briefing-date-card:has(.briefing-date-input:checked) .briefing-date-check-box::after {
  content: "";
  display: block;
  width: 6px;
  height: 10px;
  margin: 2px auto 0;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.briefing-date-day {
  font-size: 15px;
  font-weight: 800;
  color: #1a6fd4;
  line-height: 1.35;
}

.briefing-date-time,
.briefing-date-capacity {
  font-size: var(--text-caption);
  color: var(--navy);
  line-height: 1.5;
}

.briefing-date-time {
  margin-top: 4px;
  font-weight: 700;
}

.briefing-date-capacity {
  margin-top: 2px;
}

.briefing-date-card:has(.briefing-date-input:checked) .briefing-date-card-body {
  border-color: var(--navy);
  background: rgba(8, 39, 92, 0.04);
  box-shadow: 0 0 0 2px rgba(8, 39, 92, 0.12);
}

.briefing-date-card:has(.briefing-date-input:focus-visible) .briefing-date-card-body {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* スマホのみ: 左上チェックと日付文字の重なりを解消（PCレイアウトは維持） */
@media (max-width: 639px) {
  .briefing-date-card-body {
    /* チェック（top:10px + 22px）の下から本文を開始 */
    padding-top: 40px;
    padding-left: var(--s2);
    padding-right: var(--s2);
  }
}

.briefing-date-switch-notice {
  margin: var(--s2) 0 0;
  padding: 10px var(--s2);
  background: rgba(245, 124, 0, 0.1);
  border: 1px solid rgba(245, 124, 0, 0.28);
  border-radius: 8px;
  font-size: var(--text-caption);
  font-weight: 500;
  color: #9a5b12;
  line-height: 1.65;
  text-align: center;
}

.briefing-date-switch-notice[hidden] {
  display: none;
}

.briefing-date-notices {
  margin: var(--s2) 0 0;
  padding: 0;
  list-style: none;
}

.briefing-date-notices li {
  font-size: var(--text-caption);
  font-weight: 700;
  color: #c62828;
  line-height: 1.65;
}

.briefing-form .form-group {
  margin-bottom: var(--s2);
}

.briefing-form .form-group label {
  color: var(--navy);
}

.briefing-form .contact-form input,
.briefing-form .contact-form textarea,
.briefing-form input,
.briefing-form textarea {
  background: var(--white);
}

.briefing-form-status {
  margin: 0 0 var(--s2);
  padding: 10px var(--s2);
  border-radius: 8px;
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

.briefing-form-status.is-error {
  background: rgba(183, 28, 28, 0.08);
  border: 1px solid rgba(183, 28, 28, 0.22);
  color: #8b1e1e;
}

.briefing-form-status.is-success {
  background: rgba(8, 39, 92, 0.06);
  border: 1px solid rgba(8, 39, 92, 0.16);
  color: var(--navy);
}

.briefing-form-status[hidden] {
  display: none;
}

.briefing-submit-note {
  margin: var(--s3) 0 var(--s1);
  text-align: center;
  font-size: var(--text-body);
  font-weight: 700;
  color: #c62828;
}

.briefing-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  background: var(--orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
}

.briefing-submit:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.briefing-form-footer {
  margin-top: var(--s3);
  padding: var(--s3);
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid rgba(8, 39, 92, 0.08);
}

.briefing-form-footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.briefing-form-footer-logo {
  flex-shrink: 0;
  object-fit: contain;
}

.briefing-form-footer-name {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 800;
  color: var(--navy);
}

.briefing-form-footer-sub {
  margin: 2px 0 0;
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.page-briefing .back-link {
  margin-top: var(--s2);
}

.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-head {
  text-align: center;
  margin-bottom: var(--s3);
}

.schedule-head .eyebrow {
  margin-bottom: var(--gap-head-body);
}

.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;
  margin-top: 2px;
  color: var(--navy);
}

.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-logo {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto var(--s1);
  object-fit: contain;
}

.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);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--navy);
}

.schedule-notice-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--navy);
}

.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) {
  .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);
}
