/* スクロールで読み進める文章（Text Reveal）。画面に留まった文章が、スクロールした分だけ1語ずつ濃くなる。
   全体の高さは画面2つ分（200vh）で、そのあいだ文章は画面の上に貼り付く。 */
.tb-text-reveal {
  position: relative;
  z-index: 0;
  height: 200vh;
}
.tb-text-reveal__sticky {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  max-width: 56rem;
  height: 50%;
  margin: 0 auto;
  padding: 80px 16px;
  background: transparent;
}
.tb-text-reveal__text {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 20px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
  color: rgb(0 0 0 / .2);
}
.tb-text-reveal__word { position: relative; margin: 0 4px; }
.tb-text-reveal[data-ja] .tb-text-reveal__word { margin: 0; }
.tb-text-reveal__ghost { position: absolute; opacity: .3; }
.tb-text-reveal__fill { color: #000; opacity: 0; }
@media (min-width: 768px) { .tb-text-reveal__text { padding: 32px; font-size: 30px; } }
@media (min-width: 1024px) {
  .tb-text-reveal__text { padding: 40px; font-size: 36px; }
  .tb-text-reveal__word { margin: 0 6px; }
}
@media (min-width: 1280px) { .tb-text-reveal__text { font-size: 48px; } }
/* 動きを減らす設定では、最初から全部読める状態で普通に並べる */
@media (prefers-reduced-motion: reduce) {
  .tb-text-reveal { height: auto; }
  .tb-text-reveal__sticky { position: static; height: auto; }
  .tb-text-reveal__fill { opacity: 1 !important; }
}
