@charset "utf-8";

article {
	width: 36em;
	counter-reset: heading 0 item 0;
}
p {
	border: 1px dashed #ccc;
}
/* 見出しのナンバリング */
section h1::before {
	content: "Section" counter(heading) " ";
	counter-increment: heading;
}
section h1 {
	border-bottom: 1px solid #ccc;
}
/* olのナンバリング */
li {
	list-style-type: none;
}
section > ol > li::before {
	content: counter(item) ". ";
	counter-increment: item;
}
section > ol > li > ol {
	counter-reset: second 0;
}
section > ol > li > ol > li::before {
	content: counter(item) "." counter(second) ". ";
	counter-increment: second;
}
/* 第2レベルをアルファベットに */
section > ol.latin > li > ol {
	counter-reset: alphabet 0;
}
section > ol.latin > li > ol > li::before {
	content: counter(item) "." counter(alphabet, lower-latin) ". ";
	counter-increment: alphabet;
}