.template{
	margin: 40px 0;
}
.template p{
	margin: 0 0 20px 0;
}
.template p:last-child{
	margin: 0;
}
.template img{
	width: 100%;
}

.template-img-left,
.template-img-right{
	overflow: hidden;
}
.template-img-left .img{
	float: left;
	width: 280px;
}
.template-img-left .text{
	float: right;
	width: calc(100% - 310px);
}
.template-img-right .img{
	float: right;
	width: 280px;
}
.template-img-right .text{
	float: left;
	width: calc(100% - 310px);
}

.template-col2{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.template-col3{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.template-col4{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.template-col .col{
	text-align: center;
}

.template-table table{
	width: 100%;
}
.template-table th{
	padding: 20px;
	text-align: left;
	vertical-align: top;
}
.template-table td{
	padding: 20px;
	text-align: left;
	vertical-align: top;
}

.template-table .table1 th{
	border-bottom: #ddd 1px solid;
}
.template-table .table1 td{
	border-bottom: #ddd 1px solid;
}
.template-table .table2 th{
	background: #f5f5f5;
	border: #ddd 1px solid;
}
.template-table .table2 td{
	border: #ddd 1px solid;
}
.template-table .table3 th{
	padding: 10px;
	background: #f5f5f5;
	border: #ddd 1px solid;
}
.template-table .table3 td{
	padding: 10px;
	border: #ddd 1px solid;
}
.template-table .table4 th{
	border-right: #ddd 1px dashed;
	border-bottom: #ddd 1px dashed;
}
.template-table .table4 td{
	border-bottom: #ddd 1px dashed;
}
.template-table .table5 tr:nth-child(odd) th{
	background: #f5f5f5;
}
.template-table .table5 tr:nth-child(odd) td{
	background: #f5f5f5;
}

.template-img-left-table,
.template-img-right-table,
.template-text-left-table,
.template-text-right-table{
	overflow: hidden;
}
.template-img-left-table .img,
.template-text-left-table .text{
	float: left;
	width: 280px;
}
.template-img-right-table .img,
.template-text-right-table .text{
	float: right;
	width: 280px;
}
.template-img-left-table .table,
.template-text-left-table .table{
	float: right;
	width: calc(100% - 310px);
}
.template-img-right-table .table,
.template-text-right-table .table{
	float: left;
	width: calc(100% - 310px);
}

.template-dl-row dl dt{
	font-weight: bold;
}
.template-dl-row dl dd{
	margin: 0 0 20px 0;
}
.template-dl-row dl dd:last-child{
	margin: 0;
}

.template-dl-col dl{
	display: flex;
	flex-wrap: wrap;
}
.template-dl-col dl dt{
	width: 20%;
	font-weight: bold;
}
.template-dl-col dl dd{
	margin: 0 0 20px 0;
	padding: 0 0 0 20px;
	width: 80%;
}
.template-dl-col dl dd:last-child{
	margin: 0;
}

.template-backpattern1{
	padding: 30px;
	background-color: #f5f5f5;
	background-image:
		 repeating-linear-gradient(-45deg, #fff, #fff 7px,transparent 0, transparent 14px);
	border-radius: 10px;
}
.template-backpattern2{
	padding: 30px;
	border-top: #ddd 5px solid;
	box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 599px) {
	.template-img-left .img,
	.template-img-right .img{
		float: none;
		margin: 0 0 20px 0;
		width: 100%;
	}
	.template-img-left .text,
	.template-img-right .text{
		float: none;
		width: 100%;
	}

	.template-col4{
		grid-template-columns: repeat(2, 1fr);
	}

	.template-img-left-table .img,
	.template-text-left-table .text,
	.template-img-right-table .img,
	.template-text-right-table .text{
		float: none;
		margin: 0 0 20px 0;
		width: 100%;
	}
	.template-img-left-table .table,
	.template-text-left-table .table,
	.template-img-right-table .table,
	.template-text-right-table .table{
		float: none;
		width: 100%;
	}

	.template-dl-row dl dt{
		font-weight: bold;
	}
	.template-dl-row dl dd{
		margin: 0 0 20px 0;
	}
	.template-dl-row dl dd:last-child{
		margin: 0;
	}

	.template-dl-col dl{
		display: flex;
		flex-wrap: wrap;
	}
	.template-dl-col dl dt{
		width: 20%;
		font-weight: bold;
	}
	.template-dl-col dl dd{
		margin: 0 0 20px 0;
		padding: 0 0 0 20px;
		width: 80%;
	}
	.template-dl-col dl dd:last-child{
		margin: 0;
	}

	.template-backpattern1{
		padding: 30px;
		background-color: #f5f5f5;
		background-image:
			 repeating-linear-gradient(-45deg, #fff, #fff 7px,transparent 0, transparent 14px);
		border-radius: 10px;
	}
	.template-backpattern2{
		padding: 30px;
		border-top: #ddd 5px solid;
		box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
	}
}
