:root
{
	--Column-Size: 32em;	/* 行の高さ */
}

/*
●縦書きにする全体
*/
.縦書き
{
	margin: 0.5rem 0;
	border: none;
	padding: 0 0.5rem;
	width: calc(100% - 1rem);
	max-width: calc(100% - 1rem);
	height: var(--Column-Size);
	max-height: calc(100% - 1rem);
	writing-mode: vertical-rl;
	text-align: justify;
	text-justify: inter-character;
	columns: var(--Column-Size);
	column-gap: 1em;
	column-rule: 0.0625rem solid var(--Separator-Color);
	line-height: 2;
}
/*
●文書構造
*/
.縦書き > header,
.縦書き article > header,
.縦書き section > header,
.縦書き > main,
.縦書き article > main,
.縦書き section > main,
.縦書き > footer,
.縦書き article > footer,
.縦書き section > footer
{
	margin: 0;
	border: none;
	padding: 0;
}

.縦書き .題名
{
	margin: 0;
	border: none;
	padding: 2em 0 0 0;
	font-size: 1em;
	font-weight: bold;
}
.縦書き .著者
{
	margin: 0;
	border: none;
	padding: 0 0 1em 0;
	font-size: 1em;
	font-weight: normal;
	text-align: right;
}

.縦書き .大見出し
{
	margin: 0;
	border: none;
	padding: 3em 2em 0 2em;
	font-size: 1em;
	font-weight: normal;
}
.縦書き .中見出し
{
	margin: 0;
	border: none;
	padding: 5em 2em 0 2em;
	font-size: 1em;
	font-weight: normal;
}
.縦書き .小見出し
{
	margin: 0;
	border: none;
	padding: 7em 2em 0 2em;
	font-size: 1em;
	font-weight: normal;
}
/*
●本文の段落
*/
.縦書き > p,
.縦書き article > p,
.縦書き section > p
{
	margin: 0;
	border: none;
	padding: 0;
}
.縦書き .字下げ1
{
	display: block;
	margin: 0;
	border: none;
	padding-top: 1em;
}
.縦書き .字下げ2
{
	display: block;
	margin: 0;
	border: none;
	padding-top: 2em;
}
.縦書き .地付き2
{
	display: block;
	margin: 0;
	border: none;
	padding-bottom: 2em;
	text-align: right;
}
.縦書き .地付き5
{
	display: block;
	margin: 0;
	border: none;
	padding-bottom: 5em;
	text-align: right;
}

/*
●縦表示（一文字ずつ）
*/
.縦書き .n4,		/* 数字（4桁以上） */
.縦書き .latin		/* 英字 */
{
	-webkit-text-orientation: upright;
	text-orientation: upright;
}
/*
●縦表示（縦中横）
*/
.縦書き .n2,		/* 数字（3桁以下） */
.縦書き .latin2		/* 英字 */
{
	-webkit-text-combine-upright: all;
	-ms-text-combine-horizontal: all;
	text-combine-upright: all;
}
.縦書き .math,		/* 英数字（数学的なもの） */
.縦書き .horizontal	/* その他 */
{
	display: inline-block;
	writing-mode: horizontal-tb;
	line-height: 1;
}
/*
●傍点
*/
.縦書き em.sesameDot
{
	font-style: normal;
	-webkit-text-emphasis: sesame;
	text-emphasis: sesame;
}
