@charset "utf-8";

/*
 * ご注文フォーム（Contact Form 7）
 * テーマ css/main.css の MW WP Form 向け指定を移植したもの。
 * テーマ style.css の .wpcf7 向け指定（お問い合わせ用）は、ここで打ち消しています。
 */

.wpcf7:has(.cf7-order) {
	max-width: none;
	margin: 0;
	padding: 0;
}
.wpcf7 .cf7-order {
	font-size: 14px;
	margin: 30px 0 0;
}
.wpcf7 .cf7-order h3 {
	background: #968A3D;
	border-radius: 0;
	color: #fff;
	font-size: 18px;
	padding: 5px;
	text-align: center;
}
.wpcf7 .cf7-order h3 + p {
	margin: 10px 0 15px;
}
.wpcf7 .cf7-order table {
	border-collapse: collapse;
	width: 100%;
	margin: 0 0 30px;
}
.wpcf7 .cf7-order th {
	background: #EDEBDC;
	border: 1px solid #DFDBC2;
	color: #333333;
	font-weight: normal;
	padding: 5px 0 5px 15px;
	text-align: left;
	vertical-align: top;
	width: 25%;
}
.wpcf7 .cf7-order td {
	border: 1px solid #DFDBC2;
	padding: 5px 15px 0;
	width: 75%;
}
.wpcf7 .cf7-order th span {
	background: #FF7201;
	color: #fff;
	display: inline-block;
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
	height: 18px;
	padding: 0 5px;
	margin: 0 5px;
	vertical-align: 2px;
}

/* 入力欄 */
.wpcf7 .cf7-order input,
.wpcf7 .cf7-order select {
	display: inline-block !important;
}
.wpcf7 .cf7-order select {
	max-width: 100%;
}
.wpcf7 .cf7-order textarea {
	display: block !important;
}
.wpcf7 .cf7-order input[type="text"],
.wpcf7 .cf7-order input[type="email"],
.wpcf7 .cf7-order textarea {
	width: auto;
	max-width: 100%;
	padding: 3px 5px;
	margin: 2px 0;
	border: 1px solid #DFDBC2;
	border-radius: 0;
	font-size: 16px;
	box-shadow: none;
}
.wpcf7 .cf7-order input:focus,
.wpcf7 .cf7-order textarea:focus {
	border-color: #FF7201;
	box-shadow: none;
}
.wpcf7 .cf7-order .nobdr input {
	border: none;
	width: 100%;
	font-size: 12px;
}
.wpcf7 .cf7-order .txtsmall {
	font-size: 12px;
	line-height: 1.5;
}

/* ラジオボタン・チェックボックス */
.wpcf7 .cf7-order .wpcf7-radio,
.wpcf7 .cf7-order .wpcf7-checkbox {
	gap: 5px 10px;
}
.wpcf7 .cf7-order .wpcf7-radio.vertical {
	flex-direction: column;
	align-items: flex-start;
}
.wpcf7 .cf7-order .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}
.wpcf7 .cf7-order .wpcf7-list-item input {
	margin: 0;
}

