:root {
  color-scheme: dark;
  --page-bg: #101012;
  --paper: rgba(18, 18, 18, 0.54);
  --paper-strong: rgba(14, 14, 14, 0.68);
  --text: #fffaf0;
  --muted: rgba(255, 246, 229, 0.78);
  --hairline: rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
}

button {
  font: inherit;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatHint {
  0%,
  100% {
    transform: translateX(0);
  }

  35%,
  65% {
    transform: translateX(-22px);
  }
}

.brochure {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #111;
  color: var(--text);
}

.home-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: max(34px, env(safe-area-inset-top)) 20px max(36px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(8, 8, 9, 0.04), rgba(16, 16, 18, 0.86) 46%, #101012 62%),
    url("./assets/pearl-milk-bath-bg.webp") center top / 100% auto no-repeat,
    #101012;
}

.home-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: max(36px, calc(env(safe-area-inset-top) + 16px)) 0 24px;
}

.home-hero > *,
.section-heading,
.item-card,
.price-card,
.benefit-card,
.contact-card {
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}

.home-hero .home-kicker {
  --delay: 60ms;
}

.home-hero h1 {
  --delay: 150ms;
}

.home-hero p:not(.home-kicker) {
  --delay: 240ms;
}

.home-kicker,
.section-heading p {
  margin: 0;
  color: #f0d19a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 19rem;
  margin: 16px 0 0;
  font-size: 3.2rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero h1 span {
  display: block;
  word-break: keep-all;
}

.home-hero p:not(.home-kicker) {
  max-width: 21rem;
  margin: 18px 0 0;
  color: rgba(255, 246, 229, 0.86);
  font-size: 1.02rem;
  line-height: 1.65;
}

.home-section {
  margin-top: 26px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: 1.45rem;
  line-height: 1.18;
}

.item-grid {
  display: flex;
  gap: 12px;
  margin: 0 -20px;
  padding: 0 20px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.item-grid::-webkit-scrollbar {
  display: none;
}

.item-grid.is-float-hint {
  animation: floatHint 1.6s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both;
}

.item-card,
.price-card,
.benefit-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.item-card {
  position: relative;
  flex: 0 0 76%;
  min-height: 126px;
  max-width: 300px;
  border-radius: 18px;
  padding: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52)),
    var(--card-image) center / cover;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.item-card strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.18;
}

.item-card span {
  display: block;
  margin-top: 8px;
  color: color-mix(in srgb, var(--card-accent) 68%, #fff 32%);
  font-size: 0.82rem;
  font-weight: 800;
}

.item-card small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 246, 229, 0.7);
  font-size: 0.76rem;
  line-height: 1.45;
}

.item-card:active {
  transform: scale(0.98);
}

.price-list {
  display: grid;
  gap: 10px;
}

.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  border-radius: 18px;
  padding: 16px;
}

.price-card span {
  color: rgba(255, 246, 229, 0.88);
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 700;
}

.price-card strong {
  color: #f0d19a;
  font-size: 1.85rem;
  line-height: 1;
}

.benefit-grid {
  display: grid;
  gap: 10px;
}

.benefit-card {
  border-radius: 18px;
  padding: 16px;
}

.benefit-card strong {
  display: block;
  color: #f0d19a;
  font-size: 1rem;
}

