:root {
  --page-max: 440px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  background: #050506;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #050506;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 20%, #131017 0, #070708 34rem, #030304 100%);
  font-family: var(--serif);
}

img,
video {
  display: block;
}

.site {
  position: relative;
  width: min(100%, var(--page-max));
  margin-inline: auto;
  overflow: hidden;
  background: #050506;
  box-shadow: 0 0 54px rgb(0 0 0 / 68%);
  isolation: isolate;
}

.panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #050506;
  contain: paint;
}

.panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--video-shift, 0), 0) scale(var(--video-scale, 1.16));
  transform-origin: center;
  filter: saturate(1.05) contrast(1.03);
}

[data-parallax-section] > .panel-content {
  translate: 0 var(--content-shift, 0);
}

[data-parallax-layer] {
  translate: 0 var(--layer-shift, 0);
}

.motion-enabled .background-video {
  will-change: transform;
}

.motion-enabled [data-parallax-section] > .panel-content,
.motion-enabled [data-parallax-layer] {
  will-change: translate;
}

.art-image {
  flex: none;
  max-width: calc(100% - 1rem);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.legend-copy {
  width: min(calc(100% - 2rem), 400px);
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  text-wrap: balance;
}

/* Hero: content follows the document flow; spacing scales with the panel width. */
.hero {
  background: #35b7c3;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 3.2% 40%;
}

.hero-title {
  margin: 0;
  line-height: 0;
}

.hero-group-title {
  width: 196px;
  height: 129px;
  object-fit: contain;
}

.hero-wordmark-image {
  width: 350px;
  margin-top: 62.4%;
}

.hero-headline-art {
  margin-top: 0.5rem;
  width: 92%;
}

.hero-subtitle {
  width: min(calc(100% - 2rem), 400px);
  margin: 0.5rem 0 0;
  color: #fff;
  font-size: clamp(17px, 5.22vw, 23px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 2px 3px #0b2330, 0 0 5px rgb(255 255 255 / 42%);
}

.hero-logo {
  width: 165px;
  margin-top: 16.8%;
}

/* Offer */
.offer {
  background: #170f0d;
}

.offer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 12.2% 17%;
}

.offer-intro {
  width: min(calc(100% - 2rem), 370px);
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(18px, 5.7vw, 25px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 2px 4px #000, 0 0 3px rgb(255 255 255 / 35%);
}

.offer-intro span {
  display: block;
}

.offer-amount {
  width: 368px;
}

.offer-footer-art {
  display: grid;
  width: min(calc(100% - 2rem), 354px);
  margin-bottom: 1rem;
}

.offer-open {
  width: 100%;
  grid-area: 1 / 1;
}

.offer-mark {
  margin-top:1rem;
  align-self: end;
  justify-self: center;
  pointer-events: none;
  user-select: none;
}

/* Benefits */
.local {
  background: #070707;
}

.local-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 26%) 0%, rgb(0 0 0 / 48%) 60%, #050505 89%, #050505 100%);
}

.local-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 2.8% 7.5%;
}

.local-title {
  margin-top: 1.5rem;
  width: 330px;
}

.local-title-en {
  max-width: calc(100% - 2rem);
  margin: 4px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: 0 1px 5px #000;
}

.benefits-block {
  display: grid;
  grid-template-columns: minmax(0, 62%) minmax(0, 38%);
  margin-top: 28%;
  margin-bottom: 1rem;
  width: 82%;
}

.benefits-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits-list li {
  position: relative;
  display: flex;
  min-height: clamp(42px, 12.94vw, 57px);
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 68%);
  color: #fff;
  font-size: clamp(17px, 5.22vw, 23px);
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
}

.benefits-list li::after {
  content: "✣";
  position: absolute;
  right: 47%;
  bottom: -7px;
  padding-inline: 5px;
  color: rgb(255 255 255 / 78%);
  background: transparent;
  font-size: 10px;
  line-height: 12px;
}

.benefits-list li span {
  font-size: 0.78em;
}

.benefits-list small {
  display: block;
  font-size: 9px;
  line-height: 1.15;
  white-space: normal;
}

.benefit-with-note {
  display: block !important;
  padding-top: 7px;
}

.benefits-signature {
  align-self: start;
  justify-self: center;
  margin-top: 5rem;
  color: transparent;
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(45px, 13.4vw, 100px);
  line-height: 1;
  transform: rotate(78deg);
  transform-origin: center;
  -webkit-text-stroke: 1px rgb(255 255 255 / 85%);
  opacity: 0.5;
}

