@charset "utf-8";
/* 京 */

body,p,div,h1,h2,h3,h4,h5,h6,ul,ol,dl,li,dt,dd,img,em,strong,blockquote,dfn,code,samp,pre,del,ins,table,th,td,figure {
	font-size: 100%;
	font-style: normal;
	font-weight: normal;
	text-decoration: none;
	text-indent: 0;
	white-space: normal;
	margin: 0;
	padding: 0;
	outline-style: none;
}

html {
	background-color: #ffffff;
}
body {
	margin: 0;
	color: #333333;
	counter-reset: note;
}
h1 + .passage {
	margin-top: 0;
}
p {
	line-height:1.2em;
	margin:1px 0;
}
table {
	margin:2px 0;
	border: 1px solid #333333;
	border-collapse: collapse;
}
th {
	padding: 3px;
	border: 1px solid #333333;
	text-align: left;
}
td {
	padding: 3px;
	border: 1px solid #333333;
	text-align: center;
}
table.exmp-surface {
	margin: 1.2em 0 3px 0;
	border: none;
	border-collapse: collapse;
}
table.exmp-surface th,
table.exmp-surface td {
	padding: 1px;
	border: none;
}
table.exmp-surfacenum {
	margin: 1em 0;
	border: none;
	border-collapse: collapse;
	border-collapse: separate;
	border-spacing: 2px 0;
}
table.exmp-surfacenum th,
table.exmp-surfacenum td {
	padding: 0 1px;
	border: none;
	text-align:left;
}
.head-row > th:first-child {
	font-weight: bold;
}
ul,ol {
	margin-left: 1.5em;
}
ul.notelist {
	list-style-type: none;
	margin-left: 0;
}
ul.notelist li {
	margin: 1em 0;
}
dt {
	margin-top: 1em;
	font-weight: bold;
}
dl:first-child dt {
	margin-top: 0.5em;
}
dt + dt {
	margin-top: 0.5em;
}
dd {
	margin-left: 1em;
}
dl.component dt {
	font-weight: normal;
	color: #006600;
}
dl.QnA {
	counter-reset: qna;
}
dl.QnA dt {
	counter-increment: qna;
}
dl.QnA dt:before {
	content: "Q"counter(qna)", ";
}
dl.QnA dd:before {
	content: "A, ";
}
pre {
	line-height:1.2em;
	white-space: pre;
	font-family: sans-selif;
	padding-left: 1em;
	padding-top: 2px;
	padding-bottom: 2px;
	margin-top: 2px;
	margin-bottom: 2px;
}
pre.exmp-descript {
	color: #006600;
	border-top: 1px dotted #7bb56b;
	border-bottom: 1px dotted #7bb56b;
}
pre.exmp-descript2 {
	color: #606060;
	border-top: 1px dotted #7bb56b;
	border-bottom: 1px dotted #7bb56b;
}
em {
	font-weight: bold;
	color: #006600;
}
em.filename {
	font-weight: normal;
}
strong {
	font-weight: bold;
	font-size: 105%;
	color: #006600;
}
figcaption {
	text-decoration: underline;
	text-align: center;
}
figcaption:before {
	content:"図: ";
}


a:link {
	color: #0000f0;
	text-decoration: none;
}
a:visited {
	color: #4040f0;
	text-decoration: none;
}
a:active {
	position:relative;
	top:1px;
	left:1px;
	color: #f00000;
	text-decoration: none;
}
a:hover {
	position:relative;
	top:1px;
	left:1px;
	color: #f00000;
	text-decoration: none;
}
a.note {
	font-size: 80%;
	vertical-align: super;
}
a.note:after {
	counter-increment: note;
	content: counter(note);
}