.benefit-card p {
  margin: 9px 0 0;
  color: rgba(255, 246, 229, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-section {
  padding-bottom: 32px;
}

.contact-card {
  border-radius: 22px;
  padding: 18px;
}

.contact-card div + div {
  margin-top: 16px;
}

.contact-card span {
  display: block;
  color: #f0d19a;
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-card strong {
  display: block;
  margin-top: 6px;
  color: rgba(255, 250, 240, 0.92);
  font-size: 1rem;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.contact-actions a,
.contact-actions button {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 250, 240, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.items-bar {
  margin-top: 200px;
}

.detail-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111;
}

.is-hidden {
  display: none;
}

.back-button,
.package-button {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  z-index: 5;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 250, 240, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
  will-change: transform;
  backdrop-filter: blur(14px);
}

.back-button {
  left: 18px;
}

.package-button {
  right: 18px;
}

.package-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: end;
}

.package-overlay[hidden] {
  display: none;
}

.package-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  animation: backdropIn 220ms ease-out both;
}

.package-overlay.is-closing .package-backdrop {
  animation: backdropOut 220ms ease-in both;
}

.package-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  will-change: transform;
  max-height: min(72svh, 620px);
  overflow-y: auto;
  padding: 12px 20px max(24px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(160deg, rgba(32, 29, 25, 0.98), rgba(18, 18, 18, 0.96));
  box-shadow: 0 -26px 80px rgba(0, 0, 0, 0.46);
  animation: sheetUp 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.package-overlay.is-closing .package-sheet {
  animation: sheetDown 280ms cubic-bezier(0.64, 0, 0.78, 0) both;
}

.sheet-handle {
  width: 46px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sheet-heading p {
  margin: 0;
  color: #f0d19a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sheet-heading h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.sheet-close {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 250, 240, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
}

.sheet-price-list {
  display: grid;
  gap: 10px;
}

.sheet-price-list .price-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: none;
}

.sheet-note {
  margin: 16px 0 0;
  color: rgba(255, 246, 229, 0.66);
  font-size: 0.86rem;
  line-height: 1.55;
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes backdropOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes sheetUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheetDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

.slide .kicker,
.slide .title,
.slide .subtitle,
.slide .tag,
.slide .info-panel {
  opacity: 0;
}

.slide.is-current .kicker,
.slide.is-current .title,
.slide.is-current .subtitle,
.slide.is-current .tag,
.slide.is-current .info-panel {
  animation: fadeUp 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide.is-current .kicker {
  animation-delay: 80ms;
}

.slide.is-current .title {
  animation-delay: 160ms;
}

.slide.is-current .subtitle {
  animation-delay: 260ms;
}

.slide.is-current .tag {
  animation-name: fadeScale;
  animation-delay: calc(330ms + var(--tag-index, 0) * 70ms);
}

.slide.is-current .info-panel {
  animation-delay: 460ms;
}

.viewport,
.slides,
.slide {
  width: 100%;
  height: 100%;
}

.viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.slides {
  display: flex;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  isolation: isolate;
}

.slide-bg,
.slide-tint,
.slide-vignette {
  position: absolute;
  inset: 0;
}

.slide-bg {
  z-index: -3;
  background-image: var(--image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.slide-tint {
  z-index: -2;
  background:
    radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--accent) 48%, transparent), transparent 30%),
    linear-gradient(150deg, rgba(8, 8, 10, 0.76) 0%, rgba(8, 8, 10, 0.3) 48%, rgba(8, 8, 10, 0.72) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--deep) 58%, transparent), transparent 54%);
  mix-blend-mode: normal;
}

.slide-vignette {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 28%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 58%);
}

.slide-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  will-change: transform, opacity;
  padding: max(34px, env(safe-area-inset-top)) 26px max(88px, env(safe-area-inset-bottom));
}

.kicker {
  margin: 0 0 22px;
  color: color-mix(in srgb, var(--accent) 72%, #fff 28%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy {
  align-self: start;
  padding-top: 44px;
  max-width: 19rem;
}

.title {
  margin: 0;
  font-size: 3.65rem;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 800;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.title-line {
  display: block;
  word-break: keep-all;
}

.subtitle {
  margin: 20px 0 0;
  color: color-mix(in srgb, var(--accent) 64%, #fff 36%);
  font-size: 1.35rem;
  line-height: 1.34;
  font-weight: 650;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 250, 241, 0.92);
  font-size: 0.88rem;
  line-height: 1.05;
  backdrop-filter: blur(16px);
}

.info-panel {
  align-self: end;
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--paper-strong), rgba(255, 255, 255, 0.1));
  box-shadow: var(--shadow);
  will-change: transform;
  backdrop-filter: blur(22px);
}

.description {
  margin: 0;
  color: rgba(255, 250, 240, 0.93);
  font-size: 1.02rem;
  line-height: 1.72;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.meta-item {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.meta-label {
  color: color-mix(in srgb, var(--accent) 70%, #fff 30%);
  font-size: 0.82rem;
  font-weight: 800;
}

.meta-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.notice {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.76rem;
  line-height: 1.45;
}

.dots {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  will-change: transform;
  backdrop-filter: blur(12px);
}

.dot {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
}

.dot.is-active {
  width: 24px;
  background: color-mix(in srgb, var(--active-accent, #e9c38f) 76%, #fff 24%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }

  .slide .kicker,
  .slide .title,
  .slide .subtitle,
  .slide .tag,
  .slide .info-panel {
    opacity: 1;
  }
}

@media (max-width: 390px) {
  .home-view {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero h1 {
    font-size: 2.85rem;
  }

  .item-grid {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
    scroll-padding: 18px;
  }

  .item-card {
    flex-basis: 78%;
  }

  .slide-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy {
    padding-top: 32px;
    max-width: 17rem;
  }

  .title {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.15rem;
  }

  .info-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .description {
    font-size: 0.95rem;
  }
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    background: #09090b;
  }

  .brochure {
    width: min(430px, 100vw);
    height: min(932px, 100svh);
    min-height: 0;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  }
}
