@charset "utf-8";
/* 旧版の CSS（base.css / list.css）に無い、新しい原稿のための補い。旧版の配色に合わせる */

/* コードブロック（Pygments） */
.highlight { margin: 2px 0; background: transparent; }
.highlight pre { margin: 0; background: transparent; line-height: 1.2em; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; }
/* Pygments の太字（さくらスクリプトのタグなど）の中の日本語は、フォント（BIZ UDGothic など）に太字の面が無いと、ブラウザが字を重ね描きして潰れる（擬似太字）。太字の面があるもの（Consolas の英数字）だけ太字にする */
.highlight pre { font-synthesis-weight: none; }
.highlight pre code { white-space: inherit; }
code, kbd, samp, .highlight pre, .highlight pre code, pre code { font-family: Consolas, "Courier New", "BIZ UDGothic", monospace; font-size: 13px; }
main .highlight pre, .category .highlight pre, .caption .highlight pre { padding: 5px; }
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #f8f8f8; }
.highlight .c { color: #3D7B7B; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #F00 } /* Error */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
.highlight .o { color: #666 } /* Operator */
.highlight .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #9C6500 } /* Comment.Preproc */
.highlight .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */
.highlight .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
.highlight .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #E40000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #008400 } /* Generic.Inserted */
.highlight .go { color: #717171 } /* Generic.Output */
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #04D } /* Generic.Traceback */
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #B00040 } /* Keyword.Type */
.highlight .m { color: #666 } /* Literal.Number */
.highlight .s { color: #BA2121 } /* Literal.String */
.highlight .na { color: #687822 } /* Name.Attribute */
.highlight .nb { color: #008000 } /* Name.Builtin */
.highlight .nc { color: #00F; font-weight: bold } /* Name.Class */
.highlight .no { color: #800 } /* Name.Constant */
.highlight .nd { color: #A2F } /* Name.Decorator */
.highlight .ni { color: #717171; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #00F } /* Name.Function */
.highlight .nl { color: #767600 } /* Name.Label */
.highlight .nn { color: #00F; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #19177C } /* Name.Variable */
.highlight .ow { color: #A2F; font-weight: bold } /* Operator.Word */
.highlight .w { color: #BBB } /* Text.Whitespace */
.highlight .mb { color: #666 } /* Literal.Number.Bin */
.highlight .mf { color: #666 } /* Literal.Number.Float */
.highlight .mh { color: #666 } /* Literal.Number.Hex */
.highlight .mi { color: #666 } /* Literal.Number.Integer */
.highlight .mo { color: #666 } /* Literal.Number.Oct */
.highlight .sa { color: #BA2121 } /* Literal.String.Affix */
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
.highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
.highlight .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
.highlight .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */
.highlight .sx { color: #008000 } /* Literal.String.Other */
.highlight .sr { color: #A45A77 } /* Literal.String.Regex */
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #00F } /* Name.Function.Magic */
.highlight .vc { color: #19177C } /* Name.Variable.Class */
.highlight .vg { color: #19177C } /* Name.Variable.Global */
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
.highlight .vm { color: #19177C } /* Name.Variable.Magic */
.highlight .il { color: #666 } /* Literal.Number.Integer.Long */
/* さくらスクリプトの記述例: タグと環境変数を、色だけでなく背景でも目立たせる
   （.highlight pre は font-synthesis-weight: none なので、日本語を含むタグは太字に頼れない） */
.highlight.language-ss .nt, .highlight.language-sakurascript .nt {
  color: #0a3d91; background-color: #dbe8fb; border-radius: 3px; padding: 0 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.highlight.language-ss .vg, .highlight.language-sakurascript .vg {
  color: #8a1c7c; background-color: #f6e1f3; border-radius: 3px; padding: 0 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* list / spec の頁を、画面の幅いっぱいに広げる（旧版は 25% + 65% + 余白で、右に 8% ほど余っていた）。
   左端の余白 20px に合わせて、右端も 20px 残す。左のナビゲーション 25% の残りを本文にする */
.menu-header { width: auto; }
.categories { width: calc(75% - 64px); }
/* 左のナビゲーションは、画面に付いてくるフローティング（長いときはその中だけを縦にスクロール）。
   本文もナビゲーションもフロートで body の高さに入らないので、body の末尾でクリアして、sticky の動ける範囲を本文の終わりまでにする */
body:after { content: ""; display: block; clear: both; }
.navigation-bar { position: sticky; top: 10px; max-height: calc(100vh - 22px); overflow-y: auto; }

/* 対応のベースウェア: アイコンの後ろの版 */
.supported-baseware .baseware-version { font-size: 80%; color: #666; margin-left: 2px; }
.supported-baseware .baseware-note { font-size: 90%; color: #666; margin-left: 8px; }
.category dd.entry p.support-note { clear: left; font-size: 90%; }

/* 項目内の節（dd.entry > dl.sub） */
.category dd.entry > dl.sub { clear: left; }
.category dd.entry > dl.sub > dt { margin: 15px 5px 5px 0; border-left: 7px solid #ccb; padding: 0 0 0 5px; font-weight: bold; }
.category dd.entry > dl.sub > dd { margin: 5px 5px 15px 20px; border-left: 1px solid #ccb; padding: 0 0 0 5px; }

/* 注意書きなど（!!! note / warning / tip） */
.remarks.admonition { margin: 5px 5px 5px 15px; padding: 5px; border: 1px dashed #669; }
.remarks.admonition.warning { border-color: #c66; background-color: #fee; }
.remarks.admonition.tip { border-color: #6a6; background-color: #efe; }
.remarks.admonition > p { margin: 0.5em auto; }
.remarks.admonition > p.admonition-title { font-weight: bold; margin-top: 0; }
main .remarks.admonition { margin: 0.5em 0; border-color: #7bb56b; background-color: #f6fff2; }
main .remarks.admonition.warning { border-color: #ccaa00; background-color: #ffffcc; }

/* 表 */
.category table, .caption table, main table { margin: 5px auto; font-size: 100%; }
main table td { text-align: left; }
.category td, .category th, .caption td, .caption th { padding: 3px; text-align: left; }
.category th, .caption th { background-color: #eef; }

/* 記述例（div.legend > section.code）のコードブロック */
.category dd.entry .legend section.code .highlight { margin: 3px; padding: 3px; background-color: #dde; overflow: auto; }
.category dd.entry .legend section.code .highlight pre { padding: 0; }
.category dd.entry .legend section.code > p { margin: 3px; }
.category dd.entry .legend section.code > h1 { background-color: transparent; }

/* 項目の本文（dd.entry）の直下のコードブロック: 段落と同じ字下げにし、説明の節（.caption pre）と同じ形の枠を、項目の青系の色で付ける */
.category dd.entry > .highlight, .category dd.entry > dl.sub > dd > .highlight { margin: 5px 5px 5px 15px; background-color: #dde; border: 1px dotted #669; }
.category dd.entry > dl.sub > dd > .highlight { margin-left: 0; }

/* 翻訳ボタン（translate.js）。全頁で右上に固定 */
.ukadoc-translate { position: fixed; top: 6px; right: 8px; z-index: 20; font-size: 12px; }
.ukadoc-translate__button { width: 28px; height: 28px; padding: 3px; border: 1px solid #7bb56b; border-radius: 3px; background: #fff; color: #336633; cursor: pointer; }
.ukadoc-translate__button svg { width: 100%; height: 100%; fill: currentColor; }
.ukadoc-translate__button--on { background: #94de84; }
.ukadoc-translate__menu { position: absolute; top: 100%; right: 0; min-width: 13em; margin-top: 2px; padding: 3px 0; border: 1px solid #7bb56b; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); white-space: normal; text-align: left; }
.ukadoc-translate__menu[hidden] { display: none; }
.ukadoc-translate__menu ul { margin: 0; padding: 0; }
.ukadoc-translate__menu li { list-style: none; margin: 0; }
.ukadoc-translate__menu li button { display: block; width: 100%; padding: 5px 10px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.ukadoc-translate__menu li button:hover { background: #eef; }
.ukadoc-translate__menu li button[aria-pressed="true"] { font-weight: bold; color: #006600; }
.ukadoc-translate__status { margin: 3px 0 0; padding: 4px 10px 0; border-top: 1px solid #ccc; color: #666; }
.ukadoc-translate__status:empty { display: none; }

/* 翻訳版の頁の頭に出す、機械翻訳の注記の帯（lang.js）。右上に固定の検索窓（190px）と言語ボタンに重ならないよう、右に余白を取る */
.ukadoc-mt-notice { margin: 0; padding: 6px 250px 6px 12px; border-bottom: 1px solid #e0c870; background: #fff8dc; color: #5a4a00; font-size: 12px; line-height: 1.5; }
.ukadoc-mt-notice a { color: #7a5c00; }

/* 翻訳版で、その言語で書かれた原文そのもの（機械翻訳でない）の項目に付ける印（build.py の ORIG_BADGE）。見出しの字の大きさや太さを引き継がない */
.ukadoc-orig-badge { display: inline-block; margin-left: 0.8em; padding: 0 6px; border: 1px solid #4c8f3c; border-radius: 3px; background: #eaf7e5; color: #2f6b22; font-size: 11px; font-weight: normal; font-style: normal; line-height: 1.6; vertical-align: middle; white-space: nowrap; cursor: help; }

/* サイト内検索の入力欄とドロップダウン（search.js）。全頁で右上、翻訳ボタンの左横に固定 */
.ukadoc-search { position: fixed; top: 6px; right: 42px; z-index: 20; font-size: 12px; }
.ukadoc-search__icon { position: absolute; top: 0; right: 6px; line-height: 28px; opacity: 0.35; pointer-events: none; }
.ukadoc-search__input { box-sizing: border-box; width: 190px; height: 28px; padding: 2px 24px 2px 6px; border: 1px solid #7bb56b; border-radius: 3px; background: #fff; color: #333; font: inherit; }
.ukadoc-search__input:focus { outline: 2px solid #94de84; outline-offset: 0; }
.ukadoc-search__dropdown { position: absolute; top: 100%; right: 0; z-index: 30; box-sizing: border-box; width: 460px; max-width: calc(100vw - 50px); max-height: 70vh; overflow-y: auto; margin-top: 2px; border: 1px solid #7bb56b; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); color: #333; font-size: 12px; line-height: 1.5; text-align: left; white-space: normal; }
.ukadoc-search__dropdown[hidden] { display: none; }
.ukadoc-search__dropdown a, .ukadoc-search__dropdown a:link, .ukadoc-search__dropdown a:visited { color: inherit; text-decoration: none; }
.ukadoc-search__item { display: block; padding: 5px 8px; border-bottom: 1px dotted #ccc; }
.ukadoc-search__all { display: block; padding: 6px 8px; background: #f6fff2; color: #006600 !important; text-align: center; }
.ukadoc-search__item.is-active, .ukadoc-search__all.is-active { background: #dff3d8; }
.ukadoc-search__title { color: #006600; font-weight: bold; }
.ukadoc-search__page { color: #666; font-size: 90%; }
.ukadoc-search__snippet { display: block; color: #555; word-break: break-all; }
.ukadoc-search__empty { margin: 0; padding: 8px; color: #666; }
.ukadoc-search__dropdown mark { background-color: #ffee88; }

/* サイト内検索（search.html） */
.search-hits { margin: 0.5em 0; }
.search-hits li { list-style-type: none; margin: 0 0 0.8em 0; }
.search-page { color: #666; font-size: 90%; }
.search-hits mark { background-color: #ffee88; }

/* ---- 狭い画面（720px 以下）: 1 段組みにし、メニューを左上のボタン（menu.js）で開く引き出しにする ----
   引き出しは #ukadoc-drawer（枠の頁は nav.sidebar、list / spec の頁は目次の表と左のナビゲーションの包み）。
   包み（.ukadoc-drawer--wrap）は、広い画面では display: contents で、無いのと同じ */
.ukadoc-drawer--wrap { display: contents; }
.ukadoc-drawer-toggle, .ukadoc-drawer-backdrop { display: none; }
@media (max-width: 720px) {
	/* 右上に固定の検索欄・言語ボタン、左上のメニューのボタンの分を空ける */
	body { padding-top: 40px; }
	.ukadoc-mt-notice { padding-right: 12px; }
	.ukadoc-search__input { width: 160px; }

	/* list / spec の頁: 本文を画面の幅いっぱいに */
	#page-title { margin: 6px 10px; }
	.categories { float: none; width: auto; margin: 10px 0 40px; padding: 0 10px; overflow-wrap: anywhere; }
	.menu-header { width: auto; margin: 0 10px; }
	.navigation-bar { float: none; width: auto; margin: 10px; position: static; max-height: none; }
	.categories pre { overflow-x: auto; }
	.categories img { max-width: 100%; height: auto; }
	.categories table { display: block; max-width: 100%; overflow-x: auto; }

	/* 枠の頁 */
	section.baseframe { margin: 0; }
	section.body { flex-direction: column; align-items: stretch; }
	/* 上の帯のタイトル画像は、幅に収まるよう縮める（ボタン群は次の行に回る） */
	#navigation_top { max-width: calc(100% - 12px); background-size: contain; }
	main { padding: 0 10px 1em; overflow-wrap: anywhere; }
	main table { display: block; max-width: 100%; overflow-x: auto; }
	main img { max-width: 100%; height: auto; }

	/* メニューのボタン（翻訳ボタンと同じ見た目）。開いているときは引き出しの上に出て、閉じるボタンになる */
	html.js-drawer .ukadoc-drawer-toggle { display: block; position: fixed; top: 6px; left: 8px; z-index: 60; box-sizing: border-box; width: 28px; height: 28px; padding: 3px; border: 1px solid #7bb56b; border-radius: 3px; background: #fff; color: #336633; cursor: pointer; }
	html.js-drawer .ukadoc-drawer-toggle svg { display: block; width: 100%; height: 100%; fill: currentColor; }
	html.js-drawer.drawer-open .ukadoc-drawer-toggle { background: #94de84; }

	html.js-drawer .ukadoc-drawer { display: none; }
	html.js-drawer.drawer-open .ukadoc-drawer {
		display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
		box-sizing: border-box; width: min(340px, 88vw); max-height: none; margin: 0; padding: 42px 8px 2em;
		overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
		outline: none;
	}
	html.js-drawer.drawer-open .ukadoc-drawer--wrap { background: #eee; }
	html.js-drawer.drawer-open .ukadoc-drawer .menu-header,
	html.js-drawer.drawer-open .ukadoc-drawer .navigation-bar { margin: 0 0 10px; width: auto; }
	/* 目次の表は、狭い引き出しでは見出しの列を細く */
	html.js-drawer.drawer-open .ukadoc-drawer .menu-header table tr > * { padding: 2px 1px; }
	html.js-drawer.drawer-open .ukadoc-drawer .menu-header table ul li { margin-left: 4px; }
	html.js-drawer.drawer-open .ukadoc-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.4); }
	html.js-drawer.drawer-open body { overflow: hidden; }
}
@media print {
	.ukadoc-drawer-toggle, .ukadoc-drawer-backdrop, .ukadoc-search, .ukadoc-translate { display: none !important; }
}
