
form {
	padding: 60px 40px;
	border: 1px #000 solid;
}
form .row.border {
	padding: 0 30px 20px;
	border-bottom: 1px #eaeaea solid;
}
/* デフォルトの装飾を削除 */
input, textarea, select {
	-webkit-appearance: none;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 10px;
	border: 1px #000 solid;
	border-radius: 0;
	font-family: "noto-sans-cjk-jp", sans-serif;
	font-weight: 400;
	font-size: 16px;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
:focus {
    outline: -webkit-focus-ring-color none;
}
::placeholder {
  color: #C1C1C1;
}

.item {
	display: block;
	width: 240px;
	font-family: "heisei-kaku-gothic-std", sans-serif;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	position: relative;
}
.item::after {
	content: "任意";
	display: inline-block;
	padding: 3px 10px;
	background: #ede9de;
	color: #323232;
	font-size: 12px;
	position: absolute;
	top: -1px;
	right: 30px;
}
.item.required::after {
	content: "必須";
	background: #ed2e30;
	color: #fff;
}
.form_wrap {
	width: calc(100% - 240px);
}
.wrap {
	display: block;
	width: 100%;
}
.mr_10 {
	margin-right: 10px;
}
.mr_30 {
	margin-right: 30px;
}

input.zip {
	width: 120px;
}

/* ラジオボタン */
.label_radio {
	display: inline-flex;
	flex-wrap: nowrap;
}
.label_radio img {
	width: 40px;
	cursor: pointer;
}
.label_radio input {
    display: none;
}
.label_radio span {
	display: inline-block;
    padding-left: 20px;
	font-size: 16px;
	line-height: 1;
    position: relative;
	cursor: pointer;
}
.label_radio span:hover {
	opacity: 0.8;
}
.label_radio span::before {
    content: "";
    display: block;
    width: calc(16px - 2px);
    height: calc(16px - 2px);
    border: 1px #323232 solid;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}
.label_radio input:checked + span {
    color: #ff0000;
}
.label_radio input:checked + span::before {
    border-color: #ff0000;
}
.label_radio input:checked + span::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff0000;
    position: absolute;
    top: 50%;
    left: 5px;
	transform: translateY(-50%);
}
/* チェックボックス */
.label_check {
	display: inline-block;
}
.label_check input {
    display: none;
}
.label_check span {
	display: inline-block;
    padding-left: 21px;
	font-size: 16px;
	line-height: 1.4;
    position: relative;
	cursor: pointer;
}
.label_check span:hover {
	opacity: 0.8;
}
.label_check span::before {
    content: "";
    display: block;
    width: calc(16px - 2px);
    height: calc(16px - 2px);
    border: 1px #333 solid;
    position: absolute;
    top: 4px;
    left: 0;
}
.label_check input:checked + span::before {
    border: 1px #ff0000 solid;
}
.label_check input:checked + span::after {
    content: "";
    display: block;
    width: 12px;
    height: 6px;
    border-left: 4px #ff0000 solid;
	border-bottom: 4px #ff0000 solid;
    position: absolute;
    top: 4px;
    left: 1px;
	transform: rotate(-45deg);
}

/* ファイルアップロード */
.file_text {
	width: 100%;
	text-align: center;
}

/* 個人情報の取り扱いについて同意する */
#agree span {
	display: inline-block;
    padding-left: 22px;
	font-size: 16px;
	font-weight: 700;
    position: relative;
	cursor: pointer;
}
#agree span:hover {
	opacity: 0.8;
}
#agree span::before {
    content: "";
    display: block;
    width: calc(16px - 2px);
    height: calc(16px - 2px);
    border: 1px #323232 solid;
    position: absolute;
    top: 50%;
    left: 0;
	transform: translateY(-50%);
}
#agree.active span {
    color: #ed2e30;
}
#agree.active span::before {
    border-color: #ed2e30;
}
#agree.active span::after {
    content: "";
    display: block;
    width: 10px;
    height: 4px;
    border-left: 3px #ed2e30 solid;
	border-bottom: 3px #ed2e30 solid;
    position: absolute;
    top: 2px;
    left: 3px;
	transform: rotate(-45deg);
}

/* 確認ボタン */
input[type="button"] {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 300px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50px;
	background: #ed2e30;
	color: #fff;
	font-family: "heisei-kaku-gothic-std", sans-serif;
	font-weight: 500;
	font-size: 18px;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: all .3s;
}
input[type="button"]:hover {
	filter: brightness(1.1);
}
input[type="button"]#btn_conf {
	background: #ccc;
	pointer-events: none;
}
input[type="button"]#btn_conf.active {
	background: #ff0000;
	pointer-events: auto;
}

/* 戻るボタン */
input[type="button"]#btn_back {
	background: #ccc;
	margin-right: 10px;
}
input[type="button"]#btn_back:hover {
	background: #ccc;
}

/* エラーチェック -------------------------*/
.form_err {
  	background-color: #FFF7F9;
	margin-bottom: 10px!important;
}
div[id^="err_"] {
	display: block;
	width: 100%;
	color: #d93025;
	font-size: 12px;
}

/* 確認画面 -------------------------*/
.form_view {
	display: inline-block;
	white-space:pre-wrap; word-wrap:break-word;
}
.form_input {
    display:block;
}
.form_conf {
    display:none!important;
}
/* .input_only 確認画面では表示させないテキストに付与 */

@media screen and (max-width : 960px) {
	
	form {
		max-width: 680px;
		margin: auto;
		padding: 30px 20px;
	}
	form .row.border {
		padding: 0 0 15px;
	}
	input,
	textarea,
	select {
		font-size: 16px;
		color: #000;
	}
	.row.border {
		padding: 0 10px 15px;
	}
	.item {
		width: 100%;
		padding: 0;
		margin-bottom: 10px;
		font-size: 12px;
	}
	.item::after {
		font-size: 10px;
		position: relative;
		top: -1px;
		right: -10px;
	}
	.form_wrap {
		width: 100%;
	}
	.mr_20 {
		margin-right: 10px;
	}
	/* ラジオボタン */
	.label_radio {
		display: flex;
		align-items: center;
		width: 100%;
		margin-bottom: 10px;
	}
	.label_radio:last-child {
		margin-bottom: 0;
	}
	.label_radio span {
	    padding-left: 18px;
		font-size: 14px;
	}
	.label_radio.sp_nowrap {
		display: inline-block;
		margin-bottom: 0;
	}
	.label_radio span::before {
	    width: calc(14px - 2px);
	    height: calc(14px - 2px);
	}
	.label_radio input:checked + span::after {
	    left: 4px;
	}

	/* 確認ボタン */
	input[type="button"] {
		width: 200px;
		height: 50px;
		font-size: 16px;
	}

}


@media screen and (max-width : 540px) {
	/* 戻るボタン */
	input[type="button"]#btn_back {
		margin-right: 0;
		margin-bottom: 10px;
	}
}


@media screen and (max-width : 460px) {
	form {
		padding: 20px 0;
		border-right: none;
		border-bottom: none;
		border-left: none;
	}
}

