
@import url('./font-awesome.css');

article .mainWrap {
	background: url(../img/contact/header.jpg) no-repeat;
	-webkit-background-size: contain;
	background-size: contain;
}

.text-red{
	color: #f00;
	font-size: 14px;
}

.contactWrap>h2 {
	font-size: 1.7em;
	font-weight: bold;
}

.contactWrap>small {font-size: .9rem;}

.contactWrap>p {
	margin: 20px 0;
}

.accordionTrigger{
	cursor: pointer;
	text-decoration: underline;
	color: #1751b2;
}

.accordionBody{
	font-size: 12px;
	display: none;
}

/* form */

form {
	width: 100%;
}

form>p {
	font-size: 14px;
	margin-bottom: 24px;
}

.required {
	position: relative;
}

.required:after {
	content: '必須';
	color: #f00;
	font-size: 12px;
	font-weight: bold;
}

.cution{
	color: #f00;
}

.formWrap {
	margin: 10px auto;
}

#mailform {
	width: 100%;
	padding: 10px 0;
}

/*inputGroupWrap*/

.inputGroupWrap {
	width: 100%;
	margin-bottom: 1em;
}

.inputGroupWrap label {
	display: block;
	width: 100%;
}

.inputGroupWrap small {
	display: block;
	width: 100%;
}

.inputGroupWrap small.red {
	font-size: 80%;
	width: 90%;
	color: #f00;
}

.inputGroupWrap span.overwise {
	padding: .25rem;
	font-size: 14px;
	line-height: 1.25;
	margin: 5px 0;
}

/* formErrorText */

.formErrorText {
	display: none;
	color: #F00;
	font-size: 80%;
}


/* input */

input[type="reset"],
input[type="button"],
input[type="submit"],
input[type="text"],
input[type="date"],
input[type="file"],
input[type="time"],
input[type="number"],
input[type="email"],
select,
textarea {
	font-weight: bold;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-clip: padding-box;
	color: #666;
	border-radius: 0.25rem;
}

input:focus,
textarea:focus {
	color: #546E7A;
	background-color: #fff;
	border-color: #66afe9;
	outline: none;
}

::-webkit-input-placeholder {
	color: #ccc;
}
::-moz-placeholder {
	color: #ccc; opacity: 1;
}
input[type="number"]:-ms-input-placeholder,
input[type="text"]:-ms-input-placeholder{
	color: #ccc;
}

/* select */

select::-ms-expand {
	display: none;
}

