/* =========================================================
   本と絵画・造形教室 — style.css
   パンフレットの「水色の空 × ミントの吹き出し × こげ茶の文字」を再現
   ========================================================= */

:root {
  /* colors */
  --sky: #93d6ec;
  --sky-light: #b5e4f2;
  --sky-deep: #4bb6d6;
  --sky-ink: #2a8db3;
  --mint: #d7eff1;
  --white: #ffffff;
  --brown: #5c4630;
  --brown-soft: #7a6247;
  --orange: #f08a3c;

  /* type */
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: "Kiwi Maru", "Zen Maru Gothic", serif;

  /* shape */
  --radius-lg: 36px;
  --radius-md: 24px;
  --border: 4px solid var(--white);
  --shadow: 0 10px 30px -12px rgb(42 141 179 / 0.45);
  --shadow-lift: 0 18px 36px -14px rgb(42 141 179 / 0.6);

  --header-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.9rem + 0.2vw, 17px);
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--brown);
  background: var(--sky);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-ink); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sp-only { display: none; }
@media (max-width: 599px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--brown);
  color: var(--white);
  border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--brown);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.7em 1.8em;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 3px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 5px 0 0 rgb(92 70 48 / 0.25);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    color 0.3s,
    background-color 0.3s;
}
.btn svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
/* 波のように広がるハイライト */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgb(255 255 255 / 0.35) 0, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-3px);
  box-shadow: 0 8px 0 0 rgb(92 70 48 / 0.22), var(--shadow-lift);
}
.btn:hover::before { opacity: 1; }
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgb(92 70 48 / 0.25);
}

.btn-primary { --btn-bg: var(--brown); --btn-fg: var(--white); }
.btn-primary:hover { --btn-bg: #6f553a; }
.btn-secondary { --btn-bg: var(--sky-deep); --btn-fg: var(--white); }
.btn-secondary:hover { --btn-bg: var(--sky-ink); }
.btn-ghost { --btn-bg: var(--mint); --btn-fg: var(--brown); }
.btn-ghost:hover { --btn-bg: var(--white); }

.btn-sm { min-height: 42px; padding: 0.35em 1.3em; font-size: 0.92rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(215 239 241 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--white);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgb(42 141 179 / 0.8); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown);
}
.brand img { transition: transform 0.5s var(--ease); }
.brand:hover { color: var(--brown); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
}
.brand-text small { font-size: 0.66rem; letter-spacing: 0.14em; color: var(--brown-soft); }

.global-nav ul { display: flex; align-items: center; gap: 4px; }
.global-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--brown);
  border-radius: 999px;
  transition: background-color 0.25s, color 0.25s;
}
.global-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.global-nav a:not(.btn):hover { background: var(--white); }
.global-nav a:not(.btn):hover::after,
.global-nav a.is-current::after { transform: translateX(-50%) scale(1); }
.nav-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--sky-deep);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.menu-toggle:hover { transform: scale(1.06); background: var(--sky-ink); }
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--white);
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20.5px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateX(-50%) translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateX(-50%) translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 16px 16px 28px;
    background: var(--mint);
    border-bottom: var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0.35s;
  }
  .global-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .global-nav a:not(.btn) { padding: 12px 16px; font-size: 1rem; }
  .global-nav a:not(.btn)::after { left: auto; right: 16px; top: 50%; bottom: auto; transform: translateY(-50%) scale(0); }
  .global-nav a:not(.btn):hover::after,
  .global-nav a.is-current::after { transform: translateY(-50%) scale(1); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 52px; }
}

