
/* Motion layer. Existing layout, content, prices and local image assets remain authoritative. */
:root {
  --motion-quick: 220ms;
  --motion-reveal: 720ms;
  --motion-ease: cubic-bezier(.2,.75,.2,1);
  --motion-distance: 24px;
  --motion-shadow: 0 18px 44px rgb(12 28 43 / .11);
}
.reading-progress {
  position: fixed; z-index: 1000; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--ice), var(--gold-light));
  transform-origin: left; transform: scaleX(var(--reading-progress, 0));
  pointer-events: none;
}
.header { transition: box-shadow var(--motion-quick) ease; }
.header.is-scrolled { box-shadow: 0 8px 30px rgb(5 15 24 / .16); }
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--ice); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--motion-ease);
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="location"]::after { transform: scaleX(1); }
.button, .header-cta, .guide-plan-action {
  transition: background-color var(--motion-quick) ease, color var(--motion-quick) ease,
    box-shadow var(--motion-quick) ease, transform var(--motion-quick) var(--motion-ease);
}
.button-arrow, .header-cta > span {
  transition: transform 300ms var(--motion-ease);
}
.button:hover .button-arrow, .button:focus-visible .button-arrow,
.header-cta:hover > span, .header-cta:focus-visible > span { transform: translate(3px,-3px); }
.motion-ready [data-motion] {
  transition: opacity var(--motion-reveal) ease, transform var(--motion-reveal) var(--motion-ease);
}
.motion-ready [data-motion]:not(.is-visible) { opacity: 0; transform: translateY(var(--motion-distance)); }
.motion-ready [data-motion]:focus-within { opacity: 1; transform: none; }
.motion-ready .hero-photo img {
  animation: ice-photo-arrive 2400ms var(--motion-ease) both;
}
.motion-ready .hero-content {
  animation: ice-title-arrive 1000ms var(--motion-ease) 100ms both;
}
.motion-ready .hero-shade::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 25%,rgb(185 239 248 / .12),transparent 60%);
  animation: ice-light-arrive 2200ms ease both;
  pointer-events: none;
}
.experience-main, .experience-detail { overflow: hidden; }
.experience-main img, .experience-detail img { transition: transform 900ms var(--motion-ease); }
.pass-card, .guide-plan {
  transition: transform 380ms var(--motion-ease), box-shadow 380ms var(--motion-ease), border-color 380ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .experience-main:hover img, .experience-detail:hover img { transform: scale(1.035); }
  .pass-card:hover, .guide-plan:hover {
    transform: translateY(-6px); box-shadow: var(--motion-shadow);
  }
  .button:hover, .header-cta:hover, .guide-plan-action:hover { box-shadow: 0 9px 28px rgb(9 35 49 / .18); }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-photo {
    transform: translate3d(0,var(--hero-shift,0px),0) scale(1.045);
  }
}
@keyframes ice-photo-arrive { from { transform: scale(1.055); } to { transform: scale(1); } }
@keyframes ice-title-arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ice-light-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
  :root { --motion-reveal: 560ms; --motion-distance: 16px; }
  .motion-ready .hero-photo img { animation-duration: 1600ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reading-progress { display: none; }
  .hero-photo, .hero-photo img, .hero-content, .hero-shade::after,
  [data-motion], .button, .button-arrow, .header-cta, .header-cta > span,
  .pass-card, .guide-plan, .guide-plan-action, .experience-main img, .experience-detail img,
  .desktop-nav a::after, .header {
    animation: none !important; transition: none !important; transform: none !important;
  }
  [data-motion] { opacity: 1 !important; }
}
@media print {
  .reading-progress { display: none; }
  [data-motion] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 480px) {
  .hero h1 .hero-second-phrase { display: block; white-space: nowrap; }
}

