
.contents {
	& h2 {
		font-size: 23px;
		font-family: var(--family-serif);
		font-weight: var(--weight-b);
		text-align: center;
		& span { display: inline-block; }
	}
	& form {
		font-size: 18px;
	}
	.sp-none { display: none;}
	.read {
		margin-top: 7px;
		text-align: center;
		& span {
			display: inline-block;
		}
	}
	.step {
		max-width: 280px;
		margin: 30px auto 61px;
		font-size: 14px;
		line-height: 1;
		text-align: center;
		color: #666;
		position: relative;
		z-index: 0;
		&::before {
			content: "";
			display: block;
			width: 100%;
			height: 1px;
			background: #d2cfcb;
			position: absolute;
			top: 16px;
			left: 0;
			z-index: -1;
		}
		.num {
			width: 31px;
			height: 31px;
			line-height: 30px;
			margin: 0 auto;
			color: #fff;
			text-align: center;
			display: block;
			background: #d2cfcb;
			border-radius: 50%;
		}
		.txt {
			margin-top: 6px;
			display: block;
		}
		.step1, .step3 {
			padding-bottom: 20px;
			position: absolute;
			top: 0;
			.txt {
				width: 8em;
				white-space: nowrap;
				position: absolute;
				bottom: 0;
				left: 50%;
				margin-left: -4em;
			}
		}
		.step1 { left: 0; }
		.step3 { right: 0; }
		.on {
			color: var(--color-main);
			.num {
				background: #eea9a0;
			}
		}
	}
	& input[type="text"], & select {
		width: 100%;
		height: 64px;
		padding: 0 15px;
		display: block;
		border: 1px solid var(--color-input);
		border-radius: 3px;
		box-sizing: border-box;
	}
	& textarea {
		width: 100%;
		padding: 10px 15px;
		display: block;
		border: 1px solid var(--color-input);
		border-radius: 3px;
		box-sizing: border-box;
	}
	& input[type="radio"], & input[type="checkbox"] {
		display: none;
		+ label {
			padding-left: 34px;
			display: block;
			cursor: pointer;
			position: relative;
			&::before, &::after {
				content: "";
				display: block;
				position: absolute;
			}
			&::before {
				width: 20px;
				height: 20px;
				border: 1px solid #ccc;
				box-sizing: border-box;
				background: #fff;
				top: 7px;
				left: 0;
			}
		}
	}
	& input[type="radio"]{
		+ label {
			&::before, &::after {
				border-radius: 50%;
			}
			&::after {
				width: 10px;
				height: 10px;
				background: var(--color-main);
				transition: transform .2s;
				transform: scale(0);
				top: 12px;
				left: 5px;
			}
		}
		&:checked + label {
			&::after {
				transform: scale(1);
			}
		}
	}
	& input[type="checkbox"]{
		+ label {
			&::before {
				border-radius: 3px;
			}
			&::after {
				width: 10px;
				height: 5px;
				border-left: 2px solid #fff;
				border-bottom: 2px solid #fff;
				top: 12px;
				left: 4px;
				transition: transform .2s;
				transform: scale(0) rotate(-45deg);
			}
		}
		&:checked + label {
			&::before {
				border-color: var(--color-main);
				background: var(--color-main);
			}
			&::after {
				transform: scale(1) rotate(-45deg);
			}
		}
	}
	.select {
		position: relative;
		& select {
			padding-right: 31px;
			background: #fff;
			color: #888;
		}
		&::before {
			content: "";
			display: block;
			width: 10px;
			height: 10px;
			border-left: 2px solid var(--color-main);
			border-bottom: 2px solid var(--color-main);
			transform: rotate(-45deg);
			position: absolute;
			top: 0;
			right: 22px;
			bottom: 6px;
			margin: auto;
		}
	}

	.subject{
		border: solid 1px #ccc;
		padding:10px 20px;
		margin: 20px 0 0;
		font-size:16px;

	}
	.subject span{
		padding:0 3px;
	}

}
@media screen and (min-width: 800px) { .contents {
	& h2 {
		font-size: 26px;
	}
	.sp-none { display: block;}
	.read {
		margin-top: 4px;
	}
	.step {
		max-width: 345px;
		margin: 53px auto 60px;
		font-size: 15px;
		.num {
			width: 33px;
			height: 33px;
			line-height: 32px;
		}
		.txt {
			margin-top: 8px;
		}
		.step1, .step3 {
			padding-bottom: 22px;
		}
	}
	& input[type="text"], & select {
		border-radius: 6px;
	}
	.subject{
		padding: 20px 30px;
	}
}}


