/* StPageFlip 2.0.7 (MIT) の基本スタイル */
.stf__parent {
  position: relative;
  display: block;
  box-sizing: border-box;
  transform: translateZ(0);

  -ms-touch-action: pan-y;
  touch-action: pan-y;
}

.sft__wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.stf__parent canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.stf__block {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  perspective: 2000px;
}

.stf__item {
  display: none;
  position: absolute;
  transform-style: preserve-3d;
}

.stf__outerShadow {
  position: absolute;
  left: 0;
  top: 0;
}

.stf__innerShadow {
  position: absolute;
  left: 0;
  top: 0;
}

.stf__hardShadow {
  position: absolute;
  left: 0;
  top: 0;
}

.stf__hardInnerShadow {
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================================
   GRM Flipbook
   ・角は直角
   ・色はテーマから変えられるように変数で持つ
========================================= */
.grmfb {
	/* ツールバーなどの並びは、画面の幅ではなくカタログを置いた場所の幅で切り替える（@container grmfb） */
	container: grmfb / inline-size;
	--grmfb-stage: #eceae6;
	--grmfb-bar: #fff;
	--grmfb-text: #1a1a1a;
	--grmfb-line: #ddd;
	--grmfb-muted: #8a8a8a;
	--grmfb-accent: #1a1a1a;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: min(82vh, 820px);
	min-height: 420px;
	background: var(--grmfb-stage);
	color: var(--grmfb-text);
	outline: none;
	overflow: hidden;
	box-sizing: border-box;
	-webkit-user-select: none;
	user-select: none;
}

.grmfb *,
.grmfb *::before,
.grmfb *::after {
	box-sizing: border-box;
}

.grmfb button,
.grmfb input {
	font: inherit;
	border-radius: 0;
}

/* =========================
   本の置き場
========================= */
.grmfb-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.grmfb-zoom {
	position: absolute;
	inset: 0;
	padding: 28px 72px;
	transform-origin: 0 0;
}

/* 拡大中のくっきり表示（見えている部分だけ描き直したもの） */
.grmfb-detail {
	position: absolute;
	inset: 0;
	z-index: 4;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s;
}

.grmfb-detail.is-on {
	opacity: 1;
}

.grmfb-book {
	width: 100%;
	height: 100%;
	transition: transform .45s ease;
}

/* 遠近感を弱くして、めくる時にページが上下に大きくはみ出さないように */
.grmfb .stf__block {
	perspective: 5000px;
}

.grmfb-book .stf__wrapper {
	height: 100%;
	padding-bottom: 0 !important;
}

.grmfb-pg {
	background: #fff;
	overflow: hidden;
}

.grmfb-pg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	opacity: 0;
	transition: opacity .25s;
	pointer-events: none;
}

.grmfb-pg.is-loaded img {
	opacity: 1;
}

.grmfb-pg-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 1.5px solid #d5d3cf;
	border-top-color: #888;
	border-radius: 50%;
	animation: grmfb-spin .9s linear infinite;
}

.grmfb-pg.is-loaded .grmfb-pg-loader {
	display: none;
}

/* PDFのリンク：押せる範囲。マウスを乗せると色が付く（タッチの端末は最初からうすく色を付ける） */
.grmfb-links {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.grmfb-link {
	position: absolute;
	display: block;
	pointer-events: auto;
	cursor: pointer;
	transition: background-color .15s, box-shadow .15s;
	-webkit-user-drag: none;
}

.grmfb-link:hover,
.grmfb-link:focus-visible {
	background: rgba(255, 214, 0, .14);
	box-shadow: inset 0 0 0 1px rgba(214, 160, 0, .75);
	outline: none;
}

@media (hover: none) {
	.grmfb-link {
		background: rgba(255, 204, 0, .12);
	}
}

/* 付箋を貼っている間・拡大中はリンクを押せないようにする */
.grmfb.is-fusen-adding .grmfb-link,
.grmfb.is-zoomed .grmfb-link {
	pointer-events: none;
}

/* 拡大中：上に透明の層を置いてドラッグで移動 */
.grmfb-pan {
	position: absolute;
	inset: 0;
	display: none;
	cursor: grab;
	touch-action: none;
	z-index: 5;
}

.grmfb-pan.is-dragging {
	cursor: grabbing;
}

.grmfb.is-zoomed .grmfb-pan {
	display: block;
}

.grmfb.is-zoomed .grmfb-side {
	display: none;
}

/* 左右の大きい矢印 */
.grmfb-side {
	position: absolute;
	top: 50%;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 72px;
	margin-top: -36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--grmfb-text);
	cursor: pointer;
	opacity: .55;
	transition: opacity .2s;
}

