:root {
  --bg: #fff8e9;
  --cream: #2a1710;
  --muted: #6c5b4c;
  --violet: #7d3f9e;
  --violet-soft: #b556b7;
  --panel: rgba(255, 248, 233, 0.82);
  --panel-deep: rgba(255, 255, 255, 0.94);
  --line: rgba(168, 83, 169, 0.34);
  --red: #e23a24;
  --gold: #f0bf35;
  --green: #64d05d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 213, 61, 0.12), transparent 18rem),
    radial-gradient(circle at 12% 85%, rgba(112, 224, 218, 0.1), transparent 22rem),
    linear-gradient(180deg, #fffdf6 0%, #ffffff 58%, #f8fff1 100%);
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: none;
}

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 18px;
}

.menu-toggle {
  display: none;
}

.nav-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 8px;
  width: min(520px, 100%);
  padding: 12px 16px;
  border: 3px solid #241611;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 206, 0.94));
  box-shadow: 0 10px 0 #241611, 0 18px 34px rgba(17, 93, 93, 0.1);
  backdrop-filter: blur(18px);
}

.nav-link {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: rgba(42, 23, 16, 0.72);
  font-family: "Fredoka", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #130f16;
  background: linear-gradient(90deg, #ffd53d, #fff7da);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.section {
  width: min(1290px, calc(100% - 44px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 138px 0 72px;
}

.hero-section {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 0.92fr);
  align-items: end;
  gap: clamp(38px, 7vw, 92px);
  position: relative;
  overflow: hidden;
  padding: 118px max(22px, calc((100vw - 1290px) / 2)) 0;
  background-image: linear-gradient(90deg, rgba(255, 253, 246, 0.62), rgba(255, 253, 246, 0.08) 44%, rgba(255, 253, 246, 0.18)), url("Image/bg.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero-section .hero-copy {
  order: 2;
  position: relative;
  z-index: 1;
}

.hero-section .hero-visual {
  order: 1;
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  padding-bottom: 70px;
  transform: translateY(-18px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--violet-soft);
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.centered {
  text-align: center;
}

h1,
h2 {
  margin: 0;
  max-width: 1040px;
  color: var(--cream);
  font-family: "Bangers", "Fredoka", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
  text-shadow: 2px 3px 0 rgba(255, 255, 255, 0.72), 4px 6px 0 rgba(0, 0, 0, 0.08);
}

h1 {
  max-width: 640px;
  font-size: clamp(2.25rem, 4.25vw, 4.25rem);
}

h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding-bottom: 18px;
}

.icon-button {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.94), rgba(255, 231, 92, 0.66));
  box-shadow: inset 0 0 18px rgba(230, 149, 230, 0.16), 0 10px 24px rgba(125, 63, 158, 0.14);
  transition: transform 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 235, 255, 0.78);
}

.icon-button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hero-visual {
  position: relative;
  min-height: 0;
  height: calc(100vh - 118px);
  display: grid;
  place-items: end center;
  align-self: end;
}

.character-card {
  position: relative;
  width: min(45vw, 670px);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.character-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: normal;
  transform: translateY(-2%);
  filter: drop-shadow(0 14px 0 rgba(36, 22, 17, 0.1)) drop-shadow(0 28px 28px rgba(17, 93, 93, 0.16));
}

.about-section {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
}

.about-section .about-copy {
  order: 1;
}

.about-section .about-image {
  order: 2;
}

.about-image {
  display: grid;
  place-items: center;
}

.about-image img {
  width: min(28vw, 360px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 0 rgba(36, 22, 17, 0.1)) drop-shadow(0 24px 24px rgba(17, 93, 93, 0.14));
}

.about-copy {
  max-width: 650px;
}

.about-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  font-weight: 700;
  line-height: 1.48;
}

.ticker-strip {
  width: 100%;
  overflow: hidden;
  border-block: 4px solid #241611;
  background: linear-gradient(90deg, #ffd83e, #fff7cf 34%, #6fe3dd 68%, #ffd83e);
  box-shadow: 0 8px 0 #241611, 0 18px 32px rgba(17, 93, 93, 0.12);
  transform: rotate(-1.2deg);
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 13px 0 16px;
  animation: tickerRun 18s linear infinite;
}

.ticker-track span {
  color: #2a1710;
  font-family: "Bangers", "Fredoka", sans-serif;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 2px 3px 0 white, 4px 5px 0 rgba(0, 0, 0, 0.13);
}

.ticker-track span::after {
  content: " /";
  color: #d85fd9;
  text-shadow: 2px 3px 0 white;
}

.contract-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
}

.contract-box {
  width: min(820px, 100%);
  margin-top: 22px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 3px solid #241611;
  border-radius: 16px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 0 #241611, inset 0 0 24px rgba(203, 107, 218, 0.08);
  cursor: pointer;
}

