@charset "utf-8";

/* =====================================================
   ヘルプ（/help/）専用のスタイル
   読み込みは html/lib/help.php の help_page_extra_head()（filemtime のクエリバスターつき）。
   本文（.help-body）は html/lib/help_markdown.php が出すタグに対応する。仕組みは docs/help-content.md
   ===================================================== */

.help-page {
	color: #333;
	font-size: 14px;
	line-height: 1.8;
}

.help-page * {
	box-sizing: border-box;
}

/* ---------- 検索ボックス ---------- */

.help-top-search {
	padding: 10px 0 0;
	text-align: center;
}

.help-search {
	display: flex;
	max-width: 520px;
	margin: 0 auto 10px;
}

.help-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 2px solid #0b5fff;
	border-right: none;
	border-radius: 22px 0 0 22px;
	font-size: 16px;
	color: #333;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
}

.help-search input[type="search"]:focus {
	outline: none;
	border-color: #0947c4;
}

.help-search button {
	width: 56px;
	height: 44px;
	border: none;
	border-radius: 0 22px 22px 0;
	background: #0b5fff;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

.help-search button:hover {
	background: #0947c4;
}

#contents .help-page p.help-examples {
	padding-bottom: 6px;
	font-size: 13px;
	color: #666;
}

.help-examples a {
	display: inline-block;
	margin: 0 6px 4px;
	padding: 1px 10px;
	border: 1px solid #c9d6f5;
	border-radius: 12px;
	background: #f3f7ff;
	font-size: 13px;
}

.help-examples a:hover {
	color: #0009c1;
	background: #e3ecff;
	text-decoration: none;
}

#contents .help-page p.help-ai-note {
	padding: 10px 0 0;
	font-size: 13px;
	color: #555;
	text-align: center;
}

/* ---------- カテゴリの並び（TOP。1列で全件を並べる） ---------- */

.help-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.help-cat {
	min-width: 0;
}

#contents .item .inner h3.help-cat-title,
.help-cat-title {
	margin: 0 0 8px;
	padding: 0 0 6px;
	border-bottom: 2px solid #dbe5fb;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.5;
	color: #0b5fff;
}

.help-cat-title a {
	color: #0b5fff;
}

/* サイト共通の #contents .item ul（margin-left: 40px）・#contents .item li（list-style-type: disc）より強くするため #contents を付ける。
   付けないと共通の黒丸と下の独自の丸が2つ並び、左に余白が付く */
#contents .help-page .help-cat-list {
	margin: 0;
	padding: 0;
}

#contents .help-page .help-cat-list li {
	list-style: none;
	position: relative;
	padding: 3px 0 3px 14px;
	font-size: 14px;
	line-height: 1.6;
}

.help-cat-list li:before {
	content: "";
	position: absolute;
	top: 11px;
	left: 2px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #9aa9c7;
}

.help-cat-links {
	margin: 0 0 16px;
	padding: 0;
}

.help-cat-links li {
	display: inline-block;
	margin: 0 14px 6px 0;
	font-size: 14px;
}

#contents .help-page p.help-cat-description {
	color: #555;
}

/* ---------- パンくず・更新日・目次 ---------- */

.help-breadcrumb {
	margin: 0 0 8px;
	font-size: 12px;
	color: #888;
}

.help-breadcrumb-sep {
	margin: 0 6px;
	color: #aaa;
}

.help-toc {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid #dbe5fb;
	border-radius: 5px;
	background: #f7f9ff;
}

#contents .help-page .help-toc p.help-toc-title {
	padding-bottom: 4px;
	font-size: 14px;
	font-weight: bold;
	color: #333;
}

#contents .help-page .help-toc ol {
	margin: 0;
	padding-left: 22px;
}

#contents .help-page .help-toc li {
	list-style-type: decimal;
	font-size: 14px;
}

/* ---------- 記事本文（help_markdown.php の出力） ---------- */