.local-legend {
  margin-top: 4%;
}

/* A slightly taller cinematic pause makes the video read as another depth layer. */
.cinematic-break {
  --video-scale: 1.28;
  height: clamp(220px, 70vw, 300px);
  background: #030303;
}

.bridge-media {
  filter: brightness(0.88) saturate(1.12) contrast(1.08);
}

/* Shop */
.shop {
  background:
    radial-gradient(ellipse at 51% 27%, rgb(77 21 109 / 35%) 0%, rgb(20 5 31 / 64%) 25%, transparent 56%),
    linear-gradient(165deg, #070508 0%, #0b0610 45%, #050306 100%);
}

.shop::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle, #fff 0 0.55px, transparent 0.8px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}

.shop-content,
.shop-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shop-content {
  padding-block: 20.2% 7.5%;
}

.shop-main-content {
  width: 100%;
}

.shop-logo-image {
  width: 165px;
  max-width: calc(100% - 1rem);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.shop-renewal-copy {
  width: min(calc(100% - 2rem), 400px);
  margin: 3.8% 0 0;
  color: #fff;
  font-size: clamp(13px, 3.98vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 2px 4px #000;
}

.shop-photo {
  width: min(75%, 332px);
  aspect-ratio: 642 / 858;
  margin-top: 3%;
  object-fit: cover;
}

.shop-overview {
  width: min(calc(100% - 2rem), 332px);
  margin: 7.9% 0 0;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-align: justify;
  text-align-last: justify;
  text-shadow: 0 2px 4px #000;
}

.shop-overview strong,
.shop-overview span {
  display: block;
  white-space: nowrap;
}

.shop-overview span {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.shop-legend {
  margin-top: 5%;
}

.shop-gallery {
  position: relative;
  flex: none;
  width: 100%;
  height: clamp(170px, 52vw, 228px);
  margin-top: 4rem;
  outline: none;
  touch-action: pan-y;
}

.gallery-slides {
  position: absolute;
  inset: 0 0 clamp(16px, 4.98vw, 22px);
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 20.669%;
  width: 58.661%;
  aspect-ratio: 298 / 212;
  opacity: 0;
  transform: translateX(0) scale(0.94);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease;
  pointer-events: none;
}

.gallery-slide img {
  position: absolute;
  top: 4.717%;
  left: 5.369%;
  width: 89.262%;
  height: 83.491%;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    0 0 13px rgb(255 244 225 / 60%),
    0 0 24px rgb(177 144 255 / 18%);
}

.gallery-slide.is-active {
  z-index: 3;
  opacity: 1;
  transform: translateX(0) scale(1);
}

.gallery-slide.is-previous {
  z-index: 2;
  opacity: 0.76;
  transform: translateX(-90.604%) scale(0.96);
}

.gallery-slide.is-next {
  z-index: 2;
  opacity: 0.76;
  transform: translateX(90.604%) scale(0.96);
}

.gallery-nav {
  position: absolute;
  z-index: 5;
  top: 4%;
  width: 17%;
  height: 78%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

.shop-gallery:focus-visible .gallery-slide.is-active img {
  outline: 2px solid rgb(154 61 255 / 90%);
  outline-offset: 3px;
}

.gallery-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  gap: 8px;
  align-items: center;
  transform: translateX(-50%);
}

.gallery-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 28%);
  cursor: pointer;
  transition: width 260ms ease, background-color 260ms ease;
}

.gallery-dots button[aria-selected="true"] {
  width: 18px;
  border-radius: 5px;
  background: #7518ec;
}

.gallery-dots button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

/* Final CTA */
.final-cta {
  --video-scale: 1.2;
  background: #080608;
}

.final-background {
  filter: brightness(0.55) contrast(1.2) saturate(0.95);
}

.final-texture {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 24%) 0%, transparent 20%, rgb(0 0 0 / 14%) 65%, rgb(0 0 0 / 35%) 100%),
    radial-gradient(circle, rgb(255 205 170 / 54%) 0 0.65px, transparent 0.9px);
  background-size: auto, 4px 4px;
  mix-blend-mode: screen;
  opacity: 0.73;
}

.final-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(170deg, transparent 0 3px, rgb(0 0 0 / 16%) 3px 4px);
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 119.65% 5.97% 18.6%;
}