.grmfb-side:hover {
	opacity: 1;
}

.grmfb-side:disabled {
	opacity: 0;
	pointer-events: none;
}

.grmfb-side.is-left {
	left: 12px;
}

.grmfb-side.is-right {
	right: 12px;
}

.grmfb-side svg {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
	stroke-linecap: square;
}

/* 読み込み中 */
.grmfb-status {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: var(--grmfb-stage);
	font-size: 13px;
	letter-spacing: .08em;
	color: var(--grmfb-muted);
}

.grmfb-status[hidden] {
	display: none;
}

.grmfb.is-ready .grmfb-status {
	background: rgba(236, 234, 230, .85);
}

.grmfb-spinner {
	width: 32px;
	height: 32px;
	border: 1.5px solid #d5d3cf;
	border-top-color: #555;
	border-radius: 50%;
	animation: grmfb-spin .9s linear infinite;
}

.grmfb-status.is-error .grmfb-spinner {
	display: none;
}

@keyframes grmfb-spin {
	to {
		transform: rotate(360deg);
	}
}

/* =========================
   ツールバー
========================= */
.grmfb-bar {
	position: relative;
	z-index: 30;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	height: 54px;
	padding: 0 10px;
	background: var(--grmfb-bar);
	border-top: 1px solid var(--grmfb-line);
}

.grmfb-bar-group {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1 1 0;
}

.grmfb-bar-group:last-child {
	justify-content: flex-end;
}

.grmfb-pager {
	flex: 0 0 auto;
	gap: 6px;
}

.grmfb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--grmfb-text);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s;
}

.grmfb-btn:hover,
.grmfb-btn.is-active {
	background: #f0efec;
	color: var(--grmfb-text);
}

.grmfb-btn:disabled {
	opacity: .25;
	cursor: default;
	background: transparent;
}

.grmfb-btn svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: square;
	stroke-linejoin: miter;
}

.grmfb-pagebox {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	letter-spacing: .04em;
	white-space: nowrap;
}

.grmfb-pageinput {
	width: 64px;
	height: 32px;
	padding: 0 6px;
	border: 1px solid var(--grmfb-line);
	background: #fff;
	color: var(--grmfb-text);
	text-align: center;
	font-size: 13px;
}

.grmfb-pageinput:focus {
	outline: none;
	border-color: var(--grmfb-accent);
}

.grmfb-total {
	color: var(--grmfb-muted);
}

/* =========================
   目次・ページ一覧のパネル
========================= */
.grmfb-panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 25;
	display: flex;
	flex-direction: column;
	width: 320px;
	max-width: 100%;
	background: #fff;
	border-right: 1px solid var(--grmfb-line);
	transform: translateX(-102%);
	transition: transform .3s ease;
}

.grmfb-panel.is-open {
	transform: none;
}

.grmfb-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	height: 52px;
	padding: 0 6px 0 20px;
	border-bottom: 1px solid var(--grmfb-line);
	font-size: 13px;
	letter-spacing: .12em;
}

.grmfb-toc {
	flex: 1 1 auto;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	overflow-y: auto;
}

.grmfb-toc li {
	margin: 0;
	padding: 0;
}

.grmfb-toc button {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 11px 20px;
	border: 0;
	background: transparent;
	color: var(--grmfb-text);
	text-align: left;
	font-size: 14px;
	line-height: 1.6;
	cursor: pointer;
}

.grmfb-toc button:hover {
	background: #f5f4f1;
}

.grmfb-toc em {
	flex: 0 0 auto;
	font-style: normal;
	font-size: 12px;
	color: var(--grmfb-muted);
}

