.shedpost-form-wrap {
	--shedpost-label-width: 30%;
	--shedpost-max-width: 100%;
	max-width: var(--shedpost-max-width);
	box-sizing: border-box;
}
.shedpost-form-wrap *,
.shedpost-form-wrap *::before,
.shedpost-form-wrap *::after {
	box-sizing: border-box;
}
.shedpost-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.shedpost-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}
.shedpost-row > .shedpost-field {
	flex: 1 1 0;
	min-width: 0;
}
.shedpost-row-label {
	font-weight: 600;
	margin: 16px 0 4px;
}
.shedpost-field {
	margin: 0 0 16px;
}
.shedpost-layout-dl .shedpost-field {
	display: flex;
	gap: 12px;
}
.shedpost-layout-dl .shedpost-label-cell {
	flex: 0 0 var(--shedpost-label-width);
	padding-top: 6px;
}
.shedpost-layout-dl .shedpost-field-cell {
	flex: 1 1 auto;
	min-width: 0;
}
.shedpost-layout-stacked .shedpost-label-cell {
	margin-bottom: 4px;
}
.shedpost-field-cell input[type="text"],
.shedpost-field-cell input[type="email"],
.shedpost-field-cell input[type="tel"],
.shedpost-field-cell input[type="number"],
.shedpost-field-cell input[type="date"],
.shedpost-field-cell select,
.shedpost-field-cell textarea {
	width: 100%;
	max-width: 100%;
	padding: 8px;
}
.shedpost-badge {
	display: inline-block;
	font-size: 0.8em;
	padding: 0 6px;
	border: 1px solid currentColor;
	border-radius: 3px;
}
.shedpost-required::before {
	content: "*";
	margin-right: 2px;
}
.shedpost-choice {
	display: block;
	margin: 2px 0;
}
.shedpost-description {
	font-size: 0.9em;
	margin: 4px 0 0;
}
.shedpost-has-error input,
.shedpost-has-error select,
.shedpost-has-error textarea {
	border-color: #b32d2e;
}
.shedpost-error-msg,
.shedpost-error-general {
	color: #b32d2e;
	margin: 4px 0 0;
}
.shedpost-error-general {
	border: 1px solid #b32d2e;
	padding: 8px 12px;
	margin-bottom: 16px;
}
.shedpost-error-msg::before {
	content: "! ";
	font-weight: 700;
}
.shedpost-confirm-list dt {
	font-weight: 600;
	margin-top: 12px;
}
.shedpost-confirm-list dd {
	margin: 2px 0 0;
}
.shedpost-actions {
	margin-top: 20px;
}
.shedpost-actions button {
	padding: 10px 20px;
	cursor: pointer;
}
@media (max-width: 640px) {
	.shedpost-row {
		display: block;
	}
	.shedpost-layout-dl .shedpost-field {
		display: block;
	}
}

/* デザインの設定（CSS 変数）。変数が未設定のときは、右側の既定値になる。 */
.shedpost-form-wrap {
	color: var(--shedpost-text, inherit);
	font-size: var(--shedpost-font-size, inherit);
}
.shedpost-form-wrap .shedpost-label-cell label,
.shedpost-form-wrap .shedpost-row-label,
.shedpost-form-wrap .shedpost-heading h3 {
	color: var(--shedpost-label, inherit);
}
.shedpost-form-wrap .shedpost-field {
	margin-bottom: var(--shedpost-gap, 16px);
}
.shedpost-form-wrap .shedpost-field-cell input[type="text"],
.shedpost-form-wrap .shedpost-field-cell input[type="email"],
.shedpost-form-wrap .shedpost-field-cell input[type="tel"],
.shedpost-form-wrap .shedpost-field-cell input[type="number"],
.shedpost-form-wrap .shedpost-field-cell input[type="date"],
.shedpost-form-wrap .shedpost-field-cell select,
.shedpost-form-wrap .shedpost-field-cell textarea {
	border: 1px solid var(--shedpost-border, #8c8f94);
	background: var(--shedpost-bg, #fff);
	border-radius: var(--shedpost-radius, 4px);
	color: inherit;
	font-size: inherit;
}
.shedpost-form-wrap .shedpost-actions button {
	background: var(--shedpost-primary, #2271b1);
	color: #fff;
	border: 1px solid var(--shedpost-primary, #2271b1);
	border-radius: var(--shedpost-radius, 4px);
	font-size: inherit;
}
.shedpost-form-wrap .shedpost-actions .shedpost-back {
	background: transparent;
	color: var(--shedpost-primary, #2271b1);
}
.shedpost-form-wrap .shedpost-has-error input,
.shedpost-form-wrap .shedpost-has-error select,
.shedpost-form-wrap .shedpost-has-error textarea {
	border-color: var(--shedpost-error, #b32d2e);
}
.shedpost-form-wrap .shedpost-error-msg,
.shedpost-form-wrap .shedpost-error-general {
	color: var(--shedpost-error, #b32d2e);
}
.shedpost-form-wrap .shedpost-error-general {
	border-color: var(--shedpost-error, #b32d2e);
}

/* 行の列レイアウト（比率・空きセルの位置を守る）。項目は、col の位置（shedpost-col-N）に置く。 */
.shedpost-form-wrap .shedpost-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 16px;
}
.shedpost-form-wrap .shedpost-cols-half {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shedpost-form-wrap .shedpost-cols-third {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shedpost-form-wrap .shedpost-cols-quarter {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.shedpost-form-wrap .shedpost-cols-two-one {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.shedpost-form-wrap .shedpost-cols-one-two {
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.shedpost-form-wrap .shedpost-cols-one-one-two {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
}
.shedpost-form-wrap .shedpost-cols-three-one {
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}
.shedpost-form-wrap .shedpost-cols-one-three {
	grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}
.shedpost-form-wrap .shedpost-row > .shedpost-field {
	min-width: 0;
}
.shedpost-form-wrap .shedpost-col-1 {
	grid-column: 1;
}
.shedpost-form-wrap .shedpost-col-2 {
	grid-column: 2;
}
.shedpost-form-wrap .shedpost-col-3 {
	grid-column: 3;
}
.shedpost-form-wrap .shedpost-col-4 {
	grid-column: 4;
}
@media (max-width: 640px) {
	.shedpost-form-wrap .shedpost-row {
		grid-template-columns: minmax(0, 1fr);
	}
	.shedpost-form-wrap .shedpost-row > .shedpost-field {
		grid-column: 1;
	}
}
