:root {
  --red: #b3282c;
  --red-deep: #7c1c1f;
  --red-bright: #d13f3f;
  --cream: #f3e8cd;
  --cream-deep: #e7d6ab;
  --ink: #2b1a13;
  --ink-soft: #4a352a;
  --gold: #c9a15a;
  --gold-soft: #dcc17e;
  --holly-green: #3c5a34;
  --char-color: var(--red);

  --font-jp: "Shippori Mincho", serif;
  --font-script: "Lobster", cursive;
  --font-slab: "Alfa Slab One", serif;

  --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-jp);
  line-height: 1.9;
  overflow-x: hidden;
  container-type: inline-size;
  container-name: page;
}

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

.nowrap { white-space: nowrap; }

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(20,8,6,.55), transparent);
}

.nav__logo {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--cream);
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.nav__logo-dot { color: var(--gold-soft); }

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}
.nav__links a {
  color: var(--cream);
  font-size: .92rem;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  position: relative;
  padding-bottom: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-soft);
  transition: right .3s ease;
}
.nav__links a:hover::after { right: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--red-bright) 0%, var(--red) 45%, var(--red-deep) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(120deg, rgba(255,255,255,.035) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(-120deg, rgba(255,255,255,.035) 0 2px, transparent 2px 40px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,.55), transparent),
    radial-gradient(2px 2px at 80% 10%, rgba(255,255,255,.4), transparent),
    radial-gradient(3px 3px at 30% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 60% 40%, rgba(255,255,255,.35), transparent),
    radial-gradient(2px 2px at 90% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(3px 3px at 45% 90%, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 15% 55%, rgba(255,255,255,.4), transparent);
  background-repeat: repeat;
  background-size: 100% 100%;
  opacity: .8;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px;
  max-width: 760px;
}

.eyebrow {
  font-family: var(--font-slab);
  font-size: clamp(.7rem, 1.6vw, .85rem);
  letter-spacing: .28em;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

/* Custom-typeset wordmark, replacing the raster logo lockup */
.hero__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .95;
  margin-bottom: 6px;
}
.hero__wordmark span {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  color: var(--cream);
  text-shadow: 0 2px 0 var(--red-deep), 0 10px 26px rgba(0,0,0,.4);
}
.hero__wordmark span:last-child { color: var(--gold-soft); margin-top: -.12em; }

.hero__jp {
  font-size: .95rem;
  letter-spacing: .5em;
  color: var(--cream-deep);
  margin-bottom: 26px;
  padding-left: .5em; /* optical centering for tracked text */
}

.hero__catch {
  color: var(--cream);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  line-height: 1.8;
  margin-bottom: 34px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.hero__frame {
  position: relative;
  width: min(70vw, 320px);
  aspect-ratio: 4 / 4.6;
  margin: 0 auto 32px;
  padding: 10px;
  border-radius: 50% 50% 6% 6% / 34% 34% 4% 4%;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold) 55%, var(--gold-soft));
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(43,26,19,.35);
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 8%;
  border-radius: inherit;
}

.hero__tagline {
  color: var(--cream-deep);
  font-size: clamp(.92rem, 2vw, 1.05rem);
  line-height: 1.9;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  list-style: none;
  color: var(--cream-deep);
  font-size: .88rem;
  letter-spacing: .04em;
}
.hero__meta strong {
  color: var(--gold-soft);
  font-size: 1.1em;
  margin-right: 2px;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px;
  border: 1px solid rgba(243,232,205,.6);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--gold-soft);
  border-radius: 50%;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ---------- Decorative holly ornament ---------- */
.holly-corner {
  width: 46px;
  height: 46px;
  color: var(--holly-green);
  position: absolute;
  z-index: 2;
  opacity: .9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.holly-corner--tl { top: 22px; left: 22px; }
.holly-corner--tr { top: 22px; right: 22px; transform: scaleX(-1); }
.holly-corner--card {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 40px;
  height: 40px;
}

/* ---------- Ribbon banner ---------- */
.ribbon {
  display: inline-block;
  margin: 0 auto 34px;
  padding: 12px 40px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-slab);
  font-size: .78rem;
  letter-spacing: .12em;
  clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%, 7% 50%);
  text-align: center;
}

