:root {
  --ink: #0f2a43;
  --muted-ink: #345873;
  --border: #a9b5c1;
  --button-bg: #f0f4f8;
  --rainbow: #fdccd3, #fca09a, #ffcc9e, #98ddad, #81d7ec, #91c1ed,
    #a0aaed;
  --rainbow-light: #eaf2fa, #e2f6fa, #e7f7ed, #fff5e8;
}

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

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

body {
  color: var(--ink);
  background: #eaf2fa;
  font-family: "Maison Neue", "Noto Sans", "Noto Sans Devanagari",
    "Nirmala UI", "Yu Gothic", Meiryo, "Malgun Gothic", "Microsoft YaHei",
    "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ja"] body,
html[lang="ko"] body,
html[lang="zh-CN"] body,
html[lang="hi"] body {
  word-break: normal;
  line-break: strict;
}

.hero {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 5vh, 72px) clamp(22px, 4vw, 64px);
  place-items: center;
  overflow: hidden;
  background-image: radial-gradient(
    circle at 100% -80%,
    var(--rainbow-light)
  );
}

.hero__content {
  display: grid;
  width: min(100%, 1180px);
  margin: auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}

.hero__copy {
  min-width: 0;
}

.hero__brand {
  margin: 0 0 clamp(28px, 4vh, 46px);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  max-width: 700px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 4.65vw, 70px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero__description {
  max-width: 680px;
  margin: clamp(28px, 4vh, 46px) 0 0;
  color: var(--muted-ink);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 300;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  margin-top: clamp(44px, 7vh, 74px);
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  padding: 15px 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: 0.105em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 8px 17px rgb(15 42 67 / 15%);
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgb(0 127 176 / 35%);
  outline-offset: 3px;
}

.button--rainbow {
  border-color: #60748a;
  background-image: linear-gradient(to right, var(--rainbow));
}

.button--secondary {
  background: var(--button-bg);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background-image: linear-gradient(to right, var(--rainbow));
}

.hero__visual {
  min-width: 0;
  margin: 0;
}

.hero__visual img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: auto;
}

@media (max-width: 900px) {
  .hero {
    overflow: auto;
  }

  .hero__content {
    width: min(100%, 650px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(34px, 6vh, 56px);
  }

  .hero__copy {
    text-align: center;
  }

  .hero__brand {
    margin-bottom: 24px;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(40px, 8.5vw, 62px);
  }

  .hero__description {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    width: min(78vw, 430px);
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 30px 20px;
  }

  .hero__content {
    gap: 32px;
  }

  .hero__brand {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1.08;
  }

  .hero__description {
    margin-top: 24px;
    font-size: 17px;
  }

  .hero__actions {
    margin-top: 34px;
    flex-direction: column;
  }

  .button {
    width: 100%;
    font-size: 14px;
  }

  .hero__visual {
    width: min(88vw, 360px);
  }
}

@media (max-height: 690px) and (min-width: 901px) {
  .hero {
    padding-block: 24px;
  }

  .hero__content {
    width: min(100%, 1060px);
  }

  .hero__brand {
    margin-bottom: 22px;
  }

  h1 {
    font-size: clamp(42px, 8.2vh, 58px);
  }

  .hero__description {
    margin-top: 22px;
  }

  .hero__actions {
    margin-top: 32px;
  }

  .hero__visual img {
    width: min(100%, 430px);
    max-height: 72vh;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