.grmfb-thumbs {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-content: start;
	gap: 18px 14px;
	padding: 18px;
	overflow-y: auto;
}

.grmfb.is-rtl .grmfb-thumbs {
	direction: rtl;
}

/* 表紙は1枚：本と同じ並びにする */
.grmfb.is-cover-single .grmfb-thumb:first-child {
	grid-column: 2;
}

.grmfb-thumb {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--grmfb-text);
	cursor: pointer;
}

.grmfb-thumb-img {
	display: block;
	width: 100%;
	background: #f1f0ed;
	outline: 1px solid var(--grmfb-line);
	transition: outline-color .2s;
}

.grmfb-thumb-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .25s;
}

.grmfb-thumb.is-loaded img {
	opacity: 1;
}

.grmfb-thumb:hover .grmfb-thumb-img {
	outline-color: #999;
}

.grmfb-thumb.is-current .grmfb-thumb-img {
	outline: 2px solid var(--grmfb-accent);
}

.grmfb-thumb-num {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	text-align: center;
	color: var(--grmfb-muted);
	direction: ltr;
}

/* =========================
   印刷の範囲を選ぶ
========================= */
.grmfb-dialog {
	position: absolute;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .35);
}

.grmfb-dialog[hidden] {
	display: none;
}

.grmfb-dialog-box {
	width: 320px;
	max-width: calc(100% - 40px);
	padding: 28px 28px 22px;
	background: #fff;
	font-size: 14px;
}

.grmfb-dialog-title {
	margin: 0 0 16px;
	font-size: 13px;
	letter-spacing: .12em;
}

.grmfb-dialog-box label {
	display: block;
	margin: 0 0 10px;
	cursor: pointer;
}

.grmfb-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 22px;
}

.grmfb-textbtn {
	min-width: 96px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--grmfb-line);
	background: #fff;
	color: var(--grmfb-text);
	font-size: 13px;
	letter-spacing: .06em;
	cursor: pointer;
}

.grmfb-textbtn.is-primary {
	border-color: var(--grmfb-accent);
	background: var(--grmfb-accent);
	color: #fff;
}

/* =========================
   ポップアップ
========================= */
.grmfb-lock,
.grmfb-lock body {
	overflow: hidden !important;
}

.grmfb-modal {
	--grmfb-overlay: #1b1b1b;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--grmfb-overlay);
	opacity: 0;
	transition: opacity .25s;
}

.grmfb-modal.is-open {
	opacity: 1;
}

.grmfb-modal-inner {
	width: 100%;
	max-width: 1600px;
	height: 100%;
	min-height: 0;
}

.grmfb-modal .grmfb {
	--grmfb-stage: var(--grmfb-overlay);
	height: 100%;
	min-height: 0;
}

.grmfb-modal .grmfb-side {
	color: #fff;
}

.grmfb-modal .grmfb-pg-loader {
	border-color: #ccc;
	border-top-color: #666;
}

.grmfb-modal .grmfb-status {
	color: #bbb;
}

.grmfb-modal .grmfb.is-ready .grmfb-status {
	background: rgba(0, 0, 0, .6);
}

.grmfb-modal .grmfb-bar {
	border-top: 0;
}

/* 全画面 */
.grmfb.is-full,
.grmfb-modal:fullscreen {
	padding: 0;
}

.grmfb.is-full {
	height: 100%;
}

.grmfb-modal:fullscreen .grmfb-modal-inner {
	max-width: none;
}

/* =========================
   ポップアップを開くボタン
========================= */
.grmfb-open {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.grmfb-open-cover {
	display: block;
	width: 260px;
	max-width: 100%;
}

.grmfb-open-cover img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
	transition: box-shadow .3s;
}

.grmfb-open:hover .grmfb-open-cover img {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.grmfb-open:not(.has-cover) {
	padding: 14px 34px;
	border: 1px solid currentColor;
}

/* テキスト版（検索エンジン・スクリーンリーダー用。見た目には出さない） */
.grmfb-seo-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: normal !important;
	border: 0 !important;
}

