/* ==========================================================
   無料お見積りフォーム（Contact Form 7）専用スタイル
   ========================================================== */

.cf7-estimate-form {
	border-top: 1px solid #ddd;
	margin-top: 20px;
}

.cf7-estimate-form .form-row {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #ddd;
	margin: 0;
}

.cf7-estimate-form .form-row label,
.cf7-estimate-form .form-row .row-wrap {
	display: flex;
	align-items: stretch;
	width: 100%;
	margin: 0;
	font-weight: normal;
}

/* ラベル列 */
.cf7-estimate-form .label-text {
	width: 180px;
	flex-shrink: 0;
	padding: 15px 10px 15px 20px;
	font-weight: bold;
	box-sizing: border-box;
	font-size: 14px;
	display: flex;
	align-items: center;
}

.cf7-estimate-form .form-row.require {
	background: #fbe9ea;
}

.cf7-estimate-form .form-row:not(.require) .label-text {
	background: #f2f2f2;
}

.cf7-estimate-form .form-row.require .label-text::before {
	content: "※ ";
	color: #e2001b;
}

/* 入力列 */
.cf7-estimate-form .input-wrap {
	flex: 1;
	padding: 12px 20px;
	background: #fff;
}

/* 入力欄共通デザイン */
.cf7-estimate-form input[type="text"],
.cf7-estimate-form input[type="email"],
.cf7-estimate-form input[type="tel"],
.cf7-estimate-form input[type="date"],
.cf7-estimate-form select,
.cf7-estimate-form textarea {
	width: 100%;
	max-width: 500px;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
	color: #333;
}

.cf7-estimate-form textarea {
	max-width: 100%;
	min-height: 100px;
	resize: vertical;
}

.cf7-estimate-form select {
	max-width: 320px;
}

/* 郵便番号・住所 */
.input-wrap--address {
	display: block;
}
.input-wrap--address .zip-field {
	display: block;
	margin-bottom: 10px;
}
.input-wrap--address .zip-field input {
	max-width: 150px;
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
}
.input-wrap--address .address-field input {
	max-width: 500px;
}

/* 作業日時 */
.input-wrap--date {
	display: block;
}
.input-wrap--date .date-row {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}
.input-wrap--date .date-row:last-of-type {
	margin-bottom: 6px;
}
.input-wrap--date .date-label {
	width: 75px;
	flex-shrink: 0;
	font-size: 13px;
}
.input-wrap--date input[type="date"] {
	max-width: 220px;
}
.input-wrap--date .date-none {
	display: block;
	margin-top: 4px;
	font-size: 13px;
}
.input-wrap--date .date-none label {
	display: inline-flex;
	width: auto;
}
.input-wrap--date .date-none input[type="checkbox"] {
	margin-right: 6px;
}

/* 個人情報同意・送信ボタン */
.agree-row {
	text-align: center;
	margin: 25px 0 15px;
	font-size: 14px;
}
.agree-row .wpcf7-form-control-wrap {
	display: inline-block;
}
.agree-row label {
	display: inline-flex;
	align-items: center;
}
.agree-row input[type="checkbox"] {
	margin-right: 6px;
}

.submit-row {
	text-align: center;
	margin: 10px 0 30px;
}

.wpcf7-form input.wpcf7-submit {
	background: #f5a623;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 16px 70px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: opacity .2s;
}
.wpcf7-form input.wpcf7-submit:hover {
	opacity: 0.85;
}
.wpcf7-form input.wpcf7-submit.wpcf7-submit-disabled {
	opacity: 0.5;
	cursor: default;
}

/* バリデーションエラー表示（赤字） */
.wpcf7-not-valid-tip {
	color: #e2001b;
	font-size: 12px;
	margin-top: 6px;
	display: block;
}
.wpcf7-form-control.wpcf7-not-valid {
	border-color: #e2001b !important;
	background: #fff6f6;
}
.wpcf7-response-output {
	margin: 20px 0 0;
	padding: 10px 15px;
	border-radius: 4px;
	font-size: 14px;
}

/* ==========================================================
   スマホ対応（画面幅600px以下）
   ========================================================== */
@media screen and (max-width: 600px) {

	.cf7-estimate-form .form-row label,
	.cf7-estimate-form .form-row .row-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	.cf7-estimate-form .label-text {
		width: 100%;
		padding: 10px 15px;
	}

	.cf7-estimate-form .input-wrap {
		padding: 15px;
	}

	.cf7-estimate-form input[type="text"],
	.cf7-estimate-form input[type="email"],
	.cf7-estimate-form input[type="tel"],
	.cf7-estimate-form input[type="date"],
	.cf7-estimate-form select,
	.cf7-estimate-form textarea {
		max-width: 100%;
	}

	.input-wrap--date .date-row {
		flex-wrap: wrap;
	}
	.input-wrap--date input[type="date"] {
		max-width: 100%;
		flex: 1;
	}

	.wpcf7-form input.wpcf7-submit {
		width: 100%;
		padding: 16px 0;
	}
}