* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Malgun Gothic",
    "Apple SD Gothic Neo",
    sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

.page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
}

.top-bar {
  width: 100%;
  min-height: 118px;
  padding: 20px 16px;
  border: 2px solid #8ee8ff;
  background: #f1f1f1;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.top-bar h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero {
  width: min(1180px, 100%);
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 48px);

  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.35fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}

.character-wrap {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
}

.character {
  width: min(100%, 430px);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.speech-bubble {
  width: min(100%, 660px);
  aspect-ratio: 1.82 / 1;
  border: clamp(14px, 2vw, 28px) solid #000000;
  border-radius: 999px;
  background: #ffffff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: clamp(22px, 4vw, 52px);
}

.speech-bubble p {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .top-bar {
    min-height: 88px;
  }

  .hero {
    min-height: calc(100vh - 88px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 26px 14px 34px;
    gap: 18px;
  }

  .character-wrap {
    order: 1;
  }

  .speech-bubble {
    order: 2;
    margin: 0 auto;
    width: min(96vw, 520px);
    border-width: 14px;
    padding: 24px 18px;
  }

  .character {
    width: min(72vw, 330px);
  }

  .speech-bubble p {
    font-size: clamp(28px, 8vw, 44px);
  }
}

@media (max-width: 420px) {
  .top-bar {
    min-height: 76px;
    padding: 14px 10px;
  }

  .top-bar h1 {
    font-size: 38px;
  }

  .hero {
    padding-top: 20px;
  }

  .character {
    width: min(78vw, 300px);
  }

  .speech-bubble {
    border-width: 11px;
    padding: 22px 12px;
  }

  .speech-bubble p {
    font-size: clamp(24px, 7.6vw, 34px);
    letter-spacing: -0.08em;
  }
}