.contract-box-hero {
  max-width: 650px;
}

.contract-box span,
.contract-box em {
  color: var(--violet-soft);
  font-family: "Fredoka", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contract-box strong {
  min-width: 0;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid rgba(220, 139, 225, 0.22);
  border-radius: 10px;
  background: rgba(255, 249, 236, 0.88);
  color: var(--cream);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-status {
  min-height: 26px;
  margin: 10px 0 0;
  color: var(--green);
  font-weight: 700;
}

.hero-copy-status {
  min-height: 18px;
  font-size: 0.88rem;
}

.gallery-section {
  padding-bottom: 92px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.gallery-card {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  padding: 0;
  border: 4px solid #241611;
  border-radius: 18px;
  background: #08080a;
  box-shadow: 0 8px 0 #241611, 0 14px 18px rgba(17, 93, 93, 0.14), inset 0 0 22px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: color;
  opacity: 0;
  pointer-events: none;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 252px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-card:hover img {
  transform: scale(1.07);
  filter: contrast(1.1) saturate(1.16);
}

.tone-green::before { background: linear-gradient(135deg, #14b66c, #1b472d); }
.tone-pink::before { background: linear-gradient(135deg, #e666b2, #8451c8); }
.tone-gold::before { background: linear-gradient(135deg, #f7d340, #75c58f); }
.tone-city::before { background: linear-gradient(135deg, #5d5aff, #f155a4); }
.tone-space::before { background: radial-gradient(circle, #68f07b, #342a80 54%, #050506); }
.tone-office::before { background: linear-gradient(135deg, #f9aad8, #a65ee8); }
.tone-game::before { background: linear-gradient(135deg, #56d4f2, #65c45e); }
.tone-chart::before { background: linear-gradient(135deg, #2cdf6d, #fe4f4f); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(760px, 92vw);
  max-height: 82vh;
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(43, 18, 54, 0.86);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  padding: 28px 22px 34px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--cream);
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 9px;
  }

  .nav-link {
    min-height: 38px;
    font-size: 0.75rem;
  }

  .section {
    width: min(100% - 28px, 760px);
    padding-top: 116px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 96px;
  }

  .hero-section .hero-copy,
  .hero-section .hero-visual,
  .about-section .about-copy,
  .about-section .about-image {
    order: initial;
  }

  .hero-visual {
    height: 45vh;
  }

  .character-card {
    width: min(82vw, 460px);
  }

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

  .about-section {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .about-image img {
    width: min(58vw, 300px);
  }

  .contract-box {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@keyframes mascotFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes tickerRun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


@media (max-width: 620px) {
  .site-header {
    inset: 12px 0 auto;
    justify-content: flex-end;
    padding: 0 14px;
    pointer-events: none;
  }

  .menu-toggle {
    width: 54px;
    height: 48px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 3px solid #241611;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffd53d, #fff7da);
    box-shadow: 0 6px 0 #241611;
    cursor: pointer;
    pointer-events: auto;
  }

  .menu-toggle span {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: #241611;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-shell {
    position: absolute;
    top: 62px;
    right: 14px;
    width: min(230px, calc(100vw - 28px));
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    pointer-events: auto;
    overflow: visible;
  }

  .site-header.menu-open .nav-shell {
    display: grid;
  }

  .nav-link {
    min-width: 0;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .section {
    width: min(100% - 22px, 520px);
    min-height: auto;
    padding: 104px 0 54px;
  }

  .hero-section {
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    grid-template-rows: auto 1fr;
    align-content: stretch;
    gap: 8px;
    padding: 74px 18px 42px;
    background-position: center bottom;
  }

  .hero-copy {
    align-self: start;
    padding-bottom: 0;
    transform: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 11vw, 3rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .lead {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.34;
  }

  .hero-visual {
    height: auto;
    min-height: 0;
    place-items: end center;
  }

  .character-card {
    width: min(78vw, 330px);
  }

  .character-card img {
    transform: translateY(8%);
  }

  .contract-box-hero {
    margin-top: 16px;
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
    box-shadow: 0 5px 0 #241611, inset 0 0 18px rgba(203, 107, 218, 0.08);
  }

  .contract-box span,
  .contract-box em {
    font-size: 0.78rem;
  }

  .contract-box strong {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .hero-copy-status {
    min-height: 10px;
    margin-top: 4px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 14px;
    padding-bottom: 0;
  }

  .icon-button {
    width: 48px;
    height: 48px;
    box-shadow: inset 0 0 14px rgba(230, 149, 230, 0.14), 0 6px 16px rgba(125, 63, 158, 0.12);
  }

  .icon-button img {
    width: 23px;
    height: 23px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contract-box strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
