/* ===== Tokens（取樣自 Sample1.png）===== */
:root {
  --yellow: #FDC611;
  --yellow-soft: #FDD34E;
  --yellow-pale: #FFF3CC;
  --cream: #FCF4E0;
  --bg: #FFFDF8;
  --red: #EF4038;
  --orange: #F66A0A;
  --orange-text: #9A3F00;
  --green: #6FA022;
  --ink: #3A332B;
  --ink-soft: #6B6258;
  --brown: #58351F;
  --card-radius: 20px;
  --shadow: 0 6px 24px rgba(120, 90, 30, .10);
  --shadow-soft: 0 4px 14px rgba(120, 90, 30, .08);
  --container: 1200px;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* 版心隨螢幕變寬（地板 1200＝1280 以下維持原樣；天花板 1800＝超寬螢幕近滿版但仍留窄溝） */
.container { max-width: clamp(1200px, 95vw, 1800px); margin: 0 auto; padding: 0 24px; }
.ic { width: 1em; height: 1em; vertical-align: -0.12em; }
.arrow { display: inline-block; transition: transform .2s; }

/* ===== 按鈕 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--yellow); color: var(--brown); }
.btn-primary:hover { background: var(--yellow-soft); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid #EBE2D2; }
.btn-light { background: #fff; color: var(--orange-text); }

.text-link { color: var(--orange-text); font-weight: 700; font-size: 15px; }
.text-link:hover .arrow { transform: translateX(4px); }

/* ===== 導覽列 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(120, 90, 30, .07);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-image { display: block; width: 68px; height: 68px; object-fit: contain; }
.footer-brand .logo-image { width: 118px; height: 118px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--ink); }
.site-nav a:hover { color: var(--orange-text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span { display: block; flex: 0 0 2.5px; width: 22px; height: 2.5px; background: var(--ink); margin: 2.25px 0; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-blob {
  position: absolute; left: -200px; bottom: -160px;
  width: 380px; height: 380px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: .9;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 0.88fr 1.12fr;
  align-items: center; gap: 40px;
  padding-top: 48px; padding-bottom: 0;
}
.hero-copy { position: relative; padding-bottom: 0; }
.hero-sun { width: 34px; height: 34px; margin-bottom: 10px; }
.eyebrow { color: var(--orange-text); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.hero h1 {
  font-size: 46px; font-weight: 900; color: var(--ink);
  letter-spacing: .02em; margin-bottom: 18px; position: relative;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-heart { width: 26px; height: 26px; margin-left: 6px; }
.lead { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { margin-right: calc(50% - 50vw); }
.hero-photo-composite {
  min-width: 0;
  margin-right: calc((min(100vw, clamp(1200px, 95vw, 1800px)) - 100vw) / 2 - 24px);
}
.hero-photo img {
  width: 100%;
  border-radius: 110px 0 0 60px;
  box-shadow: var(--shadow);
}

/* ===== 特色卡片 ===== */
.features { padding: 0 0 48px; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  position: relative; z-index: 2; margin-top: -48px;
}
.feature-card {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: block; width: 50px; height: 50px; margin-bottom: 14px; }
.feature-icon svg, .feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== 共用 Section ===== */
section { scroll-margin-top: 84px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 900; font-size: 15px; color: var(--brown);
  margin-bottom: 12px;
}
.section-tag .ic { width: 1.2em; height: 1.2em; }
h2 { font-size: 32px; font-weight: 900; color: var(--ink); }
.section-body { color: var(--ink-soft); font-size: 16px; }
.section-head { margin-bottom: 26px; }
.section-head.center { text-align: center; }
.section-head.split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.inline-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }

/* 標題裝飾太陽 */
.head-sun { flex: none; line-height: 0; }
.head-sun-img { width: 66px; height: auto; display: block; }
.section-head.center { position: relative; }
.head-sun-classes {
  position: absolute; right: 7%; top: 50%;
  transform: translateY(-50%);
}

