body#catalog {
	font-family: unset;
	.mr0 { margin-right: 0; }

	/* 入力エラー表示 */
	#input_errors {
		margin: 20px 0;
		padding: 15px 12px;
		background-color: #fff3cd;
		color: #8A0000;
	}

	#input_errors p {
		margin: 0 0 10px 0;
		font-size: 16px;
		font-weight: bold;
	}

	#input_errors ul {
		margin: 0 0 0 25px;
	}

	#input_errors ul li {
		list-style-type: disc;
		font-size: 15px;
		line-height: 1.6;
		margin: 5px 0;
	}

	ul.item_thumb_list li span {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 34px;
		padding: 0 8px;
		line-height: 1.2;
		border-radius: 4px;
		font-size: 85%;
		font-weight: 600;
		text-align: center;
		white-space: normal;
		word-break: keep-all;
		line-break: strict;

		&.label-linuc {
			background-color: #f2dede;
			color: #7a1a1a;
		}
		&.label-ossdb {
			background-color: #d9f2d9;
			color: #1f5a2a;
		}
		&.label-html5 {
			background-color: #fde5ca;
			color: #7a3a00;
		}
		&.label-opcel {
			background-color: #d9e9f9;
			color: #1a3d7a;
		}
	}

	ul li b { position: absolute; }

	.catalog_selection { margin: 20px 0 30px 0; }

	.input_amount {
		padding: 10px;
		border: 1px solid #ccc;
		border-top: 0;
		border-radius: 0 0 4px 4px;
		margin: 0 0 16px 0;
		text-align: center;
	}

	input.txt_amount,
	.catalog_selection select {
		padding: 4px 6px;
		border: 1px solid #ccc;
		border-radius: 3px;
		font-size: 14px;
		line-height: 1.2;
	}

	.catalog_selection select {
		height: 27px;
		box-sizing: border-box;
	}

	input.txt_amount {
		width: 50px;
		text-align: center;
	}

	ul#leaflet_thumb_list,
	ul.item_thumb_list {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 16px;
		padding-right: 8px;
	}

	ul#leaflet_thumb_list li,
	ul.item_thumb_list li {
		flex: 0 0 auto;
		float: none;
		text-align: center;
		width: 150px;
		margin: 0;
	}

	#leaflet_thumb_list img,
	#ossdb_thumb_list img,
	#html5_thumb_list img,
	#opcel_thumb_list img {
		width: 130px;
		height: auto;
	}

	ul.preform {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 16px;
	}

	ul.preform li {
		text-align: center;
		margin: 0;
	}

	.preform-sticker img {
		width: 70px;
		height: auto;
	}

	.preform-notebook img {
		width: 102px;
		height: auto;
	}

	ul.item_thumb_list a img,
	ul.preform a img {
		cursor: pointer;
		transition: opacity 0.2s;
	}

	ul.item_thumb_list a img:hover,
	ul.preform a img:hover {
		opacity: 0.8;
	}

	ul.item_thumb_list li input.txt_amount,
	ul.item_thumb_list li select,
	ul.preform li select {
		margin-top: 0.5rem;
	}

	ul.item_thumb_list li strong,
	ul.preform li .amount {
		display: block;
		margin-top: 0.5rem;
	}

	.selection_heading {
		font-size: 16px;
		font-weight: bold;
		padding: 10px 15px;
		background-color: #f0f0f0;
		border-left: 4px solid #8A0000;
		margin: 20px 0 15px 0;

		.required {
			color: #c00;
			margin-left: 5px;
		}
	}

	/* ボタンスタイル */
	@keyframes spin {
		0% { transform: rotate(0deg); }
		100% { transform: rotate(360deg); }
	}

	.btn-submit, .btn-back {
		padding: 8px 30px;
		cursor: pointer;
		font-size: 14px;
		border-radius: 4px;
		min-width: 172px;
		min-height: 39px;
		font-weight: bold;
		box-shadow: 0 2px 3px rgba(0,0,0,0.07);
		transition: all 0.2s;
	}

	.btn-submit {
		background: linear-gradient(to bottom, #fffef0 0%, #ffe680 100%);
		color: #7a0c03;
		border: 1px solid #8b6914;
	}

	.btn-submit:hover:not(:disabled) {
		background: linear-gradient(to bottom, #fffce0 0%, #ffd750 100%);
	}

	.btn-back {
		background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
		color: #666;
		border: 1px solid #999;
	}

	.btn-back:hover {
		background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 100%);
	}

	.loading-spinner {
		display: inline-block;
		width: 14px;
		height: 14px;
		border: 2px solid #f3f3f3;
		border-top: 2px solid #7a0c03;
		border-radius: 50%;
		animation: spin 1s linear infinite;
		vertical-align: middle;
		margin-right: 5px;
	}
}