/* A single entrance sequence, then still. */
.hero-word { display: inline-block; }
.motion-ready .hero-content { animation: none; }
.motion-ready .hero-word { animation: ice-word-flow 900ms var(--motion-ease) both; }
.motion-ready .hero-word-1 { animation-delay: 150ms; }
.motion-ready .hero-word-2 { animation-delay: 530ms; }
.motion-ready .hero-word-3 { animation-delay: 910ms; }
.motion-ready .hero-eyebrow, .motion-ready .hero-intro, .motion-ready .hero-content > .button { animation: ice-title-arrive 800ms var(--motion-ease) both; }
.motion-ready .hero-intro { animation-delay: 1100ms; }
.motion-ready .hero-content > .button { animation-delay: 1300ms; }
.hero-skating { position:absolute; z-index:1; right:6%; bottom:245px; width:min(36%,460px); height:145px; pointer-events:none; }
.skater-glide { position:absolute; bottom:0; right:0; width:120px; height:120px; }
.skater-figure { position:relative; z-index:1; width:120px; height:120px; filter:drop-shadow(0 5px 12px rgb(0 13 25 / .35)); }
.skater-trail { position:absolute; bottom:1px; right:45px; width:160px; height:23px; border-bottom:1px solid rgb(185 239 248 / .8); border-radius:50%; transform:rotate(-7deg); opacity:.7; }
.motion-ready .skater-glide { animation:ice-skater-glide 7000ms ease-in-out infinite alternate; }
.motion-ready .skater-figure { animation:ice-skater-lean 7000ms ease-in-out infinite alternate; }
.motion-ready .skater-trail { animation:ice-skater-trail 3500ms ease-in-out infinite alternate; }
@keyframes ice-word-flow { from {opacity:0;transform:translate3d(-32px,12px,0);filter:blur(5px)} to {opacity:1;transform:none;filter:blur(0)} }
@keyframes ice-skater-glide { 0% {opacity:.95;transform:translate3d(-280px,22px,0)} 12% {opacity:.95} 55% {opacity:.95;transform:translate3d(-92px,-9px,0)} 100% {opacity:.95;transform:none} }
@keyframes ice-skater-lean { 0% {transform:rotate(-10deg)} 40% {transform:rotate(5deg)} 70% {transform:rotate(-3deg)} 100% {transform:none} }
@keyframes ice-skater-trail { 0%,15% {opacity:0;transform:scaleX(.2) rotate(-7deg)} 70% {opacity:.8} 100% {opacity:.35;transform:scaleX(1) rotate(-7deg)} }
@media (max-width:999px) {
 .hero-skating {right:7%;bottom:230px;width:30%;height:110px}
 .skater-glide,.skater-figure {width:100px;height:100px}
}
@media (max-width:640px) {
 .hero-skating {right:9%;bottom:210px;width:47%;height:88px}
 .skater-glide,.skater-figure {width:80px;height:80px}
 .skater-trail {width:95px;right:28px}
 @keyframes ice-skater-glide {0% {opacity:.95;transform:translate3d(-125px,14px,0)} 12% {opacity:.95} 55% {opacity:.95;transform:translate3d(-45px,-5px,0)} 100% {opacity:.95;transform:none}}
}
@media (prefers-reduced-motion:reduce) {
 .hero-word,.hero-eyebrow,.hero-intro,.hero-content > .button,.skater-glide,.skater-facing,.skater-figure,.skater-trail {animation:none !important;transition:none !important;filter:none !important}
 .hero-skating {display:none}
}
@media print {.hero-skating {display:none}}

.motion-ready .hero-content > .button:focus-visible {animation:none;opacity:1;transform:none;}

/* Subtle snow: transform-only particles, paused offscreen. */
.hero-snow { position:absolute; inset:0; overflow:hidden; z-index:1; pointer-events:none; }
.hero-snow > i {
 position:absolute; top:-16px; left:var(--snow-x); width:var(--snow-size); height:var(--snow-size);
 border-radius:50%; background:#fff; opacity:var(--snow-alpha);
 animation:hero-snow-fall var(--snow-duration) linear var(--snow-delay) infinite;
}
@keyframes hero-snow-fall {
 from { transform:translate3d(0,-12px,0); }
 to { transform:translate3d(var(--snow-drift),var(--snow-distance),0); }
}
.hero-snow.is-paused > i { animation-play-state:paused; }
@media(max-width:640px) {
 .hero-snow > i:nth-child(n+13) { display:none; }
 }
@media(prefers-reduced-motion:reduce) {
 .hero-snow {display:none!important;}
 .hero-snow > i {animation:none!important;}
}
@media print { .hero-snow {display:none;} }

/* Preserve the intended two-line mobile schedule heading. */
@media (max-width: 640px) {
 .schedule-heading h2 br { display: initial; }
}

/* Equal-sized mobile footer actions. */
.mobile-cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-cta a { box-sizing: border-box; min-width: 0; min-height: 48px; }

/* Original fine-line light skater replaces the filled pictogram. */
.skater-figure { filter:drop-shadow(0 0 4px rgb(185 239 248 / .55)) drop-shadow(0 0 14px rgb(102 207 232 / .28)); }
.skater-trail { border-color:rgb(207 248 255 / .75); box-shadow:0 2px 7px rgb(123 226 246 / .3); }

.skater-glide,.skater-figure {width:140px;height:140px;}
@media(max-width:999px){.skater-glide,.skater-figure {width:116px;height:116px;}}
@media(max-width:640px){.skater-glide,.skater-figure {width:104px;height:104px;}}

/* Official LINE links share the existing ice/navy visual language. */
.line-shortcuts {display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;margin-top:18px;}
.line-shortcuts a,.pass-line-secondary {display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-align:center;text-underline-offset:5px;}
.pass-line-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 24px;margin-top:24px;}
@media(max-width:640px){
 .line-shortcuts {display:grid;grid-template-columns:1fr;gap:4px;}
 .pass-line-actions {flex-direction:column;align-items:stretch;}
 .pass-line-actions .button {text-align:center;justify-content:center;}
}