/* ===== 關於聖育 ===== */
.about { padding: 36px 0 52px; }
.about-inner {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 56px; align-items: center;
}
.about h2 { margin-bottom: 18px; }
.about-badges { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.about-badges li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.badge-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex: none;
}
.badge-ic svg { width: 18px; height: 18px; }
.badge-red { background: #FDE5E3; color: var(--red); }
.badge-yellow { background: var(--yellow-pale); color: #E8A800; }
.badge-green { background: #E8F2D9; color: var(--green); }
.badge-orange { background: #FDE8D5; color: var(--orange-text); }
.about-photo img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; }

/* ===== 課程介紹 ===== */
.classes { background: var(--cream); padding: clamp(28px, 3vw, 44px) 0 clamp(54px, 4vw, 64px); }
.classes .section-head h2 { margin-top: 2px; font-size: clamp(34px, 2.45vw, 42px); }
.classes .section-head { margin-bottom: 10px; }
.courses-intro {
  margin: 0 auto clamp(26px, 3vw, 42px);
  color: var(--ink-soft);
  text-align: center;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  white-space: nowrap;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
  max-width: 1320px;
  margin: 0 auto;
}
.course-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(132px, 12vw, 174px);
  align-items: start;
  min-height: 220px;
  height: 100%;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(14px, 1.25vw, 19px) clamp(28px, 2.5vw, 38px);
  border: 1px solid var(--course-line);
  border-radius: 22px 48px 22px 22px;
  background: var(--course-bg);
  box-shadow: 0 3px 0 rgba(93, 63, 27, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -86px;
  right: -74px;
  width: 218px;
  aspect-ratio: 1;
  border: 1px dashed var(--course-line);
  border-radius: 50%;
  opacity: .9;
}
.course-card:hover { transform: translateY(-4px); border-color: var(--course-accent); box-shadow: 0 10px 22px rgba(93, 63, 27, .10); }
.course-icon {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin-top: 12px;
  align-self: start;
  filter: drop-shadow(0 5px 5px rgba(122, 81, 27, .12));
}
.course-copy { display: flex; flex-direction: column; align-self: stretch; justify-content: center; min-width: 0; height: 100%; }
.course-copy > * {
  line-break: strict;
  word-break: normal;
}
.course-kicker { margin-bottom: 5px; color: var(--course-accent); font-size: clamp(17px, 1.25vw, 20px); font-weight: 900; }
.course-copy h3 { margin-bottom: 11px; font-size: clamp(28px, 2.05vw, 32px); font-weight: 900; line-height: 1.3; }
.course-copy > p:last-of-type { color: var(--ink-soft); font-size: clamp(17px, 1.28vw, 19px); line-height: 1.72; }
[data-punctuation-wrap] .punctuation-line { white-space: nowrap; }
.course-card-story { --course-bg: #FFF8E8; --course-line: #EACB87; --course-accent: #9D5C1C; }
.course-card-steam { --course-bg: #F1F7EB; --course-line: #B9D5A5; --course-accent: #487220; }
.course-card-life { --course-bg: #FFF4DF; --course-line: #E8C380; --course-accent: #9D6500; }
.course-card-family { --course-bg: #FDF0ED; --course-line: #E9BDB5; --course-accent: #B53D36; }

/* ===== 校園留言板／校園環境 ===== */
.bulletin { background: var(--cream); padding: 48px 0 52px; }
.campus { background: var(--bg); padding: 48px 0 52px; }
.showcase-layout { display: block; }
.showcase-intro {
  position: relative;
  isolation: isolate;
  max-width: 1120px;
  padding-right: 96px;
  margin-bottom: 26px;
}
.showcase-intro-accented { max-width: 1500px; padding-right: clamp(160px, 18vw, 300px); }
.showcase-intro h2 {
  color: var(--ink);
  letter-spacing: normal;
  margin-bottom: 12px;
}
.showcase-intro .section-tag { color: var(--brown); }
.showcase-intro .section-tag .ic { color: var(--green); }
.campus .section-tag .ic { color: var(--yellow); }
.admission .section-tag .ic { color: var(--red); }
.showcase-intro .section-body { max-width: 62ch; }
.showcase-intro > .section-tag,
.showcase-intro > h2,
.showcase-intro > .section-body { position: relative; z-index: 1; }
.showcase-accent {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 72px);
  z-index: 0;
  line-height: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.showcase-accent img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(120, 90, 30, .08));
}
.showcase-accent-rainbow { width: clamp(140px, 12vw, 210px); transform: translateY(-50%) rotate(-2deg); }
.showcase-accent-sun { width: clamp(96px, 8vw, 136px); transform: translateY(-50%) rotate(4deg); }
.showcase-sprig {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72px;
  height: auto;
  color: var(--green);
  margin: 0;
  opacity: .9;
  object-fit: contain;
}

.admission::before,
.admission::after,
.bulletin::before,
.bulletin::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: center / contain no-repeat;
}
.admission,
.bulletin { overflow-x: clip; }
.admission::before {
  top: 20px;
  right: -30px;
  width: clamp(150px, 14vw, 240px);
  aspect-ratio: 3 / 2;
  background-image: url("../assets/deco/cloud-watercolor.png");
  opacity: .72;
}
.admission::after {
  bottom: -38px;
  left: -26px;
  width: clamp(96px, 8vw, 148px);
  aspect-ratio: 2 / 3;
  background-image: url("../assets/deco/botanical-sprig-watercolor-512.webp");
  opacity: .76;
  transform: rotate(-8deg);
}
.bulletin::before {
  top: -12px;
  right: -26px;
  width: clamp(108px, 9vw, 164px);
  aspect-ratio: 2 / 3;
  background-image: url("../assets/deco/botanical-sprig-watercolor-512.webp");
  opacity: .74;
  transform: rotate(8deg);
}
.bulletin::after {
  bottom: -34px;
  left: -26px;
  width: clamp(150px, 14vw, 240px);
  aspect-ratio: 3 / 2;
  background-image: url("../assets/deco/cloud-watercolor.png");
  opacity: .64;
}

.bulletin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.bulletin-card {
  min-width: 0;
  min-height: 0;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(112, 91, 52, .10);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(100, 78, 38, .06);
  transition: transform .2s, box-shadow .2s;
}
.bulletin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.bulletin-body { display: flex; flex-direction: column; height: 100%; padding: clamp(20px, 1.6vw, 24px); }
.bulletin-meta { color: var(--orange-text); font-size: clamp(14px, 1vw, 16px); font-weight: 900; letter-spacing: .06em; }
.bulletin-body h3 {
  color: var(--ink);
  font-size: clamp(26px, 1.9vw, 30px);
  font-weight: 900;
  margin: 2px 0 8px;
}
.bulletin-body > p:not(.bulletin-meta) { color: var(--ink-soft); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; }
.bulletin-status { display: inline-flex; margin-top: auto; padding-top: 12px; color: var(--brown); font-size: clamp(15px, 1.05vw, 17px); font-weight: 700; }
.bulletin-link { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 18px; color: var(--orange-text); font-size: clamp(15px, 1.05vw, 17px); font-weight: 900; }
.bulletin-link::after { content: "→"; font-size: 17px; transition: transform .2s; }
.bulletin-link:hover::after { transform: translateX(3px); }
.bulletin-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }
.bulletin-empty {
  grid-column: 1 / -1;
  padding: clamp(28px, 3vw, 44px);
  border: 1px dashed rgba(112, 91, 52, .24);
  border-radius: 18px;
  color: var(--ink-soft);
  text-align: center;
  background: rgba(255, 255, 255, .54);
}

.campus-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.campus-grid figure { min-width: 0; margin: 0; }
.campus-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.campus-grid figure:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.campus-grid figcaption {
  margin-top: 9px;
  text-align: center;
  color: var(--ink);
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 700;
  line-height: 1.5;
}

/* ===== 入園資訊 ===== */
.admission { background: var(--bg); padding: 48px 0 52px; }
.admission-details { display: grid; gap: 22px; }
.admission-hours,
.admission-flow {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(112, 91, 52, .09);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(100, 78, 38, .05);
}
.admission-hours {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
  padding: clamp(24px, 2.7vw, 36px);
}
.admission-hours-title { display: flex; align-items: center; gap: 14px; }
.admission-hours-icon {
  width: 50px;
  height: 50px;
  flex: none;
  color: var(--orange-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admission-hours-title p,
.admission-flow-heading p {
  color: var(--orange-text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}
.admission-hours-title h3,
.admission-flow-heading h3 {
  color: var(--ink);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 900;
}
.admission-time-list { display: contents; margin: 0; }
.admission-time-list > div { border-left: 1px solid #E7D8BB; padding-left: clamp(18px, 2vw, 32px); }
.admission-time-list dt { color: var(--ink-soft); font-size: clamp(16px, 1.1vw, 18px); font-weight: 700; }
.admission-time-list dd { margin: 2px 0 0; color: var(--brown); font-size: clamp(30px, 2.8vw, 42px); font-weight: 900; line-height: 1.25; letter-spacing: -.025em; }
.admission-time-list dd span { color: var(--orange-text); margin: 0 3px; }
.admission-flow {
  padding: clamp(24px, 2.7vw, 36px);
}
.admission-flow-heading { margin-bottom: clamp(22px, 2.4vw, 34px); }
.admission-flow-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.admission-flow-list li { position: relative; z-index: 1; min-width: 0; padding-right: clamp(16px, 2.5vw, 36px); }
.admission-flow-list li:last-child { padding-right: 0; }
.admission-flow-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 21px;
  left: 22px;
  width: 100%;
  height: 2px;
  background: #EACB87;
}
.admission-step-number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border: 2px solid #EACB87;
  border-radius: 50%;
  background: var(--yellow-pale);
  color: var(--orange-text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}
.admission-flow-copy { max-width: 29ch; }
.admission-flow-meta { color: var(--orange-text); font-size: clamp(14px, 1vw, 16px); font-weight: 900; letter-spacing: .06em; }
.admission-flow-copy h4 { color: var(--ink); font-size: clamp(20px, 1.6vw, 24px); font-weight: 900; margin: 2px 0 6px; }
.admission-flow-copy > p:not(.admission-flow-meta) { color: var(--ink-soft); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; }
.admission-flow-status { display: inline-flex; margin-top: 12px; color: var(--brown); font-size: clamp(15px, 1.05vw, 17px); font-weight: 700; }
.admission-flow-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--orange-text); font-size: clamp(15px, 1.05vw, 17px); font-weight: 900; }
.admission-flow-link::after { content: "→"; font-size: 17px; transition: transform .2s; }
.admission-flow-link:hover::after { transform: translateX(3px); }

/* ===== CTA ===== */
.cta { padding: 16px 0 52px; }
.cta-banner {
  position: relative;
  background: var(--yellow);
  border-radius: 32px;
  padding: 40px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-copy { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-banner h2 { color: var(--brown); margin-bottom: 12px; text-wrap: balance; }
.cta-banner p { color: #6C5212; font-size: 16px; font-weight: 500; line-height: 1.75; margin-bottom: 0; text-wrap: balance; }
.cta-art { position: absolute; }
.cta-school { left: 4%; bottom: 0; width: 150px; }
.cta-balloon { right: 6%; top: 18px; width: 96px; }
.cta-rainbow { left: 15%; top: 8px; width: 124px; transform: rotate(-5deg); filter: drop-shadow(0 5px 6px rgba(122, 77, 24, .08)); }
.cta-cloud { width: 70px; }
.cloud-2 { right: 24%; bottom: 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--cream); position: relative; scroll-margin-top: 84px; }
.footer-wave { display: block; width: 100%; height: 48px; margin-top: -48px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1.1fr .8fr;
  gap: 36px; padding-top: 30px; padding-bottom: 20px;
}
.footer-col h4 { font-size: 16px; font-weight: 900; margin-bottom: 12px; color: var(--ink); }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.contact-list .ic { width: 1.15em; height: 1.15em; flex: none; }
.contact-list a:hover { color: var(--orange-text); }
.quick-links li { margin-bottom: 10px; }
.quick-links a { font-size: 14.5px; color: var(--ink-soft); }
.quick-links a:hover { color: var(--orange-text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  border-top: 1px solid #EFE3C8;
  padding-top: 14px; padding-bottom: 18px;
  font-size: 13px; color: var(--ink-soft);
}
.footer-legal a:hover { color: var(--orange-text); }
.footer-legal span { margin: 0 6px; }

/* ===== 裝飾元件（spot decorations）===== */
.features, .about, .classes, .bulletin, .campus, .admission { position: relative; }
.container { position: relative; z-index: 1; }
.deco-layer {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.deco { position: absolute; background-repeat: no-repeat; background-position: center; background-size: contain; }
img.deco { height: auto; object-fit: contain; opacity: .92; }
.deco-blob { border-radius: 50%; background: radial-gradient(circle, var(--yellow-pale), rgba(255,243,204,0) 70%); }
.deco-blob-o { border-radius: 50%; background: radial-gradient(circle, rgba(246,106,10,.10), rgba(246,106,10,0) 70%); }
.deco-blob-g { border-radius: 50%; background: radial-gradient(circle, rgba(111,160,34,.10), rgba(111,160,34,0) 70%); }

/* ===== RWD ===== */
/* ===== 桌機專屬：提升內容份量（≥1025px）=====
   只在桌機加大字級／圖片，避免大畫面上內容相對縮小、留白主導的「視覺太空」。
   平板（≤1024）與手機（≤640）沿用 base 值，不受影響。 */
@media (min-width: 1025px) {
  /* 字級：標題與內文整體放大 */
  /* h1 用流動字級：寬螢幕放大到 ~56px、接近 1025px 時收回 46px，
     確保「自信成長的第一步＋愛心」在所有桌機寬度都維持單行（不爆成三行） */
  .hero h1 { font-size: clamp(46px, 3.4vw, 62px); }
  .eyebrow { font-size: clamp(17px, 1.1vw, 19px); }
  .lead { font-size: clamp(18.5px, 1.2vw, 21px); }
  /* section 標題／標籤／內文隨寬度放大：版心放寬到 1800 後，固定字級在寬螢幕上
     相對縮小、顯空。clamp 讓它們在 ~1500px 以上跟著長大，1500 以下維持原值 */
  h2 { font-size: clamp(40px, 2.6vw, 52px); }
  .section-tag { font-size: clamp(17px, 1.3vw, 23px); }
  .section-body { font-size: clamp(17.5px, 1.15vw, 21px); }
  .feature-card h3 { font-size: 20px; }
  .feature-card p { font-size: 16px; }
  .bulletin-body p { font-size: 16px; }
  .campus-grid figcaption { font-size: 15.5px; }
  .about-badges li { font-size: 16px; }
  .btn { font-size: 16px; padding: 13px 28px; }

  /* hero 左欄寬度＝貼著文字內容（max-content）：字大欄就寬、字小欄就窄，
     中間永遠只剩固定的欄間距（40px），不會因為「欄寬固定、字級隨寬度變」而在
     某些寬度（如 1440）欄內空出一大截。照片（1fr）吃掉剩餘、補滿右側。
     標題與 lead 都有 <br> 控制斷行，max-content 不會把欄撐到失控。
     align-items:start＋收小 padding-top：把 navbar 到 hero 內容的空隙壓到最小、
     不再被垂直置中往下推（零頭高度差移到下方、緊接特色卡片，較不顯眼） */
  .hero-inner { grid-template-columns: max-content 1fr; align-items: center; padding-top: 28px; }

  /* 圖片／元素份量：放大被限縮的視覺元素 */
  .feature-icon { width: 56px; height: 56px; }

  /* hero 照片高度設天花板：不讓它隨寬度一直抽高，與左欄文字高度對齊、
     消掉「導覽列到內容之間」那條會隨螢幕變大的頂部空白帶 */
  .hero-photo img { height: clamp(520px, 34vw, 620px); object-fit: cover; }

  /* Footer flatten：「快速連結」5 項改橫排（一行排開），不再直排把整列高度撐到 ~215；
     並把該欄加寬讓 5 項一行放得下。footer 高度改由「聯絡我們」決定（~130）。
     align-items:start 讓各欄貼齊頂端、不被最高欄拉成等高留白 */
  /* 四欄平均分布跨滿版心；快速連結欄較寬以容納橫排一行。
     收小 padding-top：縮短 footer 上緣到 logo 的留白 */
  .footer-grid { grid-template-columns: 1fr 1.1fr 1.4fr; align-items: start; padding-top: 8px; }
  .quick-links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
  .quick-links li { margin-bottom: 0; }

  /* footer 文字放大：填實各欄內容、縮小欄與欄之間的視覺空隙（隨寬度長大、1500 以下維持原值） */
  .footer-col h4 { font-size: clamp(16px, 1.05vw, 20px); }
  .contact-list li { font-size: clamp(14.5px, 1.0vw, 17.5px); }
  .quick-links a { font-size: clamp(14.5px, 1.0vw, 17.5px); }
  .footer-bottom { font-size: clamp(13px, .8vw, 15px); }
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-intro { max-width: 900px; padding-right: 90px; }
  .showcase-intro-accented { padding-right: 150px; }
  .showcase-accent { right: 16px; }
  .showcase-accent-rainbow { width: 132px; }
  .showcase-accent-sun { width: 96px; }
  .showcase-intro br { display: none; }
  .showcase-sprig { width: 70px; }
  .campus-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-inner { gap: 16px; }
  .site-nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: calc(100% + 8px); left: auto; right: 24px;
    width: min(300px, calc(100vw - 48px));
    margin-left: 0;
    background: #fff; padding: 12px;
    border: 1px solid #F0E4CE;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .site-nav.open > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-bottom: 1px solid #F5EDDD;
  }
  .site-nav.open > a[href="#voices"] { border-bottom: 0; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .features { padding-bottom: 40px; }
  .about { padding: 32px 0 40px; }
  .classes { padding-bottom: 48px; }
  .bulletin, .campus, .admission { padding: 40px 0 44px; }
}

@media (min-width: 641px) and (max-width: 767px) {
  .footer-grid { gap: 24px; padding-top: 24px; padding-bottom: 18px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .quick-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
  .quick-links li { margin-bottom: 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: .8fr 1.1fr 1fr;
    align-items: start;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 18px;
  }
}

@media (max-width: 878px) {
  .courses-grid { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: minmax(0, 1fr) 150px; }
}

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

@media (max-width: 640px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .hero-inner { gap: 24px; padding-top: 32px; }
  .hero h1 { font-size: 32px; }
  .hero-blob { left: -80px; bottom: -30px; top: auto; width: 180px; height: 180px; opacity: .5; }
  .head-sun-classes { right: 2%; top: 4px; transform: none; }
  .head-sun-classes .head-sun-img { width: 42px; }
  .hero-copy { padding-bottom: 0; }
  .lead { margin-bottom: 0; }
  .hero-photo { margin-right: 0; }
  .hero-photo img { border-radius: 28px; }
  .features { padding-bottom: 28px; }
  .features-grid { margin-top: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .about { padding: 24px 0 28px; }
  .about-inner { gap: 32px; }
  .classes { padding: 28px 0 40px; }
  .courses-grid { grid-template-columns: 1fr; gap: 22px; }
  .classes .section-head h2 { font-size: 29px; }
  .courses-intro { margin-bottom: 28px; font-size: 16px; white-space: normal; }
  .course-card { display: block; min-height: 0; padding: 24px 22px 108px; }
  .course-card::after { top: -92px; right: -86px; width: 202px; }
  .course-copy { height: auto; justify-content: flex-start; }
  .course-icon { position: absolute; right: 22px; bottom: 18px; width: 88px; margin: 0; }
  .course-kicker { font-size: 17px; }
  .course-copy h3 { font-size: 25px; }
  .course-copy > p:last-of-type { font-size: 16.5px; }
  .bulletin, .campus, .admission { padding: 32px 0 36px; }
  .admission::before { top: 8px; right: -40px; width: 142px; opacity: .46; }
  .admission::after { bottom: -24px; left: -42px; width: 98px; opacity: .5; }
  .bulletin::before { top: -22px; right: -42px; width: 102px; opacity: .48; }
  .bulletin::after { bottom: -22px; left: -48px; width: 144px; opacity: .44; }
  .bulletin-body > p:not(.bulletin-meta) { font-size: 16px; }
  .bulletin-status { font-size: 15px; }
  .admission-hours { grid-template-columns: 1fr; gap: 18px; }
  .admission-time-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .admission-time-list > div { border-top: 1px solid #E7D8BB; border-left: 0; padding: 14px 0 0; }
  .admission-flow-list { grid-template-columns: 1fr; gap: 26px; }
  .admission-flow-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 14px; padding-right: 0; }
  .admission-flow-list li:not(:last-child)::before { top: 22px; right: auto; bottom: -48px; left: 21px; width: 2px; height: auto; }
  .admission-step-number { margin-bottom: 0; }
  .showcase-intro { padding-right: 64px; margin-bottom: 22px; }
  .showcase-intro-accented { padding-right: 84px; }
  .showcase-intro h2 { margin-bottom: 10px; }
  .showcase-accent { top: 54%; right: 0; opacity: .72; }
  .showcase-accent-rainbow { width: 76px; }
  .showcase-accent-sun { width: 62px; }
  .showcase-sprig { width: 54px; }
  .campus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .campus-grid figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
  }
  .campus-grid figure:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
  .cta { padding: 12px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; padding-bottom: 16px; }
  .footer-brand .logo-image { width: 96px; height: 96px; }
  .quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .quick-links li { margin-bottom: 0; }
  .footer-bottom { gap: 8px; padding-top: 12px; padding-bottom: 16px; }
  h2 { font-size: 26px; }
  .cta-school, .cta-balloon { width: 80px; opacity: .6; }
  .cta-rainbow { left: -8px; top: 8px; width: 82px; opacity: .62; }
}

@media (max-width: 420px) {
  .admission-time-list { grid-template-columns: 1fr; }
}


/* Real school photographs: small learning moments and a visit invitation. */
.course-snapshot { position: relative; align-self: center; width: 100%; max-width: 100%; margin: 8px 0 8px 8px; padding: 7px 7px 0; background: #fffdf8; transform: rotate(3deg); box-shadow: 0 4px 12px rgba(93, 63, 27, .1); }
/* Let illustrations cross the card edge without extending the decorative circle. */
.course-card:has(.course-snapshot) { overflow: visible; }
.course-card:has(.course-snapshot)::after { display: none; }
.course-card:has(.course-snapshot) > .course-icon { position: absolute; width: 118px; margin: 0; pointer-events: none; }
.course-card-story:has(.course-snapshot) > .course-icon { left: -12px; right: auto; top: -78px; bottom: auto; transform: rotate(-10deg); }
.course-card-steam:has(.course-snapshot) > .course-icon { right: -12px; top: -78px; transform: rotate(9deg); }
.course-snapshot-block { transform: rotate(-3deg); }
.course-snapshot-self-care { transform: rotate(-2deg); }
.course-card-life:has(.course-snapshot) > .course-icon { left: -12px; right: auto; top: auto; bottom: -78px; transform: rotate(-8deg); }
.course-card-family:has(.course-snapshot) > .course-icon { right: -12px; top: auto; bottom: -78px; transform: rotate(8deg); }
.courses-grid:has(.course-snapshot-family) { padding-bottom: 44px; }

.course-real-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.course-snapshot figcaption { padding: 8px 0 10px; font-size: 12px; line-height: 1.5; color: var(--brown); text-align: center; text-wrap: balance; }
@media (max-width: 640px) {
  .course-card:has(.course-snapshot) { display: grid; grid-template-columns: minmax(0, 1fr) 124px; align-items: center; gap: 14px; padding: 24px 18px; }
  .courses-grid { padding-top: 22px; }
  .course-card:has(.course-snapshot) > .course-icon { width: 90px; }
  .course-card-story:has(.course-snapshot) > .course-icon { left: -8px; right: auto; top: -62px; bottom: auto; }
  .course-card-steam:has(.course-snapshot) > .course-icon { right: -8px; top: -62px; bottom: auto; }

  .course-card-life:has(.course-snapshot) > .course-icon { left: -8px; right: auto; top: auto; bottom: -58px; }
  .course-card-family:has(.course-snapshot) > .course-icon { right: -8px; top: auto; bottom: -58px; }
  .courses-grid:has(.course-snapshot-family) { row-gap: 40px; padding-bottom: 32px; }
  .course-snapshot { width: 100%; margin: 8px 0; }
  .course-snapshot figcaption { font-size: 11px; padding: 7px 0; }
}


/* Manual campus photo browsing. */
.campus-gallery { min-width: 0; }
.campus-carousel { position: relative; }
.campus-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 5px 0 8px; }
.campus-track::-webkit-scrollbar { display: none; }
.campus-track figure { flex: 0 0 calc((100% - 88px) / 5); scroll-snap-align: start; }
.campus-track:focus-visible { outline: 2px solid var(--brown); outline-offset: 4px; border-radius: 8px; }
.campus-arrows button { position: absolute; top: calc((100% - 38px) / 2); transform: translateY(-50%); z-index: 1; box-shadow: 0 3px 12px rgba(93, 63, 27, .14); }
.campus-prev { left: -22px; }
.campus-next { right: -22px; }
.campus-arrows button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dcc99f; border-radius: 50%; background: #fff8e8; color: var(--brown); cursor: pointer; }
.campus-arrows svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.campus-arrows button:hover:not(:disabled) { background: var(--yellow); }
.campus-arrows button:disabled { opacity: .35; cursor: default; }
.campus-arrows button:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
@media (max-width: 1024px) { .campus-track figure { flex-basis: calc((100% - 44px) / 3); } }
@media (max-width: 640px) {
 .campus-track { gap: 14px; }
 .campus-track figure { flex-basis: calc((100% - 7px) / 1.5); }
 .campus-track figure:last-child:nth-child(odd) { width: auto; }
 .campus-track figure:last-child:nth-child(odd) img { aspect-ratio: 4 / 3; }
}

/* Reserve room for the backpack when course cards stack in one column. */
@media (min-width: 641px) and (max-width: 878px) {
  .course-card-life:has(.course-snapshot) { height: auto; margin-bottom: 64px; }
}
@media (max-width: 640px) {
  .course-card-life:has(.course-snapshot) { height: auto; margin-bottom: 28px; }
}
