Lorem ipsum dolor sit amet, consectetur adipisicing elit.Fuga reprehenderit architecto
<p class="gradient-text">Lorem ipsum dol.........nderit architecto</p>
.gradient-text {
font-size: 2rem;
font-weight: bold;
background: -webkit-linear-gradient(0deg, #0af, #6f0); /* colorより前に記述する */
color: #0af; /* 非対応のブラウザの為に色を設定 */
background-clip: text; /* テキストで切り抜く */
-webkit-text-fill-color: transparent; /* 切り抜いた部分は背景を表示 */
}
/*backgroundとtext-fill-colorにwebkitのプレフィックスが付いているが、
付いていないと、Edgeなどwebkit系以外のブラウザでも正しく表示されない… */