:has()を使って親要素内に存在する子要素を数えるCSSのサンプル Result See the Pen Counting child items with :has() by kachibito (@kachibito) on CodePen. かなり世間から遅れていて今...2022.09.06 | 10時03分04秒