* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --logo-size: min(400px, 80vw, 70svh);
}

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

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #fff;
  color: #171717;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

.social {
  position: absolute;
  z-index: 1;
  top: max(24px, env(safe-area-inset-top));
  right: max(28px, env(safe-area-inset-right));
}

.instagram {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.instagram:hover { opacity: .65; }

.brand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--logo-size);
  height: var(--logo-size);
  margin: 0;
  transform: translate(-50%, -50%);
  text-align: center;
}

.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }

.brand figcaption {
  position: absolute;
  top: 85%;
  left: 0;
  width: 100%;
  color: #525252;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .16em;
  text-indent: .16em;
}

footer {
  position: absolute;
  right: 20px;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: .875rem;
  line-height: 1.5;
}

footer span { color: #626262; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 600px) {
  .social { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
  footer { bottom: max(24px, env(safe-area-inset-bottom)); }
}
