@charset "utf-8";

form#mail_form {
	width: 960px;
	margin: 50px auto;
	padding: 10px 0;
	background: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 7px;
	box-shadow: 0 0 7px rgba( 0, 0, 0, 0.2 );
	font-size: 95%;
	line-height: 1.8;
}

form#mail_form .mail_form_inner {
	width: 90%;
	margin: 0 auto;
}

form#mail_form p{
	text-indent: -1em;
	padding-left: 1em;
}

form#mail_form h3{
	margin-top: 50px;
	margin-bottom: 20px;
}

form#mail_form h3 span{
	font-size: 1rem;
}

form#mail_form dl {
	display: flex;
	justify-content: space-between;
}

form#mail_form dl dt {
	position: relative;
	display: inline-flex;
	justify-content: space-between;
	width: 30%;
	text-align: right;
}

form#mail_form dl dd {
	width: 65%;
	margin: 0;
}


form#mail_form dl .flex_dl{
	display: flex;
	justify-content: space-between;
}

form#mail_form dl dl{
	display: inline-flex;
	margin-right: 1rem;
	margin-bottom: 10px;
}

form#mail_form dl .flex_dl dl:last-child{
	margin-right: 0;
}

form#mail_form dl dl dt{
	width: 3rem;
}

form#mail_form dl dl dd{
	width: calc(100% - 3.5rem);
}

form#mail_form dl dl dt,
form#mail_form dl dl dd{
	margin: 0;
	padding: 0;
}

/* -- START 各ページごとのCSS ----------------------------------*/
@media screen and ( min-width: 1001px ){
	#permit_wrap dl .flex_dl dl:first-child{
		width: 40%;
	}

	#permit_wrap dl .flex_dl dl:last-child{
		width: 60%;
	}
	#permit_wrap dl .flex_dl dl:last-child dt{
		width: 5rem;
	}

	#permit_wrap dl .flex_dl dl:last-child dd{
		width: calc(100% - 5rem);
	}
}

#company_wrap,
#daihyou_wrap, #address_wrap,
#email_wrap, #email_confirm_wrap,
#phone_wrap, #sinsei_wrap,
#renraku_wrap, #hp_adress_wrap,
#permit_wrap, #group_works_wrap,
#group_records_wrap, #group_compliance_wrap,
#project_period_wrap, #project_about_wrap,
#project_joseikinryaku_wrap, #project_jutou_wrap,
 #josei_wrap{
	margin-bottom: 50px;
 }

#target_wrap label,
#target_wrap ul{
	margin-bottom: 0;
}

#target_wrap{
	margin-top: 20px;
}

/* -- ENd 各ページごとのCSS ----------------------------------*/

/* -- for JavaScript ここから -------------------------------------------------------------------------------- */
form#mail_form dl dt span.required,
form#mail_form dl dt span.optional {
	display: inline-block;
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 3px;
}

form#mail_form dl dt span.required {
	background: #d9534f;
	border: 1px solid #d43f3a;
}

form#mail_form dl dt span.optional {
	background: #337ab7;
	border: 1px solid #2e6da4;
}

form#mail_form dl dd span.error_blank,
form#mail_form dl dd span.error_format,
form#mail_form dl dd span.error_match {
	display: block;
	color: #ff0000;
	margin-top: 3px;
}


span.loading {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border-top: 5px solid rgba( 255, 255, 255, 0.2 );
	border-right: 5px solid rgba( 255, 255, 255, 0.2 );
	border-bottom: 5px solid rgba( 255, 255, 255, 0.2 );
	border-left: 5px solid #ffffff;
	-webkit-transform: translateZ( 0 );
	-ms-transform: translateZ( 0 );
	transform: translateZ( 0 );
	-webkit-animation: load-circle 1.0s linear infinite;
	animation: load-circle 1.0s linear infinite;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -30px;
	margin-left: -30px;
}

@-webkit-keyframes load-circle {
	0% {
		-webkit-transform: rotate( 0deg );
		transform: rotate( 0deg );
	}
	100% {
		-webkit-transform: rotate( 360deg );
		transform: rotate( 360deg );
	}
}

@keyframes load-circle {
	0% {
		-webkit-transform: rotate( 0deg );
		transform: rotate( 0deg );
	}
	100% {
		-webkit-transform: rotate( 360deg );
		transform: rotate( 360deg );
	}
}


/* -- for JavaScript ここまで -------------------------------------------------------------------------------- */