select {
	width: 150px;
	position: relative;
	background: #FFF;
	padding-right: 1.2em;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.arrow {
	position: relative;
}

.arrow:after {
	font-family: 'FontAwesome';
	content: '\f0d7';
	position: absolute;
	right: 5px;
	top: -.8rem;
	text-align: center;
	line-height: 2em;
	color: #1751b2;
	width: 1rem;
	height: 1rem;
	padding: .6rem;
	pointer-events: none;
	z-index: 3;
}

.arrow:before {
	content: '';
	position: absolute;
	right: 1px;
	top: -9px;
	width: 3rem;
	height: 2.75rem;
	pointer-events: none;
	z-index: 2;
}


/*label*/

label {
	position: relative;
}

label.any:after,
label.required:after {
	margin: .5em 0 0 .5rem;
	position: absolute;
	content: "";
	width: 2.5rem;
	height: 1em;
	background-repeat: no-repeat;
	-webkit-background-size: contain;
	background-size: contain;
}

label.any:after {
	background-image: url(../contact/img/any.svg);
}

label.required:after {
	background-image: url(../contact/img/required.svg);
}

.inlineLabel{
	display: inline-block;
	width: 100px;
	text-align: right;
	margin-right: 5px;
}

/*contoroll*/

input.danger,
select.danger,
textarea.danger {
	border-color: #d9534f;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
	background-repeat: no-repeat;
	background-image: none\9;
}

input.success,
select.success,
textarea.success {
	border-color: #5cb85c;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
	background-repeat: no-repeat;
	background-image: none\9;
}

textarea.danger,
textarea.success {
	background-position: left 100% top 5%;
	-webkit-background-size: 7%;
	background-size: 7%;
}

@-webkit-keyframes autofill {
	to {
		color: #666;
		background: transparent;
	}
}

input.success:-webkit-autofill,
input.success:-webkit-autofill:hover,
input.success:-webkit-autofill:focus,
input.success:-webkit-autofill:active,
textarea.success:-webkit-autofill,
textarea.success:-webkit-autofill:hover,
textarea.success:-webkit-autofill:focus,
textarea.success:-webkit-autofill:active,
select.success:-webkit-autofill,
select.success:-webkit-autofill:hover,
select.success:-webkit-autofill:focus,
select.success:-webkit-autofill:active{
	-webkit-animation-name: autofill;
	-webkit-animation-fill-mode: both;
	border-color: #5cb85c!important;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3 !important;
	background-image: url("../img/success.svg") !important;
}

input.danger:-webkit-autofill,
input.danger:-webkit-autofill:hover,
input.danger:-webkit-autofill:focus,
input.danger:-webkit-autofill:active,
textarea.danger:-webkit-autofill,
textarea.danger:-webkit-autofill:hover,
textarea.danger:-webkit-autofill:focus,
textarea.danger:-webkit-autofill:active,
select.danger:-webkit-autofill,
select.danger:-webkit-autofill:hover,
select.danger:-webkit-autofill:focus,
select.danger:-webkit-autofill:active{
	-webkit-animation-name: autofill;
	-webkit-animation-fill-mode: both;
	border-color: #d9534f!important;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3 !important;
	background-image: url("../img/danger.svg") !important;
}


/* IE Hack */


/*after*/

.afterWrap {
	padding: 40px 0 70px;
}

.afterWrap>p {
	width: 800px;
	margin: 0 auto 10px;
	text-align: justify;
}

@media all and (-ms-high-contrast:none) {
	input.danger,
	textarea.danger,
	input.success,
	select.success,
	textarea.success {
		background: none;
	}
	label.any:after,
	label.required:after {
		padding-top: 2px;
	}
}


/* radio checkbox */

.radioGroup {
	width: 90%;
	display: -webkit-box;
	display: box;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: flex-start;
	justify-content: flex-start;
}

.inputGroupWrap>.radioGroup:nth-child(n+2){
	margin-bottom: 5px;
}

input[type=radio]{
	display: none;
}

.radioLabel,
.checkbox {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition: background-color 0.2s linear;
	transition: background-color 0.2s linear;
	position: relative;
	display: inline-block;
	margin-right: 1.4rem;
	padding: .25rem 1rem .25rem 3rem;
	background: #fff;
	vertical-align: middle;
	cursor: pointer;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 0.25rem;
}

.radioLabel:hover,
.checkbox:hover {
	background-color: #F7E7EA;
}

.radioLabel:hover:after,
.checkbox:hover:after {
	border-color: #F6A9BB;
}

.radioLabel:after,
.checkbox:after {
	-webkit-transition: border-color 0.2s linear;
	transition: border-color 0.2s linear;
	position: absolute;
	top: 50%;
	left: 1rem;
	display: block;
	margin-top: -.5em;
	width: 1rem;
	height: 1rem;
	border: 2px solid #F6A9BB;
	border-radius: 6px;
	content: '';
}

.radioLabel:before {
	-webkit-transition: opacity 0.2s linear;
	transition: opacity 0.2s linear;
	position: absolute;
	top: 50%;
	left: 1em;
	display: block;
	margin-top: -.5em;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background-color: #F6A9BB;
	content: '';
	opacity: 0;
}

input[type=radio]:checked + .radioLabel:before {
	opacity: 1;
}

.checkbox:before {
	-webkit-transition: opacity 0.2s linear;
	transition: opacity 0.2s linear;
	position: absolute;
	top: 50%;
	left: 1.7em;
	display: block;
	margin-top: -.6em;
	width: .8em;
	height: .8em;
	border-right: 3px solid #F6A9BB;
	border-bottom: 3px solid #F6A9BB;
	content: '';
	opacity: 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

input[type=checkbox]:checked + .checkbox:before {
	opacity: 1;
}

/* imgThumbnail */

.imgThumbnail{
	display: block;
}

.imgThumbnail img{
	max-height: 100px;
	max-width: 100px;
}

/* lenght */

input.formWidht100,
select.formWidht100,
textarea.formWidht100 {
	width: 90%!important;
	box-sizing: border-box;
}

input.formWidht50,
select.formWidht50,
textarea.formWidht50 {
	width: 45%!important;
	box-sizing: border-box;
}

input.formWidht25,
select.formWidht25,
textarea.formWidht25 {
	width: 15%!important;
	box-sizing: border-box;
}

input.formWidhtTel,
input.formWidht20,
select.formWidht20,
textarea.formWidht20 {
	width: 15%!important;
	box-sizing: border-box;
}

input.formWidht15,
select.formWidht15,
textarea.formWidht15 {
	width: 8%!important;
	box-sizing: border-box;
}

input.formWidhtPost {
	width: 20%!important;
	box-sizing: border-box;
}
input.formWidAddress {
	width: 25%!important;
	box-sizing: border-box;
}


/* collum */

.col1 {
	width: 100%;
}

.col2 {
	width: 48%;
}
.col2:nth-child(even){
	margin-left: 4%;
}

.col3 {
	width: 31%;
	margin-left: 2%;
}
.col3:first-of-type {margin-left: 0;}

.col4 {
	width: 23%;
	margin-left: 2.5%;
	margin-bottom: 2.5%;
}
.col4:nth-child(4n+1) {margin-left: 0;}
.col4:last-child {margin-bottom: 0;}



/* button */

.btnWrap {
	width: 95%;
}

.btnWrap input {
	cursor: pointer;
	width: 48%;
}


/* thx */

.content p.fa.fa-check {
	color: #a3d7a3;
	width: 100%;
	text-align: center;
	font-size: 48px;
	margin-top: 20px;
}

.content p.thxCenter {
	text-align: center;
}


/* PC */

@media screen and (min-width: 761px) {
	.contactWrap {
		width: 700px;
		margin: 0 auto 50px;
	}

	/* input */
	input[type="text"],
	input[type="date"],
	input[type="file"],
	input[type="time"],
	input[type="number"],
	input[type="email"],
	select,
	textarea {
		padding: .25rem;
		border: 1px solid rgba(0, 0, 0, 0.15);
		font-size: 14px;
		line-height: 1.25;
		margin: 5px 0;
	}
	input[type="reset"],
	input[type="button"],
	input[type="submit"]{
		padding: .25rem 0;
		text-align: center;
		border: 1px solid rgba(0, 0, 0, 0.15);
		font-size: 14px;
		line-height: 1.25;
		margin: 5px 0;
	}

	.formUnit {
		padding-left: .25rem;
	}
}


/*SP*/

@media screen and (max-width: 760px) {
	.contactWrap {
		width: 100%;
		padding: 0 5px 24px;
	}
	.accordionBody{
		max-height: 150px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0 10px;
	}
	/* input */
	input[type="reset"],
	input[type="button"],
	input[type="submit"],
	input[type="text"],
	input[type="date"],
	input[type="file"],
	input[type="time"],
	input[type="number"],
	input[type="email"],
	select,
	textarea {
		padding: .75rem;
		border: 1px solid rgba(0, 0, 0, 0.15);
		font-size: 1rem;
		line-height: 1;
		margin: 5px 0;
	}
	input[type="reset"],
	input[type="button"],
	input[type="submit"] {
		padding: .75rem 1rem;
		text-align: center;
	}
	/*label*/
	label.any:after,
	label.required:after {
		margin: .1rem 0 0 .5rem;
		padding: 0;
		width: 3rem;
		height: 1.2rem;
		font-size: 80%;
	}
	.inlineLabel{
		display: block;
		width: 90%;
		text-align: left;
		margin-right: 5px;
	}
	/* radio checkbox */
	.radioGroup {
		width: 100%;
	}
	.radioLabel:after,
	.checkbox:after {
		top: 50%;
		left: 1em;
		margin-top: -.8em;
		width: 1.5em;
		height: 1.5em;
	}
	.checkbox:before,
	.radioLabel:before {
		top: 47%;
		left: 1.35em;
		display: block;
		margin-top: -.4em;
		width: .8em;
		height: .8em;
	}
	/* lenght */
	input.formWidht100,
	select.formWidht100,
	textarea.formWidht100 {
		width: 100%!important;
		box-sizing: border-box;
	}
	input.formWidht25,
	select.formWidht25,
	textarea.formWidht25 {
		width: 35%!important;
		box-sizing: border-box;
	}
	input.formWidht20,
	select.formWidht20,
	textarea.formWidht20 {
		width: 30%!important;
		box-sizing: border-box;
	}
	input.formWidht15,
	select.formWidht15,
	textarea.formWidht15 {
		width: 20%!important;
		box-sizing: border-box;
	}
	input.formWidhtPost {
		width: 46%!important;
		box-sizing: border-box;
	}
	input.formWidAddress {
		width: 100%!important;
		box-sizing: border-box;
	}
	input.formWidhtTel{
		width: 29%!important;
		box-sizing: border-box;
	}
	/* collum */
	.col1 {
		width: 100%;
	}
	.col2 {
		width: 48%;
	}
	.col2.tireRight {
		padding-top: 1.5em;
	}
	.col3 {
		width: 49%;
		margin-left: 2%;
	}
	.col3:nth-child(1) {
		margin-left: 0;
	}
	/* button */
	.btnWrap {
		width: 100%;
	}
	.btnWrap input {
		cursor: pointer;
		width: 100%;
	}

	/*form*/
	.formWrap {
		width: 100%;
	}
	.required:after {
		font-size: .8rem;
	}
	/*btn*/
	.btnWrap>.btn {
		width: 80%;
		margin: 0 auto 10px;
	}


	article {margin-bottom: 50px;}

	.afterWrap>h3 {margin-bottom: 30px;}
	.afterWrap>p {
		width: 100%;
		padding: 0 5px 10px;
	}

	.col3:nth-child(odd) {
		margin-left: 0;
		margin-bottom: 5px;
	}



	.inputGroupWrap small.red {width: 100%;}

}

/* 縦長 */

@media only screen and (max-width: 760px) and (orientation: portrait) {

	.col3,
	.col4 {
		width: 48%;
		margin-left: 2%;
		margin-bottom: 5px;
	}

	.col4:nth-child(odd) {margin-left: 0;}

	select {width: 100%;}

	input.formWidht50 {
		width: 100%!important
	}
}

/* 横長 */

@media only screen and (max-width: 812px) and (orientation: landscape) {
	input.formWidhtPost {
		width: 48%!important;
		box-sizing: border-box;
	}

	input.formWidht50 {
		width: 52%!important
	}

	select {width: 50%;}

}
