:root {
  --blue: #0d9fe8;
  --green: #79bd16;
  --coral: #ef5450;
  --gold: #f6b73c;
  --brown: #956034;
  --ink: #24313d;
  --muted: #667482;
  --line: #dfe8ee;
  --paper: #ffffff;
  --soft: #f5faf8;
  --shadow: 0 16px 38px rgba(27, 49, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(223, 232, 238, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__logo {
  width: clamp(170px, 20vw, 310px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #344453;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(13, 159, 232, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(13, 159, 232, 0.24);
}

.nav-user {
  display: grid;
  gap: 4px;
  justify-items: end;
  line-height: 1.2;
}

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

.nav-greeting {
  color: #506070;
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.nav-logout {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--coral);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.nav-logout:hover {
  text-decoration: underline;
}

.nav-logout:disabled {
  cursor: wait;
  opacity: 0.55;
}

.is-login-panel-open {
  overflow: hidden;
}

.login-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start end;
  padding: 90px clamp(18px, 4vw, 56px) 24px;
  pointer-events: none;
}

.login-panel__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 30, 43, 0.22);
  opacity: 0;
  cursor: pointer;
  transition: opacity 220ms ease;
}

.login-panel__card {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 36px));
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 54px rgba(16, 30, 43, 0.2);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.is-login-panel-open .login-panel {
  pointer-events: auto;
}

.is-login-panel-open .login-panel__backdrop,
.is-login-panel-open .login-panel__card {
  opacity: 1;
}

.is-login-panel-open .login-panel__card {
  transform: translateY(0) scale(1);
}

.login-panel__close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.login-panel h2 {
  margin: 0;
  padding-right: 58px;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.14;
}

.login-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.login-panel__form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-panel__form[hidden],
.login-panel [hidden] {
  display: none;
}

.login-panel__form label {
  display: grid;
  gap: 7px;
  color: #334454;
  font-weight: 900;
}

.login-panel__form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.login-panel__form .button {
  width: 100%;
  margin-top: 4px;
}

.login-panel__message {
  min-height: 22px;
  margin: 0;
  color: var(--coral);
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.login-panel__success {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(13, 159, 232, 0.22);
  border-radius: 8px;
  background: #f4fbff;
}

.login-panel__success[hidden] {
  display: none;
}

.login-panel__success strong {
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.3;
  word-break: keep-all;
}

.login-panel__success p {
  margin: 0;
}

.login-panel__success .button {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  --hero-image: none;
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(780px, 100svh);
  padding: 136px clamp(20px, 7vw, 96px) 80px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.18) 72%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold), var(--coral), var(--brown));
  content: "";
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  color: #172635;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.9rem, 5.25vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero__lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #405160;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  font-weight: 600;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(13, 159, 232, 0.26);
}

.button--secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button--green {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(121, 189, 22, 0.24);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 570px;
  margin-top: 42px;
}

.hero-fact {
  padding: 15px 16px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(27, 49, 67, 0.08);
}

.hero-fact strong,
.hero-fact span {
  display: block;
}

.hero-fact strong {
  color: var(--blue);
  font-size: 1.05rem;
}

.hero-fact span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 6vw, 86px);
}

.section--tint {
  background: var(--soft);
}

.section__heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section__heading h2,
.contact h2 {
  margin: 0;
  color: #192938;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
}

.section__heading p:not(.eyebrow),
.contact p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.intro__image-wrap {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.intro__image-wrap img {
  width: 100%;
  border-radius: 6px;
}

.intro-point {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.intro-point:first-child {
  border-top: 1px solid var(--line);
}

.intro-point h3,
.program-card h3,
.strength-item h3,
.process-list h3,
.news-card h3 {
  margin: 0;
  color: #213241;
  font-size: 1.22rem;
  line-height: 1.35;
}

.intro-point p,
.program-card p,
.strength-item p,
.process-list p,
.news-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.moving-theater {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 247, 0.98)),
    radial-gradient(circle at 12% 18%, rgba(27, 163, 224, 0.12), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(116, 183, 38, 0.11), transparent 28%);
}

