﻿.container {
	padding-bottom: 100px;
}
h1 {
	margin-bottom: 0;
	margin-left: 0;
}
legend {
	display: none;
}
input[type='checkbox'],
input[type='radio'] {
	margin: -.1em 5px 0 0;
	vertical-align: middle;
}
input[type="checkbox"] {
	align-items: center;
	background-color: transparent;
	display: inline-flex;
	position: relative;
}
input[type="checkbox"]:before {
	background-color: #d9d9d9;
	border: 1px solid #c2c2c2;
	box-sizing: border-box;
	content: "";
	flex: 0 0 auto;
	height: 20px;
	width: 20px;
}
input[type="checkbox"]:checked:after {
	border: 1px solid #333;
	border-width: 0px 0px 2px 2px;
	content: "";
	display: block;
	height: 11px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-48%, -85%) rotate(311deg);
	width: 18px;
}
input[type="radio"] {
	align-items: center;
	background-color: transparent;
	display: inline-flex;
	margin-right: 6px;
	position: relative;
}    
input[type="radio"]:before {
	background-color: #d9d9d9;
	border: 1px solid #c2c2c2;
	border-radius: 50%;
	box-sizing: border-box;
	content: "";
	flex: 0 0 auto;
	height: 16px;
	width: 16px;
}
input[type="radio"]:checked:after {
	background-color: #888;
	border-radius: 50%;
	content: "";
	display: block;
	height: 12px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
}
input[type='text'],
select {
	border: 1px solid #ccc;
	height: 1.8em;
	padding: .2em.5em;
}
input[type='text'].error_input,
select.error_input,
textarea.error_input {
	background-color: #facdbf;
	border-color: #ed4e00;
}
textarea {
  resize: vertical;
  border: 1px solid #ccc;
  width:300px;
  height:70px;
}
textarea:focus {
	background-color: #facdbf;
}

/* error msg */
.errorMsgY {
	color: #ff0000;
}

/* table */
.tableTypeF tr:first-of-type th {
	border-top: 1px solid #ccc;
}
.tableTypeF th,
.tableTypeF td {
	border-top: none;
	display: block;
}
.tableTypeF td {
	line-height: 2.8em;
}
.tableTypeF th[id] + td *:not(input):not(.input_text_block) {
	padding-top: 0;
	padding-bottom: 0;
}
th[id] + td *:not(input):not(.input_text_block) {
/*  line-height: 1.4em;*/
	padding-top: 0;
	padding-bottom: 0;
}
th[id] + td label[for] {
	line-height: inherit;
	min-width: 7em;
	padding: 0;
	vertical-align: middle;
}

td.inquiry_column_1:after,
td.inquiry_column_2:after {
  content: '';
  display: block;
  clear: both;
}
td.inquiry_column_1 label,
td.inquiry_column_2 label {
	box-sizing: border-box;
	display: block;
/*	float: left;*/
	padding: .5em;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

td.inquiry_column_2 label {
  width: 50%;
}
td.inquiry_column_1 label,
td.inquiry_column_2 label:nth-child(2n+3) {
  clear: both;
}

@media only screen and (max-width: 480px) {
	td.inquiry_column_2 label {
		clear: both;
		width: auto;
	}
}
input.inquiry_text_small,
input.inquiry_text_medium,
input.inquiry_text_large {
	width: 50%;
}

input.inquiry_text_small {
  max-width: 7em;
}

input.inquiry_text_medium {
  max-width: 12em;
}

textarea.inquiry_textarea_small,
textarea.inquiry_textarea_medium,
textarea.inquiry_textarea_large {
  width: 80%;
}

textarea.inquiry_textarea_small {
  max-width: 20em;
}

textarea.inquiry_textarea_medium {
  max-width: 40em;
}

.input_text_block {
	margin: 0;
}

/* stepnav */
.step-nav {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
}
.step-nav * {
	box-sizing: border-box;
}
.step-nav__part {
	border: 1px solid #ccc;
	box-sizing: border-box;
	display: flex;
	font-weight: 500;
	height: 55px;
	justify-content: center;
	line-height: 1.5;
	margin: 0 0 25px 0;
	position: relative;
	z-index: 0;
}
.step-nav__part:after {
	background-color: #fff;
	border: 1px solid #ccc;
	bottom: -8px;
	box-sizing: border-box;
	content: "";
	display: block;
	height: 40px;
	left: 50%;
	position: absolute;
	transform: rotate(45deg) translateX(-50%);
	transform-origin: left;
	width: 40px;
}
.step-nav__part:last-child:after {
	display: none;
}
.step-nav__part.there,
.step-nav__part.there:after {
	border: 3px solid #ed4e00;
}
.step-nav__text {
	align-items: center;
	background-color: #fff;
	display: flex;
	height: 100%;
	justify-content: center;
	left: 0;
	margin: 0;
	padding: 0 20px;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}

/* agree */
.tableTypeF + div {
	border: 1px solid #ccc;
	margin-top: 30px;
	padding: 1.5em;
	text-align: center;
}
.agree {
	margin-top: 15px;
}

.input-wrap {
	white-space: nowrap;
}
.input-wrap .errorMsgY {
	display: block;
}
.input-wrap textarea + .errorMsgY {
	display: block;
}
.input-wrap + br {
	display: none;
}

@media screen and (min-width: 769px) {
	.container {
		padding-bottom: 60px;
	}
	.tableTypeF th,
	.tableTypeF td {
		border-top: 1px solid #ccc;
		display: table-cell;
	}
	.step-nav {
		flex-direction: row;
	}
	.step-nav__part {
		border-right: none;
		flex: 1 1 auto;
		margin-right: 40px;
		width: 100%;
	}
	.step-nav__part:after {
		background-color: transparent;
		bottom: 7px;
		height: 39px;
		left: auto;
		right: -39px;
		width: 39px;
	}
	.step-nav__part:last-child {
		border-right: 1px solid #ccc;
		margin: 0;
	}
	.step-nav__part.there {
		border-right: none;
	}
  .step-nav__part.there:after {
  	border-bottom: none;
  	border-left: none;
		bottom: 5px;
		right: -40px;
  }
	.step-nav__part.there:last-child {
		border-right: 3px solid #ed4e00;
	}
	.input-wrap .errorMsgY {
		display: inline-block;
	}
	.input-wrap textarea + .errorMsgY {
		display: block;
	}
	.input-wrap + br {
		display: block;
	}
}
@media screen and (min-width: 321px) {
	td.inquiry_column_1 label,
	td.inquiry_column_2 label {
		float: left;
	}
}