form#mail_form input[type="text"],
form#mail_form input[type="email"],
form#mail_form input[type="tel"] {
	width: 100%;
	padding: 7px 2%;
	border: 1px solid #cccccc;
	border-radius: 3px;
	background: #fafafa;
	font-size: 100%;
	font-family: inherit;
}

form#mail_form input[type="text"]:focus,
form#mail_form input[type="email"]:focus,
form#mail_form input[type="tel"]:focus,
form#mail_form textarea:focus {
	box-shadow: 0px 0px 5px #55ccff;
	border: 1px solid #55ccff;
	background: #ffffff;
}

form#mail_form ul li input[type="radio"],
form#mail_form ul li input[type="checkbox"] {
	margin-right: 10px;
	margin-top: 10px;
}

form#mail_form ul li:first-child input[type="radio"],
form#mail_form ul li:first-child input[type="checkbox"] {
	margin-top: 0px;
}

form#mail_form select {
	font-size: 100%;
	font-family: inherit;
	margin-top: 10px;
}

form#mail_form textarea {
	display: block;
	width: 100%;
	padding: 7px 2%;
	resize: vertical;
	border: 1px solid #cccccc;
	border-radius: 3px;
	background: #fafafa;
	font-size: 100%;
	font-family: inherit;
}


form#mail_form ul {
	list-style-type: none;
}

form#mail_form ul li label:hover {
	cursor: pointer;
}

form#mail_form input#postal + a {
	display: inline-block;
	padding: 5px 15px;
	border: 1px solid #46b8da;
	border-radius: 3px;
	background: #5bc0de;
	font-size: 100%;
	color: #ffffff;
	text-decoration: none;
}

form#mail_form input#postal + a:hover {
	cursor: pointer;
	background: #31b0d5;
	border: 1px solid #269abc;
}

form#mail_form button ,
button#send-btn {
	padding: 7px 20px;
	border: 1px solid #4cae4c;
	border-radius: 3px;
	background: #5cb85c;
	font-size: 100%;
	color: #ffffff;
	font-family: inherit;
}

form#mail_form button:hover,
button#send-btn:hover {
	cursor: pointer;
	background: #449d44;
	border: 1px solid #398439;
}

#check_btn_wrap{
	margin: 30px 0;
	text-align: center;
}


form#mail_form br.pc{
	display: inline;
}

button#cancel-btn{
	padding: 7px 20px;
	border: 1px solid #7b8d7b;
	border-radius: 3px;
	background: #7b8d7b;
	font-size: 100%;
	color: #ffffff;
	font-family: inherit;
}
button#cancel-btn:hover{
	cursor: pointer;
	background: #545554;
	border: 1px solid #545554;
}

.submit-btns{
	text-align: center;
}

/* -- responsive ----------------------------------------------------------------------------------------------------------------- */

/* 1000pixel start */
@media screen and ( max-width: 1000px ) {

form#mail_form {
	width: 95%;
	font-size: 100%;
}

form#mail_form dl{
	flex-direction: column;
	justify-content: flex-start;
}

form#mail_form dl dt {
	display: flex;
	justify-content: flex-start;
	width: 100%;
	padding: 0;
	text-align: left;
}

form#mail_form dl dd {
	width: 100%;
	padding: 0px 0 20px 0px;
}

form#mail_form dl .flex_dl{
	flex-direction: column;
	justify-content: flex-start;
}

form#mail_form dl .flex_dl dl{
	display: flex;
	width: 100%;
}

form#mail_form dl dl dt,
form#mail_form dl dl dd{
	width: 100%;
}

form#mail_form dl dt span {
	font-weight: normal;
}

form#mail_form br.pc{
	display: none;
}

/* -- for JavaScript ここから -------------------------------------------------------------------------------- */

form#mail_form dl dt span.required,
form#mail_form dl dt span.optional {
	margin-right: 1em;
	margin-bottom: 2em;
}


/* -- for JavaScript ここまで -------------------------------------------------------------------------------- */

form#mail_form input[type="text"],
form#mail_form input[type="email"],
form#mail_form input[type="tel"] {
	margin-top: 0px;
}

form#mail_form input#postal + a {
	padding: 6px 15px 5px;
}

form#mail_form select {
	font-size: 16px;
	margin-top: 0;
}


}
/* 1000pixel end */


.error-message {
	color: red;
	font-size: 14px;
	margin-top: 5px;
}

/* START データ送信用ポップアップ */
.popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 20px;
	border: 1px solid #ccc;
	z-index: 1000;
}

.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
}
/* END データ送信用ポップアップ */
