.ks-gm-wrap {
	max-width: 1100px;
}
.ks-gm-title {
	font-size: 1.7rem;
	font-weight: 800;
	margin: 6px 0 16px;
	color: #1a3a6b;
}

/* ページ全体の一言添え（説明文）：タイトル直下 */
.ks-gm-intro {
	background: #f7f8f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 14px 18px;
	margin: 0 0 36px;
	font-size: 0.95rem;
	line-height: 1.8;
	color: #333333;
}
@media (max-width: 480px) {
	.ks-gm-intro {
		padding: 12px 14px;
		margin: 0 0 26px;
		font-size: 0.9rem;
	}
}

/* ============================================================
   領域（フロア）：デパートのフロアガイド方式。
   領域ごとに「一言添え（枠なし・テキストのみ）」＋「部品グリッド」を持つ。
   領域間はしっかり余白を確保する。
   ============================================================ */
.ks-gm-region {
	margin: 0 0 44px;
}
.ks-gm-region:last-child {
	margin-bottom: 0;
}

/* 領域の一言添え：枠・背景なし、14ptのテキストのみ
   KS共通コンテンツCSS（.entry-content p）と優先度が同点で
   上書きされることがあるため、!importantで確実に効かせる */
.ks-gm-region-intro {
	margin: 0 0 24px !important;
	font-size: 14px !important;
	line-height: 1.8 !important;
	color: #333333 !important;
}

/* PC・モバイル共通：3列固定 */
.ks-gm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.ks-gm-box {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 部品ライブラリ：正方形（1枠）。画像は最大150pxで中央寄せ */
.ks-gm-box-part-square {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
}
.ks-gm-box-part-square a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #222222;
	width: 100%;
}
.ks-gm-box-part-square img {
	width: 100%;
	max-width: 150px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	margin: 0 auto;
}
.ks-gm-part-caption {
	font-size: 0.85rem;
	font-weight: 700;
	color: #222222;
}

/* 部品ライブラリ：横長バナー（3列ぶん、1行まるごと使用） */
.ks-gm-box-part-banner {
	grid-column: 1 / -1;
	padding: 0;
	overflow: hidden;
}
.ks-gm-box-part-banner a {
	display: block;
	position: relative;
	text-decoration: none;
}
.ks-gm-box-part-banner img {
	width: 100%;
	height: auto;
	display: block;
}
.ks-gm-box-part-banner .ks-gm-part-caption {
	display: block;
	background: #1a3a6b;
	color: #ffffff;
	text-align: center;
	padding: 8px 10px;
	font-size: 0.9rem;
}

@media (max-width: 480px) {
	.ks-gm-region {
		margin: 0 0 32px;
	}
	.ks-gm-grid {
		gap: 10px;
	}
	.ks-gm-box {
		padding: 8px;
	}
	.ks-gm-part-caption {
		font-size: 0.75rem;
	}
}