/* MUGnet 1st Anniversary Special Page CSS
   Based on MUGnet Design Manual 
*/

/* 011: storyboard timeline loader */
#loading-overlay { display: none !important; }

.storyboard-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: #fff;
  color: #111;
  font-family: Arial, "Noto Sans JP", sans-serif;
  opacity: 1;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.storyboard-loader.loading-complete { visibility: hidden; opacity: 0; pointer-events: none; }
.storyboard-loader__intro,
.storyboard-loader__history,
.storyboard-loader__goal,
.storyboard-loader__logo { position: absolute; inset: 0; }

.storyboard-loader__intro { z-index: 4; display: grid; place-items: center; transition: opacity 0.35s ease; }
.storyboard-loader__intro-card { position: relative; width: min(420px, 76vw); padding: 1.25rem 1.5rem 1.35rem; text-align: center; }
.storyboard-loader__intro-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #111;
  border-radius: 32px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.52s cubic-bezier(0.65, 0, 0.35, 1);
}

.storyboard-loader__intro time,
.storyboard-loader__goal time { display: block; font-size: clamp(1rem, 2.1vw, 1.35rem); font-variant-numeric: tabular-nums; line-height: 1.25; }
.storyboard-loader__intro p { margin: 0.35rem 0 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; opacity: 0; transform: translateY(12px); transition: opacity 0.42s ease, transform 0.42s ease; }
.storyboard-loader__intro-line { position: absolute; top: calc(50% + min(88px, 12vw)); left: 50%; width: 3px; height: 54vh; background: #111; transform: translateX(-50%) scaleY(0); transform-origin: top; transition: transform 0.62s cubic-bezier(0.65, 0, 0.35, 1); }
.storyboard-loader.is-title .storyboard-loader__intro p { opacity: 1; transform: translateY(0); }
.storyboard-loader.is-framed .storyboard-loader__intro-card::after { clip-path: inset(0 0 0 0); }
.storyboard-loader.is-framed .storyboard-loader__intro-line { transform: translateX(-50%) scaleY(1); }
.storyboard-loader.is-history .storyboard-loader__intro { opacity: 0; }

.storyboard-loader__history { z-index: 2; overflow: hidden; opacity: 0; transition: opacity 0.25s ease; }
.storyboard-loader.is-history .storyboard-loader__history { opacity: 1; }
.storyboard-loader__track { position: absolute; top: 0; left: 0; width: 100%; height: 440vh; transform: translateY(38vh); }
.storyboard-loader.is-history .storyboard-loader__track { animation: storyboard-track-travel 6.1s linear forwards; }
.storyboard-loader__axis { position: absolute; top: 12vh; bottom: 25vh; left: 50%; width: 3px; background: #111; transform: translateX(-50%) scaleY(0); transform-origin: top; }
.storyboard-loader.is-history .storyboard-loader__axis { animation: storyboard-axis-draw 6.1s linear forwards; }
.storyboard-loader__events { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.storyboard-loader__events li { --position: 12vh; --delay: 0s; position: absolute; top: var(--position); left: 50%; box-sizing: border-box; width: min(380px, 34vw); min-height: 112px; padding: 1rem 1.15rem; border: 3px solid #111; border-radius: 30px; background: #fff; text-align: center; opacity: 0; }
.storyboard-loader__events li:nth-child(odd) { transform: translate(calc(-100% - 44px), -50%); }
.storyboard-loader__events li:nth-child(even) { transform: translate(44px, -50%); }
.storyboard-loader__events li::after { content: ""; position: absolute; top: 50%; width: 45px; height: 3px; background: #111; }
.storyboard-loader__events li:nth-child(odd)::after { right: -47px; }
.storyboard-loader__events li:nth-child(even)::after { left: -47px; }
.storyboard-loader__events time { display: block; margin-bottom: 0.25rem; font-size: clamp(0.72rem, 1.25vw, 0.95rem); font-variant-numeric: tabular-nums; }
.storyboard-loader__events strong { display: block; font-size: clamp(1rem, 2vw, 1.65rem); font-weight: 400; line-height: 1.25; }
.storyboard-loader__events li:nth-child(1) { --position: 12vh; --delay: 0s; }
.storyboard-loader__events li:nth-child(2) { --position: 43vh; --delay: 0.445s; }
.storyboard-loader__events li:nth-child(3) { --position: 74vh; --delay: 0.89s; }
.storyboard-loader__events li:nth-child(4) { --position: 105vh; --delay: 1.335s; }
.storyboard-loader__events li:nth-child(5) { --position: 136vh; --delay: 1.78s; }
.storyboard-loader__events li:nth-child(6) { --position: 167vh; --delay: 2.225s; }
.storyboard-loader__events li:nth-child(7) { --position: 198vh; --delay: 2.67s; }
.storyboard-loader__events li:nth-child(8) { --position: 229vh; --delay: 3.115s; }
.storyboard-loader__events li:nth-child(9) { --position: 260vh; --delay: 3.56s; }
.storyboard-loader__events li:nth-child(10) { --position: 291vh; --delay: 4.005s; }
.storyboard-loader__events li:nth-child(11) { --position: 322vh; --delay: 4.45s; }
.storyboard-loader__events li:nth-child(12) { --position: 353vh; --delay: 4.895s; }
.storyboard-loader__events li:nth-child(13) { --position: 384vh; --delay: 5.34s; }
.storyboard-loader__events li:nth-child(14) { --position: 415vh; --delay: 5.785s; }
.storyboard-loader.is-history .storyboard-loader__events li { animation: storyboard-event-in 0.5s var(--delay) ease forwards; }

.storyboard-loader__goal { z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(520px, 82vw); height: fit-content; min-height: 150px; margin: auto; padding: 1.35rem 1.5rem; border: 3px solid #111; border-radius: 34px; background: #fff; text-align: center; opacity: 0; transform: scale(0.72); }
.storyboard-loader__goal strong { display: block; margin-top: 0.35rem; font-size: clamp(2.15rem, 6vw, 4.5rem); font-weight: 400; line-height: 1.1; }
.storyboard-loader.is-finale .storyboard-loader__history { opacity: 0.1; filter: grayscale(1); transition: opacity 0.65s ease, filter 0.65s ease; }
.storyboard-loader.is-finale .storyboard-loader__goal { animation: storyboard-goal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.storyboard-loader.is-dimmed .storyboard-loader__goal { color: #8c8c8c; border-color: #8c8c8c; opacity: 0.5; transform: scale(1); animation: none; transition: color 0.45s ease, border-color 0.45s ease, opacity 0.45s ease; }
.storyboard-loader__logo { z-index: 8; display: grid; place-items: center; background: rgba(255, 255, 255, 0); opacity: 0; filter: grayscale(1); transform: scale(0.96); pointer-events: none; transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease, background-color 0.35s ease; }
.storyboard-loader__logo img { width: min(620px, 74vw); height: auto; }
.storyboard-loader.is-logo .storyboard-loader__goal { opacity: 0; animation: none; }
.storyboard-loader.is-logo .storyboard-loader__logo { background: #fff; opacity: 1; filter: grayscale(0); transform: scale(1); }

@keyframes storyboard-track-travel { from { transform: translateY(38vh); } to { transform: translateY(-365vh); } }
@keyframes storyboard-axis-draw { from { transform: translateX(-50%) scaleY(0); } to { transform: translateX(-50%) scaleY(1); } }
@keyframes storyboard-event-in { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
@keyframes storyboard-goal-in { 0% { opacity: 0; transform: scale(0.72); } 68% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

@media (max-width: 768px) {
  .storyboard-loader__intro-card { width: min(420px, 82vw); padding: 1rem 1.1rem 1.1rem; }
  .storyboard-loader__intro-card::after, .storyboard-loader__events li, .storyboard-loader__goal { border-width: 2px; border-radius: 24px; }
  .storyboard-loader__intro-line, .storyboard-loader__axis { width: 2px; }
  .storyboard-loader__events li::after { height: 2px; }
  .storyboard-loader__events li { width: min(41vw, 230px); min-height: 96px; padding: 0.75rem 0.6rem; }
  .storyboard-loader__events li:nth-child(odd) { transform: translate(calc(-100% - 18px), -50%); }
  .storyboard-loader__events li:nth-child(even) { transform: translate(18px, -50%); }
  .storyboard-loader__events li::after { width: 20px; }
  .storyboard-loader__events li:nth-child(odd)::after { right: -21px; }
  .storyboard-loader__events li:nth-child(even)::after { left: -21px; }
  .storyboard-loader__logo img { width: 82vw; }
}


/* 012: editorial density and styling */
.storyboard-loader {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px);
  background-size: 8vw 8vw;
}

.storyboard-loader__intro-card {
  width: min(460px, 78vw);
  padding: 1.4rem 1.75rem 1.55rem;
}

.storyboard-loader__intro-card::before {
  content: "MUGNET / CHRONICLE";
  position: absolute;
  top: -2rem;
  left: 50%;
  color: rgba(17, 17, 17, 0.46);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.storyboard-loader__intro-card::after {
  border-width: 1px;
  border-radius: 8px;
}

.storyboard-loader__intro time,
.storyboard-loader__goal time {
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  letter-spacing: 0.18em;
}

.storyboard-loader__intro p {
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 500;
  letter-spacing: 0.035em;
}

.storyboard-loader__intro-line,
.storyboard-loader__axis {
  width: 1px;
}

.storyboard-loader__history::before,
.storyboard-loader__history::after {
  position: absolute;
  z-index: 5;
  color: rgba(17, 17, 17, 0.46);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  pointer-events: none;
}

.storyboard-loader__history::before {
  content: "MUGNET / 2024—2026";
  top: 4vh;
  left: 4vw;
}

.storyboard-loader__history::after {
  content: "14 MOMENTS / 2 YEARS";
  right: 4vw;
  bottom: 4vh;
}

.storyboard-loader__track {
  --track-cruise: -104vh;
  --track-end: -131vh;
  height: 240vh;
  will-change: transform, filter;
}

.storyboard-loader__axis {
  bottom: 59vh;
  background: rgba(17, 17, 17, 0.7);
}

.storyboard-loader__events {
  counter-reset: moment;
}

.storyboard-loader__events li {
  counter-increment: moment;
  width: min(340px, 29vw);
  min-height: 58px;
  padding: 0.55rem 0.8rem 0.6rem;
  border: 1px solid rgba(17, 17, 17, 0.48);
  border-radius: 5px;
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.045);
}

.storyboard-loader__events li:nth-child(odd) {
  text-align: right;
}

.storyboard-loader__events li:nth-child(even) {
  text-align: left;
}

.storyboard-loader__events li::before {
  content: counter(moment, decimal-leading-zero);
  position: absolute;
  top: 50%;
  color: rgba(17, 17, 17, 0.34);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  transform: translateY(-50%);
}

.storyboard-loader__events li:nth-child(odd)::before { left: 0.9rem; }
.storyboard-loader__events li:nth-child(even)::before { right: 0.9rem; }
.storyboard-loader__events li::after { height: 1px; background: rgba(17, 17, 17, 0.7); }
.storyboard-loader__events time { margin-bottom: 0.2rem; color: rgba(17, 17, 17, 0.52); font-size: clamp(0.5rem, 0.65vw, 0.62rem); letter-spacing: 0.13em; }
.storyboard-loader__events strong { font-size: clamp(0.78rem, 1.15vw, 1.05rem); font-weight: 500; letter-spacing: 0.025em; }

.storyboard-loader__events li:nth-child(1) { --position: 12vh; --delay: 0s; }
.storyboard-loader__events li:nth-child(2) { --position: 25vh; --delay: 0.43s; }
.storyboard-loader__events li:nth-child(3) { --position: 38vh; --delay: 0.86s; }
.storyboard-loader__events li:nth-child(4) { --position: 51vh; --delay: 1.29s; }
.storyboard-loader__events li:nth-child(5) { --position: 64vh; --delay: 1.72s; }
.storyboard-loader__events li:nth-child(6) { --position: 77vh; --delay: 2.15s; }
.storyboard-loader__events li:nth-child(7) { --position: 90vh; --delay: 2.58s; }
.storyboard-loader__events li:nth-child(8) { --position: 103vh; --delay: 3.01s; }
.storyboard-loader__events li:nth-child(9) { --position: 116vh; --delay: 3.44s; }
.storyboard-loader__events li:nth-child(10) { --position: 129vh; --delay: 3.87s; }
.storyboard-loader__events li:nth-child(11) { --position: 142vh; --delay: 4.3s; }
.storyboard-loader__events li:nth-child(12) { --position: 155vh; --delay: 4.73s; }
.storyboard-loader__events li:nth-child(13) { --position: 168vh; --delay: 5.16s; }
.storyboard-loader__events li:nth-child(14) { --position: 181vh; --delay: 5.59s; }

.storyboard-loader.is-history .storyboard-loader__events li {
  animation-delay: 0s;
}

.storyboard-loader__goal {
  width: min(560px, 82vw);
  min-height: 130px;
  border-width: 1px;
  border-radius: 7px;
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.08);
}

.storyboard-loader__goal strong {
  font-size: clamp(2.3rem, 5.3vw, 4.1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@keyframes storyboard-track-travel {
  0% {
    filter: blur(0);
    transform: translateY(38vh);
    animation-timing-function: cubic-bezier(0.2, 0, 0.45, 1);
  }
  18% {
    filter: blur(0.15px);
    transform: translateY(32vh);
    animation-timing-function: cubic-bezier(0.45, 0, 0.75, 1);
  }
  72% {
    filter: blur(1.4px);
    transform: translateY(var(--track-cruise));
    animation-timing-function: cubic-bezier(0.12, 0.72, 0.22, 1);
  }
  100% {
    filter: blur(0);
    transform: translateY(var(--track-end));
  }
}

/* 017: storyboard ending — right stop, overlap, logo, page */
.storyboard-loader.is-finale .storyboard-loader__history {
  opacity: 1;
  filter: none;
}

.storyboard-loader.is-finale .storyboard-loader__axis {
  opacity: 1;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child {
  z-index: 9;
  width: min(340px, 29vw);
  min-height: 58px;
  padding: 0.55rem 0.8rem 0.6rem;
  border-color: rgba(17, 17, 17, 0.48);
  border-radius: 5px;
  color: #111;
  opacity: 1;
  transform: translate(44px, -50%);
  text-align: left;
  animation: none;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child::before {
  opacity: 0;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child::after {
  left: -47px;
  width: 45px;
  height: 1px;
  background: #111;
  opacity: 1;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child time {
  margin-bottom: 0.2rem;
  color: rgba(17, 17, 17, 0.52);
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child strong {
  font-size: clamp(0.78rem, 1.15vw, 1.05rem);
  font-weight: 500;
}

.storyboard-loader.is-dimmed .storyboard-loader__axis {
  background: #777;
  opacity: 1;
}

.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child {
  color: #777;
  border-color: #777;
  opacity: 1;
}

.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child::after {
  background: #777;
}

.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child time {
  color: #777;
}

.storyboard-loader.is-logo .storyboard-loader__history {
  opacity: 1;
}

.storyboard-loader.is-logo .storyboard-loader__axis {
  opacity: 0;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child {
  width: min(465px, 76vw);
  min-height: 170px;
  padding: 1.15rem 1.3rem 1.25rem;
  border-color: #aaa;
  border-radius: 5px;
  color: #999;
  transform: translate(-50%, -50%);
  text-align: center;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child::after {
  opacity: 0;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child time {
  margin-bottom: 0.32rem;
  color: #999;
  font-size: clamp(0.75rem, 1.05vw, 0.9rem);
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child strong {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
}

.storyboard-loader.is-logo .storyboard-loader__logo {
  background: transparent;
  opacity: 0.58;
  filter: grayscale(1);
  transform: scale(1);
}

.storyboard-loader.is-logo-settled .storyboard-loader__history {
  opacity: 0;
}

.storyboard-loader.is-logo-settled .storyboard-loader__logo {
  background: #fff;
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1);
}

.storyboard-loader.is-exiting .storyboard-loader__logo {
  background: #fff;
  opacity: 0.38;
  filter: grayscale(1);
  transform: scale(1);
  transition: opacity 0.55s ease, filter 0.55s ease;
}

@media (max-width: 768px) {
  .storyboard-loader.is-finale .storyboard-loader__events li:last-child {
    width: 42vw;
    min-height: 56px;
    padding: 0.48rem 0.5rem 0.52rem;
    transform: translate(12px, -50%);
  }

  .storyboard-loader.is-finale .storyboard-loader__events li:last-child::after {
    left: -14px;
    width: 13px;
  }

  .storyboard-loader.is-finale .storyboard-loader__events li:last-child time {
    font-size: 0.46rem;
  }

  .storyboard-loader.is-finale .storyboard-loader__events li:last-child strong {
    font-size: clamp(0.66rem, 3vw, 0.82rem);
  }

  .storyboard-loader.is-logo .storyboard-loader__events li:last-child {
    width: 78vw;
    min-height: 145px;
    padding: 1rem;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .storyboard-loader { background-size: 18vw 18vw; }
  .storyboard-loader__intro-card { width: 82vw; }
  .storyboard-loader__intro-card::after,
  .storyboard-loader__events li,
  .storyboard-loader__goal { border-width: 1px; border-radius: 5px; }
  .storyboard-loader__track {
    --track-cruise: -116vh;
    --track-end: -144vh;
    height: 250vh;
  }
  .storyboard-loader__axis { bottom: 56vh; }
  .storyboard-loader__events li { width: 42vw; min-height: 56px; padding: 0.48rem 0.5rem 0.52rem; }
  .storyboard-loader__events li:nth-child(odd) { transform: translate(calc(-100% - 12px), -50%); }
  .storyboard-loader__events li:nth-child(even) { transform: translate(12px, -50%); }
  .storyboard-loader__events li::after { width: 13px; }
  .storyboard-loader__events li:nth-child(odd)::after { right: -14px; }
  .storyboard-loader__events li:nth-child(even)::after { left: -14px; }
  .storyboard-loader__events li:nth-child(odd)::before { left: 0.5rem; }
  .storyboard-loader__events li:nth-child(even)::before { right: 0.5rem; }
  .storyboard-loader__events time { font-size: 0.46rem; letter-spacing: 0.07em; }
  .storyboard-loader__events strong { font-size: clamp(0.66rem, 3vw, 0.82rem); }
  .storyboard-loader__events li:nth-child(1) { --position: 12vh; }
  .storyboard-loader__events li:nth-child(2) { --position: 26vh; }
  .storyboard-loader__events li:nth-child(3) { --position: 40vh; }
  .storyboard-loader__events li:nth-child(4) { --position: 54vh; }
  .storyboard-loader__events li:nth-child(5) { --position: 68vh; }
  .storyboard-loader__events li:nth-child(6) { --position: 82vh; }
  .storyboard-loader__events li:nth-child(7) { --position: 96vh; }
  .storyboard-loader__events li:nth-child(8) { --position: 110vh; }
  .storyboard-loader__events li:nth-child(9) { --position: 124vh; }
  .storyboard-loader__events li:nth-child(10) { --position: 138vh; }
  .storyboard-loader__events li:nth-child(11) { --position: 152vh; }
  .storyboard-loader__events li:nth-child(12) { --position: 166vh; }
  .storyboard-loader__events li:nth-child(13) { --position: 180vh; }
  .storyboard-loader__events li:nth-child(14) { --position: 194vh; }
  .storyboard-loader__history::before { top: 2.5vh; left: 4vw; }
  .storyboard-loader__history::after { right: 4vw; bottom: 2.5vh; }
}

/* 年表ローディングアニメーション試作 */
.timeline-loader {
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}

.timeline-loader::before,
.timeline-loader::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 140vmax;
  height: 1px;
  background: rgba(26, 26, 26, 0.12);
  transform-origin: center;
  pointer-events: none;
}

.timeline-loader::before {
  transform: rotate(-23deg);
}

.timeline-loader::after {
  transform: rotate(23deg);
}

.legacy-loader-hooks {
  display: none;
}

.timeline-loader__rail {
  position: absolute;
  right: 5vw;
  bottom: 5vh;
  left: 5vw;
  z-index: 4;
  height: 1px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.18);
}

.timeline-loader__progress {
  display: block;
  width: 0;
  height: 100%;
  background: #1a1a1a;
  transition: width 0.36s cubic-bezier(0.65, 0, 0.35, 1);
}

.timeline-loader__counter {
  position: absolute;
  top: 5vh;
  right: 5vw;
  z-index: 4;
  font-family: Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.timeline-loader__stages,
.timeline-loader__stage,
.timeline-loader__finale {
  position: absolute;
  inset: 0;
}

.timeline-loader__stage {
  z-index: 2;
  display: grid;
  place-content: center;
  padding: 8vw;
  opacity: 0;
  text-align: center;
  pointer-events: none;
}

.timeline-loader__stage h2 {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 4.8rem);
  line-height: 1.25;
  letter-spacing: 0.09em;
}

.timeline-loader__stage h2::after {
  display: none;
}

.timeline-loader__date {
  position: relative;
  z-index: 2;
  margin: 0 0 0.75rem;
  font-family: Georgia, serif;
  font-size: clamp(0.72rem, 1.2vw, 1rem);
  letter-spacing: 0.24em;
}

.timeline-loader__year {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  color: rgba(26, 26, 26, 0.045);
  font-family: Georgia, serif;
  font-size: clamp(9rem, 26vw, 24rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.timeline-loader__line {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(72vw, 900px);
  height: 2px;
  background: #1a1a1a;
  transform: translate(-50%, -50%) rotate(-18deg) scaleX(0);
}

.timeline-loader__stage[data-direction="right"] .timeline-loader__line {
  transform: translate(-50%, -50%) rotate(18deg) scaleX(0);
}

.timeline-loader__stage.is-active {
  animation: timeline-stage-in 0.34s cubic-bezier(0.11, 0.605, 0.38, 1) both;
}

.timeline-loader__stage.is-active .timeline-loader__line {
  animation: timeline-line-in 0.34s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.timeline-loader__stage[data-direction="right"].is-active .timeline-loader__line {
  animation-name: timeline-line-in-right;
}

.timeline-loader__stage.is-leaving {
  animation: timeline-stage-out 0.22s cubic-bezier(0.785, 0.07, 0.95, 0.445) both;
}

.timeline-loader__stage[data-direction="right"].is-active {
  animation-name: timeline-stage-in-right;
}

.timeline-loader__stage[data-direction="right"].is-leaving {
  animation-name: timeline-stage-out-right;
}

.timeline-loader__finale {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 10vw;
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.timeline-loader__finale p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  letter-spacing: 0.28em;
}

.timeline-loader__finale img {
  width: min(620px, 78vw);
  height: auto;
}

.timeline-loader.is-finale .timeline-loader__finale {
  animation: timeline-finale 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes timeline-stage-in {
  from { opacity: 0; filter: blur(12px); transform: translate(-12vw, -8vh) scale(1.35) rotate(-2deg); }
  to { opacity: 1; filter: blur(0); transform: translate(0, 0) scale(1) rotate(0); }
}

@keyframes timeline-stage-in-right {
  from { opacity: 0; filter: blur(12px); transform: translate(12vw, 8vh) scale(1.35) rotate(2deg); }
  to { opacity: 1; filter: blur(0); transform: translate(0, 0) scale(1) rotate(0); }
}

@keyframes timeline-stage-out {
  from { opacity: 1; filter: blur(0); transform: translate(0, 0) scale(1); }
  to { opacity: 0; filter: blur(8px); transform: translate(10vw, 8vh) scale(0.72); }
}

@keyframes timeline-stage-out-right {
  from { opacity: 1; filter: blur(0); transform: translate(0, 0) scale(1); }
  to { opacity: 0; filter: blur(8px); transform: translate(-10vw, -8vh) scale(0.72); }
}

@keyframes timeline-line-in {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-18deg) scaleX(0); }
  to { opacity: 0.75; transform: translate(-50%, -50%) rotate(-18deg) scaleX(1); }
}

@keyframes timeline-line-in-right {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(18deg) scaleX(0); }
  to { opacity: 0.75; transform: translate(-50%, -50%) rotate(18deg) scaleX(1); }
}

@keyframes timeline-finale {
  from { opacity: 0; filter: blur(8px); transform: scale(1.08); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

@media (max-width: 768px) {
  .timeline-loader__stage {
    padding: 14vw 9vw;
  }

  .timeline-loader__stage h2 {
    font-size: clamp(1.55rem, 8vw, 2.4rem);
  }

  .timeline-loader__year {
    font-size: clamp(7rem, 42vw, 12rem);
  }

  .timeline-loader__line {
    width: 90vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.timeline-reduced-complete header {
    opacity: 1 !important;
    transform: none !important;
  }

  .timeline-loader__stage,
  .timeline-loader__rail,
  .timeline-loader__counter {
    display: none;
  }

  .timeline-loader.is-reduced .timeline-loader__finale {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

/* 線でつなぐ軌跡ローディング */
.timeline-loader::before,
.timeline-loader::after {
  display: none;
}

.trajectory-loader__eyebrow,
.trajectory-loader__status {
  position: absolute;
  z-index: 7;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.trajectory-loader__eyebrow {
  top: 5vh;
  left: 5vw;
}

.trajectory-loader__status {
  right: 5vw;
  bottom: 5vh;
  color: rgba(26, 26, 26, 0.55);
}

.trajectory-loader {
  position: absolute;
  inset: 8vh 3vw;
  z-index: 2;
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.trajectory-loader__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trajectory-loader__svg--mobile {
  display: none;
}

.trajectory-loader__guide,
.trajectory-loader__path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.trajectory-loader__guide {
  stroke: rgba(26, 26, 26, 0.1);
  stroke-width: 1;
  stroke-dasharray: 3 8;
}

.trajectory-loader__path {
  stroke: #1a1a1a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.timeline-loader.is-tracing .trajectory-loader__path {
  animation: trajectory-draw 3.25s cubic-bezier(0.45, 0, 0.3, 1) forwards;
}

.trajectory-loader__nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trajectory-loader__node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 3;
  width: 0;
  height: 0;
}

.trajectory-loader__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.14);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.trajectory-loader__label {
  position: absolute;
  left: 0;
  width: 160px;
  color: #1a1a1a;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, 18px);
}

.trajectory-loader__label b {
  display: block;
  margin-bottom: 0.18rem;
  font-family: Georgia, serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.trajectory-loader__node:nth-child(even) .trajectory-loader__label {
  transform: translate(-50%, calc(-100% - 18px));
}

.trajectory-loader__node.is-reached .trajectory-loader__dot {
  animation: trajectory-node-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.trajectory-loader__node.is-reached .trajectory-loader__label {
  animation: trajectory-label-in 0.45s 0.08s ease forwards;
}

.trajectory-loader__node--goal .trajectory-loader__dot {
  width: 16px;
  height: 16px;
  background: #1a1a1a;
}

.trajectory-loader__node--goal .trajectory-loader__label {
  right: 0;
  left: auto;
  text-align: right;
  transform: translate(0, calc(-100% - 18px));
}

.timeline-loader.is-finale .trajectory-loader {
  opacity: 0.12;
  filter: blur(2px);
  transform: scale(1.04);
}

.timeline-loader.is-finale .trajectory-loader__eyebrow,
.timeline-loader.is-finale .trajectory-loader__status {
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.trajectory-loader-finished header {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body.trajectory-loader-finished section.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.timeline-loader__finale {
  z-index: 8;
}

.timeline-loader__finale::before,
.timeline-loader__finale::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(26, 26, 26, 0.32);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.1);
}

.timeline-loader__finale::before {
  width: 20vmin;
  height: 20vmin;
}

.timeline-loader__finale::after {
  width: 34vmin;
  height: 34vmin;
}

.timeline-loader.is-finale .timeline-loader__finale {
  animation: trajectory-logo-bang 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.timeline-loader.is-finale .timeline-loader__finale::before {
  animation: trajectory-ring-bang 0.7s ease-out both;
}

.timeline-loader.is-finale .timeline-loader__finale::after {
  animation: trajectory-ring-bang 0.82s 0.06s ease-out both;
}

@keyframes trajectory-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes trajectory-node-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.2); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(1.55); box-shadow: 0 0 0 18px rgba(26, 26, 26, 0); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(26, 26, 26, 0); }
}

@keyframes trajectory-label-in {
  from { opacity: 0; filter: blur(5px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes trajectory-logo-bang {
  0% { opacity: 0; filter: blur(18px); transform: scale(0.18); }
  62% { opacity: 1; filter: blur(0); transform: scale(1.16); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes trajectory-ring-bang {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(5); }
}

@media (max-width: 768px) {
  .trajectory-loader {
    inset: 7vh 0;
  }

  .trajectory-loader__svg--desktop {
    display: none;
  }

  .trajectory-loader__svg--mobile {
    display: block;
  }

  .trajectory-loader__node {
    top: var(--my);
    left: 50%;
  }

  .trajectory-loader__label,
  .trajectory-loader__node:nth-child(even) .trajectory-loader__label {
    top: 0;
    left: auto;
    width: 138px;
    transform: translate(18px, -50%);
    text-align: left;
  }

  .trajectory-loader__node:nth-child(odd) .trajectory-loader__label {
    right: 18px;
    transform: translate(0, -50%);
    text-align: right;
  }

  .trajectory-loader__eyebrow {
    top: 3vh;
    left: 5vw;
  }

  .trajectory-loader__status {
    right: 5vw;
    bottom: 3vh;
  }

  .timeline-loader__finale img {
    width: 86vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trajectory-loader__path {
    stroke-dashoffset: 0;
  }

  .trajectory-loader__node .trajectory-loader__dot,
  .trajectory-loader__node .trajectory-loader__label {
    opacity: 1;
    filter: none;
    animation: none;
  }

  .trajectory-loader__node .trajectory-loader__dot {
    transform: translate(-50%, -50%) scale(1);
  }
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500&display=swap');

:root {
  /* カラー設定 */
  --background: #ffffff; /* ローディング画面の背景色（白のまま） */
  --main-background: #f9f9f9; /* メインサイトの背景色（少し灰色よりに） */
  --text: #1A1A1A;
  --text-secondary: #333333;
  --border: #e2e8f0;
  --hover-bg: #f7f7f7;
  --divider-position: 0%;
  --exit-position: 0%; /* 退場アニメーション用の変数 */
  --card-shadow: 0 2px 10px rgba(0,0,0,0.05);
  --transition-slow: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  --transition-normal: 0.3s ease;
}

/* ローディング中のbody固定 */
body.loading {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* ローディングアニメーション */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  /* フェードアウトではなくクリップパスを使用 */
  clip-path: inset(0 0 0 var(--exit-position));
  transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1); /* イージング効果を適用 */
}

.loading-container {
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.logo-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 30px;
  overflow: hidden;
}

/* 左側ロゴ（Anniversary） */
.logo-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: clip-path, opacity;
  clip-path: polygon(0% 0%, var(--divider-position, 0%) 0%, var(--divider-position, 0%) 100%, 0% 100%);
  opacity: 0; /* 初期状態では非表示 */
  transition: opacity 1s ease-in;
}

/* 右側ロゴ（MUGnet） */
.logo-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: clip-path, opacity;
  clip-path: polygon(var(--divider-position, 0%) 0%, 100% 0%, 100% 100%, var(--divider-position, 0%) 100%);
  opacity: 0; /* 初期状態では非表示 */
  transition: opacity 1s ease-in;
}

#mugnet-logo, #anniversary-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ロゴサイズと位置の個別調整 */
#mugnet-logo {
  transform: scale(0.95);
}

#anniversary-logo {
  transform: scale(0.95);
}

/* フェードインアニメーションクラス */
.fade-in {
  opacity: 1 !important;
}

/* ローディングアニメーション完了時のスタイル */
.loading-complete {
  /* opacityではなくclip-pathで右に消えていく */
  clip-path: inset(0 0 0 100%) !important;
  pointer-events: none;
}

/* ベース設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text);
  background-color: var(--main-background); /* メインサイトの背景色を変更 */
}

/* Journey to die 専用フォント設定 */
.georgia-font {
  font-family: 'Arial', serif !important;
  letter-spacing: 0.03em;
}

/* レイアウト構造 */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 25px;
  text-align: center;
}

/* コンテンツフェードイン用の初期状態 */
header {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section {
  margin: 140px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: 0.07em;

  line-height: 1.4;
  text-align: center;
}

h1 {
  font-size: 2.7rem;
  margin-bottom: 1.5rem;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-activity {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
}

.hero-activity + .hero-activity {
  border-left: 1px solid var(--border);
}

.hero-number {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.2;
}

.hero-label {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.hero-note {
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 40px;
  height: 1.5px;
  background-color: #000000;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

h2:hover:after {
  width: 60px;
}

/* Journey to die 特別セール見出しの赤い下線 */
#sale h2:after {
  background-color: #e53e3e;
}

h3 {
  font-size: 1.5rem;
  text-align: center;
}

p {
  margin-bottom: 1.8rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* リンクスタイル - 統一されたホバーアニメーション */
a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 1px;
}

a:hover {
  color: var(--text);
}

/* 統一された下線アニメーション（左から右へのスライドイン） */
a:not(.text-link):not(nav a):after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

a:not(.text-link):not(nav a):hover:after {
  width: 100%;
}

/* ナビゲーションメニュー改善 - よりスタイリッシュに */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
  padding: 0;
}

nav ul li {
  margin: 0 1rem;
  padding: 0.3rem 0;
}

/* ナビゲーションリンク特別スタイル */
nav ul li a {
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: none;
  color: var(--text);
}

/* 下線アニメーション */
nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

/* ボタン代替スタイル（テキストリンク） - ナビゲーションと同じアニメーション */
.text-link {
  display: inline-block;
  margin: 1.2rem 0.7rem;
  text-decoration: none;
  font-weight: 400;
  position: relative;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  transition: all 0.3s ease;
}

.text-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

.text-link:hover {
  transform: none;
  border: none;
  box-shadow: none;
}

.text-link:hover:after {
  width: 100%;
}

/* カードコンポーネント */
.card {
  background-color: white;
  border-radius: 8px;
  padding: 2.5rem;
  margin: 1.5rem auto;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  max-width: 700px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-align: center;
}


/* ヘッダーとフッター */
header {
  padding: 4rem 0 2rem;
  text-align: center;
}

footer {
  margin-top: 100px;
  padding: 3rem 0;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.5rem auto; /* 中央揃えのために左右のマージンをautoに設定 */
}

/* アーカイブカードグリッド */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 900px;
}

/* ifコンテンツスタイル */
.if-content {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.if-item {
  background-color: transparent;
  border-radius: 0;
  padding: 1rem 0;
  box-shadow: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.if-item:hover {
  transform: none;
  box-shadow: none;
  border-bottom: 1px solid var(--text);
}

.if-item h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
}

.if-item h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.if-item:hover h3:after {
  width: 100%;
}

.if-item p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.if-item .text-link {
  align-self: center;
  margin: 0;
}

/* ifセクション見出し */
.if-section-title {
  font-size: 1.8rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  text-align: center;
}

.if-section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 30px;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

/* タイムラインスタイル */
.timeline-container {
  position: relative;
  margin: 4rem 0 2rem;
  width: 100%;
}

.timeline-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 0;
  scrollbar-width: none; /* Firefox */
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.timeline-scroll::-webkit-scrollbar {
  display: none; /* Chromeなどで非表示 */
}

.timeline-item {
  flex: 0 0 300px;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  margin-right: 2rem;
  box-shadow: var(--card-shadow);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
}

.timeline-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.timeline-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.timeline-nav-left,
.timeline-nav-right {
  cursor: pointer;
  width: 45px;
  height: 45px;
  background-color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.timeline-nav-left:hover:not(.disabled),
.timeline-nav-right:hover:not(.disabled) {
  background-color: rgba(0,0,0,0.03);
}

.timeline-nav-left.disabled,
.timeline-nav-right.disabled {
  opacity: 0.3;
  cursor: default;
}

.product-layout {
  display: flex;
  flex-direction: column; /* 縦並びにする */
  align-items: center; /* 中央寄せ */
  gap: 40px; /* 画像とテキストの間のスペース */
  margin-top: 50px;
  background-color: #ffffff; /* カードの背景色 */
  border-radius: 8px; /* カードの角を丸くする */
  box-shadow: var(--card-shadow); /* カードの影 */
  padding: 30px; /* カードの内側の余白 */
  max-width: 400px; /* カードの最大幅 */
  margin-left: auto; /* 中央寄せ */
  margin-right: auto; /* 中央寄せ */
}

.product-image-container {
  flex-shrink: 0;
  width: 250px; /* マグカップ画像のサイズに合わせて調整 */
  height: 250px; /* マグカップ画像のサイズに合わせて調整 */
  overflow: hidden;
  border-radius: 8px; /* 角を丸くする */
  transition: transform var(--transition-normal);
  display: flex; /* 画像自体を中央寄せするため */
  justify-content: center; /* 画像自体を中央寄せするため */
  align-items: center; /* 画像自体を中央寄せするため */
}

.product-image-container:hover .product-image {
  transform: scale(1.05);
}

.product-image {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.product-details {
  flex-grow: 1;
  text-align: center; /* テキストを中央寄せ */
  max-width: 500px; /* テキストの最大幅を設定 */
}

/* クローズセクション特別スタイル */
#closing {
  padding: 5rem 0;
}

#closing p {
  font-size: 1.2rem;
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.07em;
}

/* セールセクションの背景色 */
#sale {
    background-color: #f9f9f9;
    padding: 60px 0; /* 上下のパディングを追加して見栄えを調整 */
}

.sale-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.sale-list .sale-banner {
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.sale-list .sale-image {
  width: 100%;
  height: 220px;
  min-height: 220px;
  order: -1;
  padding: 1.25rem;
}

.sale-list .sale-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sale-list .sale-content {
  padding: 1.5rem;
}

.sale-list .sale-content h3 {
  min-height: 3.5em;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.sale-list .sale-details {
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sale-list .sale-period h4,
.sale-list .sale-price h4 {
  font-size: 0.85rem;
}

.sale-list .sale-period p,
.sale-list .sale-price p {
  margin-bottom: 0;
}

.sale-list .special-link {
  align-self: stretch;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--text);
  text-align: center;
}

.sale-banner {
  display: flex;
  background-color: white;
  border-radius: 8px; /* MUGnetデザインマニュアルに合わせて8pxに調整 */
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 淡い影に変更 */
  margin: 3rem auto;
  max-width: 700px;
}

.sale-content {
  padding: 2.8rem; /* パディングを増やす */
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 縦方向の中央揃え */
}

.sale-content h3 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 1.2rem;
}

.sale-image {
  width: 40%;
  min-height: 300px; /* 高さを調整 */
  background-color: #f9f9f9; /* 背景色を追加 */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem; /* パディングを追加して余白を確保 */
}

.sale-product-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px; /* 角を少し丸める */
  filter: none;
  object-fit: cover; /* アスペクト比を維持 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 淡い影を追加 */
}

.sale-description {
  margin-bottom: 2rem;
  text-align: left;
}

.sale-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.sale-period, .sale-price {
  flex: 1;
}

.sale-period h4, .sale-price h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.original-price {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.discount-price {
  font-size: 1.5rem;
  font-weight: 400;
  color: #e53e3e;
  margin-right: 0.5rem;
}

.discount-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  background-color: #e53e3e;
  color: white;
  border-radius: 4px;
}

.special-link {
  margin-top: 1.5rem;
  display: inline-block;
}

.sale-link {
  font-weight: 400;
}

.sale-link:after {
  background-color: #e53e3e;
}

/* モバイル対応 */
@media (max-width: 768px) {
  /* モバイル表示時のカード共通スタイル */
  :root {
    --card-mobile-max-width: 350px;
    --card-mobile-padding: 25px;
    --card-mobile-image-size: 200px;
  }

  html, body {
    font-size: 15px; /* モバイルでの基本フォントサイズを微調整 */
  }

  .container {
    padding: 0 20px;
  }

  section {
    margin: 100px 0;
    text-align: center; /* モバイルでのセクション内テキストを中央揃えに統一 */
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-lead {
    margin-bottom: 2rem;
  }

  .hero-activity {
    padding: 1.2rem 0.5rem;
  }

  .hero-number {
    font-size: 1.9rem;
  }

  .hero-note {
    font-size: 0.78rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 5px;
  }

  .timeline-item {
    flex: 0 0 250px;
  }

  /* 記念グッズと楽曲配信のカードスタイルを統一 */
  .product-layout,
  .music-layout { /* 楽曲配信セクションも共通化されたスタイルにマージンautoを追加 */
    max-width: var(--card-mobile-max-width); /* 統一された横幅 */
    gap: 30px;
    padding: var(--card-mobile-padding); /* 統一されたパディング */
    margin: 0 auto; /* 中央揃えを追加 */
  }

  .product-image-container,
  .music-image-container {
    width: var(--card-mobile-image-size); /* 統一された画像サイズ */
    height: var(--card-mobile-image-size); /* 統一された画像サイズ */
  }

  .product-details {
    text-align: center; /* 記念グッズのテキストを中央揃えに */
    max-width: 100%; /* 親要素の幅に合わせる */
  }

  #closing p {
    font-size: 1.2rem;
  }

  .if-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .if-item {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
  }

  .if-item p {
    max-width: 100%;
  }

  .if-section-title {
    margin-top: 3rem;
    font-size: 1.8rem;
  }

  .sale-banner {
    flex-direction: column;
    max-width: var(--card-mobile-max-width); /* 統一された横幅 */
    margin: 0 auto; /* 中央揃えを追加 */
    padding: var(--card-mobile-padding); /* 統一されたパディング */
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    background-color: #ffffff;
  }

  .sale-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .sale-list .sale-banner {
    width: 100%;
    max-width: var(--card-mobile-max-width);
    margin: 0 auto;
    padding: 0;
  }

  .sale-list .sale-image {
    height: 220px;
    min-height: 220px;
    padding: 1.25rem;
  }

  .sale-list .sale-content {
    padding: 1.5rem;
  }

  .sale-list .sale-content h3 {
    min-height: auto;
  }

  .sale-list .sale-details {
    flex-direction: row;
    gap: 1rem;
  }

  .sale-content {
    width: 100%;
    order: 2;
    padding: 0;
    text-align: center; /* 特別セールコンテンツのテキストを中央揃えに */
  }

  .sale-content h3 { /* この行を追加 */
    text-align: center; /* h3タグのテキストを強制的に中央揃えにする */
  }

  .sale-details {
    flex-direction: column;
  }

  .sale-image {
    width: 100%;
    margin-bottom: 0;
    order: 1;
    min-height: var(--card-mobile-image-size); /* 統一された画像サイズ */
    padding: 0;
    box-shadow: none;
  }
  
  .music-layout {
    max-width: 350px; /* 横幅を350pxに統一 */
    gap: 30px;
    padding: 25px;
  }
  
  .music-image-container {
    width: 200px; /* 画像サイズを調整 */
    height: 200px; /* 画像サイズを調整 */
  }
  
  .music-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 4px;
    opacity: 0.8;
  }
  
  .music-image-container:hover .music-image {
    transform: scale(1.05);
    opacity: 1;
  }
  
  .music-details {
    flex-grow: 1;
    text-align: center; /* 楽曲配信のテキストを中央揃えに */
    max-width: 100%; /* 親要素の幅に合わせる */
  }

  /* モバイルでの改行を非表示にする */
  .mobile-hidden-br {
    display: none;
  }

  /* モバイルでのみ表示 */
  .pc-only {
    display: none;
  }

  .mobile-only {
    display: block; /* モバイルでのみ表示 */
  }
}

@media (min-width: 769px) {
  /* PC版での横長カード共通スタイル */
  .product-layout,
  section#music .music-layout { /* music-layoutにIDセレクタを追加し詳細度を上げる */
    display: flex; /* Flexboxを有効化 */
    max-width: 800px; /* 横長カードに適した幅に統一 */
    flex-direction: row; /* 横並びにする */
    justify-content: center; /* 中央寄せ */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 40px; /* 画像とテキストの間のスペース */
    padding: 40px; /* PC版でのパディングを統一 */
    margin-left: auto; /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
  }

  .product-image-container,
  section#music .music-image-container { /* music-image-containerにIDセレクタを追加 */
    width: 250px; /* PC版での画像サイズを統一 */
    height: 250px; /* PC版での画像サイズを統一 */
    flex: 0 0 250px; /* Flex-basisを明示的に指定して幅を固定 */
  }

  .product-details,
  section#music .music-details { /* music-detailsにIDセレクタを追加 */
    flex: 1 1 auto; /* 残りのスペースを占有 */
    text-align: left; /* テキストを左揃えに統一 */
    max-width: none; /* 幅の制限を解除 */
  }

  /* 特別セールセクションの調整 */
  .sale-content {
    /* PC版ではtext-align: left;を明示的に指定 */
    text-align: left;
  }
  
  /* PC版でのカード内のフォントサイズ調整 */
  .product-layout h3,
  section#music .music-layout h3,
  .sale-content h3 {
    font-size: 1.3rem; /* 既存のh3より少し小さく */
  }

  .product-layout p,
  section#music .music-layout p,
  .sale-content p {
    font-size: 0.95rem; /* 既存のpより少し小さく */
  }

  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* PCでのみ表示 */
  .pc-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}

/* カードのリンクスタイル統一 */
.card .text-link {
  display: block; /* ブロック要素として扱い、余分な余白をなくす */
  margin: 0; /* すべてのマージンをリセット */
  line-height: 1; /* 行の高さを詰める */
  padding: 0; /* すべてのパディングをリセット */
}

/* タイムラインアイテムのホバー効果調整 */
.timeline-item {
  flex: 0 0 300px;
  margin-right: 2.5rem;
  background-color: var(--background);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 1.8rem;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

/* タイムラインナビゲーションボタンのホバー効果 */
.timeline-nav-left,
.timeline-nav-right {
  cursor: pointer;
  width: 45px;
  height: 45px;
  background-color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.timeline-nav-left:hover:not(.disabled),
.timeline-nav-right:hover:not(.disabled) {
  background-color: rgba(0,0,0,0.03);
}

.timeline-nav-left.disabled,
.timeline-nav-right.disabled {
  opacity: 0.3;
  cursor: default;
}

/* 商品画像のホバー効果調整 */
.product-image-container {
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-image-container:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  transition: all 0.3s ease;
}

/* 楽曲配信セクションスタイル */
.music-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  background-color: #ffffff; /* カードの背景色 */
  border-radius: 8px; /* カードの角を丸くする */
  box-shadow: var(--card-shadow); /* カードの影 */
  padding: 30px; /* カードの内側の余白 */
  max-width: 400px; /* カードの最大幅 */
  margin-left: auto; /* 中央寄せ */
  margin-right: auto; /* 中央寄せ */
}

.music-image-container {
  flex-shrink: 0;
  width: 250px; /* 必要に応じて調整 */
  height: 250px; /* 必要に応じて調整 */
  overflow: hidden;
  border-radius: 8px; /* 角を丸くする */
  transition: transform var(--transition-normal);
  display: flex; /* Flexboxを有効にする */
  justify-content: center; /* 水平方向の中央寄せ */
  align-items: center; /* 垂直方向の中央寄せ */
}

.music-image-container:hover {
  transform: translateY(-5px);
}

.music-image {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 4px;
  opacity: 0.8;
}

.music-image-container:hover .music-image {
  transform: scale(1.05);
  opacity: 1;
}

.music-details {
  flex-grow: 1;
  text-align: left;
}

/* PC版でのみ表示 */
/* .pc-only { */ /* グローバル定義を削除 */
/*   display: block; */
/* } */

/* モバイル版でのみ表示 */
/* .mobile-only { */ /* グローバル定義を削除 */
/*   display: none; */
/* } */

.read-more-content {
    display: none;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

.story-details {
    position: relative;
}

.story-details .collapsible-content {
    max-height: 150px; /* 閉じているときに表示される高さ */
    opacity: 0.3; /* 初期状態では文字を薄く */
    overflow: hidden; /* はみ出したコンテンツを隠す */
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%); /* 下部をフェードアウト */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.story-details[open] .collapsible-content {
    max-height: 3000px; /* 開いた時に十分な高さを設定（コンテンツの最大高さを超える値） */
    opacity: 1; /* 開いた時に文字を濃く */
    -webkit-mask-image: none; /* 開いた時にマスクを解除 */
    mask-image: none;
}

.note-text {
    font-size: 0.8em;
    color: #888;
    margin: 0;
    line-height: 1;
    padding: 0;
    margin-top: +0.6em;
}

/* 015: one continuous first-to-last timeline */
.storyboard-loader__intro,
.storyboard-loader__goal {
  display: none !important;
}

.storyboard-loader__history {
  opacity: 1;
}

.storyboard-loader__history::before,
.storyboard-loader__history::after {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.storyboard-loader.is-history .storyboard-loader__history::before,
.storyboard-loader.is-history .storyboard-loader__history::after {
  opacity: 1;
}

.storyboard-loader__axis {
  opacity: 0;
  animation: none !important;
  transform: translateX(-50%) scaleY(1);
  transition: opacity 0.35s ease;
}

.storyboard-loader.is-history .storyboard-loader__axis {
  opacity: 1;
  animation: none !important;
  transform: translateX(-50%) scaleY(1);
}

.storyboard-loader__events li:first-child {
  z-index: 7;
  width: min(640px, 78vw);
  min-height: 180px;
  padding: 1.35rem 1.6rem 1.5rem;
  border-color: transparent;
  border-radius: 28px;
  opacity: 1;
  transform: translate(-50%, -50%);
  text-align: center;
  transition:
    width 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    min-height 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.42s ease,
    border-radius 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.storyboard-loader__events li:first-child::before {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.storyboard-loader__events li:first-child::after {
  top: 100%;
  right: auto;
  left: 50%;
  width: 1px;
  height: 56vh;
  background: #111;
  opacity: 1;
  transform: scaleY(0);
  transform-origin: top;
  transition:
    top 0.65s ease,
    right 0.65s ease,
    left 0.65s ease,
    width 0.65s ease,
    height 0.65s ease,
    transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

.storyboard-loader__events li:first-child time {
  margin-bottom: 0.55rem;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  transition: margin 0.65s ease, font-size 0.65s ease;
}

.storyboard-loader__events li:first-child strong {
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 400;
  opacity: 0;
  transition: font-size 0.65s ease, opacity 0.42s ease;
}

.storyboard-loader.is-title .storyboard-loader__events li:first-child strong {
  opacity: 1;
}

.storyboard-loader.is-framed .storyboard-loader__events li:first-child {
  width: min(420px, 68vw);
  min-height: 116px;
  padding: 1rem 1.2rem 1.1rem;
  border-color: #111;
  border-radius: 22px;
}

.storyboard-loader.is-framed .storyboard-loader__events li:first-child::after {
  transform: scaleY(1);
}

.storyboard-loader.is-framed .storyboard-loader__events li:first-child time {
  margin-bottom: 0.28rem;
  font-size: clamp(0.75rem, 1.15vw, 0.95rem);
}

.storyboard-loader.is-framed .storyboard-loader__events li:first-child strong {
  font-size: clamp(1.8rem, 3.7vw, 2.7rem);
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child {
  z-index: 3;
  width: min(340px, 29vw);
  min-height: 58px;
  padding: 0.55rem 0.8rem 0.6rem;
  border-color: rgba(17, 17, 17, 0.48);
  border-radius: 5px;
  opacity: 1;
  transform: translate(calc(-100% - 44px), -50%);
  text-align: right;
  animation: none;
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child::before {
  opacity: 1;
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child::after {
  top: 50%;
  right: -47px;
  left: auto;
  width: 45px;
  height: 1px;
  transform: scaleY(1);
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child time {
  margin-bottom: 0.2rem;
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child strong {
  font-size: clamp(0.78rem, 1.15vw, 1.05rem);
}

.storyboard-loader__events li:last-child,
.storyboard-loader__events li:last-child time,
.storyboard-loader__events li:last-child strong {
  transition:
    width 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    min-height 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    border-radius 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.45s ease,
    font-size 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease,
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.storyboard-loader.is-finale .storyboard-loader__history {
  opacity: 1;
  filter: none;
}

.storyboard-loader.is-finale .storyboard-loader__history::before,
.storyboard-loader.is-finale .storyboard-loader__history::after,
.storyboard-loader.is-finale .storyboard-loader__axis,
.storyboard-loader.is-finale .storyboard-loader__events li:not(:last-child) {
  opacity: 0;
}

.storyboard-loader.is-finale .storyboard-loader__events li:not(:last-child) {
  animation: none;
  transition: opacity 0.42s ease;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child {
  z-index: 9;
  width: min(560px, 82vw);
  min-height: 130px;
  padding: 1.2rem 1.4rem 1.3rem;
  border-color: #111;
  border-radius: 22px;
  opacity: 1;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: none;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child::before,
.storyboard-loader.is-finale .storyboard-loader__events li:last-child::after {
  opacity: 0;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child time {
  margin-bottom: 0.35rem;
  font-size: clamp(0.78rem, 1.2vw, 1rem);
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child strong {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 400;
}

.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child {
  color: #8c8c8c;
  border-color: #8c8c8c;
  opacity: 0.5;
}

.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child time {
  color: #8c8c8c;
}

.storyboard-loader.is-logo .storyboard-loader__history {
  opacity: 0;
}

@media (max-width: 768px) {
  .storyboard-loader__events li:first-child {
    width: 86vw;
    min-height: 150px;
    padding: 1.1rem;
  }

  .storyboard-loader.is-framed .storyboard-loader__events li:first-child {
    width: 76vw;
    min-height: 100px;
  }

  .storyboard-loader.is-history .storyboard-loader__events li:first-child {
    width: 42vw;
    min-height: 56px;
    padding: 0.48rem 0.5rem 0.52rem;
    transform: translate(calc(-100% - 12px), -50%);
  }

  .storyboard-loader.is-history .storyboard-loader__events li:first-child::after {
    right: -14px;
    width: 13px;
  }

  .storyboard-loader.is-history .storyboard-loader__events li:first-child time {
    font-size: 0.46rem;
  }

  .storyboard-loader.is-history .storyboard-loader__events li:first-child strong {
    font-size: clamp(0.66rem, 3vw, 0.82rem);
  }

  .storyboard-loader.is-finale .storyboard-loader__events li:last-child {
    width: 84vw;
    min-height: 112px;
    padding: 1rem;
  }
}

/* 016: keep vertical and horizontal connectors as separate 1px lines */
.storyboard-loader__axis {
  width: 1px;
  opacity: 1;
  animation: none !important;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.35s ease;
}

.storyboard-loader.is-framed .storyboard-loader__axis,
.storyboard-loader.is-history .storyboard-loader__axis {
  opacity: 1;
  animation: none !important;
  transform: translateX(-50%) scaleY(1);
}

.storyboard-loader__events li:first-child::after,
.storyboard-loader.is-framed .storyboard-loader__events li:first-child::after {
  top: 50%;
  right: -47px;
  left: auto;
  width: 45px;
  height: 1px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: opacity 0.2s ease, transform 0.42s cubic-bezier(0.65, 0, 0.35, 1);
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child::after {
  top: 50%;
  right: -47px;
  left: auto;
  width: 45px;
  height: 1px;
  opacity: 1;
  transform: scaleX(1);
}

.storyboard-loader.is-finale .storyboard-loader__axis {
  opacity: 0;
}

@media (max-width: 768px) {
  .storyboard-loader__events li:first-child::after,
  .storyboard-loader.is-framed .storyboard-loader__events li:first-child::after,
  .storyboard-loader.is-history .storyboard-loader__events li:first-child::after {
    right: -14px;
    width: 13px;
    height: 1px;
  }
}

/* 018: node-count-aware track end and final storyboard cascade */
.storyboard-loader__history::after {
  content: attr(data-moment-count) " MOMENTS / 2 YEARS";
}

.storyboard-loader__track {
  --track-end: var(--track-end-dynamic, -131vh);
  --track-cruise: var(--track-cruise-dynamic, -104vh);
}

.storyboard-loader__axis {
  bottom: var(--axis-bottom-dynamic, 59vh);
}

.storyboard-loader.is-finale .storyboard-loader__history {
  opacity: 1;
  filter: none;
}

.storyboard-loader.is-finale .storyboard-loader__history::before,
.storyboard-loader.is-finale .storyboard-loader__history::after,
.storyboard-loader.is-finale .storyboard-loader__events li:not(:last-child) {
  opacity: 0;
}

.storyboard-loader.is-finale .storyboard-loader__axis {
  background: #111;
  opacity: 1;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child {
  z-index: 9;
  width: min(340px, 29vw);
  min-height: 58px;
  padding: 0.55rem 0.8rem 0.6rem;
  border-color: rgba(17, 17, 17, 0.48);
  border-radius: 5px;
  color: #111;
  opacity: 1;
  transform: translate(44px, -50%);
  text-align: left;
  animation: none;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child::before {
  opacity: 0;
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child::after {
  top: 50%;
  right: auto;
  left: -47px;
  width: 45px;
  height: 1px;
  background: #111;
  opacity: 1;
  transform: scaleX(1);
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child time {
  margin-bottom: 0.2rem;
  color: rgba(17, 17, 17, 0.52);
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
}

.storyboard-loader.is-finale .storyboard-loader__events li:last-child strong {
  font-size: clamp(0.78rem, 1.15vw, 1.05rem);
  font-weight: 500;
}

.storyboard-loader.is-dimmed .storyboard-loader__axis {
  background: #777;
  opacity: 1;
}

.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child {
  color: #777;
  border-color: #777;
  opacity: 1;
}

.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child::after,
.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child time {
  color: #777;
  background: #777;
}

.storyboard-loader.is-logo .storyboard-loader__history {
  opacity: 1;
}

.storyboard-loader.is-logo .storyboard-loader__axis {
  opacity: 0;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child {
  width: min(465px, 76vw);
  min-height: 170px;
  padding: 1.15rem 1.3rem 1.25rem;
  border-color: #aaa;
  color: #999;
  transform: translate(-50%, -50%);
  text-align: center;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child::after {
  opacity: 0;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child time {
  margin-bottom: 0.32rem;
  color: #999;
  background: transparent;
  font-size: clamp(0.75rem, 1.05vw, 0.9rem);
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child strong {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
}

.storyboard-loader.is-logo .storyboard-loader__logo {
  background: transparent;
  opacity: 0.58;
  filter: grayscale(1);
  transform: scale(1);
}

.storyboard-loader.is-logo-settled .storyboard-loader__history {
  opacity: 0;
}

.storyboard-loader.is-logo-settled .storyboard-loader__logo {
  background: #fff;
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1);
}

.storyboard-loader.is-exiting .storyboard-loader__logo {
  background: #fff;
  opacity: 0.38;
  filter: grayscale(1);
  transform: scale(1);
  transition: opacity 0.55s ease, filter 0.55s ease;
}

@media (max-width: 768px) {
  .storyboard-loader__track {
    --track-end: var(--track-end-mobile-dynamic, -144vh);
    --track-cruise: var(--track-cruise-mobile-dynamic, -116vh);
  }


  .storyboard-loader__axis {
    bottom: var(--axis-bottom-mobile-dynamic, 56vh);
  }

  .storyboard-loader.is-finale .storyboard-loader__events li:last-child {
    width: 42vw;
    min-height: 56px;
    padding: 0.48rem 0.5rem 0.52rem;
    transform: translate(12px, -50%);
  }

  .storyboard-loader.is-finale .storyboard-loader__events li:last-child::after {
    left: -14px;
    width: 13px;
  }

  .storyboard-loader.is-finale .storyboard-loader__events li:last-child time {
    font-size: 0.46rem;
  }

  .storyboard-loader.is-finale .storyboard-loader__events li:last-child strong {
    font-size: clamp(0.66rem, 3vw, 0.82rem);
  }

  .storyboard-loader.is-logo .storyboard-loader__events li:last-child {
    width: 78vw;
    min-height: 145px;
    padding: 1rem;
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .storyboard-loader__intro, .storyboard-loader__history, .storyboard-loader__goal { display: none; }
  .storyboard-loader.is-reduced .storyboard-loader__logo { opacity: 1; animation: none; }
}

/* 020: centered endpoints, content crossfade, and blur-free travel */
.site-content {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body.trajectory-loader-finished .site-content {
  opacity: 1;
}

.storyboard-loader__track,
.storyboard-loader__events li {
  filter: none !important;
}

.storyboard-loader__track {
  will-change: transform;
}

.storyboard-loader__axis {
  top: calc(12vh + 29px);
  bottom: calc(var(--axis-bottom-dynamic, 59vh) + 29px);
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child,
.storyboard-loader.is-history .storyboard-loader__events li:last-child,
.storyboard-loader.is-finale .storyboard-loader__events li:last-child {
  left: 50%;
  width: min(340px, 29vw);
  min-height: 58px;
  padding: 0.55rem 0.8rem 0.6rem;
  border-color: rgba(17, 17, 17, 0.48);
  border-radius: 5px;
  color: #111;
  opacity: 1;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: none;
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child::before,
.storyboard-loader.is-history .storyboard-loader__events li:last-child::before,
.storyboard-loader.is-finale .storyboard-loader__events li:last-child::before,
.storyboard-loader.is-history .storyboard-loader__events li:first-child::after,
.storyboard-loader.is-history .storyboard-loader__events li:last-child::after,
.storyboard-loader.is-finale .storyboard-loader__events li:last-child::after {
  opacity: 0;
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child time,
.storyboard-loader.is-history .storyboard-loader__events li:last-child time,
.storyboard-loader.is-finale .storyboard-loader__events li:last-child time {
  margin-bottom: 0.2rem;
  color: rgba(17, 17, 17, 0.52);
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
}

.storyboard-loader.is-history .storyboard-loader__events li:first-child strong,
.storyboard-loader.is-history .storyboard-loader__events li:last-child strong,
.storyboard-loader.is-finale .storyboard-loader__events li:last-child strong {
  font-size: clamp(0.78rem, 1.15vw, 1.05rem);
  font-weight: 500;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child {
  width: min(465px, 76vw);
  min-height: 170px;
  padding: 1.15rem 1.3rem 1.25rem;
}

@media (max-width: 768px) {
  .storyboard-loader__axis {
    top: calc(12vh + 28px);
    bottom: calc(var(--axis-bottom-mobile-dynamic, 56vh) + 28px);
  }

  .storyboard-loader.is-history .storyboard-loader__events li:first-child,
  .storyboard-loader.is-history .storyboard-loader__events li:last-child,
  .storyboard-loader.is-finale .storyboard-loader__events li:last-child {
    width: 42vw;
    min-height: 56px;
    padding: 0.48rem 0.5rem 0.52rem;
    transform: translate(-50%, -50%);
  }

  .storyboard-loader.is-history .storyboard-loader__events li:first-child time,
  .storyboard-loader.is-history .storyboard-loader__events li:last-child time,
  .storyboard-loader.is-finale .storyboard-loader__events li:last-child time {
    font-size: 0.46rem;
  }

  .storyboard-loader.is-history .storyboard-loader__events li:first-child strong,
  .storyboard-loader.is-history .storyboard-loader__events li:last-child strong,
  .storyboard-loader.is-finale .storyboard-loader__events li:last-child strong {
    font-size: clamp(0.66rem, 3vw, 0.82rem);
  }

  .storyboard-loader.is-logo .storyboard-loader__events li:last-child {
    width: 78vw;
    min-height: 145px;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-content {
    transition-duration: 0.01ms;
  }
}

/* 021: one continuous velocity curve and a complete final-node expansion */
@keyframes storyboard-track-travel-continuous {
  from {
    transform: translateY(38vh);
  }
  to {
    transform: translateY(var(--track-end));
  }
}

.storyboard-loader.is-history .storyboard-loader__track {
  animation: storyboard-track-travel-continuous 4.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.storyboard-loader.is-finale .storyboard-loader__events li:not(:last-child) {
  opacity: 1;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child {
  width: min(465px, 76vw);
  min-height: 170px;
  padding: 1.15rem 1.3rem 1.25rem;
  border-color: #aaa;
  color: #999;
  transform: translate(-50%, -50%);
  text-align: center;
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child time {
  margin-bottom: 0.32rem;
  color: #999;
  font-size: clamp(0.75rem, 1.05vw, 0.9rem);
}

.storyboard-loader.is-logo .storyboard-loader__events li:last-child strong {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
}

@media (max-width: 768px) {
  .storyboard-loader.is-logo .storyboard-loader__events li:last-child {
    width: 78vw;
    min-height: 145px;
    padding: 1rem;
  }

  .storyboard-loader.is-logo .storyboard-loader__events li:last-child time {
    font-size: 0.72rem;
  }

  .storyboard-loader.is-logo .storyboard-loader__events li:last-child strong {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }
}

/* 023: clear the final card before revealing the anniversary mark */
.storyboard-loader.is-dimmed .storyboard-loader__events li:last-child time,
.storyboard-loader.is-logo .storyboard-loader__events li:last-child time {
  background: transparent !important;
}

.storyboard-loader.is-logo .storyboard-loader__logo {
  background: transparent;
  opacity: 0;
  filter: grayscale(1);
  transform: scale(0.96);
}

.storyboard-loader.is-node-cleared .storyboard-loader__events li:last-child {
  border-color: transparent;
}

.storyboard-loader.is-node-cleared .storyboard-loader__events li:last-child time,
.storyboard-loader.is-node-cleared .storyboard-loader__events li:last-child strong {
  opacity: 0;
}

.storyboard-loader.is-logo-mark .storyboard-loader__logo {
  background: transparent;
  opacity: 0.72;
  filter: grayscale(1);
  transform: scale(1);
}

.storyboard-loader.is-logo-settled .storyboard-loader__history {
  opacity: 0;
}

.storyboard-loader.is-logo-settled .storyboard-loader__logo {
  background: #fff;
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1);
}

.storyboard-loader.is-exiting .storyboard-loader__logo {
  opacity: 0.38;
  filter: grayscale(1);
}

/* 024: fade the supporting timeline as soon as the final node expands */
.storyboard-loader__events li:not(:last-child),
.storyboard-loader__history::before,
.storyboard-loader__history::after {
  transition: opacity 0.55s ease;
}

.storyboard-loader__axis {
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.55s ease;
}

.storyboard-loader.is-logo .storyboard-loader__events li:not(:last-child),
.storyboard-loader.is-logo .storyboard-loader__history::before,
.storyboard-loader.is-logo .storyboard-loader__history::after,
.storyboard-loader.is-logo .storyboard-loader__axis {
  opacity: 0;
}

/* 026: keep the opening title on one line while its card shrinks */
.storyboard-loader__events li:first-child strong {
  max-width: 100%;
  font-size: clamp(2.65rem, 7.8vw, 4.25rem);
  line-break: strict;
  word-break: keep-all;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .storyboard-loader__events li:first-child strong {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
