@import url("https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Noto+Sans+JP:wght@500;700;900&family=Press+Start+2P&display=swap");

:root {
  --bg: #05070d;
  --panel: #0b1224;
  --panel-2: #101a33;
  --ink: #f7fbff;
  --muted: #b7c4d6;
  --cyan: #18d8ff;
  --cyan-soft: #75f1ff;
  --yellow: #ffe733;
  --white: #ffffff;
  --line: rgba(117, 241, 255, 0.28);
  --shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
  --page-max: 1880px;
  --page-gutter: clamp(16px, 1.4vw, 28px);
  --scroll-progress: 0;
  --hero-progress: 0;
  font-family: "BIZ UDPGothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(24, 216, 255, 0.26), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255, 231, 51, 0.16), transparent 26%),
    linear-gradient(120deg, rgba(24, 216, 255, 0.10) 0 1px, transparent 1px 68px),
    linear-gradient(180deg, #05070d 0%, #07111f 48%, #05070d 100%);
  overflow-x: hidden;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 48%, rgba(255, 231, 51, 0.08) 48% 50%, transparent 50% 100%),
    linear-gradient(105deg, transparent 0 66%, rgba(24, 216, 255, 0.10) 66% 68%, transparent 68% 100%);
  transform: translateY(calc(var(--scroll-progress) * -160px)) scale(calc(1 + var(--scroll-progress) * .14));
}

body::after {
  left: -20vw;
  right: -20vw;
  bottom: -26vh;
  height: 44vh;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(117, 241, 255, 0.30), transparent 64%),
    repeating-linear-gradient(92deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 44px);
  transform: translateY(calc(var(--scroll-progress) * -140px));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.motion-strip {
  position: fixed;
  left: -8vw;
  right: -8vw;
  top: 50%;
  z-index: 0;
  display: flex;
  gap: 34px;
  transform: rotate(-10deg);
  color: rgba(255, 255, 255, 0.035);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(72px, 12vw, 180px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  animation: stripMove 24s linear infinite;
}

.city-shadow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: min(62vh, 720px);
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.24) 0%, rgba(5, 7, 13, 0.42) 58%, rgba(5, 7, 13, 0.82) 100%),
    url("./assets/eltsia-city-pop-dark.png") center bottom / cover no-repeat;
  filter: saturate(0.86) contrast(0.96) brightness(0.86);
  transform: translateY(calc(var(--scroll-progress) * -34px));
}

.site-nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

@keyframes stripMove {
  from { translate: 0 0; }
  to { translate: -520px 0; }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(var(--page-max), calc(100% - var(--page-gutter) * 2));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  color: var(--white);
  font-family: "Press Start 2P", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 400;
}

.wordmark-text {
  display: inline-block;
  color: var(--white);
  font-size: 22px;
  line-height: 1.1;
  font-style: normal;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 rgba(24, 216, 255, 0.55);
}

.wordmark-text span {
  color: var(--yellow);
  text-shadow: 4px 4px 0 rgba(24, 216, 255, 0.58);
}

.brand {
  min-width: 118px;
}

.text-brand {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(24, 216, 255, 0.36);
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  min-width: clamp(128px, 17vw, 178px);
}

