/* ========================================
   Contact Form 7
======================================== */

.wpcf7 {
	width: 100%;
}


/* ----------------------------------------
   Form Table
---------------------------------------- */

.contact_form {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
}

.contact_form + .contact_form {
	margin-top: 0;
}

.contact_form tr {
	border-bottom: 1px solid #ddd;
}

.contact_form tr:first-child {
	border-top: 1px solid #ddd;
}

.contact_form + .contact_form tr:first-child {
	border-top: 0;
}

.contact_form th,
.contact_form td {
	margin: 0;
	padding: 28px 0;
	border: 0;
	background: none;
	vertical-align: top;
}


/* 項目名 */

.contact_form th {
	width: 32%;
	padding-right: 40px;
	text-align: left;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
}


/* 入力エリア */

.contact_form td {
	width: 68%;
}

.contact_form th p,
.contact_form td p {
	margin: 0;
	padding: 0;
}


/* ----------------------------------------
   Input
---------------------------------------- */

.contact_form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form input[type="tel"],
.contact_form textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 14px 16px;

	border: 1px solid #d5d5d5;
	border-radius: 0;

	background: #f8f8f8;
	color: #222;

	font-family: inherit;
	font-size: 16px;
	font-weight: normal;
	line-height: 1.6;

	appearance: none;
	-webkit-appearance: none;

	transition:
		border-color .2s ease,
		background-color .2s ease;
}


/* Focus */

.contact_form input[type="text"]:focus,
.contact_form input[type="email"]:focus,
.contact_form input[type="tel"]:focus,
.contact_form textarea:focus {
	outline: none;
	border-color: #777;
	background: #fff;
}


/* textarea */

.contact_form textarea {
	min-height: 200px;
	resize: vertical;
}


/* ----------------------------------------
   Checkbox
---------------------------------------- */

.contact_form .wpcf7-checkbox {
	display: block;
}

.contact_form .wpcf7-list-item {
	margin: 0;
}

.contact_form .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.contact_form input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

.contact_form .wpcf7-list-item-label {
	font-size: 14px;
	line-height: 1.6;
}


/* ----------------------------------------
   Validation
---------------------------------------- */

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 8px;
	color: #b33;
	font-size: 12px;
	line-height: 1.5;
}

.contact_form .wpcf7-not-valid {
	border-color: #b88;
}


/* ----------------------------------------
   Submit
---------------------------------------- */

.label_for_submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;

	box-sizing: border-box;
	width: 100%;
	max-width: 360px;
	height: 64px;
	margin: 50px auto 0;
	border-radius: 5px;

	border: 1px solid #222;

	background: #19344c;
	color: #fff;

	font-size: 15px;
	font-weight: 500;
	letter-spacing: .12em;

	cursor: pointer;
	overflow: hidden;

	transition:
		background-color .25s ease,
		color .25s ease;
}


/* 実際のsubmitをlabel全面に配置 */

.label_for_submit input[type="submit"] {
	position: absolute;
	inset: 0;

	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;

	border: 0;
	background: transparent;

	color: transparent;
	font-size: 0;

	cursor: pointer;
}


/* Hover */

.label_for_submit:hover {
	background: #fff;
	color: #222;
}


/* ----------------------------------------
   Response
---------------------------------------- */

.wpcf7 form .wpcf7-response-output {
	margin: 30px 0 0;
	padding: 16px 20px;

	border: 1px solid #ccc;

	font-size: 13px;
	line-height: 1.7;
}

.contact_form .required {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 6px;
	background: #19344c;
	color: #fff;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.4;
	vertical-align: 2px;
}

.wpcf7-spinner{display:none;}

/* ========================================
   Smartphone
======================================== */

@media screen and (max-width: 767px) {

	.contact_form,
	.contact_form tbody,
	.contact_form tr,
	.contact_form th,
	.contact_form td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.contact_form tr {
		padding: 22px 0;
	}

	.contact_form th,
	.contact_form td {
		padding: 0;
	}

	.contact_form th {
		margin-bottom: 10px;
		font-size: 14px;
	}

	.contact_form input[type="text"],
	.contact_form input[type="email"],
	.contact_form input[type="tel"],
	.contact_form textarea {
		padding: 13px 14px;
		font-size: 16px;
	}

	.contact_form textarea {
		min-height: 180px;
	}

	.contact_form .wpcf7-list-item-label {
		font-size: 13px;
	}

	.label_for_submit {
		max-width: none;
		height: 60px;
		margin-top: 35px;
	}

}