/* CSS Document */

:root{
	--color-error: #b6000d;
	}

#form{
		display: grid;
		grid-template-columns: 1fr var(--wrap) 1fr;
		grid-gap: clamp(32px, calc(48 / 1200 * 100vw), 48px) 0;
		margin: clamp(32px, calc(48 / 1200 * 100vw), 48px) auto calc(clamp(32px, calc(48 / 1200 * 100vw), 48px) * 2) auto;
		&>*{
			grid-column: 2;
		}
	}

#thanks{
	display: grid;
	grid-gap: clamp(32px, 6vw, 40px);
	width: var(--wrap);
	margin: clamp(32px, calc(48 / 1200 * 100vw), 48px) auto calc(clamp(32px, calc(48 / 1200 * 100vw), 48px) * 2) auto;
		#step+div{
			& p:first-child{
				margin-bottom: clamp(18px, calc(32 / 1200 * 100vw), 32px);
				font-size: clamp(20px, calc(24 / 1200 * 100vw), 24px);
				font-weight: 700;
				text-align: center;
			}
		}
}

#step{
	& ol{
		display: flex;
		grid-gap: 20px;
		list-style: none;
		}
	& li{
		position: relative;
		display: grid;
		place-items: center;
		width: 50%;
		min-height: 64px;
		padding: 8px;
		font-size: clamp(14px, calc(18 / 1200 * 100vw), 18px);
		background: var(--color-bg);
		color: #999;
		text-align:center;
		line-height: 1.5em;
		&:before,
		&:after{
			content: "";
			position: absolute;
			top: 0;
			width: 16px;
			height: 100%;
			-webkit-mask-position: center;
			-webkit-mask-repeat: no-repeat;
			-webkit-mask-size: cover;
			background: var(--color-bg);
			}
		&:before{
			left: 0;
			-webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 30 30"><polyline points="0 0, 30 0, 30 30, 0 30, 30 15" /></svg>');
			transform: translateX(-100%);
			}
		&:after{
			right: 0;
			-webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 30 30"><polyline points="0 0, 30 15, 0 30" /></svg>');
			transform: translateX(100%);
			z-index: 1;
			}
		&:first-child{
			border-top-left-radius: 16px;
			border-bottom-left-radius: 16px;
			&:before{
				content: none;
			}
		}
		&:last-child{
			border-top-right-radius: 16px;
			border-bottom-right-radius: 16px;
			&:after{
				content: none;
			}
		}
	}
	& .now{
		background: var(--color-theme);
		color: #fff;
		font-weight: 700;
		&:before,
		&:after{
			background: var(--color-theme);
		}
	}
}

#notice{
	margin-bottom: -16px;
	& p:first-child{
		margin-bottom: 16px;
		color: #ff0003;
		}
	}

#entrySet{
	@media (max-width: 575.98px) {
		grid-column: 1 / 4;
		display: grid;
	}
	.flex{
		display: flex;
		align-items: center;
		& input{
			width: auto;
		}
	}
}

#policy{
	display: grid;
	justify-items: center;
	grid-gap: clamp(16px, 3.6vw, 24px);
	& legend{
		margin-bottom: 16px;
		text-align: center;
	}
}

#agreement{
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	grid-gap: 8px;
	padding: 8px 16px;
	&.err{
		background: #fff0f3;
		border: 2px solid var(--color-error);
	}
	& label{
		font-size: 18px;
		font-weight: 700;
	}
}

#captcha{
	justify-self: center;
	.captcha-holder{
		border-color: #ff0000;
		border-width: 2px;
	}
	.captcha-success{
		border-color: #5bd25b;
	}
}

#submit{
	display: grid;
	justify-content: center;
	grid-gap: 16px 24px;
	#btnConfirm{
		background: var(--color-theme);
		}
	#btnModify{
		background: #ccc;
	}
	#btnConfirm.lsf-error-btn{
		pointer-events: none;
		background: var(--color-error);
	}
	@media (min-width: 576px) {
		& button{
			grid-row: 1;
		}
	}
}

.acids{
	&:after{
		content: "\5FC5\9808";
		color: var(--color-error);
		font-weight: 700;
	}
}

.entry{
	display: grid;
	line-height: 1.65;
	& dt{
		display: grid;
		grid-template-columns: auto auto;
		font-weight: 500;
		background: rgba(var(--color-bg-rgb),.6);
		&:after{
			align-self: start;
			justify-self: end;
			padding: clamp(4px, 1.2vw, 8px);
			background: var(--color-error);
			color: #fff;
			font-size: clamp(10px, 1.8vw, 12px);
			font-weight: normal;
			line-height: 1;
		}
	}
	& dd{
		display: grid;
		grid-gap: 8px;
	}
	& ul{
		display: flex;
		flex-wrap: wrap;
		grid-gap: 8px 24px;
	}
	& li{
		display: flex;
		align-items: center;
		column-gap: 8px;
	}
	& li:has(span):not(:has(span:not(:empty))) {
		display: none;
	}
	& small{
		display: block;
		font-size: clamp(12px, 2.1vw, 14px);
	}
	.chkemail{
		background-color: #fff !important;
	}
	.noClear{
		padding-right: 40px;
		border-color: crimson;
		background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="crimson" d="M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"/></svg>');
		background-repeat: no-repeat;
		background-position: calc(100% - 8px) 10px;
		background-size: 24px;
	}
/*	.clear{
		padding-right: 40px;
		background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="limegreen" d="M19.293 5.293l-10.293 10.293-4.293-4.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414l5 5c0.391 0.391 1.024 0.391 1.414 0l11-11c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0z"/></svg>');
		background-repeat: no-repeat;
		background-position: calc(100% - 8px) 10px;
		background-size: 24px;
		}*/
	@media (max-width: 575.98px) {
		grid-column: 1 / 4;
		display: grid;
		grid-template-columns: 1fr var(--wrap) 1fr;
		&>*{
			grid-column: 2;
		}
		& dt{
			grid-column: 1 / 4;
			align-items: center;
			padding: 8px var(--wrap-space);
		}
		& dd+dt{
			margin-top: 16px;
		}
		& dd{
			margin-top: 16px;
		}
	}
	@media (min-width: 576px) {
		grid-template-columns: 1fr 3fr;
		border-top: 1px dotted var(--color-border);
		& dt,
		& dd{
			padding: 16px;
			border-bottom: 1px dotted var(--color-border);
		}
		& dt{
			&:after{
				margin: -16px;
			}
		}
		& dd{
			padding-right: 0;
		}
	}
}