.moving-theater__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.moving-theater__media {
  position: relative;
  min-width: 0;
}

.moving-theater__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(25, 41, 56, 0.12);
  border-radius: 8px;
  object-fit: cover;
  background: #111b24;
  box-shadow: 0 18px 42px rgba(27, 49, 67, 0.16);
}

.moving-theater__media span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(25, 41, 56, 0.82);
  font-size: 0.88rem;
  font-weight: 900;
}

.moving-theater__content {
  min-width: 0;
}

.moving-theater__content h2 {
  margin: 0;
  color: #192938;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.14;
}

.moving-theater__content p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  word-break: keep-all;
}

.moving-theater__points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.moving-theater__points li {
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  color: #263849;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(27, 49, 67, 0.06);
}

.moving-theater__content .button-row {
  margin-top: 24px;
}

.moving-theater__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 26px auto 0;
}

.moving-theater__gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(27, 49, 67, 0.08);
}

.moving-theater__gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.moving-theater__gallery figcaption {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.moving-theater__gallery strong {
  color: #213241;
  font-size: 1rem;
}

.moving-theater__gallery span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.photo-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.photo-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 29, 41, 0.56);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.photo-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 26px;
  border: 1px solid rgba(223, 232, 238, 0.92);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(10, 24, 36, 0.28);
  overflow: auto;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 240ms ease, transform 240ms ease;
}

.photo-modal.is-open .photo-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.photo-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 58px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.photo-modal__header {
  max-width: 720px;
  padding-right: 80px;
}

.photo-modal__header h2 {
  margin: 0;
  color: #192938;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.photo-modal__header p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  word-break: keep-all;
}

.photo-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.photo-modal__grid figure {
  margin: 0;
  border-radius: 8px;
  background: #eef5f7;
  overflow: hidden;
}

.photo-modal__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.photo-modal__grid figure:hover img {
  transform: scale(1.03);
}

.program-grid,
.strength-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.program-card,
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 49, 67, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.program-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--program-image);
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0;
}

.program-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.76);
  content: "";
  opacity: 0;
}

.program-card--image::before {
  opacity: var(--program-image-opacity, 0.24);
}

.program-card--image::after {
  opacity: 1;
}

.program-card > * {
  position: relative;
  z-index: 1;
}

.program-card span,
.news-card span,
.strength-item span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--coral);
  font-weight: 900;
}

.program-card p {
  flex: 1;
}

.program-card .button {
  width: 100%;
  margin-top: 20px;
}

.strength-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strength-item {
  min-height: 210px;
  padding: 30px;
  border-top: 5px solid var(--gold);
  background: #fff;
  box-shadow: 0 12px 32px rgba(27, 49, 67, 0.08);
}

.strength-item:nth-child(2) {
  border-color: var(--green);
}

.strength-item:nth-child(3) {
  border-color: var(--blue);
}

.strength-item:nth-child(4) {
  border-color: var(--coral);
}

.process {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    url("assets/logo-square.png") right 8% center / 180px no-repeat;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 220px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  counter-increment: steps;
}

.process-list li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: #fff;
  border-radius: 50%;
  background: var(--blue);
  content: counter(steps);
  font-weight: 900;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  min-height: 220px;
}

.contact {
  padding: clamp(70px, 9vw, 112px) clamp(20px, 6vw, 86px);
  color: #fff;
  background:
    linear-gradient(110deg, rgba(18, 116, 169, 0.96), rgba(49, 151, 85, 0.92)),
    url("assets/hero-classroom.png") center / cover;
}

.contact__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.contact .eyebrow,
.contact h2,
.contact p {
  color: #fff;
}

.contact p {
  max-width: 680px;
  opacity: 0.88;
}

