[CSS]nth-of-typeで最初・最後のn番目まで指定する方法

最初の2番目まで指定

.hoge:nth-of-type(-n+2) {

}

最後の3番目まで指定

.hoge:nth-of-type(n+3) {

}