:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #090909;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "Noto Sans JP", sans-serif;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(2rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem);
}

.page-grid {
  display: grid;
  width: min(100%, 90rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(0.75rem, 1.8vw, 2rem);
}

.thank-you {
  grid-column: 5 / span 4;
  text-align: center;
}

.logo-frame {
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

h1 {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

@media (max-width: 56rem) {
  .thank-you {
    grid-column: 3 / span 8;
  }
}

@media (max-width: 35rem) {
  .thank-you {
    grid-column: 2 / span 10;
  }

  .logo-frame {
    aspect-ratio: 2.7 / 1;
  }
}

@media (max-height: 30rem) and (orientation: landscape) {
  .site-shell {
    padding-block: 1.5rem;
  }

  .thank-you {
    grid-column: 5 / span 4;
  }

  h1 {
    margin-top: 1rem;
  }
}
