/* ==========================================================================
   Works wheel (index-option2.php only) — after "Works Wheel" by Crafter UI.
   Static by default (a simple grid). assets/js/works-wheel.js adds .is-live:
   the section becomes a tall scroll track with a pinned stage, the photos sit
   in a ring around a title, and scrolling opens the ring into a 3D drum.
   ========================================================================== */

.jh-ww { position: relative; background: #0d1f0e; color: #f3ede1; }

/* ---------- static fallback ---------- */
.jh-ww__stage { width: min(1180px, 100% - 2 * var(--jh-gutter, 48px)); margin-inline: auto; padding-bottom: clamp(80px, 12vh, 140px); }
.jh-ww__center, .jh-ww__now, .jh-ww__index, .jh-ww__hint { display: none; }
.jh-ww__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.jh-ww__card { margin: 0; padding: 0; }
.jh-ww__card::before { display: none; }
.jh-ww__card figure { margin: 0 0 12px; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; }
.jh-ww__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.jh-ww__k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #b5d29a; }
.jh-ww__t { display: block; margin-top: 4px; font-family: var(--jh-serif, "Cormorant Garamond"), Georgia, serif; font-size: 19px; font-weight: 600; line-height: 1.2; }
@media (max-width: 860px) { .jh-ww__cards { grid-template-columns: 1fr 1fr; } }

/* ---------- live wheel ---------- */
.jh-ww.is-live { height: 340vh; }
.jh-ww.is-live .jh-ww__stage {
  position: sticky; top: 0; overflow: hidden;
  width: 100%; height: 100vh; height: 100svh; padding: 0;
}
.jh-ww.is-live .jh-ww__cards { display: block; position: absolute; inset: 0; perspective: 1200px; }
.jh-ww.is-live .jh-ww__card {
  position: absolute; left: 50%; top: 52%;
  width: clamp(260px, min(40vw, (100vh - 230px) * 1.5), 620px);   /* front card size */
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.jh-ww.is-live .jh-ww__card figure {
  margin: 0; border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.jh-ww.is-live .jh-ww__k, .jh-ww.is-live .jh-ww__t { display: none; }

.jh-ww.is-live .jh-ww__center {
  display: block; position: absolute; left: 50%; top: 52%; translate: -50% -50%;
  margin: 0; text-align: center; pointer-events: none;
  font-family: var(--jh-serif, "Cormorant Garamond"), Georgia, serif; font-weight: 700;
  font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; color: #f8f3e8;
}
.jh-ww__center em { font-style: italic; font-weight: 500; color: #b5d29a; }

.jh-ww.is-live .jh-ww__now {
  display: block; position: absolute; left: var(--jh-gutter, 48px); top: 52%; translate: 0 -50%;
  max-width: 22vw; pointer-events: none;
  transition: opacity .25s ease;
}
.jh-ww__now-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #b5d29a; }
.jh-ww__now-t { display: block; margin-top: 10px; font-family: var(--jh-serif, "Cormorant Garamond"), Georgia, serif; font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; line-height: 1.1; }
.jh-ww__now.is-swap { opacity: 0; }

.jh-ww.is-live .jh-ww__index {
  display: block; position: absolute; right: var(--jh-gutter, 48px); top: calc(var(--jh-nav-space, 96px) + 24px);
  list-style: none; margin: 0; padding: 0; text-align: right;
}
.jh-ww__index li { margin: 0; padding: 0; }
.jh-ww__index li::before { display: none; }
.jh-ww__index button {
  margin: 0; padding: 3px 0; border: 0; background: none; cursor: pointer;
  font: 500 13px/1.4 var(--body-font-font-family, "adelle-sans"), sans-serif; color: rgba(243, 237, 225, .5);
  transition: color .25s ease;
}
.jh-ww__index button:hover { color: #f3ede1; }
.jh-ww__index button.is-on { color: #fff; font-weight: 700; }
.jh-ww__index button:focus-visible { outline: 2px solid #b5d29a; outline-offset: 3px; }

.jh-ww.is-live .jh-ww__hint {
  display: block; position: absolute; left: 50%; bottom: 26px; translate: -50% 0; margin: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 237, 225, .45);
}

@media (max-width: 760px) {
  .jh-ww.is-live .jh-ww__card { width: 86vw; top: 44%; }
  .jh-ww.is-live .jh-ww__center { top: 44%; }
  .jh-ww.is-live .jh-ww__now {
    left: 0; right: 0; top: auto; bottom: 0; translate: none; max-width: none; text-align: center; z-index: 30;
    padding: 40px 20px 32px; background: linear-gradient(to top, #0d1f0e 55%, rgba(13, 31, 14, 0));
  }
  .jh-ww.is-live .jh-ww__index, .jh-ww.is-live .jh-ww__hint { display: none; }
}
.jh-ww.is-live .jh-ww__hint { white-space: nowrap; }
