/* Yume Spa — style
   Tokens: silk (page), night (hero/footer), gold (brand), petal (nails accent), ink (text) */
:root {
  --silk: #F8F4EC;
  --silk-deep: #EFE8DC;
  --night: #2B2434;
  --night-deep: #1F1A27;
  --gold: #C8A04A;
  --gold-deep: #8A6620;
  --gold-light: #E7D08A;
  --petal: #E9CFC6;
  --ink: #262129;
  --ink-soft: #5E5664;
  --line: rgba(138, 102, 32, .28);
  --display: "Cormorant Garamond", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Noto Sans", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --wrap: 1120px;
  --measure: 38rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--silk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.85;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.25; margin: 0; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--night); color: #fff; padding: .5rem .9rem; border-radius: 4px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(248, 244, 236, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.nav a:hover { color: var(--gold-deep); }
.lang { display: flex; gap: .25rem; margin-left: 1rem; }
.lang button {
  font: inherit; font-size: .8rem; line-height: 1;
  padding: .45rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
@media (max-width: 760px) {
  .nav { display: none; }
  .lang { margin-left: auto; gap: .2rem; }
  .lang button { font-size: .72rem; padding: .4rem .5rem; white-space: nowrap; }
  .brand { font-size: 1.15rem; }
  .top { gap: .5rem; padding-left: .9rem; padding-right: .9rem; }
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(120% 80% at 50% 0%, #3A3147 0%, var(--night) 55%, var(--night-deep) 100%);
  color: #F5EFE3;
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem clamp(4rem, 9vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 120vw; height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
  opacity: .9;
}
.hero-inner { max-width: 48rem; margin: 0 auto; }
.hero-butterfly {
  width: clamp(150px, 26vw, 240px); margin: 0 auto 1.75rem;
  filter: drop-shadow(0 18px 40px rgba(200, 160, 74, .28));
  animation: breathe 7s ease-in-out infinite;
  transform-origin: 50% 70%;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .hero-butterfly { animation: none; } }
.hero-kana { font-family: var(--display); color: var(--gold-light); letter-spacing: .35em; font-size: .95rem; margin-bottom: .75rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #FBF6EA; letter-spacing: .02em; text-wrap: balance; }
.hero-lead { max-width: 32rem; margin: 1.25rem auto .5rem; color: #D9D0C3; font-size: 1.05rem; }
.hero-open { color: var(--gold-light); font-family: var(--display); font-size: 1.25rem; letter-spacing: .08em; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--night-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(231, 208, 138, .55); color: #F5EFE3; }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #05b04b; }
.link { color: var(--gold-deep); }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.col-title h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); position: sticky; top: 5.5rem; }
.col-title h2::after { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gold); margin-top: .9rem; }
.col-body { max-width: var(--measure); }
.big { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.5; color: var(--ink); margin-bottom: 1.25rem; }
@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; gap: 1.25rem; }
  .col-title h2 { position: static; }
}

/* concept values */
.values { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.values li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; color: var(--gold-deep); }
.values span { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 480px) { .values li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- menu ---------- */
.menu { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.menu-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.note { color: var(--ink-soft); font-size: .92rem; max-width: 34rem; margin: 0; }
.note.small { font-size: .85rem; margin-top: 2.5rem; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 900px) { .menu-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.menu-card h3 { font-size: 1.6rem; color: var(--ink); display: flex; align-items: center; gap: .6rem; }
.menu-card h3 i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); display: inline-block; }
.menu-card.nails h3 i { background: var(--petal); }
.menu-card.facial h3 i { background: var(--gold-light); }
.menu-card .d { color: var(--ink-soft); font-size: .95rem; margin: .5rem 0 1.25rem; min-height: 4.4em; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: baseline; padding: .7rem 0; border-top: 1px dotted var(--line); }
.price-list li:last-child { border-bottom: 1px dotted var(--line); }
.price-list .n { grid-column: 1; grid-row: 1; font-size: .97rem; }
.price-list .t { grid-column: 1; grid-row: 2; color: var(--ink-soft); font-size: .82rem; }
.price-list .p { grid-column: 2; grid-row: 1 / span 2; font-family: var(--display); font-size: 1.3rem; color: var(--gold-deep); white-space: nowrap; }
.price-list .p small { font-family: var(--body); font-size: .75rem; color: var(--ink-soft); margin-right: .15rem; }

/* ---------- flow ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: .25rem 1rem; padding: 1rem 0 1.1rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--display); font-size: 1.9rem; color: var(--gold); line-height: 1; padding-top: .15rem; }
.steps strong { font-weight: 500; font-size: 1.1rem; }
.steps span { color: var(--ink-soft); font-size: .96rem; }

/* ---------- opening ---------- */
.opening { padding-top: 0; }
.opening-card {
  background: var(--night); color: #F5EFE3; border-radius: 18px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center;
  position: relative; overflow: hidden;
}
.opening-card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,160,74,.35), transparent 65%);
}
.opening-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--gold-light); grid-column: 1; }
.opening-card p { grid-column: 1; margin: 0; color: #D9D0C3; max-width: 34rem; }
.opening-card .btn { grid-column: 2; grid-row: 1 / span 2; position: relative; }
@media (max-width: 700px) { .opening-card { grid-template-columns: 1fr; } .opening-card .btn { grid-column: 1; grid-row: auto; justify-self: start; } }

/* ---------- access ---------- */
.info { margin: 0 0 1.5rem; }
.info div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.info div:last-child { border-bottom: 1px solid var(--line); }
.info dt { color: var(--ink-soft); font-size: .92rem; }
.info dd { margin: 0; }
.map { background: var(--silk-deep); border-radius: 14px; min-height: 220px; display: grid; place-items: center; color: var(--ink-soft); font-size: .92rem; text-align: center; padding: 1rem; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; }
@media (max-width: 480px) { .info div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- booking ---------- */
.booking { background: #fff; border-top: 1px solid var(--line); }
.contacts { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- faq ---------- */
details { border-top: 1px solid var(--line); padding: .25rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: .8rem 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-family: var(--display); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); font-size: .96rem; margin: 0 0 1rem; }

/* ---------- footer ---------- */
.foot { background: var(--night-deep); color: #B9B0A4; padding: 3.5rem 1.25rem 2.5rem; text-align: center; }
.foot-logo { margin: 0 auto 1.25rem; width: 110px; opacity: .95; }
.foot-tag { font-family: var(--display); color: var(--gold-light); font-size: 1.1rem; letter-spacing: .04em; }
.foot-legal { font-size: .85rem; margin: .25rem 0; }
.foot-legal.small { font-size: .78rem; opacity: .8; max-width: 36rem; margin: .5rem auto 0; }

/* ======================================================================
   2.5D layer: hero scene, gallery tilt cards, lightbox, reduced motion
   ====================================================================== */
.scene { position: relative; overflow: hidden; }
.layer { position: absolute; inset: -15% 0; pointer-events: none; }
.layer.depth-4 { position: relative; inset: auto; pointer-events: auto; }
.depth-0 { z-index: 0; background: radial-gradient(120% 80% at 50% 0%, #3A3147 0%, var(--night) 55%, var(--night-deep) 100%); }
.depth-1 { z-index: 1; }
.depth-1 .glow { position: absolute; left: 50%; top: 42%; width: 46vw; max-width: 620px; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,160,74,.32) 0%, rgba(200,160,74,.08) 45%, transparent 70%); filter: blur(28px); }
.depth-2 { z-index: 2; }
.companion { position: absolute; top: 38%; width: clamp(70px, 11vw, 150px); height: auto; opacity: .16; filter: blur(.6px); }
.companion-l { left: calc(50% - clamp(75px, 13vw, 120px) - clamp(110px, 14vw, 200px)); transform: rotate(-14deg); animation: floatL 11s ease-in-out infinite; }
.companion-r { right: calc(50% - clamp(75px, 13vw, 120px) - clamp(110px, 14vw, 200px)); transform: rotate(12deg); animation: floatR 13s ease-in-out infinite; }
@keyframes floatL { 0%,100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-14px); } }
@keyframes floatR { 0%,100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(16deg) translateY(-18px); } }
.hero-inner.depth-4 { z-index: 4; }
.hero-butterfly { position: relative; z-index: 3; }
.depth-5 { z-index: 5; }
.dust { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); opacity: .55; box-shadow: 0 0 10px 2px rgba(231,208,138,.35); animation: dust 9s ease-in-out infinite; }
.dust.d1 { left: 18%; top: 30%; animation-delay: 0s; }   .dust.d2 { left: 27%; top: 62%; width: 3px; height: 3px; animation-delay: -2s; }
.dust.d3 { left: 40%; top: 22%; width: 4px; height: 4px; animation-delay: -4s; } .dust.d4 { left: 58%; top: 70%; animation-delay: -1s; }
.dust.d5 { left: 66%; top: 28%; width: 3px; height: 3px; animation-delay: -6s; } .dust.d6 { left: 78%; top: 50%; animation-delay: -3s; }
.dust.d7 { left: 86%; top: 36%; width: 4px; height: 4px; animation-delay: -5s; } .dust.d8 { left: 12%; top: 76%; width: 3px; height: 3px; animation-delay: -7s; }
@keyframes dust { 0%,100% { transform: translate(0,0); opacity: .35; } 50% { transform: translate(8px,-22px); opacity: .8; } }
@media (max-width: 760px) { .companion { display: none; } .dust.d2, .dust.d5, .dust.d7 { display: none; } }

