* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Cafe24Ohsquare";
  src: url("../assets/fonts/Cafe24Ohsquare.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system,
    BlinkMacSystemFont, sans-serif;
  background: #fff;
}

/* ---------- Hero (Figma design) ---------- */

.hero {
  position: relative;
  width: 100%;
  line-height: 0;
}

/* Desktop: full-bleed background layer + capped-width content layer,
   so only the background photo widens on very large screens. The section
   always fills at least the viewport height so there's no dead space below;
   content stays pinned to the top (as designed) and any extra vertical
   room is absorbed by the background at the bottom. */
.hero-desktop {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 2752px;
  flex: 0 0 auto;
  aspect-ratio: 2752 / 1280;
  overflow: hidden;
  container-type: inline-size;
}

/* Title text is real HTML (not baked into the SVG) so copy can change
   without re-exporting art. Sized with cqw so it scales exactly like the
   rest of the 2752-wide composition. */
.hero-title {
  position: absolute;
  left: calc(83 / 2752 * 100cqw);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  font-family: "Cafe24Ohsquare", "Pretendard", sans-serif;
}

.hero-title--1 {
  top: calc(35 / 2752 * 100cqw);
  font-size: calc(87 / 2752 * 100cqw);
  color: #1d70ff;
  text-shadow: calc(4.649 / 2752 * 100cqw) calc(4.649 / 2752 * 100cqw) 0 #81b6dc;
}

.hero-title--2 {
  top: calc(148 / 2752 * 100cqw);
  font-size: calc(70 / 2752 * 100cqw);
  color: #fff;
}

/* Kids sit in the same fixed-ratio box as the text/bubbles, so they move
   and scale together as one composition — only the plain background
   behind them is allowed to stretch independently. */
.hero-kids {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* crop from the empty headroom above the kids, never from their feet */
  object-position: center bottom;
}

.hero-fg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-mobile {
  display: none;
  position: relative;
  width: 100%;
  line-height: 0;
  container-type: inline-size;
}

.hero-mobile img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-title-m {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  font-family: "Cafe24Ohsquare", "Pretendard", sans-serif;
}

.hero-title-m--1 {
  top: calc(453 / 1440 * 100cqw);
  font-size: calc(134.36 / 1440 * 100cqw);
  color: #1d70ff;
  text-shadow: calc(7.179 / 1440 * 100cqw) calc(7.179 / 1440 * 100cqw) 0 #81b6dc;
}

.hero-title-m--2 {
  top: calc(628 / 1440 * 100cqw);
  font-size: calc(95 / 1440 * 100cqw);
  color: #fff;
}

@media (max-width: 767px) {
  .hero-desktop {
    display: none;
  }
  .hero-mobile {
    display: block;
  }
}

.hero-hit {
  position: absolute;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-hit:hover,
.hero-hit:focus-visible {
  filter: brightness(1.04);
}

.hero-hit:active {
  filter: brightness(0.97);
}

/* Desktop hit areas (viewBox 2752 x 1280) — exact bubble bounds from Figma node 2136:118 */
.hit-apply {
  left: 20.27%;
  top: 21.25%;
  width: 23.51%;
  height: 19.30%;
}

.hit-more {
  left: 61.74%;
  top: 23.52%;
  width: 29.29%;
  height: 33.34%;
}

/* Mobile hit areas (viewBox 1440 x 3120) — exact bubble bounds from Figma node 2146:72 */
@media (max-width: 767px) {
  .hit-apply {
    left: 5.76%;
    top: 51.06%;
    width: 40.35%;
    height: 7.11%;
  }

  .hit-more {
    left: 55.28%;
    top: 51.35%;
    width: 44.72%;
    height: 10.93%;
  }
}

/* ---------- PDF modal ---------- */

.pdf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  z-index: 1000;
}

.pdf-overlay.open {
  display: flex;
}

.pdf-modal {
  background: #fff;
  width: min(760px, 100%);
  height: min(88vh, 1000px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  flex: 0 0 auto;
}

.pdf-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-modal__close {
  border: none;
  background: #f2f2f2;
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: 12px;
}

.pdf-modal__close:hover {
  background: #e6e6e6;
}

.pdf-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  background: #6b7280;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.pdf-modal__body canvas {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.pdf-loading {
  color: #fff;
  font-size: 14px;
  padding: 40px 0;
}

.pdf-modal__footer {
  flex: 0 0 auto;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e6dff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
}

.pdf-download-btn:hover {
  background: #1656c9;
}