.cta-kicker,
.cta-title {
  width: 100%;
  margin: 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 8px rgb(55 0 85 / 70%);
}

.cta-kicker {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(8px, 2.48vw, 11px);
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 3.3px;
}

.cta-title {
  margin-top: 5.2%;
  font-size: clamp(24px, 7.46vw, 33px);
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.line-button {
  width: 83.085%;
  display: grid;
  aspect-ratio: 334 / 64;
  margin-top: 4.5%;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, rgb(130 16 238 / 91%) 0%, rgb(112 7 213 / 82%) 48%, rgb(88 19 151 / 70%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 8px 28px rgb(64 0 108 / 34%);
  font-size: clamp(13px, 3.73vw, 16px);
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.line-button:hover,
.line-button:focus-visible {
  filter: brightness(1.16);
  transform: translateY(-2px);
}

.fixed-line {
  position: fixed;
  z-index: 10;
  bottom: max(12px, env(safe-area-inset-bottom) + 8px);
  right: max(18px, calc((100vw - var(--page-max)) / 2 + 18px));
  display: block;
  width: clamp(48px, 14.925vw, 60px);
  aspect-ratio: 1;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.9);
  transition: opacity 220ms ease, transform 220ms var(--ease-out), filter 180ms ease, visibility 220ms;
}

.fixed-line.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fixed-line img {
  width: 100%;
}

.fixed-line.is-visible:hover,
.fixed-line.is-visible:focus-visible {
  filter: brightness(1.08);
  transform: scale(1.05);
}

/* Motion */
.motion-enabled [data-reveal] {
  --reveal-y: 26px;
  --reveal-scale: 1;
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0) scale(var(--reveal-scale));
  transition:
    opacity 820ms var(--ease-out),
    transform 920ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-enabled [data-reveal="zoom"] {
  --reveal-y: 10px;
  --reveal-scale: 0.9;
}

.motion-enabled [data-reveal].is-visible {
  --reveal-y: 0;
  --reveal-scale: 1;
  opacity: 1;
}

.motion-enabled .benefits-block.is-visible .benefits-list li {
  opacity: 0;
  animation: benefit-enter 680ms var(--ease-out) forwards;
}

.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(1) { animation-delay: 100ms; }
.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(2) { animation-delay: 150ms; }
.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(3) { animation-delay: 200ms; }
.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(4) { animation-delay: 250ms; }
.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(5) { animation-delay: 300ms; }
.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(6) { animation-delay: 350ms; }
.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(7) { animation-delay: 400ms; }
.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(8) { animation-delay: 450ms; }
.motion-enabled .benefits-block.is-visible .benefits-list li:nth-child(9) { animation-delay: 500ms; }

.motion-enabled .line-button.is-visible {
  animation: cta-aura 3.2s ease-in-out 1s infinite;
}

.motion-enabled .cta-kicker.is-visible {
  animation: kicker-breathe 4.5s ease-in-out 900ms infinite;
}

@keyframes benefit-enter {
  from { opacity: 0; transform: translateX(-20px); filter: blur(5px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes cta-aura {
  0%, 100% { box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 8px 28px rgb(64 0 108 / 34%); }
  50% { box-shadow: inset 0 1px 0 rgb(255 255 255 / 36%), 0 8px 42px rgb(147 31 255 / 68%); }
}

@keyframes kicker-breathe {
  0%, 100% { letter-spacing: 3.3px; opacity: 0.8; }
  50% { letter-spacing: 4.6px; opacity: 1; }
}

html.is-capture {
  scroll-behavior: auto;
}

html.is-capture .background-video {
  transform: none;
}

html.is-capture [data-parallax-section] > .panel-content,
html.is-capture [data-parallax-layer] {
  translate: none;
}

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

@media (max-width: 439px) {
  .fixed-line {
    right: 4.5vw;
  }
}

@media (max-width: 359px) {
  .benefits-block {
    width: 88%;
  }

  .benefits-signature {
    margin-top: 4rem;
  }

  .shop-overview {
    font-size: 23px;
  }

  .shop-gallery {
    margin-top: 3rem;
  }

  .cta-content {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .line-button,
  .fixed-line,
  .gallery-slide,
  .gallery-dots button,
  [data-reveal] {
    transition: none;
    animation: none;
  }

  .background-video {
    transform: none;
  }

  [data-parallax-section] > .panel-content,
  [data-parallax-layer] {
    translate: none;
  }
}