.contact__details {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.contact__details div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.contact__details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact__details span {
  font-size: 0.84rem;
  font-weight: 900;
  opacity: 0.72;
}

.contact__details strong {
  font-size: 1.02rem;
}

.contact .button-row {
  grid-column: 1 / -1;
  margin-top: 0;
}

.inquiry-page {
  min-height: 100vh;
  padding: 132px clamp(18px, 5vw, 72px) 72px;
  background: var(--soft);
}

.inquiry-hero {
  max-width: 920px;
  margin: 0 auto 28px;
}

.inquiry-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.12;
}

.inquiry-hero p {
  max-width: 720px;
  color: var(--muted);
  font-weight: 700;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.inquiry-layout--search {
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.inquiry-card {
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(27, 49, 67, 0.09);
}

.inquiry-form,
.inquiry-search-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inquiry-form label,
.inquiry-search-form label {
  display: grid;
  gap: 7px;
  color: #334454;
  font-weight: 900;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea,
.inquiry-search-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.inquiry-form textarea {
  resize: vertical;
}

.reservation-picker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(13, 159, 232, 0.2);
  border-radius: 8px;
  background: #f8fcff;
}

.reservation-picker[hidden] {
  display: none;
}

.reservation-picker__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.reservation-picker__head span {
  color: var(--muted);
  font-weight: 900;
}

.reservation-picker__head strong {
  display: block;
  color: var(--ink);
  font-size: 1.14rem;
}

.reservation-picker__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reservation-picker__controls button,
.reservation-calendar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.reservation-picker__controls button {
  padding: 6px 10px;
}

.reservation-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.reservation-calendar__weekday {
  display: grid;
  min-height: 28px;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.reservation-calendar button {
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
}

.reservation-calendar button.is-outside {
  color: #b5c0ca;
  background: #f6f8fa;
}

.reservation-calendar button.is-unavailable {
  color: #a23c52;
  background: #ffe7ee;
  border-color: #f6b8c7;
  cursor: not-allowed;
}

.reservation-calendar button.is-selected {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.reservation-picker__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.inquiry-result {
  display: grid;
  gap: 12px;
}

.inquiry-result[hidden],
.inquiry-detail[hidden] {
  display: none;
}

.inquiry-result h2,
.inquiry-detail h2 {
  margin: 0;
  color: var(--ink);
}

.inquiry-result strong[data-inquiry-code] {
  display: block;
  padding: 14px;
  border: 1px dashed var(--blue);
  border-radius: 8px;
  color: var(--blue);
  background: #f1faff;
  font-size: 1.25rem;
  text-align: center;
}

.inquiry-detail {
  display: grid;
  gap: 16px;
}

.inquiry-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inquiry-detail__row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.inquiry-detail__row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.inquiry-detail__row strong {
  color: var(--ink);
  word-break: break-word;
}

.inquiry-detail__content {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  white-space: pre-wrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 86px);
  color: #687786;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer img {
  width: 56px;
  height: 56px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.program-page-hero {
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: 118px clamp(20px, 7vw, 96px) 58px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(18, 116, 169, 0.94), rgba(36, 49, 61, 0.44)),
    url("assets/hero-classroom.png") center / cover;
}

.program-page-hero__content {
  max-width: 760px;
}

.program-page-hero .eyebrow,
.program-page-hero h1,
.program-page-hero p {
  color: #fff;
}

.program-page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 4.3rem);
}

.program-page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}

.program-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.program-detail-card {
  position: relative;
  display: flex;
  min-height: 360px;
  scroll-margin-top: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(27, 49, 67, 0.09);
  overflow: hidden;
  isolation: isolate;
}

.program-detail-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--program-image) center / cover;
  content: "";
  opacity: 0.16;
}

.program-detail-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.84);
  content: "";
}

.program-detail-card__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(26px, 3.2vw, 38px);
}

.program-detail-card__body span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--coral);
  font-weight: 900;
}

.program-detail-card h2 {
  margin: 0;
  color: #182938;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.18;
}

.program-detail-card h3 {
  margin: 22px 0 10px;
  color: #213241;
  font-size: 1.08rem;
}

.program-detail-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.program-detail-card__lead {
  color: #405160;
  font-weight: 800;
}