/* ---------- decorative blobs ---------- */
.blob {
  position: absolute;
  z-index: 0;
  background: var(--sky-deep);
  opacity: 0.45;
  pointer-events: none;
  animation: blob-float 14s ease-in-out infinite alternate;
}
@keyframes blob-float {
  0%   { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; transform: translate(0, 0) rotate(0deg); }
  100% { border-radius: 42% 58% 45% 55% / 55% 45% 58% 42%; transform: translate(14px, -18px) rotate(8deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(90px, 12vw, 150px);
  overflow: hidden;
}
.blob-hero-1 { width: 520px; height: 520px; top: -160px; left: -180px; }
.blob-hero-2 { width: 420px; height: 420px; bottom: -40px; right: -120px; animation-delay: -6s; opacity: 0.35; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-text {
  position: relative;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 52px);
  background: var(--mint);
  border: var(--border);
  border-radius: 64px 140px 96px 160px / 64px 96px 140px 120px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-sub {
  margin-bottom: 0.4em;
  font-family: var(--font-head);
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
  letter-spacing: 0.3em;
}
.hero-title {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.35;
  margin-bottom: 0.55em;
}
.hero-lead {
  font-family: var(--font-head);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.2rem);
  line-height: 2.1;
  letter-spacing: 0.16em;
}
.hero-lead span { display: block; }
@media (max-width: 599px) {
  .hero-text { padding-inline: 18px; }
  .hero-lead { font-size: clamp(0.82rem, 3.9vw, 1rem); letter-spacing: 0.04em; }
  .hero-lead span { white-space: nowrap; }
  .hero-title { letter-spacing: 0.14em; }
}
.hero-lead strong {
  font-weight: 500;
  background: linear-gradient(transparent 62%, rgb(240 138 60 / 0.35) 62%);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1.6em;
}
.hero-note {
  margin-top: 1.2em;
  font-size: 0.88rem;
  color: var(--brown-soft);
}
.hero-note::before { content: "📍 "; }

.hero-art .frame {
  position: relative;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  transform: rotate(2.5deg);
  transition: transform 0.6s var(--ease);
}
.hero-art .frame::after {
  /* マスキングテープ風 */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 30px;
  background: rgb(240 138 60 / 0.55);
  border-radius: 4px;
  transform: translateX(-50%) rotate(-4deg);
}
.hero-art img { border-radius: calc(var(--radius-lg) - 12px); }

.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(50px, 8vw, 110px);
  fill: var(--sky-light);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(88%, 460px); margin-inline: auto; }
  .hero-text { border-radius: 48px 96px 64px 96px / 48px 64px 96px 80px; }
}

/* ---------- 3 powers ---------- */
.powers {
  position: relative;
  z-index: 2;
  padding: 8px 0 clamp(56px, 8vw, 88px);
  background: var(--sky-light);
}
.power-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.power {
  padding: 28px 24px 26px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.power-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--sky-light);
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.power-icon svg {
  width: 44px;
  height: 44px;
  fill: var(--white);
  stroke: var(--brown);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.power-icon .stroke { fill: none; stroke-linecap: round; }
.power-icon .dot { fill: var(--orange); stroke: none; }
.power h3 { font-size: 1.35rem; letter-spacing: 0.2em; margin-bottom: 6px; }
.power p { font-size: 0.93rem; line-height: 1.8; }

@media (max-width: 760px) {
  .power-list { grid-template-columns: 1fr; }
  .power { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; text-align: left; align-items: center; padding: 20px 22px; }
  .power-icon { grid-row: span 2; margin: 0; width: 64px; height: 64px; }
  .power-icon svg { width: 36px; height: 36px; }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
  overflow: hidden;
}
.section > .container { position: relative; z-index: 1; }

/* 背景の濃い水色の“雲”（パンフレット背景の再現） */
.section::before,
.section::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: var(--sky-deep);
  opacity: 0.32;
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  pointer-events: none;
}
.section::before { width: 46vw; max-width: 560px; aspect-ratio: 1; top: -12%; right: -14%; }
.section::after { width: 34vw; max-width: 420px; aspect-ratio: 1.2; bottom: -10%; left: -12%; border-radius: 42% 58% 45% 55% / 55% 45% 58% 42%; }
.section-tint { background: var(--sky-light); }
.section-tint::before { opacity: 0.22; }
.section-tint::after { opacity: 0.22; }

.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 52px); }
.section-lead {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  letter-spacing: 0.14em;
  line-height: 1.8;
}

/* タブ型見出し（パンフレットの見出しラベル） */
.tab-heading {
  position: relative;
  display: inline-block;
  padding: 0.35em 1.6em 0.4em;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  letter-spacing: 0.24em;
  background: var(--sky);
  border: var(--border);
  border-radius: 40px 56px 18px 48px / 40px 40px 24px 36px;
  box-shadow: var(--shadow);
}
@media (max-width: 599px) {
  .tab-heading { padding-inline: 1.1em; letter-spacing: 0.12em; }
}
.tab-heading::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
}

