:root {
  --paper: #f2ede4;
  --ink: #1c1008;
  --gold: #9b7b3a;
  --red: #c0321a;
  --gray: #dedbd4;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  display: flex;
  justify-content: center;
  overflow: hidden;
  font-family: "Yuji Syuku", "Noto Serif JP", serif;
}

button {
  font: inherit;
}

p {
  margin: 0;
}

.scroll-root {
  width: 390px;
  height: calc(100vh / var(--scale, 1));
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--paper);
  scrollbar-width: none;
  zoom: var(--scale, 1);
}

.scroll-root::-webkit-scrollbar {
  display: none;
}

body.entered .scroll-root {
  scroll-snap-type: y mandatory;
}

.site-intro,
.guide,
.product,
.author-label,
.message-label,
.main-layer footer {
  scroll-snap-align: start;
}

.page {
  position: relative;
  width: 390px;
  height: 5192px;
  background: var(--paper);
  overflow: hidden;
  transform-origin: 50% 985px;
}

.main-layer,
.cover-layer {
  position: absolute;
  inset: 0 auto auto 0;
  width: 390px;
}

.main-layer {
  height: 5192px;
  opacity: 0;
  transform: scale(0.86);
  transform-origin: 50% 1300px;
  pointer-events: none;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-layer {
  height: 1250px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1s ease-in-out;
}

body.entered .page {
  animation: step-in 1.5s ease-in-out both;
}

body.entered .main-layer {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  transition-delay: 0.45s;
}

body.entered .cover-layer {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0.5s;
}

@keyframes step-in {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

.abs {
  position: absolute;
}

.vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.vertical-mixed {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.center-x {
  left: 50%;
  transform: translateX(-50%);
}

.cover-bg {
  left: 10px;
  top: 0;
  width: 373px;
  height: 1250px;
  background: var(--paper);
}

.site-tag {
  left: 350px;
  top: 100px;
  width: 20px;
  height: 500px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.4em;
}

.reading {
  left: 40px;
  top: 250px;
  width: 24px;
  color: var(--gold);
  font-size: 30px;
  line-height: 60px;
  letter-spacing: 1em;
}

.title {
  left: 135px;
  top: 90px;
  width: 120px;
  height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #000;
  font-size: 210px;
  line-height: 210px;
  white-space: nowrap;
}

.noodle {
  left: 0;
  top: 600px;
  width: 390px;
  height: 115px;
  overflow: visible;
}

.noodle-top {
  top: 0px;
}

.concept {
  left: 0;
  top: 1000px;
  width: 390px;
  height: 225px;
  background: var(--paper);
}

.concept-copy {
  left: 85px;
  top: 20px;
  width: 220px;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 45px;
  color: var(--red);
  font-size: 30px;
}

.concept-copy p {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1;
  letter-spacing: 12px;
}

.ramen-large {
  left: 82px;
  top: 1040px;
  color: #000;
  font-size: 0;
  letter-spacing: 20px;
  white-space: nowrap;
}

.ramen-large span:first-child {
  font-size: 105px;
  line-height: 0.88;
}

.ramen-large span:last-child {
  font-size: 100px;
  line-height: 0.88;
}

.ramen-small {
  left: 86px;
  top: 1144px;
  color: #000;
  font-size: 0;
  letter-spacing: 2.4px;
  white-space: nowrap;
}

.cover-layer > .ramen-large,
.cover-layer > .ramen-small {
  display: none;
}

.ramen-small span:nth-child(1),
.ramen-small span:nth-child(3) {
  font-size: 48px;
  line-height: 0.88;
}

.ramen-small span:nth-child(2) {
  font-size: 40px;
  line-height: 0.88;
  letter-spacing: 23.6px;
}

.noren-gate {
  left: 50%;
  top: 1400px;
  z-index: 20;
  width: 392px;
  height: 230px;
  transform: translateX(-50%);
}

.noren-mask {
  position: absolute;
  inset: 0;
  animation: reveal-noren 1s cubic-bezier(0.7, 0, 0.3, 1) 0.3s both;
}

.noren-half {
  position: absolute;
  top: 0;
  width: 196px;
  height: 200px;
  overflow: hidden;
  transition:
    transform 1.6s cubic-bezier(0.6, 0, 0.2, 1),
    opacity 1.6s;
}

.noren-half.left {
  left: 0;
  transform-origin: left top;
}

.noren-half.right {
  left: 196px;
  transform-origin: right top;
}

.noren-inner {
  position: absolute;
  top: 0;
  width: 392px;
  height: 200px;
  transform-origin: top center;
  animation: sway 6s ease-in-out infinite;
}

.noren-title {
  position: absolute;
  left: 83px;
  top: 17px;
  color: #000;
  font-size: 0;
  letter-spacing: 20px;
  white-space: nowrap;
}

.noren-title span:first-child {
  font-size: 105px;
  line-height: 0.88;
}

.noren-title span:last-child {
  font-size: 100px;
  line-height: 0.88;
}

.noren-kana {
  position: absolute;
  left: 87px;
  top: 121px;
  color: #000;
  font-size: 0;
  letter-spacing: 2.4px;
  white-space: nowrap;
}

.noren-kana span:nth-child(1),
.noren-kana span:nth-child(3) {
  font-size: 48px;
  line-height: 0.88;
}

.noren-kana span:nth-child(2) {
  font-size: 40px;
  line-height: 0.88;
  letter-spacing: 23.6px;
}

.right .noren-inner {
  left: -196px;
}

body.entered .noren-half.left {
  transform: translate(-150%, -28%) scale(1.7) rotate(-7deg);
  opacity: 0;
}

body.entered .noren-half.right {
  transform: translate(150%, -28%) scale(1.7) rotate(7deg);
  opacity: 0;
}

body.entered .noren-inner {
  animation: none;
}

.enter-button {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 30;
  width: 100%;
  height: 200px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.enter-button span {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 4px;
  white-space: nowrap;
  animation: tap-pulse 2.2s ease-in-out infinite;
}

body.entered .enter-button {
  display: none;
}

.skip-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 40;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(242, 237, 228, 0.7);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

body.entered .skip-button {
  display: none;
}

body.instant .page,
body.instant .main-layer,
body.instant .cover-layer,
body.instant .noren-half,
body.instant .noren-mask,
body.instant .noren-inner {
  transition: none !important;
  animation: none !important;
}

@keyframes reveal-noren {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-0.7deg) skewX(-0.4deg);
  }
  50% {
    transform: rotate(0.7deg) skewX(0.4deg);
  }
}

@keyframes tap-pulse {
  0%,
  100% {
    opacity: 0.4;
    translate: 0 0;
  }
  50% {
    opacity: 1;
    translate: 0 3px;
  }
}

.site-intro {
  left: 0;
  top: 3750px;
  width: 390px;
  height: 750px;
  border: 7px solid #000;
  overflow: hidden;
}

.site-intro::before {
  content: "";
  position: absolute;
  inset: 13px 16px 22px 16px;
  border: 1px dashed #000;
}

.welcome {
  left: 40px;
  top: 100px;
  width: 80%;
  color: var(--gold);
  font-size: 35px;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.intro-line {
  left: 65px;
  top: 190px;
  width: 260px;
  border-top: 1.5px solid rgba(155, 123, 58, 0.39);
}

.intro-copy {
  top: 226px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 19px;
  line-height: 1.05;
  text-align: center;
}

.intro-note {
  top: 424px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 18px;
  line-height: 1.05;
  text-align: center;
}

.intro-sep {
  left: 64px;
  top: 544px;
  width: 262px;
  border-top: 1px solid var(--gold);
}

.intro-logo {
  left: 0;
  top: 578px;
  width: 100%;
  color: var(--gold);
  font-size: 78px;
  line-height: 78px;
  text-align: center;
}

.intro-kana {
  left: 0;
  top: 665px;
  width: 100%;
  color: var(--gold);
  font-size: 30px;
  line-height: 30px;
  letter-spacing: 5px;
  text-align: center;
}

.stamp {
  left: 280px;
  top: 580px;
  width: 60px;
  height: 60px;
  transform: rotate(-11deg);
}

.stamp-text {
  left: 286px;
  top: 592px;
  width: 50px;
  color: var(--red);
  text-align: center;
  transform: rotate(-11deg);
}

.stamp-text strong {
  display: block;
  font-size: 24px;
  line-height: 24px;
  font-weight: 400;
}

.stamp-text span {
  display: block;
  font-size: 12px;
  line-height: 12px;
}

.guide {
  left: 1px;
  top: 1150px;
  width: 389px;
  height: 844px;
  background: var(--gray);
}

.guide-text {
  left: 145px;
  top: 50px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 20px;
}

.guide-col {
  color: #000;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.8em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
}

.guide-col.two {
  margin-top: 60px;
}

.guide-col span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.guide.in-view .guide-col span {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 0.08s);
}

.guide-arrow {
  left: 134px;
  top: 1830px;
  width: 120px;
  height: 15px;
  transform: rotate(90deg);
}

.product {
  left: 0;
  top: 1994px;
  width: 390px;
  height: 843px;
  background: #000;
}

.section-label {
  left: 78px;
  color: var(--gold);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.45em;
  white-space: nowrap;
}

.product .section-label {
  top: 80px;
}

.ticket {
  left: 75px;
  top: 100px;
  color: var(--gold);
  font-size: 80px;
  line-height: 80px;
  white-space: nowrap;
}

.shop-grid {
  left: 17px;
  top: 150px;
  width: 356px;
  height: 600px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 60px 40px;
}

.shop-card {
  position: relative;
  width: 128px;
  height: 128px;
  border: 1.5px solid #fff;
  background: var(--paper);
  cursor: default;
}

.shop-card.link {
  cursor: pointer;
}

.shop-card.link:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
}

.shop-card img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.shop-name {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 20px;
  line-height: 24px;
  text-align: center;
}

.shop-name.serif {
  font-family: "Inria Serif", serif;
}

.product-note {
  top: 750px;
  width: 100%;
  text-align: center;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.pager {
  top: 700px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 4.5px;
}

.pager span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 24px;
  line-height: 24px;
}

.pager span:first-child {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.author-label {
  top: 2905px;
  width: 100%;
  text-align: center;
  color: var(--gold);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.45em;
}

.author-photo {
  left: 50%;
  top: 2955px;
  width: 264px;
  height: 264px;
  margin: 0;
  transform: translateX(-50%);
}

.author-photo img {
  width: 100%;
  height: 100%;
  display: block;
}

.author-copy {
  left: 63px;
  top: 3230px;
  width: 162px;
  color: #2e2117;
  font-size: 9px;
  line-height: 12px;
}

.message-label {
  top: 3355px;
  width: 100%;
  text-align: center;
  color: var(--gold);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.45em;
}

.passion {
  left: 80px;
  top: 3415px;
  width: 326px;
  height: 304px;
}

.passion p {
  position: absolute;
  width: 12px;
  color: var(--gold);
  font-size: 16px;
  line-height: 16px;
}

.footer-rule {
  left: 12px;
  top: 4506px;
  width: 366px;
  border-top: 1px solid #000;
}

.footer-kana {
  left: 125px;
  top: 4555px;
  width: 16px;
  height: 151px;
  color: var(--gold);
  font-size: 16px;
  line-height: 40px;
  letter-spacing: 15px;
}

.footer-logo {
  left: 130px;
  top: 4506px;
  width: 112px;
  height: 196px;
  color: #000;
  font-size: 100px;
  line-height: 100px;
  white-space: nowrap;
}

.footer-nav {
  left: 139px;
  top: 4727px;
  width: 112px;
  height: 60px;
}

.footer-nav::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  border-top: 1px solid #000;
}

.footer-nav button {
  position: absolute;
  top: 17px;
  width: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #000;
  font-size: 8px;
  line-height: 8px;
  cursor: pointer;
}

.footer-message {
  left: 139px;
  top: 4812px;
  width: 112px;
  height: 127px;
  color: #000;
}

.footer-message p {
  position: absolute;
  width: 14px;
  font-size: 13px;
  line-height: 13px;
}

.back-top {
  left: 309px;
  top: 4847px;
  width: 40px;
  height: 95px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.back-top svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 91px;
}

.back-top span {
  position: absolute;
  left: 18px;
  top: 42px;
  width: 10px;
  color: #000;
  font-size: 10px;
  line-height: 10px;
}