.program-detail-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.program-detail-card__blog {
  width: fit-content;
  min-width: 210px;
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 980px) {
  .site-header {
    justify-content: flex-start;
    min-height: 70px;
  }

  .nav-toggle {
    position: static;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: 12px;
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 10px 22px rgba(13, 159, 232, 0.22);
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 0;
    background: #fff;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-user {
    justify-items: start;
    padding: 8px 12px 4px;
  }

  .nav-greeting {
    white-space: normal;
  }

  .nav-login {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 124px;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.35) 100%),
      var(--hero-image);
    background-position: center right 34%;
  }

  .hero__facts,
  .intro__layout,
  .moving-theater__layout,
  .program-grid,
  .process-list,
  .moving-theater__gallery,
  .news-grid,
  .contact__content {
    grid-template-columns: 1fr;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .program-card,
  .strength-item,
  .process-list li,
  .news-card {
    min-height: auto;
  }

  .program-detail-list {
    grid-template-columns: 1fr;
  }

  .inquiry-layout,
  .inquiry-layout--search {
    grid-template-columns: 1fr;
  }

  .program-detail-card {
    min-width: 0;
  }

  .program-detail-card__body {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .brand__logo {
    width: min(210px, 62vw);
  }

  .login-panel {
    place-items: end start;
    padding: 18px 14px;
  }

  .login-panel__card {
    width: min(360px, calc(100vw - 28px));
    padding: 24px;
    transform: translateY(18px) scale(0.99);
  }

  .login-panel h2 {
    padding-right: 54px;
    font-size: 1.65rem;
  }

  .login-panel p {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .hero h1 {
    max-width: 9.5em;
    font-size: clamp(2.25rem, 10vw, 3rem);
    line-height: 1.12;
    text-wrap: balance;
  }

  .section__heading h2,
  .moving-theater__content h2,
  .contact h2 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    word-break: normal;
  }

  h2,
  h3,
  p {
    word-break: break-all;
  }

  main,
  .section,
  .program-page-hero,
  .program-detail-list,
  .program-detail-card,
  .program-detail-card__body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .moving-theater__media span {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    font-size: 0.8rem;
  }

  .moving-theater__content p:not(.eyebrow) {
    font-size: 0.96rem;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .moving-theater__points li {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .photo-modal {
    place-items: end center;
    padding: 10px;
  }

  .photo-modal__panel {
    width: 100%;
    max-height: 84vh;
    padding: 20px 16px;
    border-radius: 12px 12px 0 0;
  }

  .photo-modal__close {
    top: 12px;
    right: 12px;
  }

  .photo-modal__header {
    padding-right: 66px;
  }

  .photo-modal__header h2 {
    font-size: 1.45rem;
  }

  .photo-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .program-page-hero {
    min-height: 330px;
    padding: 118px 28px 56px;
  }

  .inquiry-page {
    padding: 112px 16px 54px;
  }

  .inquiry-hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .form-grid--two,
  .inquiry-detail__grid {
    grid-template-columns: 1fr;
  }

  .reservation-picker__head {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-picker__controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reservation-picker__controls button {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 0.78rem;
  }

  .program-page-hero__content {
    max-width: 100%;
    min-width: 0;
  }

  .program-page-hero h1 {
    max-width: 300px;
    font-size: clamp(1.85rem, 8vw, 2.05rem);
    line-height: 1.12;
    word-break: keep-all;
  }

  .program-page-hero p:not(.eyebrow) {
    max-width: 300px;
    font-size: 0.96rem;
    word-break: break-all;
  }

  .program-detail-list {
    width: min(340px, calc(100vw - 48px));
    max-width: min(340px, calc(100vw - 48px));
    margin-right: auto;
    margin-left: 0;
  }

  .program-detail-card__body {
    width: 100%;
    padding: 24px;
  }

  .program-detail-card__blog {
    width: 100%;
    min-width: 0;
    margin-top: 24px;
  }

  .program-detail-card h2,
  .program-detail-card h3,
  .program-detail-card p,
  .program-detail-card li {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero__facts {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
