@charset "utf-8";
/*--------------------------------------------------

	FORM

--------------------------------------------------*/
#form .inner {max-width: 1100px;}
#form h4 {
	margin-bottom: clamp(30px, calc(30px + 20 * ((100vw - 375px) / 1545)), 50px);
	line-height: 2;
	text-align: center;
}
#form h4 a {color: #0054D9;text-decoration: underline;}
#form .container {
	padding-top: clamp(40px, calc(40px + 40 * ((100vw - 375px) / 1545)), 80px);
	padding-bottom: clamp(40px, calc(40px + 40 * ((100vw - 375px) / 1545)), 80px);
	box-shadow: 0 0 6px rgba(0, 0, 0, 16%);
	border-radius: 15px;
	background: #F7F8FC;
}
#form .container table {width: 90%;max-width: 940px;margin: 0 auto clamp(30px, calc(30px + 20 * ((100vw - 375px) / 1545)), 50px);}
#form .container table tr {display: block;margin-bottom: clamp(20px, calc(20px + 20 * ((100vw - 375px) / 1545)), 40px);}
#form .container table tr:last-child {margin-bottom: 0;}
#form .container table tr th {
	padding-bottom: 15px;
	font-weight: bold;
	font-size: clamp(14px, calc(14px + 4 * ((100vw - 375px) / 1545)), 18px);
}
#form .container table tr th span {
	margin-left: 15px;
	padding: 5px 20px;
	border-radius: 15px;
	background: #C70505;
	color: #fff;
	text-align: center;
}
#form .container table tr:not(:first-child) td {display: block;}
#form .container input[type="text"],
#form .container input[type="tel"],
#form .container input[type="email"],
#form .container textarea {
	width: 100%;
	height: 50px;
	padding: 0 20px;
	border: 1px solid #333;
	border-radius: 10px;
	background: #fff;
	font-weight: 400;
	font-size: clamp(14px, calc(14px + 2 * ((100vw - 375px) / 1545)), 16px);
	cursor: pointer;
	resize: vertical;
	vertical-align: bottom;
}
#form .container textarea {height: auto;margin-bottom: 40px;padding: 10px 20px;}
::placeholder {color: #DBD7D7;}
/* ラジオボタン */
.radio_wrap {margin-left: 25px;}
.radio_wrap .wpcf7-form-control {
	display: flex;
	flex-wrap: wrap;
	gap: 20px clamp(20px, calc(20px + 65 * ((100vw - 375px) / 1545)), 85px);
}
.radio_wrap .wpcf7-list-item {margin: 0;position: relative;}
.radio_wrap input[type="radio"] {appearance: none;display: none;position: absolute;width: 1px;height: 1px;opacity: 0;}
.radio_wrap .wpcf7-list-item-label {
	display: inline-block;
	position: relative;
	padding: 5px 0 0 45px;
	font-size: 1.4rem;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
}
.radio_wrap .wpcf7-list-item-label::before,
.radio_wrap .wpcf7-list-item-label::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
	border-radius: 50%;
	box-sizing: border-box;
	transition: .3s;
}
.radio_wrap .wpcf7-list-item-label::before {left: 0;width: 36px;height: 36px;border: 1px solid #333;background: #fff;}
.radio_wrap input[type="radio"]:checked + .wpcf7-list-item-label::before {border: 2px solid #333;}
.radio_wrap .wpcf7-list-item-label::after {opacity: 0;left: 12px;width: 12px;height: 12px;background: #333;}
.radio_wrap input[type="radio"]:checked + .wpcf7-list-item-label::after {opacity: 1;background: #333;}
/* チェックボックス */
.checkbox-container {position: relative;margin-bottom: 10px;}
.checkbox-wrapper {display: flex;align-items: flex-start;}
.error-message-container {margin-top: 10px;}
.error-message {display: block;color: #ff0000;font-size: 14px;}
.check {display: none;}
.check + label {position: relative;padding-left: 34px;cursor: pointer;user-select: none;}
.check + label::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 50%;
	transform: translate(0, 50%);
    width: 23px;
    height: 23px;
    border: 1px solid #707070;
	background: #fff;
}
.check:checked + label::before {background: #fff;}
.check:checked + label::after {
	content: "";
    border-radius: 0;
	display: block;
	position: absolute;
	left: 7px;
	bottom: 38%;
	width: 11px;
	height: 6px;
	border-left: 2px solid #10398E;
	border-bottom: 2px solid #10398E;
	transform: rotate(-45deg);
}
.check + label a {text-decoration: underline;}
.wpcf7-acceptance {display: flex;align-items: center;margin: 15px 0 0 5px;gap: 10px;}
.wpcf7-acceptance input[type="checkbox"] {
	position: absolute;
	left: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
	margin-top: -3px;
    border: 1px solid #333;
	background: #fff;
    cursor: pointer;
}
.wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '';
	display: block;
	position: absolute;
	left: 6px;
	bottom: 38%;
	width: 11px;
	height: 6px;
	border-left: 2px solid #0054D9;
	border-bottom: 2px solid #0054D9;
	border-radius: 0;
	transform: rotate(-45deg);
}
.wpcf7-acceptance .wpcf7-list-item {margin-left: 30px;}
.wpcf7-acceptance .wpcf7-list-item-label {cursor: pointer;}
.wpcf7-acceptance .wpcf7-list-item-label a {text-decoration: underline;}
/* submit */
#form .container .submit_wrap p {margin-bottom: 20px;text-align: center;}
#form .container .submit_wrap .submit {
	display: block;
	position: relative;
	z-index: 1;
	width: 80%;
	max-width: 290px;
	margin: 0 auto;
	padding: clamp(15px, calc(15px + 5 * ((100vw - 375px) / 1545)), 20px);
	overflow: hidden;
	border: none;
	border-radius: 2em;
	background: linear-gradient(-45deg, #2773C3, #6ECEE6);
	color: #fff;
	font-weight: bold;
	font-size: clamp(18px, calc(18px + 8 * ((100vw - 375px) / 1545)), 24px);
	text-align: center;
	letter-spacing: .045em;
	transition: all .5s ease-out;
}
#form .container .submit_wrap .submit:hover {background-position: 99% 50%;color: #2773C3;}
#form .container .submit_wrap .submit::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -5;
	transform-origin: left top;
	transform: scale(0, 1);
	background: #fff;
	transition: transform .3s;
}
#form .container .submit_wrap .submit:hover::before {transform-origin: left top;transform: scale(1, 1);}
@media only screen and ( max-width : 767px ) {
	#form .container table tr th {display: block;}
	#form .container table tr th .wrap {width: 100%;}
	#form .container table tr th .content {margin-bottom: 20px;}
	#form .container input[type="text"],
	#form .container input[type="tel"],
	#form .container input[type="email"] {padding: 0 10px;}
	#form .container textarea {padding: 10px;}
}