/* 光が横切る文字（Animated Shiny Text）。薄い文字色の上を、幅 --tb-shiny-width の光が8秒ごとに横切る。 */
.tb-shiny-text {
  --tb-shiny-width: 100px;
  --tb-shiny-color: rgba(0, 0, 0, 0.8);
  max-width: 28rem;
  margin-inline: auto;
  color: rgba(82, 82, 82, 0.7);
  background-image: linear-gradient(to right, transparent, var(--tb-shiny-color) 50%, transparent);
  background-size: var(--tb-shiny-width) 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tb-shiny-text 8s infinite;
}
@keyframes tb-shiny-text {
  0%, 90%, 100% { background-position: calc(-100% - var(--tb-shiny-width)) 0; }
  30%, 60% { background-position: calc(100% + var(--tb-shiny-width)) 0; }
}
/* 暗い背景では光を白に。 */
.tb-shiny-text[data-theme="dark"] { color: rgba(163, 163, 163, 0.7); --tb-shiny-color: rgba(255, 255, 255, 0.8); }
@media (prefers-reduced-motion: reduce) {
  .tb-shiny-text { animation: none; background-image: none; }
}
