/* タブ */
.tabs {
	-webkit-display: flex;
	display: flex;
	-webkit-align-items: flex-end;
	align-items: flex-end;
	margin-top: 1em;
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
}

.tabs .tab:last-child {
	border-right: 1px solid #999;
}

.tabs .tab {
	border-top: 1px solid #999;
	border-left: 1px solid #999;
	border-bottom: 1px solid #999;
	padding: 2px 0;
	text-align: center;
	cursor: pointer;

	background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #eeeeee));
	background: -moz-linear-gradient(top, #ffffff, #eeeeee);
	background: -webkit-linear-gradient(top, #ffffff, #eeeeee);
	background: linear-gradient(to bottom, #ffffff, #eeeeee);
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#eeeeee');
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#eeeeee')";
}
.tabs .tab:before,
.tabs .tab:after {
	content: '';
	display: inline-block;
	padding-left: 5px;
}

.tabs .tab.active {
	padding-top: 3px;
	padding-bottom: 4px;
	border-right: 1px solid #999;
	background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #e3f4ff));
	background: -moz-linear-gradient(top, #ffffff, #e3f4ff);
	background: -webkit-linear-gradient(top, #ffffff, #e3f4ff);
	background: linear-gradient(to bottom, #ffffff, #e3f4ff);
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#e3f4ff');
	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#e3f4ff')";
}

.tabs .tab.active + .tab {
	border-left: none;
}


#InputForm .area .tab_caption {
	color: white;
	background-color: #000;
	font-size: 1.2em;
	font-weight: bold;
	padding: 2px 4px;
	border: 1px solid black;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

/* 入力エリア */
#contents #Contents {
	padding: 0.5em;
}

#Contents .area {
	display: none;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
}

#Contents .area.active {
	display: block;
}

#Contents .area.active + .area.active {
	margin-top: 2rem;
}

#Contents .area p + p {
	margin-top: 5px;
}

#Contents .area .input-table {
	font-size: 1rem;
}

#Contents .area .input-table .form-control,
#Contents .area .input-table .form-select {
	display: inline-block;
}

#Contents .area table th {
	width: 15%;
	font-weight: bold;
	vertical-align: middle;
	background-color: #e6ebf0;
	border: solid 1px #999;
	padding: 10px;
}
#Contents .area table td {
	width: 35%;
	vertical-align: middle;
	border: solid 1px #999;
	padding: 10px;
}
#Contents .area table .space {
	opacity: 0;
	border-color: transparent;
}
#Contents .area .two_columns td {
	width: 85%;
}
#Contents .area .images_table th,
#Contents .area .images_table td {
	width: 20%;
}
#Contents .area .images_table.cols10 th,
#Contents .area .images_table.cols10 td {
	width: 10%;
}
#Contents .area .images_table.cols10 .images {
	min-height: 80px;
}
#Contents .area .input_table.section_table th,
#Contents .area .input_table.section_table td {
	width: auto;
}

#Contents .area .cap {
	display: inline-block;
	color: #292929;
	margin-right: 5px;
	vertical-align: middle;
}
#Contents .area .sub_cap {
	display: inline-block;
	color: #292929;
	margin-left: 5px;
	vertical-align: middle;
}

#Contents .area .hbox.flow label {
	-webkit-flex: 0 1 24%;
	flex: 0 1 24%;
	margin: 2px;
	padding: 0 0.5em;
	background-color: #f0f9ff;
}
#Contents .area .hbox.flow label:hover {
	cursor: pointer;
	background-color: gold !important;
}

.input_error {
	-moz-box-shadow: 0px 0px 5px crimson;
	-webkit-box-shadow: 0px 0px 5px crimson;
	box-shadow: 0px 0px 5px crimson;
}

.images {
	min-height: 160px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

.clearable {
	font-size: 1.2rem;
	position: absolute;
	top: 1rem;
	right: 15px;
	color: #ccc;
	cursor: pointer;
}
.clearable:hover {
	color: #999;
}

@media (max-width: 768px) {
	.tabs .tab.active {
		padding-top: 2px;
		padding-bottom: 2px;
	}

	.tabs .tab:last-child,
	.tabs .tab:nth-child(3n) {
		border-right: 1px solid #999;
	}

	#Contents .area .input-table .row .col-md-4 + .col-md-2,
	#Contents .area .input-table.images-table .row .col-md + .col-md,
	#Contents .area .input-table.images-table .row .col-md-2 + .col-md-2,
	#Contents .area .input-table.images-table .row .col-md-3 + .col-md-3,
	#Contents .area .input-table.images-table .row .col-md-4 + .col-md-4,
	#Contents .area .input-table.images-table .row .col-md-6 + .col-md-6 {
		border-top: 1px solid #aaa;
		margin-top: 1rem;
		padding-top: 1rem;
	}
}

@media (min-width: 768px) {
	#Contents .area .input-table,
	#Contents .area .input-table .form-control,
	#Contents .area .input-table .form-select {
		font-size: 12px;
	}
	.clearable {
		top: -15px;
	}
}