input,
textarea,
select {
	font-size: 16px;
	outline: none;
}

.form_item {
	display: flex;
	flex-direction: column;
}

.form_item:nth-child(3) {
	display: none;
}

/* 法人選択時に必須表示 */
.form_item:nth-child(3) .head_box .must {
    display: inline;
}

.form_item:nth-child(7),
.form_item:nth-child(8),
.form_item:nth-child(9) {
	flex-direction: row;
	align-items: center;
	gap: 40px;
}
@media screen and (max-width: 768px) {
	.form_item:nth-child(7),
	.form_item:nth-child(8),
	.form_item:nth-child(9) {
		flex-direction: column;
		gap: 0;
	}
}

/* head_box */
.form_item .head_box {
	padding-block: 48px 14px;
	display: inline-flex;
	align-items: center;
}
.form_item:nth-child(7) .head_box,
.form_item:nth-child(8) .head_box {
	margin-bottom: 40px;
}

.form_item:nth-child(7) .head_box,
.form_item:nth-child(8) .head_box,
.form_item:nth-child(9) .head_box {
	padding-block: 0;
}
@media screen and (max-width: 768px) {
	.form_item .head_box {
		padding-block: 18px 0;
	}
	.form_item:nth-child(7) .head_box,
	.form_item:nth-child(8) .head_box {
		margin-bottom: 0;
	}
}

.form_item .head_box .head {
	font-weight: 700;
}

.form_item:nth-child(7) .head_box .head,
.form_item:nth-child(8) .head_box .head,
.form_item:nth-child(9) .head_box .head {
	font-weight: 400;
	min-width: 80px;
}

.form_item:nth-child(7) .head_box p.must,
.form_item:nth-child(8) .head_box p.must,
.form_item:nth-child(9) .head_box p.must {
	display: none;
}

.form_item input[type="radio"] {
	appearance: radio;
	accent-color: var(--secondary);
	transform: scale(1.15);
}

.form_item:nth-child(11) .head_box {
	display: none;
}

/* 必須 */
.form_item .head_box p.must {
	margin-left: 13px;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 500;
	color: #ff0d0d;
}

/* エラー文 */
.form_item .element_box p.errors {
	color: #dc0000;
	margin-top: 5px;
}

/* element_box */
.element_box {
	width: 100%;
}

.form_item:nth-child(7) .element_box,
.form_item:nth-child(8) .element_box,
.form_item:nth-child(9) .element_box {
	flex: 1;
}
.form_item:nth-child(7) .element_box,
.form_item:nth-child(8) .element_box {
	margin-bottom: 40px;
}
.form_item:nth-child(7) .element_box .input_wrap {
	width: 260px;
}
.form_item:nth-child(7) .element_box .input_wrap {
	display: flex;
	align-items: center;
	gap: 35px;
}
.form_item:nth-child(7) .element_box .p-postal-code {
	min-width: 260px;
}
.form_item:nth-child(7) .element_box .postal-search {
	min-width: 118px;
	height: 44px;
	background-color: var(--secondary);
	color: var(--white);
	border: none;
	border-radius: 10px;
	font-weight: 400;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s ease-in-out;
	white-space: nowrap;
	&:hover {
		background-color: #0071bc;
	}
}
.form_item:nth-child(8) .element_box .input_wrap {
	position: relative;
	width: 260px;
}
.form_item:nth-child(8) .element_box .input_wrap .contact_form_input {
	background-color: #f4f4f4;
}
.form_item:nth-child(8) .element_box .input_wrap::after {
	content: "";
	position: absolute;
	top: 48%;
	right: 27px;
	transform: translateY(-50%);
	background-image: url(../../../../src/img/round_arrow.svg);
	background-size: contain;
	background-repeat: no-repeat;
	width: 12px;
	height: 12px;
}
.form_item:nth-child(8) .element_box .p-region {
	width: 260px;
	height: 64px;
	background-color: #f4f4f4;
	padding: 16px 0 16px 10px;
	color: #222;
}
.form_item:nth-child(11) .element_box {
	margin-top: 20px;
}

