:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --elevated: #1c1c1f;
  --border: #2a2a2e;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #d4ff3f;
  --accent-ink: #0a0a0b;
  --danger: #ff4d4f;
  --font-display: "Space Grotesk", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* —— Landing hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(0, -2%, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.35) 0%, rgba(10, 10, 11, 0.55) 42%, rgba(10, 10, 11, 0.96) 78%, var(--bg) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(212, 255, 63, 0.12), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 120px 24px 56px;
  animation: riseIn 0.9s ease-out both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero-brand span {
  color: var(--accent);
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

/* —— Phone frame —— */
.phone {
  width: min(280px, 100%);
  max-width: 280px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 36px;
  background:
    linear-gradient(160deg, #2a2a2e 0%, #121214 40%, #0a0a0b 100%);
  border: 1px solid #3a3a40;
  box-shadow:
    0 0 0 1px rgba(212, 255, 63, 0.08),
    0 28px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.phone img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 430 / 932;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  display: block;
  background: #000;
}

.phone-float {
  animation: phoneFloat 5.5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* —— Sections —— */
.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 24px 8px;
}

.section-kicker {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section h2,
.showcase-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 8px;
  max-width: 36rem;
  color: var(--muted);
}

.showcase-copy > p {
  margin: 0 0 20px;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.75;
}

.showcase {
  padding: 0;
}

.showcase + .showcase {
  border-top: 1px solid var(--border);
}

.showcase-alt {
  background:
    linear-gradient(90deg, rgba(212, 255, 63, 0.03), transparent 55%),
    var(--surface);
}

.showcase-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: stretch;
}

.showcase-inner > * {
  min-width: 0;
  max-width: 100%;
}

.showcase-copy {
  width: 100%;
}

.showcase-inner > .phone {
  justify-self: center;
}

@media (min-width: 860px) {
  .showcase-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px 56px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .showcase-inner > .phone {
    width: 280px;
    max-width: 280px;
    justify-self: end;
    margin: 0;
  }

  /* 交互: 写真左・テキスト右 */
  .showcase-alt .showcase-inner {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .showcase-alt .showcase-copy {
    order: 2;
  }

  .showcase-alt .phone {
    order: 1;
    justify-self: start;
  }
}

.showcase-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.showcase-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.showcase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.showcase-login {
  padding-top: 64px;
  padding-bottom: 72px;
}

.band {
  background:
    linear-gradient(180deg, transparent, rgba(212, 255, 63, 0.04)),
    var(--surface);
  border-top: 1px solid var(--border);
}

.band .section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 40px 24px 56px;
  color: var(--faint);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.site-footer a {
  color: var(--muted);
}

/* —— Legal pages —— */
.page-header {
  position: relative;
  padding: 100px 24px 32px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(212, 255, 63, 0.08), transparent 45%),
    var(--bg);
}

.page-header-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.page-header .brand {
  margin-bottom: 36px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.page-meta {
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.legal {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.note {
  margin-top: 2.5rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--elevated);
  color: var(--faint);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .phone-float,
  .hero-media img,
  .hero-content {
    animation: none;
  }
}