.brand-logo-image,
.hero-wordmark-image,
.hero-logo-image,
.story-logo-image {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.brand-logo-image {
  max-width: 178px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a,
.button {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(16, 23, 42, 0.82);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 5px 5px 0 rgba(24, 216, 255, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(255, 231, 51, 0.68);
  background: rgba(24, 216, 255, 0.14);
}

.button.primary {
  color: #03101a;
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 7px 7px 0 var(--cyan);
}

.hero {
  width: min(var(--page-max), calc(100% - var(--page-gutter) * 2));
  min-height: min(860px, calc(100svh - 88px));
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(780px, 1.34fr);
  gap: clamp(34px, 3vw, 72px);
  align-items: center;
  perspective: 1100px;
}

.hero-wordmark-image {
  width: min(760px, 92vw);
  margin-bottom: 22px;
  transform: rotate(-2deg);
  filter: drop-shadow(9px 9px 0 rgba(255, 231, 51, 0.72));
}

.kicker {
  margin: 0 0 14px;
  color: var(--cyan-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  font-family: "Noto Sans JP", "BIZ UDPGothic", sans-serif;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 4px 4px 0 rgba(24, 216, 255, 0.38), 8px 8px 0 rgba(255, 231, 51, 0.16);
}

.hero-copy {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 2;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stage {
  position: relative;
  min-height: clamp(640px, 40vw, 780px);
  border: 1px solid rgba(117, 241, 255, 0.18);
  background:
    radial-gradient(circle at 52% 48%, rgba(24, 216, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(24, 216, 255, 0.08), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 64px),
    rgba(8, 13, 28, 0.34);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  isolation: isolate;
  transform-origin: 50% 55%;
  will-change: transform;
  transition: transform 120ms linear;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(620px, 86%);
  height: min(620px, 86%);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(117, 241, 255, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 0 44px rgba(24, 216, 255, 0.07);
  opacity: 0.82;
}

.moon-ring {
  position: absolute;
  left: 52%;
  top: 47%;
  z-index: 0;
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 0 0 18px rgba(24, 216, 255, 0.04), 0 0 70px rgba(24, 216, 255, 0.15);
}

.moon-ring::after {
  content: "";
  position: absolute;
  inset: 54px;
  border: 1px solid rgba(255, 231, 51, 0.28);
  border-radius: inherit;
}

.hero-logo-image {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(420px, 58%);
  transform: translate(-50%, -50%) rotate(-3deg);
  filter: drop-shadow(10px 10px 0 rgba(24, 216, 255, 0.44));
}

.slash {
  position: absolute;
  z-index: 1;
  width: 160%;
  height: 34px;
  left: -30%;
  transform: rotate(-18deg);
  background: var(--cyan);
  opacity: 0.16;
}

.slash-a { top: 156px; }
.slash-b { top: 402px; background: var(--yellow); transform: rotate(18deg); }

.social-dock {
  position: absolute;
  left: 52%;
  top: 47%;
  z-index: 4;
  width: min(430px, 76%);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-tile {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(247, 251, 255, 0.88);
  background: rgba(8, 13, 28, 0.58);
  border: 1px solid rgba(117, 241, 255, 0.22);
  box-shadow: 7px 7px 0 rgba(24, 216, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.social-tile:hover {
  transform: translate(-3px, -4px);
  border-color: rgba(255, 231, 51, 0.58);
  background: rgba(16, 23, 42, 0.76);
  box-shadow: 11px 11px 0 rgba(255, 231, 51, 0.18);
}

.social-tile span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #03101a;
  background: var(--cyan);
  font-size: 0;
  line-height: 1;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.18);
}

.social-tile span::before {
  display: block;
  color: #03101a;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.social-tile[aria-label="Google Play"] span::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid #03101a;
  transform: translateX(2px);
}

.social-tile[aria-label="App Store"] span::before {
  content: "A";
}

.social-tile[aria-label="YouTube"] span::before {
  content: "";
  width: 26px;
  height: 18px;
  background: #03101a;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(2px);
}

.social-tile[aria-label="X"] span::before {
  content: "X";
}

.social-tile small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.store-tile span {
  background: var(--yellow);
}

.section {
  position: relative;
  width: min(var(--page-max), calc(100% - var(--page-gutter) * 2));
  margin: 28px auto 0;
  padding: clamp(46px, 7vw, 88px) 0;
}

.section::before {
  content: "";
  position: absolute;
  left: -4vw;
  right: -4vw;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 241, 255, 0.62), transparent);
  transform: scaleX(calc(.28 + var(--scroll-progress) * .72));
  transform-origin: left center;
  opacity: 0.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.section-head { max-width: 980px; margin-bottom: 24px; }

h2 {
  margin-bottom: 16px;
  font-family: "Noto Sans JP", "BIZ UDPGothic", sans-serif;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.12;
  font-weight: 900;
  text-shadow: 3px 3px 0 rgba(24, 216, 255, 0.28);
}

.lead,
.section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
}

.brand-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(16, 23, 42, 0.92), rgba(5, 7, 13, 0.82));
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 rgba(255, 231, 51, 0.18), var(--shadow);
}

.story-logo-image {
  width: min(330px, 100%);
  transform: rotate(2deg);
  filter: drop-shadow(8px 8px 0 rgba(24, 216, 255, 0.72));
}

.grid { display: grid; gap: 16px; }
.personas { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.persona,
.app-card,
.note-panel,
.detail-card,
.app-hero {
  background: linear-gradient(180deg, rgba(16, 23, 42, 0.94), rgba(9, 14, 28, 0.94));
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 rgba(24, 216, 255, 0.16), var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.persona {
  min-height: 250px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.persona:nth-child(odd) { transform: translateY(calc(var(--scroll-progress) * -22px)); }
.persona:nth-child(even) { transform: translateY(calc(var(--scroll-progress) * 16px)); }

.persona:hover,
.app-card:hover,
.detail-card:hover {
  transform: translate(-4px, -7px) rotate(-1deg);
  border-color: rgba(255, 231, 51, 0.8);
  box-shadow: 16px 16px 0 rgba(255, 231, 51, 0.32), var(--shadow);
}

.persona .tag {
  align-self: flex-start;
  padding: 7px 10px;
  color: #03101a;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 700;
}

.persona h3 {
  margin: auto 0 10px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.22;
  font-weight: 900;
}

.persona p,
.app-body p,
.detail-card p,
.note-panel p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 14px;
  font-weight: 700;
}

.app-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card:nth-child(1) { transform: translateY(calc(var(--scroll-progress) * -18px)); }
.app-card:nth-child(2) { transform: translateY(calc(var(--scroll-progress) * 20px)); }
.app-card:nth-child(3) { transform: translateY(calc(var(--scroll-progress) * -12px)); }
.app-card:nth-child(4) { transform: translateY(calc(var(--scroll-progress) * 24px)); }

.app-visual {
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(130deg, transparent 0 38%, rgba(255, 231, 51, 0.95) 38% 54%, transparent 54%),
    linear-gradient(315deg, rgba(24, 216, 255, 0.62), rgba(255, 255, 255, 0.08));
  background-position: calc(var(--scroll-progress) * 120px) 0, 0 calc(var(--scroll-progress) * -90px);
}

.app-visual img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 10px 10px 0 rgba(5, 7, 13, 0.65);
}

.app-card:nth-child(3) .app-visual img {
  width: 152px;
  height: 152px;
}

.app-body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.app-body h3 {
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 27px;
  line-height: 1.08;
  font-weight: 900;
}

.app-body .button { margin-top: auto; }

.note-panel {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  transform: scale(calc(.98 + var(--scroll-progress) * .04));
  transform-origin: center;
}

.footer {
  width: min(var(--page-max), calc(100% - var(--page-gutter) * 2));
  margin: 28px auto 38px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.app-page {
  width: min(980px, calc(100% - 32px));
  margin: 34px auto 64px;
}

.app-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 54px);
}

.app-hero img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 10px 10px 0 var(--cyan);
}

.app-hero h1 { font-size: clamp(48px, 9vw, 96px); }

.detail-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  min-height: 180px;
  padding: 20px;
}

.detail-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(38px) rotate(-1deg);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.9,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-strip { animation: none; }
  body::before,
  body::after,
  .hero-stage,
  .social-dock,
  .persona,
  .app-card,
  .note-panel {
    transform: none !important;
    translate: none !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 0.98fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .hero-stage {
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .app-hero,
  .note-panel {
    grid-template-columns: 1fr;
  }

  .personas,
  .apps,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stage { min-height: 500px; }
}

@media (max-width: 560px) {
  .site-nav {
    position: static;
    align-items: flex-start;
  }

  .brand { min-width: 96px; }
  .text-brand { font-size: 16px; }
  .logo-brand { min-width: 122px; }
  .brand-logo-image { max-width: 122px; }
  .wordmark-text { font-size: 16px; }

  .nav-links { gap: 6px; }

  .nav-links a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .personas,
  .apps,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 22px;
    align-items: start;
  }

  .hero-wordmark-image {
    width: min(460px, 94vw);
    margin-bottom: 16px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 43px;
    line-height: 1.08;
    text-shadow: 3px 3px 0 rgba(24, 216, 255, 0.42), 6px 6px 0 rgba(255, 231, 51, 0.16);
  }

  h2 { font-size: 36px; }

  .hero-copy {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-stage {
    display: none;
  }

  .hero-logo-image,
  .slash,
  .moon-ring,
  .social-dock,
  .hero-stage::before {
    display: none;
  }

  .brand-story {
    grid-template-columns: 1fr;
  }

  .story-logo-image {
    width: min(270px, 88vw);
  }

  .persona,
  .app-card,
  .note-panel {
    transform: none !important;
  }

  .footer {
    display: grid;
  }
}
