:root {
  --header-bg: #ffffff;
  --page-bg: #ffffff;
  --message: #3a3a3a;
  --credit: #686868;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--message);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--header-bg);
  padding: clamp(1.5rem, 5vh, 2.75rem) 1.25rem;
}

.logo-wrap {
  display: block;
  width: min(36rem, 86vw);
  aspect-ratio: 4.8 / 1;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

a.logo-wrap:focus-visible {
  outline: 2px solid var(--message);
  outline-offset: 4px;
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44.7%;
}

.main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vh, 1.75rem);
  padding: clamp(1.5rem, 5vh, 2.5rem) 1.25rem 1rem;
  text-align: center;
}

.main-home {
  justify-content: flex-start;
  padding-top: clamp(0.5rem, 2.2vh, 1.125rem);
}

.chara {
  display: block;
  width: min(20.5rem, 72vw);
  height: auto;
}

.message {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--message);
}

.footer {
  padding: 0.75rem 1.25rem 1.5rem;
  text-align: center;
}

.credit {
  margin: 0;
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--credit);
}

.not-found {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--message);
}

@media (max-width: 480px) {
  .logo-wrap {
    width: min(20.5rem, 92vw);
    aspect-ratio: 4.4 / 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .logo-wrap,
  .chara,
  .message,
  .not-found,
  .credit {
    animation: rise 0.7s ease both;
  }

  .chara {
    animation-delay: 0.08s;
  }

  .message,
  .not-found {
    animation-delay: 0.16s;
  }

  .credit {
    animation-delay: 0.24s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