.help-body {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* 目次より前に出すリード文（最初の h2 より前。html/help/article.php） */
.help-lead {
	margin-bottom: 20px;
}

#contents .item .inner .help-body h2 {
	margin: 28px 0 12px;
	padding: 6px 0 6px 12px;
	border-left: 4px solid #0b5fff;
	background: #f3f7ff;
	font-size: 18px;
	line-height: 1.5;
	color: #222;
}

#contents .item .inner .help-body h3 {
	margin: 22px 0 10px;
	padding: 0 0 4px;
	border-bottom: 1px solid #dbe5fb;
	font-size: 16px;
	line-height: 1.5;
	color: #222;
}

#contents .item .inner .help-body h4 {
	margin: 18px 0 8px;
	font-size: 15px;
	line-height: 1.5;
	color: #222;
}

.help-body > :first-child,
#contents .item .inner .help-body > h2:first-child {
	margin-top: 0;
}

#contents .help-body p {
	padding-bottom: 14px;
	line-height: 1.8;
}

/* 本文のリストも #contents を付けて共通の #contents .item ul / li（40px の字下げ・番号付きでも黒丸）より強くする */
#contents .help-body ul,
#contents .help-body ol {
	margin: 0 0 14px;
	padding-left: 24px;
}

.help-body li {
	font-size: 14px;
	line-height: 1.8;
}

#contents .help-body ul > li {
	list-style-type: disc;
}

#contents .help-body ol > li {
	list-style-type: decimal;
}

#contents .help-body li ul,
#contents .help-body li ol {
	margin: 2px 0 4px;
}

#contents .help-body li ul > li {
	list-style-type: circle;
}

#contents .help-body li p {
	padding-bottom: 6px;
}

.help-body blockquote {
	margin: 0 0 14px;
	padding: 8px 14px;
	border-left: 4px solid #ccc;
	background: #f7f7f7;
	color: #555;
}

#contents .help-body blockquote p:last-child {
	padding-bottom: 0;
}

.help-body code {
	padding: 1px 5px;
	border-radius: 3px;
	background: #f1f3f5;
	font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
	font-size: 13px;
	color: #c7254e;
}

.help-body pre.help-code {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 5px;
	background: #1f2937;
	overflow-x: auto;
}

.help-body pre.help-code code {
	padding: 0;
	background: none;
	color: #f3f4f6;
	font-size: 13px;
	line-height: 1.6;
	white-space: pre;
}

.help-body hr {
	margin: 20px 0;
	border: none;
	border-top: 1px solid #ddd;
}

.help-body img {
	max-width: 100%;
	height: auto;
	border: 1px solid #e5e7eb;
}

.help-body a img {
	cursor: zoom-in;
}

.help-body strong {
	font-weight: bold;
	color: #222;
}

.help-table-wrap {
	margin: 0 0 14px;
	overflow-x: auto;
}

.help-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

/* 取り込みで生HTMLのまま残した表（結合セル等。scripts/help-import/）にも同じ見た目を当てる */
.help-body table:not(.help-table) {
	width: 100%;
	margin: 0 0 14px;
	border-collapse: collapse;
	font-size: 13px;
}

.help-body table:not(.help-table) th,
.help-body table:not(.help-table) td,
.help-table th,
.help-table td {
	padding: 6px 10px;
	border: 1px solid #d5d5d5;
	vertical-align: top;
	text-align: left;
}

.help-body table:not(.help-table) th,
.help-table th {
	background: #f3f4f6;
	font-weight: bold;
	color: #333;
}

/* 囲み（:::note / :::warning / :::tip） */
.help-callout {
	position: relative;
	margin: 0 0 14px;
	padding: 12px 14px 12px 40px;
	border: 1px solid;
	border-radius: 5px;
}

.help-callout:before {
	position: absolute;
	top: 12px;
	left: 14px;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 15px;
	line-height: 1.8;
}

#contents .help-callout p:last-child,
.help-callout > ul:last-child,
.help-callout > ol:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.help-callout-note {
	border-color: #c9d6f5;
	background: #f3f7ff;
}