/* ---------- Section shared ---------- */
.section-eyebrow {
  font-family: var(--font-slab);
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--red);
  text-align: center;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  color: var(--ink);
  margin-bottom: 40px;
  letter-spacing: .06em;
}

/* ---------- Story ---------- */
.story {
  padding: 110px 24px;
  background: var(--cream);
}
.story__inner {
  max-width: 720px;
  margin: 0 auto;
}
.story__narration {
  background: #fffdf6;
  border: 1px solid var(--cream-deep);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 18px 40px rgba(43,26,19,.08);
  position: relative;
}
.story__narration::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px; right: 14px; bottom: 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  pointer-events: none;
  opacity: .5;
}
.story__narration p {
  margin-bottom: 1.3em;
  color: var(--ink-soft);
}
.story__narration p:last-child { margin-bottom: 0; }
.story__punch {
  font-weight: 600;
  color: var(--red);
  letter-spacing: .03em;
}

.story__facts {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}
.story__facts > div {
  border-top: 1px solid var(--cream-deep);
  padding-top: 12px;
}
.story__facts dt {
  font-family: var(--font-slab);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 6px;
}
.story__facts dd {
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.7;
}

/* ---------- Characters / Carousel ---------- */
.characters {
  padding: 110px 0 90px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.characters__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.characters__lead {
  text-align: center;
  color: var(--ink-soft);
  margin-top: -16px;
  margin-bottom: 10px;
}

.carousel {
  position: relative;
  max-width: 980px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.carousel__count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-slab);
  color: var(--char-color);
  margin-bottom: 20px;
  transition: color .5s ease;
}
.carousel__count-current { font-size: 1.6rem; }
.carousel__count-sep { color: var(--gold); opacity: .7; }
.carousel__count-total { font-size: .95rem; opacity: .6; }

.carousel__track {
  position: relative;
}

.char-panel {
  display: none;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #fffdf6;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(43,26,19,.12);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--cream-deep);
}
.char-panel.is-active {
  display: grid;
  animation: panelIn .6s ease;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.char-panel__media {
  display: flex;
  justify-content: center;
}
.char-panel__medallion {
  position: relative;
  display: block;
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(160deg, var(--gold-soft), var(--char-color) 60%, var(--gold-soft));
  box-shadow: 0 18px 34px rgba(43,26,19,.22);
  transition: background .5s ease;
}
.char-panel__medallion::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.6);
  pointer-events: none;
}
.char-panel__medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.char-panel__name-en {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--char-color);
  transition: color .5s ease;
  line-height: 1;
}
.char-panel__name {
  font-size: 1.3rem;
  margin: 10px 0 16px;
  letter-spacing: .06em;
}
.char-panel__nickname {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-left: 6px;
}
.char-panel__tag {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--char-color);
  border: 1px solid var(--char-color);
  border-radius: 18px;
  padding: 6px 16px;
  margin-bottom: 18px;
  transition: color .5s ease, border-color .5s ease;
}
.char-panel__desc {
  color: var(--ink-soft);
  font-size: .95rem;
  margin-bottom: 20px;
}
.char-panel__quote {
  font-size: 1.02rem;
  color: var(--ink);
  border-left: 3px solid var(--char-color);
  padding-left: 16px;
  transition: border-color .5s ease;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--red);
  background: #fffdf6;
  color: var(--red);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(43,26,19,.15);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.carousel__arrow:hover {
  background: var(--red);
  color: var(--cream);
}
.carousel__arrow--prev { left: -8px; }
.carousel__arrow--next { right: -8px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.carousel__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--red);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease;
}
.carousel__dot.is-active {
  background: var(--red);
}