/* title reveal (clip-path, GPU safe) */
.reveal-title { clip-path: inset(0 0 0 0); }

/* word lighting */
[data-animate="words"] .w { display: inline-block; }

/* ---------- gallery ---------- */
.gallery { background: var(--silk); }
.gallery-groups { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.gallery-group h3 { font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.gallery-group h3 i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); display: inline-block; }
.tilt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); perspective: 1200px; }
@media (max-width: 760px) { .tilt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tilt-grid { grid-template-columns: 1fr 1fr; gap: .75rem; } }
.tilt { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 10px 30px rgba(43,36,52,.12); background: var(--silk-deep); border: 0; padding: 0; cursor: zoom-in; }
.tilt img { width: 100%; height: 100%; object-fit: cover; display: block; transform: translateZ(20px) scale(1.02); }
.tilt .shine { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 60%); opacity: 0; transition: opacity .25s; pointer-events: none; transform: translateZ(30px); }
.tilt:hover .shine, .tilt:focus-visible .shine { opacity: 1; }
.tilt.placeholder { cursor: default; display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-size: .85rem;
  background: linear-gradient(160deg, #F3ECDF 0%, #EADFCB 100%); outline: 1px dashed var(--line); outline-offset: -10px; }
.tilt.placeholder img { width: 38%; height: auto; opacity: .35; object-fit: contain; transform: translateZ(10px); margin-bottom: .5rem; }
.tilt.placeholder span { position: absolute; bottom: 12%; left: 0; right: 0; padding: 0 .75rem; }
.tilt .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .85rem .7rem; color: #fff; font-size: .82rem; background: linear-gradient(transparent, rgba(31,26,39,.75)); transform: translateZ(25px); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(31,26,39,.92); display: grid; place-items: center; padding: 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; font-size: 2rem; line-height: 1; background: none; border: 0; color: #F5EFE3; cursor: pointer; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 760px) { .tilt-grid .tilt.placeholder:nth-child(n+3) { display: none; } }

/* ---------- showcase: 2.5D character ---------- */
.showcase { background: #fff; border-top: 1px solid var(--line); }
.state-tabs { display: grid; gap: .5rem; margin-top: 1.25rem; }
.state-tabs button { all: unset; cursor: pointer; display: grid; gap: .1rem; padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.state-tabs button strong { font-family: var(--display); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.state-tabs button span { font-size: .9rem; color: var(--ink-soft); }
.state-tabs button:hover { border-color: var(--gold-deep); }
.state-tabs button[aria-selected="true"] { background: var(--silk); border-color: var(--gold); }
.state-tabs button[aria-selected="true"] strong { color: var(--gold-deep); }
.state-tabs button:focus-visible { outline: 2px solid var(--gold); }
.figure-wrap { max-width: none; perspective: 1400px; }
.figure-stage { transform-style: preserve-3d; transition: transform .35s ease; will-change: transform; }
.figure { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(43,36,52,.18)); }
.fg-layer { transform-box: fill-box; transform-origin: center; }
.fg-hairmass { transform-origin: 300px 140px; animation: hairSway 9s ease-in-out infinite; }
.fg-strand { stroke-dasharray: 6 8; animation: strandFlow 6s linear infinite; }
.fg-strand.s2 { animation-duration: 8s; } .fg-strand.s3 { animation-duration: 7s; }
.fg-butterfly { transform-origin: 431px 426px; animation: flap 1.6s ease-in-out infinite; }
.fg-spark { transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.fg-spark.k2 { animation-delay: -1s; } .fg-spark.k3 { animation-delay: -2s; } .fg-spark.k4 { animation-delay: -.5s; }
.fg-ring { transform-origin: 300px 330px; animation: spin 60s linear infinite; }
.fg-carehand { animation: knead 2.2s ease-in-out infinite; }
.fg-carehand.ch2 { animation-delay: -1.1s; }
@keyframes hairSway { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(1.4deg); } }
@keyframes strandFlow { to { stroke-dashoffset: -56; } }
@keyframes flap { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.72); } }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes knead { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 760px) { .figure { max-width: 420px; } .state-tabs { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; } .state-tabs button { padding: .6rem .6rem; } .state-tabs button span { display: none; } }