/* 枠: 画面の幅いっぱい（左右に 14px のすきまを残し、そこに枠の影を見せる）。左のサイドバーと本文が並ぶ（iframe は使わない） */
section.baseframe {
	border: 0;
	margin: 0 14px;
	background-color: #ffffff;
	box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.4);
}
section.body {
	display: flex;
	align-items: flex-start;
	padding-top: 20px;
	background-image: url(image/shade_h.png);
	background-repeat: repeat-x;
	background-position: left top;
}
nav.sidebar {
	box-sizing: border-box;
	flex: 0 0 280px;
	width: 280px;
	padding: 0 10px 1em 0;
	/* 画面に付いてくるフローティング。メニューが画面より長いときは、メニューの中だけを縦にスクロールする */
	position: sticky;
	top: 10px;
	max-height: calc(100vh - 20px);
	overflow-y: auto;
}
main {
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: 0;
	padding: 0 16px 1em 8px;
	counter-reset: chapter-h chapter-ex-h figure-pict;
}
main pre {
	overflow-x: auto;
}
main figure {
	margin: 0.5em auto;
	text-align: center;
}
main figure img {
	max-width: 100%;
	border: 1px dotted #7bb56b;
}
main figure.ordered.pict > figcaption:before {
	counter-increment: figure-pict;
	content: "図"counter(figure-pict)": ";
}
main > h1 {
	width: 100%;
	font-weight: bold;
	padding-bottom: 6px;
	border-bottom: 2px solid #7bb56b;
}
main > h1 + section {
	border: none;
}
main > section {
	border-top: 2px solid #7bb56b;
	margin-bottom: 1.5em;
	padding-top: 1em;
}
main > nav {
	margin-bottom: 1.5em;
}
main > nav ol {
	counter-reset: list-of-contents;
}
main > nav ol li {
	list-style-type: none;
	counter-increment: list-of-contents;
}
main > nav ol li:before {
	content: counters(list-of-contents, "-")", ";
}
main > nav ol.ex li:before {
	content: "EX"counters(list-of-contents, "-")", ";
}
main > section > h1 {
	font-weight: bold;
	margin: 0.2em 0;
}
main > section> section {
	border-left: 1px dotted #7bb56b;
}
main > section > section > h1 {
	font-weight: normal;
	margin: 0.5em 0;
	border-top: 1px solid #7bb56b;
	border-bottom: 3px double #7bb56b;
	padding: 3px;
}
main.toppage > section> section {
	border: none;
}
main.toppage > section > section > h1 {
	font-weight: bold;
	margin-top: 1em;
	padding: 0;
	border: none;
}
main > section.ordered {
	counter-reset: chapter-h-sub chapter-ex-h-sub;
}
main > section.ordered > h1:before {
	counter-increment: chapter-h;
	content: counter(chapter-h)", ";
}
main > section.ordered.ex > h1:before {
	counter-increment: chapter-ex-h;
	content: "EX"counter(chapter-ex-h)", ";
}
main > section.ordered > section >h1:before {
	counter-increment: chapter-h-sub;
	content: counter(chapter-h)"-"counter(chapter-h-sub)", ";
}
main > section.ordered.ex > section >h1:before {
	counter-increment: chapter-ex-h-sub;
	content: "EX"counter(chapter-ex-h)"-"counter(chapter-ex-h-sub)", ";
}
main > section > section h1 {
	margin-top: 1em;
}
main > section:first-child h1 {
	margin-top: 0;
}
main > section > section > .passage {
	margin-left: 1em;
}
main.toppage > section  h1:before {
	content: "【";
}
main.toppage > section  h1:after {
	content: "】"
}
main.toppage > section section.caution {
	background-color: #ffffcc;
	border: dashed 1px #ccaa00;
	width: 90%;
	margin: 0 auto;
	padding: 0.2em 1em;
	color: #000000;
}
main.toppage > section section.caution h1 {
	border-bottom: solid 3px #ccaa00;
	margin-bottom: 1em;
}
main.toppage > section section.caution h1:before {
	content: none;
}
main.toppage > section section.caution h1:after {
	content: none;
}
main.toppage > section section.caution table{
	margin:0.4em;
	border-color: #000000;
}
main.toppage > section section.caution table th{
	background-color: #ddddaa;
	font-weight: bold;
	text-align: left;
	vertical-align: middle;
}
main.toppage > section section.caution table td{
	text-align: left;
	vertical-align: middle;
}



.passage {
	margin-top: 1em;
	line-height: 1.2em;
}
.passage.hint,
.passage.note {
	border: 1px dashed #7bb56b;
	background-color: #d0ffa0;
	padding: 0.2em;
}
.passage:first-child {
	margin-top: 0;
}
.note > h1:first-child {
	margin-top: 0;
}
.directory {
	color: #808080;
}


/* 上の帯（旧 navigation.html。iframe をやめて頁に埋め込んだもの） */
/* タイトル画像（title.png。文字だけの透過画像なので、緑の地は帯の側で塗る）とボタン群を、1 行に左から並べる */
#navigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background-color: #94de84;
}
#navigation_top {
	flex: none;
	width: 281px;
	height: 55px;
	margin: 2px 12px 2px 6px;
	background: url(image/title.png) no-repeat left center;
}
#navigation_body {
	padding: 1px 3px;
	white-space: nowrap;
}
#navigation_body .menu {
	margin-top: 1px;
	list-style-type: none;
}


/* 左のメニュー（旧 sidemenu.html。iframe をやめて頁に埋め込んだもの。本文と同じ文字の大きさ） */
nav.sidebar h2 {
	margin: 0 5px 0.5em;
	padding-bottom: 6px;
	border-bottom: 2px solid #7bb56b;
	color: #646464;
	font-weight: bold;
}
nav.sidebar h2:before {
	content: url("image/icon_point.gif");
}
nav.sidebar p {
	margin: 0;
	line-height: normal;
}
nav.sidebar ul {
	margin-left: 2.2em;
	margin-bottom: 1.5em;
	list-style-type: none;
	list-style-image: url(image/icon_doc.png);
}
nav.sidebar ul ul {
	margin-left: 0;
	margin-bottom: 1em;
	list-style-image: none;
	list-style-type: disc;
}
nav.sidebar li {
	margin: 1px 0;
	overflow-wrap: anywhere;
}
nav.sidebar ul ul li {
	margin: 0.2em 0.5em 0 0;
	color: #94de84;
}
nav.sidebar ul.doctype-dev {
	list-style-image: url(image/icon_doc-r.png);
}
nav.sidebar ul.doctype-dev ul li {
	color: #de8494;
}
nav.sidebar ul.doctype-list {
	list-style-image: url(image/icon_doc-b.png);
}
nav.sidebar ul.doctype-list ul li {
	color: #9484de;
}
nav.sidebar ul.doctype-others {
	list-style-image: url(image/icon_doc-y.png);
}
nav.sidebar ul.doctype-others ul li {
	color: #dede84;
}
/* a の色は、リンクの文字（li の色はマーカーの色）。サイドバーの中ではマウスを載せても動かさない */
nav.sidebar a:active,
nav.sidebar a:hover {
	top: 0;
	left: 0;
}

/* 狭い画面では、サイドバーを本文の上に積む */
@media (max-width: 720px) {
	section.body {
		flex-direction: column;
	}
	nav.sidebar {
		flex-basis: auto;
		width: 100%;
		position: static;
		max-height: none;
		overflow-y: visible;
	}
	#navigation_body {
		flex-wrap: wrap;
	}
}