/* ---------- Package / achievement ---------- */
.package {
  padding: 100px 24px;
  background: var(--cream);
  text-align: center;
}
.package__inner {
  max-width: 780px;
  margin: 0 auto;
}
.package__badge {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
  text-align: left;
  margin-bottom: 60px;
}
.stamp {
  flex: none;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 3px dashed var(--red);
  outline: 1px solid var(--red);
  outline-offset: -9px;
  background: #fffdf6;
  color: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  transform: rotate(-6deg);
  box-shadow: 0 14px 26px rgba(43,26,19,.15);
}
.stamp__top {
  font-family: var(--font-slab);
  font-size: .55rem;
  letter-spacing: .1em;
}
.stamp__num {
  font-family: var(--font-slab);
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 4px 0;
}
.stamp__bottom {
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.package__title {
  text-align: left;
  margin-bottom: 16px;
}
.package__text p {
  color: var(--ink-soft);
  margin-bottom: 1em;
}
.package__text p:last-child { margin-bottom: 0; }

.package__release {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  text-align: left;
  background: #fffdf6;
  border: 1px solid var(--cream-deep);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 18px 40px rgba(43,26,19,.08);
}
.package__release-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.package__release-label {
  font-family: var(--font-slab);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--gold);
}
.package__release-day {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 600;
}
.package__release-week { font-size: .8em; margin-left: 4px; }
.package__release-place {
  font-size: .88rem;
  color: var(--ink-soft);
}
.package__release-notes p {
  color: var(--ink-soft);
  font-size: .92rem;
  margin-bottom: .9em;
}
.package__release-notes p:last-child { margin-bottom: 0; }

/* ---------- Info ---------- */
.info {
  padding: 100px 24px 120px;
  background: var(--cream-deep);
}
.info__inner {
  max-width: 560px;
  margin: 0 auto;
}
.info__list {
  display: grid;
  gap: 18px;
}
.info__list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 14px;
}
.info__list dt {
  font-family: var(--font-slab);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--gold);
  white-space: nowrap;
}
.info__list dd {
  text-align: right;
  color: var(--ink);
  font-size: .92rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream-deep);
  text-align: center;
  padding: 56px 24px 70px;
}
.footer__logo {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 14px;
}
.footer__credit {
  font-size: .82rem;
  opacity: .85;
  margin-bottom: 8px;
  line-height: 2;
}
.footer__credit a,
.info__list dd a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.info__list dd a { color: var(--red); }
.footer__credit a:hover,
.info__list dd a:hover { opacity: .7; }
.footer__copy {
  font-size: .72rem;
  opacity: .5;
}

/* ---------- BGM toggle ---------- */
.bgm-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: var(--red-deep);
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}
.bgm-toggle:hover { background: var(--red); }
.bgm-toggle.is-playing .bgm-toggle__icon {
  animation: spinNote 2.4s linear infinite;
}
@keyframes spinNote {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@container page (max-width: 760px) {
  .char-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .char-panel__media { max-width: 220px; margin: 0 auto; }
  .char-panel__tag { margin-left: auto; margin-right: auto; }
  .char-panel__quote { border-left: none; border-top: 3px solid var(--char-color); padding-left: 0; padding-top: 12px; }
  .carousel__arrow--prev { left: 4px; }
  .carousel__arrow--next { right: 4px; }
  .story__facts { grid-template-columns: 1fr; }
  .package__badge { flex-direction: column; text-align: center; }
  .package__title, .package__text { text-align: center; }
  .package__release { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--red-deep);
    padding: 0 24px;
    gap: 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav__links.is-open { max-height: 260px; padding: 18px 24px; }
  .nav__toggle { display: flex; }
  .carousel__arrow { width: 38px; height: 38px; font-size: 1.3rem; }
  .holly-corner { width: 32px; height: 32px; }
  .holly-corner--tl { top: 14px; left: 14px; }
  .holly-corner--tr { top: 14px; right: 14px; }
}
