/* SANYU CREATE — motion only (colours and layout stay as they are) */
.sc-opening { display: none; }
.js-motion .sc-opening {
  position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; background: #fff;
}
.sc-opening__name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 300;
  font-size: clamp(13px, 3.4vw, 18px); letter-spacing: .6em; padding-left: .6em; color: #111;
  opacity: 0; animation: scName 1.4s cubic-bezier(.22,.61,.36,1) .15s forwards;
}
.sc-opening__line { width: min(220px, 50vw); height: 1px; background: #e5e7eb; overflow: hidden; }
.sc-opening__line::after { content: ""; display: block; height: 100%; background: #111; transform: scaleX(0); transform-origin: left; animation: scLine 1.2s cubic-bezier(.22,.61,.36,1) .45s forwards; }
.sc-opening__sub { font-size: 10px; letter-spacing: .4em; padding-left: .4em; color: #9ca3af; text-transform: uppercase; opacity: 0; animation: scFade .9s ease .9s forwards; }
.sc-opening.is-done { animation: scOut .8s cubic-bezier(.22,.61,.36,1) forwards; }
.sc-opening.is-skip { display: none; }
@keyframes scName { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .6em; } }
@keyframes scLine { to { transform: scaleX(1); } }
@keyframes scFade { to { opacity: 1; } }
@keyframes scOut { to { opacity: 0; visibility: hidden; } }

/* scroll reveal */
.js-motion .sc-reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); transition-delay: var(--sc-d, 0s); }
.js-motion .sc-reveal.is-in { opacity: 1; transform: none; }
/* images: soft curtain */
.js-motion .sc-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.22,.61,.36,1); transition-delay: var(--sc-d, 0s); }
.js-motion .sc-img.is-in { clip-path: inset(0 0 0 0); }

/* switching pages / branches / tabs */
.page.active, .branch-content.active { animation: scSwap .6s cubic-bezier(.22,.61,.36,1); }
@keyframes scSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* header: thin shadow once you scroll */
header { transition: box-shadow .4s ease, background-color .4s ease; }
header.sc-scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.05); }

@media (prefers-reduced-motion: reduce) {
  .js-motion .sc-opening { display: none; }
  .js-motion .sc-reveal, .js-motion .sc-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .page.active, .branch-content.active { animation: none; }
}