/* =========================
   閲覧ページ（別ウインドウ）
   ・カタログだけを画面いっぱいに
========================= */
html:has(> body.grmfb-window),
body.grmfb-window {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

body.grmfb-window {
	--grmfb-overlay: #1b1b1b;
	background: var(--grmfb-overlay);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

.grmfb-window .grmfb {
	--grmfb-stage: var(--grmfb-overlay);
	height: 100vh;
	height: 100dvh;
	min-height: 0;
}

.grmfb-window .grmfb-side {
	color: #fff;
}

.grmfb-window .grmfb-status {
	color: #bbb;
}

.grmfb-window .grmfb.is-ready .grmfb-status {
	background: rgba(0, 0, 0, .6);
}

.grmfb-window .grmfb-bar {
	border-top: 0;
}

/* =========================
   カテゴリーの一覧
========================= */
.grmfb-index {
	--grmfb-cols: 4;
	--grmfb-ratio: 0.7071;
}

.grmfb-index .grmfb-index-list {
	display: grid;
	grid-template-columns: repeat(var(--grmfb-cols), minmax(0, 1fr));
	gap: 36px 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

/* 本文の箇条書き・リンクの飾りを打ち消す */
.grmfb-index .grmfb-index-list > li {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
}

.grmfb-index .grmfb-index-list > li::before,
.grmfb-index .grmfb-index-list > li::after,
.grmfb-index .grmfb-index-list > li::marker {
	content: none;
	display: none;
}

.grmfb-index a.grmfb-index-item,
.grmfb-index a.grmfb-index-item:hover {
	display: block;
	color: inherit;
	text-decoration: none;
	border: 0;
	box-shadow: none;
	background: none;
}

.grmfb-index-img {
	display: block;
	aspect-ratio: var(--grmfb-ratio);
	background: #f1f0ed;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	transition: box-shadow .3s;
}

.grmfb-index-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .3s;
}

.grmfb-index-img.is-loaded img {
	opacity: 1;
}

.grmfb-index-item:hover .grmfb-index-img {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

.grmfb-index-title {
	display: block;
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: .04em;
	text-align: center;
}

.grmfb-index-page {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	letter-spacing: .08em;
	text-align: center;
	color: #8a8a8a;
}

@media (max-width: 767px) {
	.grmfb-index .grmfb-index-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}
}

/* =========================
   スマホ
========================= */
@media (max-width: 767px) {
	.grmfb-modal {
		padding: 0;
	}

	.grmfb-modal-inner {
		height: 100%;
		height: 100dvh;
	}
}

@container grmfb (max-width: 767px) {
	.grmfb-zoom {
		padding: 12px;
	}

	.grmfb-side {
		display: none;
	}

	.grmfb-bar {
		height: 50px;
		padding: 0 2px;
		gap: 0;
	}

	.grmfb-btn {
		width: 28px;
		height: 40px;
	}

	.grmfb-bar-group {
		flex: 0 0 auto;
	}

	.grmfb-btn svg {
		width: 19px;
		height: 19px;
	}

	.grmfb-pager {
		gap: 0;
	}

	.grmfb-pagebox {
		gap: 3px;
		margin: 0 2px;
		font-size: 12px;
	}

	.grmfb-btn.is-pc {
		display: none;
	}

	.grmfb-pageinput {
		width: 46px;
		padding: 0 2px;
		font-size: 12px;
	}

	.grmfb-panel {
		width: 100%;
	}
}

/* =========================
   左上のロゴ（設定でロゴを選んだ時だけ）
========================= */
.grmfb-head {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	height: 56px;
	padding: 0 20px;
	background: #fff;
	border-bottom: 1px solid var(--grmfb-line);
}

.grmfb-head a {
	display: flex;
	align-items: center;
	height: 100%;
}

/* 高さを決めて横は比率で（幅・高さの指定がないSVGでも0にならないように） */
.grmfb-head img {
	display: block;
	width: auto;
	max-width: 240px;
	height: 34px;
	object-fit: contain;
	object-position: left center;
}

/* パソコンで目次などを開いた時は本を右に寄せる */
.grmfb.is-side .grmfb-zoom {
	left: 320px;
}

.grmfb.is-side .grmfb-side.is-left {
	left: 332px;
}

.grmfb.is-side .grmfb-panel {
	transition: none;
}

/* =========================
   検索
========================= */
.grmfb-btn.is-sp {
	display: none;
}

.grmfb-search-bar {
	display: flex;
	align-items: center;
	margin-right: 6px;
}

.grmfb-search-input {
	width: 180px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--grmfb-line);
	border-radius: 0;
	background: #fff;
	color: var(--grmfb-text);
	font-size: 13px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.grmfb-search-input:focus {
	border-color: var(--grmfb-accent);
}

.grmfb-search-panel {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	padding: 14px 14px 6px 20px;
}

.grmfb-search-panel .grmfb-search-input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 38px;
	font-size: 14px;
}

.grmfb-search-count {
	flex: 0 0 auto;
	margin: 0;
	padding: 6px 20px 8px;
	color: var(--grmfb-muted);
	font-size: 12px;
}

.grmfb-search-count:empty {
	display: none;
}

.grmfb-search-results {
	flex: 1 1 auto;
	margin: 0;
	padding: 0 0 8px;
	list-style: none;
	overflow-y: auto;
	border-top: 1px solid var(--grmfb-line);
}

.grmfb-search-results li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #f0efec;
}