.block {
	padding-bottom: 25px;
	border-bottom: 1px solid var(--color-main);
	& h3 {
		margin: 30px 0 20px;
		display: flex;
		align-items: center;
	}
	.required, .optional {
		height: 28px;
		padding: 0 10px;
		margin-left: auto;
		font-size: 15px;
		line-height: 28px;
		background: var(--color-main);
		color: #fff;
		border-radius: 3px;
		white-space: nowrap;
	}
	.optional { background: #a0a0a0;}
	.supplement {
		margin: 15px 0 0;
		font-size: 16px;
		color: #666;
	}
	&.block-name {
		& dl div {
			display: flex;
			align-items: center;
			+div {
				margin-top: 20px;
			}
		}
		& dt { width: 40px; }
		& dd { width: calc(100% - 40px); }
	}
	&.block-sex, &.block-age {
		& ul {
			display: flex;
			flex-wrap: wrap;
			gap: 5px 39px;
		}
	}
	&.block-address {
		& p {
			margin: 16px 0 13px;
			& span { display: inline-block;}
		}
	}
	&.block-know, &.block-reason {
		& h3 {
			align-items: normal;
			& span { margin-top: 3px; }
		}
		& ul {
			display: flex;
			flex-wrap: wrap;
			gap: 10px 0;
		}
		& li {
			width: 100%;
		}
		.textBox input[type="text"] {
			margin: 12px 0 0 36px;
			width: calc(100% - 36px);
		}
	}
}
@media screen and (min-width: 800px) { .block {
	padding-top: 40px;
	padding-left: calc(34000%/1100);
	padding-bottom: 40px;
	position: relative;
	& h3 {
		min-width: calc(31000%/1100);
		width: calc(31000%/1100);
		margin: 0;
		font-size: 18px;
		position: absolute;
		top: 55px;
		left: 0;
	}
	.supplement {
		margin: 13px 0 -6px;
		font-size: 15px;
	}
	&.block-name {
		& dl {
			display: flex;
			justify-content: space-between;
		}
		& dl div {
			width: calc(37000%/760);
			margin-top: 0 !important;
		}
		& dt {
			margin-bottom: 1px;
		}
	}
	&.block-sex, &.block-age {
		padding-top: 38px;
		padding-bottom: 38px;
		& h3 { top: 37px;}
		& ul {
			max-width: 550px;
		}
	}
	&.block-address {
		.select { width: 300px;}
		& p { margin-top: 31px; }
	}
	&.block-know, &.block-reason {
		padding-top: 38px;
		& h3 { top: 37px;}
	}
}}


@media screen and (min-width: 800px) { .block.confirm {
	padding: 37px 0 38px;
	display: flex;
	font-size: 18px;
	gap: 0 30px;
	&:first-of-type {
		padding-top: 55px;
	}
	h3 {
		position: static;
	}
	p {
		margin: 0;
	}
	+ .agree {
		margin-top: 60px;
	}
}}


.contents .ruleBox {
	height: 420px;
	margin: 30px 0 0;
	padding: 42px 19px 19px;
	border: 1px solid #ccc;
	font-size: 15px;
	overflow-y: auto;
	& h1 {
		margin-bottom: 25px;
		font-size: 21px;
		font-weight: var(--weight-m);
	}
	& h2 {
		margin: 23px 0 7px;
		font-size: 18px;
		font-family: var(--family-sans);
		text-align: left;
		font-weight: var(--weight-m);
		+p, +ol, +ul { margin-top: 0; }
	}
	& h3 {
		margin: 23px 0 7px;
		font-size: 16px;
		font-weight: var(--weight-m);
		+p, +ol, +ul { margin-top: 0; }
	}
	& p, & ol, & ul {
		margin-top: 20px;
	}
	& li + li {
		margin-top: .3em;
	}
	& ol li {
		padding-left: 1.5em;
		text-indent: -1.5em;
	}
	& ul li {
		padding-left: .75em;
		text-indent: -.75em;
		&::before { content: "・ ";}
	}
}
@media screen and (min-width: 800px) { .contents .ruleBox {
	margin-top: 50px;
	padding: 48px 59px;
	& h1 {
		margin-bottom: 22px;
		font-size: 24px;
	}
}}


.agree {
	margin: 24px 0 0;
	text-align: center;
	& label {
		display: inline-block !important;
	}
	& p {
		margin: 7px 0 0;
		font-size: 14px;
	}
	.btn {
		margin-top: 30px;
		li+li { margin-top: 15px;}
	}
}
@media screen and (min-width: 800px) { .agree {
	margin: 33px 0 0;
	.btn {
		margin-top: 34px;
		li+li { margin-top: 30px;}
	}
}}


body.complete {
	height: 100%;
	#container {
		height: 100%;
		display: flex;
		flex-direction: column;
	}
	main {
		flex: 1;
	}
	.read {
		margin-top: 30px;
	}
}