/* カード（ミント×白縁） */
.card {
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.card-heading {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  letter-spacing: 0.22em;
  text-align: center;
  padding-bottom: 0.55em;
  margin-bottom: 1em;
  border-bottom: 2px solid var(--brown);
}
.highlight {
  padding: 1em 1.2em;
  background: var(--white);
  border-radius: var(--radius-md);
}

.photo {
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.photo img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 8px);
  transition: transform 0.7s var(--ease);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.about-side { display: grid; gap: clamp(24px, 4vw, 36px); }
.card-policy { background: var(--white); }
.card-policy .card-heading::before { content: "🎨 "; }
.about-side .photo { transform: rotate(-1.5deg); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- lesson ---------- */
.semi-private {
  max-width: 880px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.semi-private-label {
  margin-bottom: 0.2em;
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--sky-ink);
}
.semi-private-title {
  margin-bottom: 0.9em;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: 0.08em;
}
.semi-private-note {
  margin-top: 1.2em;
  font-size: 0.9rem;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
/* パレットのような白いかたち */
.class-card {
  position: relative;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4.5vw, 56px) clamp(40px, 5vw, 56px);
  background: var(--white);
  border-radius: 120px 160px 120px 64px / 110px 120px 160px 80px;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-radius 0.8s var(--ease);
}
.class-card-alt { border-radius: 160px 110px 72px 140px / 120px 140px 90px 140px; }
.class-deco {
  position: absolute;
  right: 28px;
  top: 22px;
  width: 64px;
  height: 64px;
  transition: transform 0.6s var(--ease);
}
.class-deco svg { width: 100%; height: 100%; fill: var(--sky); stroke: var(--sky-deep); stroke-width: 3; stroke-linejoin: round; }
.class-deco .stroke { fill: none; stroke-linecap: round; }

.class-name {
  margin-bottom: 0.2em;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  letter-spacing: 0.22em;
}
.class-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 1.2em;
  font-family: var(--font-head);
  letter-spacing: 0.08em;
}
.badge {
  display: inline-block;
  padding: 0.1em 0.9em;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--sky-deep);
  border-radius: 999px;
}
.class-card-alt .badge { background: var(--orange); }

.check-list { display: grid; gap: 6px; }
.check-list li {
  position: relative;
  padding-left: 1.8em;
  line-height: 1.7;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: var(--sky-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%235c4630' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.lesson-note {
  max-width: 640px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  padding: 1em 1.6em;
  text-align: center;
  background: var(--mint);
  border: var(--border);
  border-radius: 999px;
}
@media (max-width: 599px) { .lesson-note { border-radius: var(--radius-md); } }

@media (max-width: 760px) {
  .class-grid { grid-template-columns: 1fr; }
  .class-card,
  .class-card-alt { border-radius: 64px 96px 64px 40px / 56px 64px 96px 48px; }
  .class-deco { width: 48px; height: 48px; right: 22px; }
}

/* ---------- content ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.content-item {
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.content-item-media {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.content-item-media .photo { padding: 6px; }

/* ＜見出し＞ の白い楕円ラベル */
.pill {
  display: inline-block;
  margin-bottom: 0.8em;
  padding: 0.2em 1.2em;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  background: var(--white);
  border-radius: 999px / 70%;
}
.pill::before { content: "＜"; color: var(--sky-deep); }
.pill::after { content: "＞"; color: var(--sky-deep); }

@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .content-item-media { grid-template-columns: 1fr; }
  .content-item-media .photo { max-width: 360px; }
}

/* ---------- teachers ---------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 40px);
}
.teacher { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.teacher-name {
  display: table;
  margin: 0 auto 0.8em;
  padding: 0.15em 1.4em;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: 0.3em;
  background: var(--white);
  border-radius: 999px / 70%;
}
.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1.1em;
}
.teacher-tags li {
  padding: 0.1em 0.9em;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--sky-ink);
  background: var(--white);
  border: 1.5px solid var(--sky);
  border-radius: 999px;
}
.photo-wide {
  max-width: 560px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  transform: rotate(1.2deg);
}

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

/* ---------- results ---------- */
.school-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 44px);
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.school-list li {
  padding: 0.35em 1.1em;
  font-size: 0.95rem;
  line-height: 1.6;
  background: var(--white);
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}
.school-list li.more { background: transparent; border: 2px dashed var(--sky-deep); }

/* ---------- access ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.map { padding: 12px; background: var(--white); overflow: hidden; }
.map img { border-radius: calc(var(--radius-lg) - 14px); }
.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: calc(var(--radius-lg) - 14px);
}

.info-list { display: grid; gap: 14px; margin: 0 0 1.4em; }
.info-list > div {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--sky);
}
.info-list dt {
  align-self: start;
  padding: 0.1em 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-align: center;
  color: var(--white);
  background: var(--sky-deep);
  border-radius: 999px;
}
.info-list dd { margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .info-list > div { grid-template-columns: 1fr; gap: 6px; }
  .info-list dt { justify-self: start; padding-inline: 1.2em; }
}
.contact-lead { margin-bottom: 1.2em; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions .btn { width: 100%; }

@media (max-width: 860px) {
  .access-grid { grid-template-columns: 1fr; }
  .map { max-width: 520px; margin-inline: auto; }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 48px 0 40px;
  color: var(--white);
  background: var(--sky-ink);
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  line-height: 1.5;
}
.footer-brand small { font-size: 0.75rem; letter-spacing: 0.16em; opacity: 0.85; }
.footer-address { font-size: 0.85rem; opacity: 0.9; }
.copyright { margin-top: 1.4em; font-size: 0.78rem; opacity: 0.75; }

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--brown);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.35s var(--ease), background-color 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--white); background: var(--sky-deep); transform: translateY(-4px); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}
