@charset "utf-8";

/* ====================================
   開催ライセンス規約ページ (page-license.php)

   本文はWP固定ページのエディタで管理するため、テーマ標準の .entry-content
   スタイルにそのまま乗る。ただし style.css の .entry-content ol / ul は
   レポート記事用に青丸の番号バッジと「●」が付く指定になっていて条文の
   項・号には合わないので、ここで .license-page 配下だけ打ち消している。

   マークアップの想定:
     h2       … 条見出し（第1条（目的） など）
     p        … 条文（項が1つだけの条）
     ol > li  … 項  → 「1.」「2.」
     ol ol li … 号  → 「(1)」「(2)」
==================================== */

.license-page .entry-header,
.license-page .entry-content {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.license-page .entry-content {
	margin-top: 12px;
	margin-bottom: 48px;
}

/* --- 前文（当事者の定義）。h2より前に置かれる最初のp --- */
.license-page .entry-content > p:first-child {
	margin-bottom: 40px;
	padding-bottom: 24px;
	border-bottom: 1px solid #dfe4ec;
}

/* --- 条見出し --- */
.license-page .entry-content h2 {
	margin: 48px 0 16px;
	padding: 0;
	font-size: 20px;
	line-height: 1.5;
}

.license-page .entry-content p {
	margin: 0 0 16px;
}

/* --- 項（第1階層のol）: 「1.」 --- */
.license-page .entry-content ol {
	counter-reset: license-item;
	list-style: none;
	padding-left: 0;
	margin: 0 0 16px;
}

.license-page .entry-content ol li {
	position: relative;
	padding-left: 2.4em;
	margin-bottom: 12px;
	line-height: 2;
	text-align: justify;
	text-justify: inter-ideograph;
}

.license-page .entry-content ol li:last-child {
	margin-bottom: 0;
}

.license-page .entry-content ol li::before {
	content: counter(license-item) ".";
	counter-increment: license-item;
	position: absolute;
	left: 0;
	top: 0;
	/* 以下6行はテーマ標準の青丸バッジ（style.css）の打ち消し */
	width: 2em;
	height: auto;
	background: none;
	border-radius: 0;
	display: block;
	font-weight: normal;
	font-size: inherit;
	color: #013f8c;
	text-align: right;
	padding-right: 0.4em;
	line-height: 2;
}

/* --- 号（入れ子のol）: 「(1)」 --- */
.license-page .entry-content ol ol {
	counter-reset: license-subitem;
	margin: 12px 0 0;
}

.license-page .entry-content ol ol li {
	padding-left: 3em;
	margin-bottom: 8px;
}

.license-page .entry-content ol ol li::before {
	content: "(" counter(license-subitem) ")";
	counter-increment: license-subitem;
	width: 2.6em;
	color: #333;
}

/* --- 附則・改訂履歴・お問い合わせ --- */
.license-page .entry-content ul {
	list-style: none;
	padding-left: 0;
	margin: 0 0 16px;
}

.license-page .entry-content ul li {
	position: relative;
	padding-left: 1.2em;
	margin-bottom: 8px;
	line-height: 2;
}

.license-page .entry-content ul li::before {
	content: "・";
	position: absolute;
	left: 0;
	top: 0;
	/* テーマ標準の「●」（縮小・オフセット付き）の打ち消し */
	color: #013f8c;
	font-size: inherit;
}

.license-page .entry-content a {
	word-break: break-all;
	/* 色だけだとホバーするまでリンクと分からないため、常時下線を出す */
	text-decoration: underline;
}

@media screen and (max-width: 767px) {

	.license-page .entry-content h2 {
		margin: 36px 0 12px;
		font-size: 18px;
	}

	.license-page .entry-content ol li {
		padding-left: 2.2em;
	}

	.license-page .entry-content ol ol li {
		padding-left: 2.8em;
	}

}