.element_box .radio_wrapper {
	background-color: #f4f4f4;
	padding: 25px 34px;
}
.element_box .radio_wrapper input[type="radio"] {
	margin-right: 8px;
}
.element_box .radio_wrapper .radio_label:not(:last-child) {
	margin-right: 25px;
}
.form_item:nth-child(2) .element_box .radio_wrapper .radio_label:not(:last-child) {
	margin-right: 40px;
}
@media screen and (max-width: 1024px) {
	.element_box .radio_wrapper {
		padding: 15px;
	}
	.form_item:first-child .element_box .radio_wrapper .radio_label {
		display: block;
	}
	.element_box .radio_wrapper .radio_label:not(:last-child) {
		margin-bottom: 10px;
	}
}
@media screen and (max-width: 768px) {
	.form_item:nth-child(6) .element_box {
		padding: 10px 0;
	}
	.form_item:nth-child(7) .element_box,
	.form_item:nth-child(8) .element_box {
		margin-bottom: 10px;
		padding: 10px 0;
	}
	.form_item:nth-child(7) .element_box .p-postal-code {
		min-width: 150px;
	}
	.form_item:nth-child(8) .element_box .input_wrap {
    width: 100%;
		height: 50px;
}
.form_item:nth-child(8) .element_box .p-region {
    width: 100%;
    height: 50px;
}
.form_item:nth-child(10) .element_box {
		padding: 20px 0 0;
}
.form_item:nth-child(11) .element_box {
		margin-top: 0;
}
}

.input_wrap {
	width: 100%;
}
.double_text_input_wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.agree_text {
	text-align: center;
	font-weight: 500;
	padding-top: 80px;
}
.agree_text a {
	color: #0a4dfb;
	transition: 0.3s ease;
	border-bottom: 1px solid transparent;
}
.agree_text a:hover {
	border-bottom: 1px solid #0a4dfb;
}

@media screen and (max-width: 768px) {
	.agree_text {
		padding-top: 30px;
	}
}

/* submitボタン */
.submit_btn {
	width: 30.8%;
	min-width: 308px;
	font-weight: 500;
	height: 62px;
	background-color: var(--site_color1);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	margin: auto;
	margin-top: 46px;
	cursor: pointer;
	transition: all 0.5s;
	color: #fff;
}

.submit_btn:hover {
	background-color: #0071bc;
}

/* テキストボックス用スタイル */
.input_item.text {
	width: 100%;
	padding: 15px;
	background-color: #f4f4f4;
	width: 100%;
	height: 64px;
}

.input_item.half {
	width: 48%;
}
/* テキストエリア用スタイル */
.input_item.textarea {
	width: 100%;
	padding: 15px;
	background-color: #f4f4f4;
	height: 20vw;
	max-height: 270px;
	min-height: 160px;
	line-height: 1.5;
}

@media screen and (max-width: 768px) {
	.submit_btn {
		margin-top: 60px;
		padding: 12px;
	}
	.input_item.text {
		height: 50px;
	}
}

/* ====================================================================================================== */
/* その他レスポンシブ */
/* ====================================================================================================== */
@media screen and (max-width: 1024px) {
	form {
		width: 100%;
		padding-top: 60px;
		padding-bottom: 80px;
	}
}

@media screen and (max-width: 768px) {
	form {
		padding-top: 30px;
		padding-bottom: 40px;
	}
	.form_item {
		flex-direction: column;
	}

	.form_item:not(:first-child) {
		margin-top: 0px;
	}

	.head_box {
		width: 100%;
		padding: 15px 0px;
	}

	.form_item:first-child .head_box {
		border-top: unset;
	}

	.form_item:first-child .element_box {
		border-top: unset;
	}

	.element_box {
		width: 100%;
		padding: 20px 0px;
	}

	.input_item.text {
		padding: 12px;
	}
}

@media screen and (max-width: 480px) {
	.submit_btn {
		margin-top: 40px;
	}
}