.grmfb-search-results button {
	display: flex;
	gap: 12px;
	width: 100%;
	padding: 12px 20px;
	border: 0;
	background: transparent;
	color: var(--grmfb-text);
	text-align: left;
	font-size: 13px;
	line-height: 1.6;
	cursor: pointer;
}

.grmfb-search-results button:hover {
	background: #f5f4f1;
}

.grmfb-search-results em {
	flex: 0 0 auto;
	width: 3.6em;
	font-style: normal;
	font-size: 12px;
	color: var(--grmfb-muted);
}

.grmfb-search-results span {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-all;
}

.grmfb-search-results mark {
	padding: 0 1px;
	background: #ffe27a;
	color: inherit;
}

@container grmfb (max-width: 767px) {
	.grmfb-head {
		height: 46px;
		padding: 0 12px;
	}

	.grmfb-head img {
		height: 28px;
		max-width: 180px;
	}

	.grmfb-search-bar {
		display: none;
	}

	.grmfb-btn.is-sp {
		display: flex;
	}
}

/* =========================
   文字付きのボタン（付箋・使い方）
   ・パソコンは「アイコン＋文字」、スマホはアイコンだけ
========================= */
.grmfb-btn.is-labeled {
	gap: 5px;
	width: auto;
	padding: 0 10px 0 8px;
	font-size: 12px;
	letter-spacing: .04em;
	white-space: nowrap;
}

.grmfb .for-touch {
	display: none;
}

/* タッチ操作の端末（スマホ・タブレット）は、使い方の説明をタップ・指の操作にする */
@media (hover: none) and (pointer: coarse) {
	.grmfb .for-mouse {
		display: none;
	}

	.grmfb .for-touch {
		display: inline;
	}
}

/* =========================
   使い方
========================= */
.grmfb-help {
	position: absolute;
	inset: 0;
	z-index: 45;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .45);
}

.grmfb-help[hidden] {
	display: none;
}

.grmfb-help-box {
	display: flex;
	flex-direction: column;
	width: 560px;
	max-width: 100%;
	max-height: 100%;
	padding: 0 0 22px;
	background: #fff;
	-webkit-user-select: text;
	user-select: text;
}

.grmfb-help-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	height: 52px;
	padding: 0 6px 0 24px;
	border-bottom: 1px solid var(--grmfb-line);
	font-size: 14px;
	letter-spacing: .12em;
}

.grmfb-help-list {
	flex: 1 1 auto;
	margin: 0;
	padding: 8px 24px 0;
	list-style: none;
	overflow-y: auto;
}

.grmfb-help-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid #f0efec;
}

.grmfb-help-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: 1px solid var(--grmfb-line);
}

.grmfb-help-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: square;
}

.grmfb-help-list strong {
	display: block;
	margin: 1px 0 2px;
	font-size: 14px;
	font-weight: 600;
}

.grmfb-help-list p {
	margin: 0;
	color: #555;
	font-size: 13px;
	line-height: 1.7;
}

.grmfb-help .grmfb-dialog-actions {
	flex: 0 0 auto;
	margin: 18px 24px 0;
}