/* マーク */
.wpcf7 .cf7-order .mark .wpcf7-list-item label {
	position: relative;
	min-height: 40px;
	padding: 0 0 0 50px;
}
.wpcf7 .cf7-order .mark .wpcf7-list-item label::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	background-repeat: no-repeat;
	background-size: auto 40px;
}
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(1) label::before { background-image: url(/wp-content/themes/shigyo/images/mark01.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(2) label::before { background-image: url(/wp-content/themes/shigyo/images/mark02.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(3) label::before { background-image: url(/wp-content/themes/shigyo/images/mark03.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(4) label::before { background-image: url(/wp-content/themes/shigyo/images/mark04.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(5) label::before { background-image: url(/wp-content/themes/shigyo/images/mark-bengo.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(6) label::before { background-image: url(/wp-content/themes/shigyo/images/mark-zeiri.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(7) label::before { background-image: url(/wp-content/themes/shigyo/images/mark-fudosan.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(8) label::before { background-image: url(/wp-content/themes/shigyo/images/mark-kaiji.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(9) label::before { background-image: url(/wp-content/themes/shigyo/images/mark-benri.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(10) label::before { background-image: url(/wp-content/themes/shigyo/images/mark-kaikei.png); }
.wpcf7 .cf7-order .mark .wpcf7-list-item:nth-child(11) label::before { background-image: url(/wp-content/themes/shigyo/images/mark-shindan.png); }

/* 書体サンプル */
.wpcf7 .cf7-order .font .wpcf7-list-item label {
	position: relative;
	min-height: 23px;
	padding: 0 0 0 220px;
}
.wpcf7 .cf7-order .font .wpcf7-list-item label::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 214px;
	height: 23px;
	background-repeat: no-repeat;
	background-size: contain;
}
.wpcf7 .cf7-order .font .wpcf7-list-item:nth-child(1) label::before { background-image: url(/wp-content/uploads/hyoshi_mincho.png); }
.wpcf7 .cf7-order .font .wpcf7-list-item:nth-child(2) label::before { background-image: url(/wp-content/uploads/hyoshi_kaisyo.png); }
.wpcf7 .cf7-order .font .wpcf7-list-item:nth-child(3) label::before { background-image: url(/wp-content/uploads/hyoshi_gothic.png); }

/* 記載（印刷）する情報・送付先 */
.wpcf7 .cf7-order .order-section[hidden] {
	display: none !important;
}
.wpcf7 .cf7-order .order-copy,
.wpcf7 .cf7-order .order-send-diff {
	margin: 10px 0;
}
.wpcf7 .cf7-order .order-copy button {
	margin: 0;
	padding: 6px 16px;
	background: #fff;
	color: #FF7201;
	font-size: 13px;
	font-weight: bold;
	border: 1px solid #FF7201;
	border-radius: 3px;
	cursor: pointer;
}
.wpcf7 .cf7-order .order-copy button:hover {
	background: #FF7201;
	color: #fff;
}
.wpcf7 .cf7-order .order-print.is-optional th span,
.wpcf7 .cf7-order .order-shipping.is-off th span {
	display: none;
}
.wpcf7 .cf7-order .order-shipping.is-off table {
	opacity: .5;
}
.wpcf7 .cf7-order input:disabled {
	background: #eee;
	cursor: not-allowed;
}

/* ボタン */
.wpcf7 .cf7-order .form_btn input[type="submit"],
.wpcf7 .cf7-order .form_btn input[type="button"] {
	min-width: 0;
	width: auto;
	margin: 5px;
	padding: 10px 20px;
	background: #f1f1f1;
	color: #666;
	font-size: 14px;
	font-weight: bold;
	border: 1px solid #999;
	border-radius: 3px;
	box-shadow: none;
	cursor: pointer;
}
.wpcf7 .cf7-order .form_btn input[type="submit"]:hover {
	background: #FF7201;
	color: #fff;
}
.wpcf7 .cf7-order .form_btn input:disabled {
	opacity: .5;
	cursor: default;
}

/* 確認画面・完了画面 */
.wpcf7 .cf7-order.is-confirm > :not(.cf7-order-preview):not(.form_btn) {
	display: none;
}
.wpcf7 .cf7-order-preview {
	outline: none;
}
.wpcf7 .cf7-order-preview td {
	padding-bottom: 5px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.wpcf7 .cf7-order.is-sent {
	display: none;
}

@media only screen and (max-width: 768px) {
	/* 長い選択肢があっても表が画面幅を超えないようにする */
	.wpcf7 .cf7-order table,
	.wpcf7 .cf7-order tbody,
	.wpcf7 .cf7-order tr {
		display: block;
		width: 100%;
	}
	.wpcf7 .cf7-order select {
		box-sizing: border-box;
	}
	.wpcf7 .cf7-order th,
	.wpcf7 .cf7-order td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
	.wpcf7 .cf7-order td {
		padding: 5px 5px 0;
	}
	.wpcf7 .cf7-order input[type="text"],
	.wpcf7 .cf7-order input[type="email"],
	.wpcf7 .cf7-order textarea {
		width: 100%;
		box-sizing: border-box;
	}
	.wpcf7 .cf7-order .num input[type="text"] {
		width: 50%;
	}
	.wpcf7 .cf7-order .font .wpcf7-list-item label {
		padding-left: 200px;
	}
	.wpcf7 .cf7-order .font .wpcf7-list-item label::before {
		top: 2px;
		width: 190px;
		height: 20px;
	}
}
