/* ===================================================
   リスト ol の順番を途中から始める
   数値は記事・CodePen と同じ。変えたのは色だけ（6 色に）。
   1つずつ、番号のところからコピーして使えます。
   =================================================== */

/* ---------- 見本の箱（マスに収めるための指定。コピーしなくても同じ形になります） ---------- */
.items { grid-template-columns: 1fr; }
.items > li ol {
  margin: 0;
}
/* ol が 3 つのマスは横にならべる */
.items > li:has(ol + ol) {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  align-content: center;
  gap: 16px 24px;
}

/* ---------- 01 start 属性を使ってみる ---------- */


/* ---------- 02 value 属性を使ってみる ---------- */


/* ---------- 03 reversed 属性で順番を逆に並べる ---------- */


/* ---------- 04 CSS でもできたりする ---------- */
ol.totyuu {
  counter-reset: item 2;
  padding-left: 0;
}
ol.totyuu li {
  display: block;
  text-indent: -1.2em;
  padding-left: 1.2em;
}
ol.totyuu li:before {
  content: counter(item) ". ";
  counter-increment: item;
}

/* ---------- 05 いまの書き方：番号の見た目を ::marker で ---------- */
ol.marker_now li::marker {
  color: #6b675f;
  font-weight: bold;
}

/* ---------- 06 いまの書き方：@counter-style で「第3章」 ---------- */
@counter-style dai {
  system: extends decimal;
  prefix: "第";
  suffix: "章　";
}
ol.dai_now {
  list-style: dai;
  padding-left: 4em;
}
