:root {
  --ink: #181818;
  --paper: #f2eee4;
  --accent: #e8442e;
  --accent-dark: #a92920;
  --muted: #6d675e;
  --line: rgba(24, 24, 24, 0.18);
  --white: #fffdf7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: radial-gradient(
      circle at 20% 20%,
      rgba(232, 68, 46, 0.08),
      transparent 35%
    ),
    linear-gradient(135deg, #f7f2e8 0%, #ece4d6 100%);
  font-family: "DM Sans", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(22px, 5vw, 72px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: var(--accent);
  border-radius: 50%;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(168, 40, 31, 0.25);
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.sound-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: 0.3s ease;
}

.sound-toggle[aria-pressed="true"] .sound-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(232, 68, 46, 0.15);
  animation: pulse 1.3s infinite;
}

.hero {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  min-height: 690px;
  padding: 30px clamp(22px, 5vw, 72px) 70px;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 760px;
  animation: fade-up 0.9s ease both;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(58px, 8vw, 124px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h1 span {
  display: block;
  color: var(--accent);
  font-size: 0.62em;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 620px;
  margin: 34px 0 0;
  color: #3c3934;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.coming-soon {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 500px;
  margin: 32px 0;
  color: var(--ink);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.coming-soon .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.coming-soon strong {
  white-space: nowrap;
  font-size: 12px;
}

.signup-form {
  max-width: 640px;
}

.input-wrap {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(64, 45, 29, 0.12);
  backdrop-filter: blur(20px);
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.input-wrap button {
  padding: 15px 22px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.input-wrap button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.form-message {
  min-height: 24px;
  margin: 12px 8px 0;
  color: var(--accent-dark);
  font-size: 14px;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.topics span {
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 53%;
  overflow: hidden;
  pointer-events: none;
}

.sun {
  position: absolute;
  top: 50%;
  right: 7%;
  width: min(42vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 35%,
    #ff8e67 0%,
    #ee4d35 45%,
    #c82f27 100%
  );
  box-shadow: 0 0 100px rgba(232, 68, 46, 0.2),
    inset -35px -25px 80px rgba(125, 22, 18, 0.18);
  transform: translateY(-50%);
  animation: breathe 7s ease-in-out infinite;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image: linear-gradient(rgba(24, 24, 24, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 24, 0.24) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to left, black, transparent);
}

.city {
  position: absolute;
  right: -2%;
  bottom: 11%;
  display: flex;
  align-items: end;
  gap: 12px;
  width: 92%;
}

.city span {
  display: block;
  flex: 1;
  min-width: 40px;
  background: linear-gradient(
      90deg,
      transparent 45%,
      rgba(255, 244, 205, 0.55) 45% 55%,
      transparent 55%
    ),
    linear-gradient(#222, #111);
  clip-path: polygon(7% 4%, 93% 0, 100% 100%, 0 100%);
}

.city-back {
  opacity: 0.28;
  filter: blur(1px);
  transform: translateY(-58px) scale(1.06);
}

.city-front {
  z-index: 3;
}

.city span:nth-child(1) {
  height: 190px;
}
.city span:nth-child(2) {
  height: 330px;
}
.city span:nth-child(3) {
  height: 245px;
}
.city span:nth-child(4) {
  height: 405px;
}
.city span:nth-child(5) {
  height: 220px;
}

.train-line {
  position: absolute;
  z-index: 4;
  right: -10%;
  width: 120%;
  height: 5px;
  background: var(--ink);
  transform: rotate(-7deg);
  transform-origin: right center;
}

.train-line::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -15%;
  width: 160px;
  height: 16px;
  border-radius: 6px 14px 14px 6px;
  background: var(--white);
  border: 3px solid var(--ink);
  animation: train 8s linear infinite;
}

.train-line-one {
  bottom: 29%;
}

.train-line-two {
  bottom: 23%;
  opacity: 0.4;
}

.train-line-two::before {
  animation-delay: -3.5s;
}

.lantern {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 64px;
  height: 92px;
  color: var(--ink);
  background: rgba(255, 246, 221, 0.88);
  border: 2px solid var(--ink);
  border-radius: 45% 45% 40% 40%;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  box-shadow: 0 16px 50px rgba(24, 24, 24, 0.18);
}

.lantern::before,
.lantern::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 5px;
  background: var(--ink);
}

.lantern::before {
  top: -5px;
}

.lantern::after {
  bottom: -5px;
}

.lantern-one {
  top: 15%;
  right: 18%;
  transform: rotate(5deg);
  animation: float 5s ease-in-out infinite;
}

.lantern-two {
  top: 31%;
  right: 3%;
  width: 54px;
  height: 76px;
  font-size: 12px;
  transform: rotate(-6deg);
  animation: float 6s ease-in-out infinite reverse;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding: 22px clamp(22px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 400px;
  height: 400px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 68, 46, 0.09), transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.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;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.035);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@keyframes train {
  from {
    left: -30%;
  }
  to {
    left: 110%;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 120px;
  }

  .hero-content {
    max-width: 670px;
  }

  .hero-visual {
    top: auto;
    width: 100%;
    height: 480px;
    opacity: 0.5;
  }

  .sun {
    right: -8%;
    width: 460px;
  }

  .city {
    bottom: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p,
  .site-footer p:nth-child(2),
  .site-footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 20px;
  }

  .sound-toggle {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  h1 {
    font-size: clamp(52px, 18vw, 82px);
  }

  .intro {
    font-size: 17px;
  }

  .input-wrap {
    flex-direction: column;
    border-radius: 16px;
  }

  .input-wrap button {
    width: 100%;
  }

  .coming-soon {
    margin: 26px 0;
  }

  .hero-visual {
    height: 380px;
  }

  .lantern-one {
    right: 22%;
  }

  .lantern-two {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .cursor-glow {
    display: none;
  }
}
