:root {
  --bg-color: #080808;
  --text-main: #f0f0f0;
  --text-dim: #e0e0e0;
  --line-color: rgba(255, 255, 255, 0.15);
  --font-main: "Cinzel", serif;
  --font-jp: "Noto Serif JP", serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  width: 100vw;
  height: 100vh;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.loader-text {
  font-family: var(--font-main);
  font-size: 2rem;
  color: #fff;
  letter-spacing: 5px;
  opacity: 0;
}

.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #fff;
  width: 0%;
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.axis-line {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  border-top: 1px dashed var(--line-color);
  z-index: 5;
  pointer-events: none;
}

.fixed-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 9998;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-lang {
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
  letter-spacing: 2px;
  color: #aaa;
}

.ui-lang a {
  text-decoration: none;
  color: inherit;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
}

.ui-logo {
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.ui-menu {
  cursor: pointer;
  letter-spacing: 2px;
  color: #aaa;
}

.nav-btn {
  position: fixed;
  bottom: 50px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 9999;
}

.nav-btn:hover {
  color: var(--text-main);
}

.nav-prev {
  left: 50px;
}

.nav-next {
  right: 50px;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0b0b0b;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.menu-close {
  position: absolute;
  top: 40px;
  right: 50px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.menu-item {
  position: relative;
  overflow: hidden;
}

.menu-item a {
  font-family: var(--font-main);
  font-size: 4rem;
  color: #f0f0f0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -2px;
  display: block;
  transform: translateY(100%);
  transition: color 0.3s;
}

.menu-item a:hover {
  color: #888;
}

.menu-num {
  font-size: 1rem;
  color: #444;
  vertical-align: super;
}

.horizontal-container {
  display: flex;
  flex-wrap: nowrap;
  width: 400vw;
  height: 100vh;
}

.pin-spacer {
  z-index: 999 !important;
}

.card-detail a {
  color: #c6c6c6;
  text-decoration: none;
  cursor: pointer;
}

.card-detail a:hover {
  color: #fff;
}

.slide.hide .center-stage {
  position: relative;
  cursor: not-allowed;
}

.lock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.hide .lock-overlay {
  opacity: 1;
}

.lock-icon {
  width: 40px;
  height: 40px;
  fill: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.lock-text {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  backdrop-filter: blur(5px);
}

.slide.hide .center-img {
}

.slide.hide .info-block,
.slide.hide .floating-detail {
  opacity: 0.3 !important;
  filter: blur(25px) grayscale(1);
}

.slide {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.bg-typo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30vw;
  color: #1a1a1a;
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(2px);
}

.center-stage {
  position: relative;
  z-index: 10;
  width: 350px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.8);
}

.center-kanji {
  position: absolute;
  font-family: var(--font-jp);
  font-size: 80px;
  color: #fff;
  mix-blend-mode: overlay;
  z-index: 12;
}

.axis-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  z-index: 15;
  left: -50px;
}

.info-block {
  position: absolute;
  bottom: 7%;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
}

.info-name {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.info-title {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 5px;
  letter-spacing: -1px;
}

.info-year {
  font-size: 1rem;
  font-family: var(--font-jp);
  color: #888;
}

.floating-detail {
  position: absolute;
  font-size: 16px;
  color: #dddddd;
  max-width: 150px;
  line-height: 1.6;
}
.fd-left {
  top: 40%;
  left: 15%;
  text-align: right;
}
.fd-right {
  top: 30%;
  right: 15%;
  text-align: left;
}

.product-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.9);
  z-index: 5;
}

.outer-img {
  position: relative;
  z-index: 10;
  transform-origin: top center;
  transform-style: preserve-3d;
}

.tear-left {
  clip-path: polygon(
    0 0,
    50% 0,
    54% 10%,
    47% 20%,
    53% 30%,
    48% 40%,
    55% 50%,
    46% 60%,
    52% 70%,
    49% 80%,
    54% 90%,
    50% 100%,
    0 100%
  );
}

.tear-right {
  clip-path: polygon(
    50% 0,
    100% 0,
    100% 100%,
    50% 100%,
    54% 90%,
    49% 80%,
    52% 70%,
    46% 60%,
    55% 50%,
    48% 40%,
    53% 30%,
    47% 20%,
    54% 10%
  );
}

.open-button-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 130px;
  cursor: pointer;
  background: linear-gradient(360deg, #00000050, transparent);
}

.arrow {
  opacity: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  transform: translate3d(-50%, -50%, 0);
}

.arrow-first {
  animation: arrow-movement-up 2s ease-in-out infinite;
}
.arrow-second {
  animation: arrow-movement-up 2s 1s ease-in-out infinite;
}

.arrow:before,
.arrow:after {
  background: #fff;
  content: "";
  display: block;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  border-radius: 2px;
}

.arrow:before {
  transform: rotate(-45deg);
  transform-origin: top right;
  left: -30px;
}

.arrow:after {
  transform: rotate(45deg);
  transform-origin: top left;
  left: 0;
}

@keyframes arrow-movement-up {
  0% {
    opacity: 0;
    top: 65%;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 35%;
  }
}

@media (max-width: 768px) {
  body {
    height: auto;
    overflow-y: auto;
  }

  .horizontal-container {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .slide {
    width: 100%;
    height: 100vh;
    padding: 20px;
  }

  .bg-typo {
    font-size: 40vw;
    opacity: 0.2;
  }

  .center-stage {
    width: 280px;
  }

  .info-title {
    font-size: 2rem;
  }

  .info-block {
    bottom: 5%;
  }

  .fd-left,
  .fd-right {
    position: absolute;
    font-size: 18px;
    max-width: 100px;
  }

  .fd-left {
    top: 20%;
    left: 10%;
    text-align: left;
  }

  .fd-right {
    top: auto;
    bottom: 25%;
    right: 10%;
    text-align: right;
  }

  .nav-btn {
    display: none;
  }

  .axis-line {
    opacity: 0.3;
  }

  .fixed-ui {
    height: 80px;
    padding: 20px;
  }

  .ui-logo {
    font-size: 18px;
  }

  .ui-lang,
  .ui-menu {
    top: 25px;
  }

  .ui-lang {
    left: 20px;
  }

  .ui-menu {
    right: 20px;
  }

  .menu-item a {
    font-size: 2.5rem;
  }
}

.choc-hotspot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.center-stage-1600.zoomed .choc-hotspot {
  opacity: 1;
  pointer-events: auto;
}

.hotspot-dot {
  width: 16px;
  height: 16px;
  background: #282f3f;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(40, 47, 63, 0.8);
  position: relative;
  transition: transform 0.3s ease;
}

.choc-hotspot:hover .hotspot-dot {
  transform: scale(1.2);
}

.hotspot-dot::before,
.hotspot-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid #282f3f;
  border-radius: 50%;
  opacity: 0;
  animation: hotspot-pulse 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.hotspot-dot::after {
  animation-delay: 0.6s;
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.choc-reveal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.choc-reveal-container:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.revealed-choc {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}
