/*
  Studio Drop closed beta LP — foundation
  Public landing page foundation (1440 x 7495 reference)
  All measurements extracted from LP.svg vector export (exact coordinates).
*/

@font-face {
  font-family: "Overused Grotesk";
  src: url("/__jishakaihatsu/assets/fonts/OverusedGrotesk-VF.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core public-site colors */
  --g-black: #090909;
  --g-white: #ffffff;
  --g-bg: #edeef0;
  --g-muted: #6b6b6b;
  --g-quiet: #9a9a9a;

  --font-en: "Overused Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Gen Interface JP Display", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* Figma frame: 1440 wide, 12 col grid: margin 70 / col 79 / gutter 32 */
  --page-w: 1440;
  --page-h: 6620;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--g-bg);
  scroll-behavior: smooth;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--g-bg);
  overflow-x: hidden;
}

/* Keep Japanese prose rhythm consistent across the site. */
html[lang="ja"] :where(p, li, dd, dt, label, legend, figcaption, blockquote) {
  line-height: 1.4 !important;
}

p,
h1,
h2 {
  margin: 0;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font: inherit;
}

/* Two-color ring remains visible on both light and dark moving surfaces. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--g-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--g-black);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 10px 14px;
  background: var(--g-black);
  color: var(--g-white);
  font: 500 14px / 1.4 var(--font-jp);
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus-visible {
  transform: translateY(0);
}

img,
video {
  display: block;
}

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

/* ---- 1440 fixed canvas, scaled to viewport width (never breaks at any width) ---- */

.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 6520px;
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--g-bg);
  color: var(--g-black);
  font-family: var(--font-en);
}

/* ---- dev guide overlay ---- */

.guide-toggle {
  position: absolute;
  top: 51.8px;
  right: 51.8px;
  z-index: 1;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--g-muted);
  font: 400 13.5px / 1 var(--font-en);
}

.guide-toggle:hover {
  color: rgba(9, 9, 9, 0.52);
}

.show-guides .guide-toggle {
  color: rgba(78, 156, 251, 0.72);
}

.lp-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  display: none;
  background:
    repeating-linear-gradient(to bottom,
      rgba(78, 156, 251, 0.075) 0,
      rgba(78, 156, 251, 0.075) 1px,
      transparent 1px,
      transparent 8px);
}

.show-guides .lp-grid-overlay {
  display: block;
}

.lp-grid-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70px;
  width: 1300px;
  background:
    repeating-linear-gradient(to right,
      rgba(78, 156, 251, 0.11) 0,
      rgba(78, 156, 251, 0.11) 79px,
      transparent 79px,
      transparent 111px);
  border-inline: 1px solid rgba(78, 156, 251, 0.82);
}

@media (max-width: 1099px) {
  .show-guides .lp-grid-overlay {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: 16px;
    padding: 0 16px;
  }

  .lp-grid-overlay::before {
    display: none;
  }

  .lp-grid-overlay>span {
    display: block;
    height: 100%;
    background: rgba(78, 156, 251, 0.11);
  }
}

@media (max-width: 639px) {
  .show-guides .lp-grid-overlay {
    grid-template-columns: repeat(5, 51px);
    justify-content: center;
    column-gap: 20px;
    padding: 0;
  }

  .lp-grid-overlay>span:nth-child(n + 6) {
    display: none;
  }

  .lp-grid-overlay::before {
    display: none;
  }
}

@media (max-width: 374px) {
  .show-guides .lp-grid-overlay {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    padding: 0 20px;
  }
}
