/* main */
header {
	width: 94.32%;
	background: url(/images/sdj_subtitle7.jpg) left no-repeat, url(/images/sdj_subtitle_e.jpg) right no-repeat, url(/images/sdj_subtitle_m.jpg) right repeat;
	margin: 0 auto;
	height: 45px;
	margin-bottom: 30px;
}
section {
	max-width: 700px;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	-webkit-align-items: flex-start;
	align-items: flex-start;
	margin: 10px 25px 30px;
}
figure {
	width: 50.43%;
	border: 6px solid #5a7386;
	margin: 0;
	box-shadow: 3px 3px 5px #808080;
	border-radius: 8px;
}
figcaption {
	width: 43.14%;
	padding: 0;
	margin: 0;
}
input[type=text], input[type=email], textarea {
	width: 100%;
	padding: 6px;
	border: 1px solid #cccccc;
	border-radius: 5px;
	resize: vertical;
}
.col-20 label {
	padding: 6px 6px 6px 0;
}
input[type=submit] {
	-webkit-appearance: none;
	background-color: #333333;
	color: white;
	padding: 9px 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	margin-top: 10px;
}
input[type=submit]:hover {
	background-color: #000000;
}
.container {
	max-width: 700px;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: flex-start;
	align-items: flex-start;
	border-radius: 8px;
	background-color: #f2f2f2;
	padding: 20px;
	margin: 0 25px 15px;
}
.col-20 {
	width: 20%;
	margin-top: 12px;
}
.col-80 {
	width: 80%;
	margin-top: 6px;
}

/* media queries */
@media screen and (max-width: 715px) {
	figcaption {
		width: 45.284%;
	}
}
@media screen and (max-width: 685px) {
	h1 {
		letter-spacing: 1px;
	}
}
@media screen and (max-width: 620px) {
	h1 {
		letter-spacing: 3px;
	}
	.switch {
		display: none;
	}
}
@media screen and (max-width: 570px) {
	h1 {
		letter-spacing: 1px;
	}
}
@media screen and (max-width: 520px) {
	section {
		margin: 10px 15px 30px;
	}
	.container {
		margin: 0 15px 15px;
	}
}
@media screen and (max-width: 500px) {
	section {
		max-width: 341px;
		-webkit-justify-content: center;
		justify-content: center;
		-webkit-align-items: center;
		align-items: center;
		box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
		border-radius: 8px;
	}
	figure {
		width: 100%;
		border: 0;
		box-shadow: none;
		border-radius: 0;
	}
	figure img {
		border-radius: 8px 8px 0 0;
	}
	figcaption {
		width: 100%;
		padding: 10px;
		margin-top: 15px;
	}
	h1 {
		letter-spacing: 3px;
		text-align: center;
	}
	.switch {
		display: inline;
	}
	.container {
		padding: 15px;
	}
	.col-20 label {
		padding: 6px;
	}
	.col-20, .col-80, input[type=submit] {
		width: 100%;
	}
	.col-20 {
		margin-top: 25px;
	}
	.col-20:first-of-type {
		margin-top: 6px;
	}
}
@media screen and (max-width: 350px) {
	header {
		background-size: auto 36px, auto 36px, auto 36px;
		height: 36px;
		margin-bottom: 20px;
	}
}
@media screen and (max-width: 340px) {
	h1 {
		letter-spacing: 1px;
	}
	.container {
		padding: 10px;
	}
	.col-20 {
		margin-top: 15px;
	}
}
@media screen and (max-width: 310px) {
	h1 {
		letter-spacing: 3px;
	}
	.switch {
		display: none;
	}
}
@media screen and (max-width: 285px) {
	h1 {
		letter-spacing: 1px;
	}
}