.help-callout-note:before {
	content: "\f05a"; /* info-circle */
	color: #0b5fff;
}

.help-callout-warning {
	border-color: #f5c2c0;
	background: #fff5f5;
}

.help-callout-warning:before {
	content: "\f071"; /* exclamation-triangle */
	color: #e60012;
}

.help-callout-tip {
	border-color: #bfe5cd;
	background: #f2fbf5;
}

.help-callout-tip:before {
	content: "\f0eb"; /* lightbulb */
	color: #00a651;
}

/* 記事の生HTMLブロックで使う部品（docs/help-content.md「生HTMLブロックで使える部品」） */

/* 本文中の小さなアイコン（スクショではないので枠線を付けない） */
.help-body img.help-icon {
	border: none;
	vertical-align: middle;
}

/* 右に寄せる小さな画像（後ろの見出しで回り込みを解く） */
.help-body .help-float-right {
	float: right;
	margin: 0 0 10px 16px;
}

#contents .item .inner .help-body h2,
#contents .item .inner .help-body h3 {
	clear: both;
}

/* アイコンと説明の2列の表（1列目はアイコンの幅だけ） */
.help-body table.help-icon-table td:first-child {
	width: 30px;
	text-align: center;
	vertical-align: middle;
}

/* 項目名＋内容の2列の表（1列目を th で書く） */
.help-body table.help-kv th {
	width: 9em;
}

/* コピーボタン（html/js/help.js が .help-copy の押下でコピーする） */
.help-body .help-copy-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.help-body .help-copy-value {
	padding: 4px 10px;
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	background: #f8f9fb;
	font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
	font-size: 14px;
	word-break: break-all;
}

.help-body .help-copy {
	padding: 4px 12px;
	border: 1px solid #0b5fff;
	border-radius: 4px;
	background: #fff;
	color: #0b5fff;
	font-size: 13px;
	cursor: pointer;
}

.help-body .help-copy:hover,
.help-body .help-copy.is-copied {
	background: #0b5fff;
	color: #fff;
}

/* ---------- 検索結果 ---------- */

#contents .help-page p.help-result-count {
	padding: 6px 0 10px;
}

/* 検索結果は区切り線で並べるので丸アイコンは付けない（共通の #contents .item li の黒丸が padding の外へはみ出していた） */
#contents .help-page .help-results {
	margin: 0 0 10px;
	padding: 0;
}

#contents .help-page .help-results li {
	list-style: none;
	padding: 0;
	border-bottom: 1px dotted #ccc;
}

.help-results li:first-child {
	border-top: 1px dotted #ccc;
}

/* 1件（タイトル・カテゴリ・抜粋）全体をクリックできるようにする */
.help-result-link {
	display: block;
	padding: 12px 8px;
	color: inherit;
	text-decoration: none;
}

.help-result-link:hover,
.help-result-link:focus {
	background: #f5f8ff;
	text-decoration: none;
}

.help-result-title {
	font-size: 15px;
	font-weight: bold;
	color: #0009c1;
}

.help-result-link:hover .help-result-title,
.help-result-link:focus .help-result-title {
	text-decoration: underline;
}

.help-result-cat {
	display: inline-block;
	margin-left: 8px;
	padding: 0 8px;
	border-radius: 10px;
	background: #eef2f9;
	font-size: 11px;
	color: #555;
	vertical-align: middle;
}

.help-result-snippet {
	display: block;
	padding: 4px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: #555;
}

.help-result-snippet mark {
	padding: 0 1px;
	background: #fff3a8;
	color: #222;
}

#contents .help-page p.help-noresult {
	padding: 6px 0 10px;
}

/* ---------- スマホ幅 ---------- */

@media (max-width: 640px) {

	.help-search input[type="search"] {
		font-size: 16px; /* iOS の入力時のズームを避ける */
	}

	#contents .item .inner .help-body h2 {
		font-size: 17px;
	}

}