/* =========================
   付箋
========================= */
.grmfb-fusen-tools {
	flex: 0 0 auto;
	padding: 16px 20px 10px;
}

.grmfb-fusen-tools .grmfb-textbtn {
	width: 100%;
}

.grmfb-fusen-tools p {
	margin: 10px 0 0;
	color: var(--grmfb-muted);
	font-size: 12px;
	line-height: 1.6;
}

.grmfb-fusen-list {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	border-top: 1px solid var(--grmfb-line);
}

.grmfb-fusen-list li {
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #f0efec;
	border-left: 6px solid #fff0a0;
}

.grmfb-fusen-list li.is-c1 { border-left-color: #ffc9d6; }
.grmfb-fusen-list li.is-c2 { border-left-color: #c5e2ff; }
.grmfb-fusen-list li.is-c3 { border-left-color: #cdeec0; }

.grmfb-fusen-list li.is-empty {
	padding: 16px 20px;
	border-left: 0;
	color: var(--grmfb-muted);
	font-size: 13px;
}

.grmfb-fusen-list button[data-logical] {
	display: flex;
	flex: 1 1 auto;
	gap: 12px;
	min-width: 0;
	padding: 11px 8px 11px 14px;
	border: 0;
	background: transparent;
	color: var(--grmfb-text);
	text-align: left;
	font-size: 13px;
	line-height: 1.6;
	cursor: pointer;
}

.grmfb-fusen-list button[data-logical]:hover {
	background: #f5f4f1;
}

.grmfb-fusen-list em {
	flex: 0 0 auto;
	width: 3.6em;
	color: var(--grmfb-muted);
	font-style: normal;
	font-size: 12px;
}

.grmfb-fusen-list span {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.grmfb-fusen-del {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--grmfb-muted);
	cursor: pointer;
}

.grmfb-fusen-del:hover {
	color: var(--grmfb-text);
}

.grmfb-fusen-del svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.grmfb-fusen-foot {
	flex: 0 0 auto;
	padding: 12px 20px 16px;
	text-align: right;
}

.grmfb-fusen-foot .grmfb-textbtn.is-confirm {
	border-color: #c0392b;
	background: #c0392b;
	color: #fff;
}

/* 貼る所を選んでいる間 */
.grmfb-fusen-catcher,
.grmfb-fusen-hint {
	display: none;
}

.grmfb.is-fusen-adding .grmfb-fusen-catcher {
	position: absolute;
	inset: 0;
	z-index: 7;
	display: block;
	cursor: crosshair;
}

.grmfb.is-fusen-adding .grmfb-fusen-hint {
	position: absolute;
	top: 14px;
	left: 50%;
	z-index: 8;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 8px 8px 16px;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
	transform: translateX(-50%);
}

.grmfb.is-side .grmfb-fusen-hint {
	left: calc(50% + 160px);
}

.grmfb-fusen-hint .grmfb-textbtn {
	min-width: 0;
	height: 30px;
	padding: 0 12px;
	border-color: rgba(255, 255, 255, .5);
	background: transparent;
	color: #fff;
	font-size: 12px;
}

/* ページの上の付箋 */
.grmfb-note {
	position: absolute;
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: 150px;
	max-width: 46%;
	background: #fff0a0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	-webkit-user-select: text;
	user-select: text;
}

.grmfb-note.is-c1 { background: #ffc9d6; }
.grmfb-note.is-c2 { background: #c5e2ff; }
.grmfb-note.is-c3 { background: #cdeec0; }

.grmfb-note.is-dragging {
	box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
	opacity: .92;
}

.grmfb-note-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	height: 22px;
	background: rgba(0, 0, 0, .07);
	cursor: move;
	touch-action: none;
}

.grmfb-note-head button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #333;
	cursor: pointer;
}

.grmfb-note-color::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 1px solid rgba(0, 0, 0, .45);
	background: linear-gradient(135deg, #fff0a0 0 25%, #ffc9d6 25% 50%, #c5e2ff 50% 75%, #cdeec0 75%);
}

.grmfb-note-del svg {
	width: 10px;
	height: 10px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.grmfb-note-text {
	display: block;
	width: 100%;
	height: 66px;
	margin: 0;
	padding: 5px 7px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #222;
	font-size: 12px;
	line-height: 1.5;
	resize: none;
	outline: none;
	box-shadow: none;
}

.grmfb-note-text::placeholder {
	color: rgba(0, 0, 0, .35);
}

@media (max-width: 767px) {
	.grmfb .for-mouse {
		display: none;
	}

	.grmfb .for-touch {
		display: inline;
	}
}

@container grmfb (max-width: 767px) {
	.grmfb-help-list li.for-pc {
		display: none;
	}

	/* « » を出さないので、ページ移動の説明はページ番号の入力だけにする */
	.grmfb-help-list li[data-row="leftEnd"] .for-mouse {
		display: none;
	}

	.grmfb-help-list li[data-row="leftEnd"] .for-touch {
		display: inline;
	}

	.grmfb-btn.is-labeled {
		width: 28px;
		padding: 0;
	}

	.grmfb-btn-label {
		display: none;
	}

	/* カタログを置いた幅が狭い時（スマホ・幅の狭い列など）は、最初・最後のページへのボタン（« »）と付箋は出さない */
	.grmfb-btn[data-act="leftEnd"],
	.grmfb-btn[data-act="rightEnd"],
	.grmfb-btn[data-act="fusen"] {
		display: none;
	}

	.grmfb-help {
		padding: 12px;
	}

	.grmfb-help-list {
		padding: 4px 18px 0;
	}

	.grmfb-help .grmfb-dialog-actions {
		margin: 14px 18px 0;
	}

	.grmfb-note {
		width: 120px;
	}

	.grmfb-note-text {
		height: 54px;
		font-size: 16px;
		line-height: 1.3;
	}

	.grmfb.is-fusen-adding .grmfb-fusen-hint {
		top: 10px;
		font-size: 12px;
	}
}

/* タブレットの縦（768〜1023px）：横幅が足りないので、ボタンの文字を外し、検索は虫めがねボタンにする */
@container grmfb (min-width: 768px) and (max-width: 1023px) {
	.grmfb-btn.is-labeled {
		width: 40px;
		padding: 0;
	}

	.grmfb-btn-label {
		display: none;
	}

	.grmfb-search-bar {
		display: none;
	}

	.grmfb-btn.is-sp {
		display: inline-flex;
	}
}

/* =========================
   閉じるボタン（ポップアップ・別ウインドウ）：右上
========================= */
.grmfb-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}

.grmfb-close:hover {
	background: rgba(0, 0, 0, .8);
}

.grmfb-close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: square;
}

/* ロゴの帯がある時は帯の右端 */
.grmfb-head .grmfb-close {
	position: static;
	margin: 0 -14px 0 auto;
	background: transparent;
	color: var(--grmfb-text);
}

.grmfb-head .grmfb-close:hover {
	background: #f0efec;
}

@container grmfb (max-width: 767px) {
	.grmfb-close {
		top: 8px;
		right: 8px;
		width: 40px;
		height: 40px;
	}

	.grmfb-head .grmfb-close {
		margin-right: -8px;
	}
}

/* 背景色の明るさに合わせた色（JSで is-light-stage / is-dark-stage を付ける） */
.grmfb.is-light-stage .grmfb-side {
	color: #1a1a1a;
}

.grmfb.is-light-stage .grmfb-status {
	color: #666;
}

.grmfb.is-dark-stage .grmfb-side {
	color: #fff;
}

.grmfb.is-dark-stage .grmfb-status {
	color: #bbb;
}

/* =========================
   印刷
========================= */
.grmfb-print {
	display: none;
}

@media print {
	@page {
		margin: 8mm;
	}

	body.grmfb-printing > *:not(.grmfb-print) {
		display: none !important;
	}

	body.grmfb-printing .grmfb-print {
		display: block;
	}

	.grmfb-print img {
		display: block;
		max-width: 100%;
		max-height: calc(100vh - 2px);
		width: auto;
		height: auto;
		margin: 0 auto;
		break-after: page;
		page-break-after: always;
	}

	.grmfb-print img:last-child {
		break-after: auto;
		page-break-after: auto;
	}
}
