:root {
  --bg: #F0F0F0;
  --surface: rgba(255, 252, 247, 0.72);
  --text: #171717;
  --muted: #5f5b55;
  --line: rgba(23, 23, 23, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: "biz-udpmincho", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.7;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.app-store-badge {
  position: fixed;
  right: 4rem;
  bottom: 2rem;
  z-index: 6;
  width: clamp(140px, 16vw, 180px);
}

.app-store-badge img {
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(23, 23, 23, 0.22);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

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

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding-left: 4rem;
  padding-right: 4rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 24px;
  padding-right: 1.5rem;
}

.top-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.top-nav a,
.page-links a,
.hero-links a {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero {
  position: relative;
  min-height: auto;
  padding: 112px 0 0;
  overflow: clip;
}

.hero-logo {
  width: min(36vw, 270px);
  margin: 0;
}

.hero-copy {
  max-width: 48ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: justify;
  text-justify: inter-character;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
}

footer {
  width: 100%;
  margin: 24px 0 0;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-header {
    padding-top: 18px;
    padding-right: 0.5rem;
  }

  .top-nav {
    gap: 6px;
  }

  .hero {
    padding-top: 88px;
  }

  .app-store-badge {
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(42vw, 168px);
  }
}