.line-friend {text-align:center;margin-top:24px;}
.line-friend .button {justify-content:center;}
.line-friend p {margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.8;}
@media(max-width:640px){.line-friend .button {width:100%;box-sizing:border-box;}}

/* Compact visit information, shared across desktop and mobile. */
.visit-status {padding-top:24px;padding-bottom:0;}
.visit-status-inner {display:flex;align-items:center;gap:20px;border:1px solid var(--line);border-radius:6px;padding:22px 26px;background:#fffdf8;}
.visit-status-icon {flex:0 0 32px;width:32px;height:32px;color:#257385;}
.visit-status-copy {flex:1;min-width:0;}
.visit-status-copy h2 {font-family:var(--font-ja);font-size:20px;line-height:1.5;letter-spacing:.02em;font-weight:600;margin:0;}
.visit-status-copy p {font-size:14px;line-height:1.8;margin:5px 0 0;color:var(--muted);}
.visit-status-link {flex-shrink:0;min-height:48px;font-size:14px;gap:16px;padding:12px 20px;justify-content:center;}
@media(max-width:760px){
 .visit-status-inner {flex-wrap:wrap;gap:12px 16px;padding:20px;}
 .visit-status-copy {flex-basis:calc(100% - 48px);}
 .visit-status-copy h2 {font-size:18px;}
 .visit-status-link {width:100%;box-sizing:border-box;}
}

.visit-status-value {font-weight:600;}
.visit-status-updated {display:block;margin-top:5px;font-size:12px;line-height:1.7;color:var(--muted);}
.visit-status[data-congestion="CALM"] .visit-status-value,.visit-status[data-congestion="LIGHT"] .visit-status-value {color:#176254;}
.visit-status[data-congestion="MODERATE"] .visit-status-value,.visit-status[data-congestion="BUSY"] .visit-status-value {color:#805312;}
.visit-status[data-congestion="NEAR_FULL"] .visit-status-value,.visit-status[data-congestion="FULL"] .visit-status-value {color:#a23337;}

.aid-feature {display:grid;grid-template-columns:minmax(220px,.8fr) 1.2fr;align-items:center;gap:clamp(28px,5vw,72px);margin:40px 0;padding:32px;background:#edf7fa;border:1px solid #d6e9ee;border-radius:8px;}
.aid-feature-photo {margin:0;display:flex;align-items:center;justify-content:center;min-width:0;}
.aid-feature-photo img {display:block;width:100%;height:340px;object-fit:contain;object-position:center;}
.aid-feature-copy {min-width:0;}
.aid-feature-copy h3 {font-family:var(--font-serif);font-size:32px;line-height:1.5;margin:12px 0 18px;}
.aid-feature-copy h3 > span {display:block;font-family:var(--font-ja);font-size:16px;font-weight:500;letter-spacing:.06em;}
.aid-feature-copy .aid-feature-price {font-family:var(--font-en);font-size:38px;font-weight:500;line-height:1.5;color:var(--ink);margin:0 0 16px;}
.aid-feature-price > span {font-family:var(--font-ja);font-size:16px;font-weight:400;}
.aid-feature-copy > p:last-child {font-size:16px;line-height:1.9;color:var(--muted);}
@media(max-width:640px){
 .aid-feature {grid-template-columns:1fr;padding:24px 20px;gap:24px;margin:32px 0;}
 .aid-feature-photo img {height:270px;}
 .aid-feature-copy h3 {font-size:28px;}
 .aid-feature-copy .aid-feature-price {font-size:34px;}
 .aid-feature-copy > p:last-child {font-size:14px;}
}

/* Continue skating while the hero is visible; resume at the same position. */
.hero-skating.is-paused .skater-glide,.hero-skating.is-paused .skater-facing,.hero-skating.is-paused .skater-figure,.hero-skating.is-paused .skater-trail {animation-play-state:paused;}

/* Face the direction of travel: 7 seconds outward, then 7 seconds returning.
   A separate wrapper reflects the figure and its trail without overriding lean. */
.skater-facing {position:relative;display:block;width:100%;height:100%;transform-origin:50% 50%;}
.motion-ready .skater-facing {animation:ice-skater-facing 14000ms steps(1,end) infinite;}
@keyframes ice-skater-facing {0%{transform:scaleX(1)}50%{transform:scaleX(-1)}100%{transform:scaleX(1)}}

/* Mobile: reserve a clear lane below the hero CTA and above the dates. */
@media(max-width:640px){
 .hero{min-height:820px;}
 .hero-skating{bottom:190px;}
}
/* Place the shared price conditions immediately after the three price cards. */
.ticket-grid + .price-status{margin-top:24px;margin-bottom:28px;}
