/* CSS Document */

:root{
	--color-success: #b36e3e;
	--color-error: #f44336;
	}

main{
	margin-bottom: clamp(96px, calc(160 / 1200* 100vw), 160px);
}

article{
	display: grid;
	grid-template-columns: 1fr var(--wrap) 1fr;
	margin-top: clamp(32px, calc(48 / 1200 * 100vw), 48px);
	&>*{
		grid-column: 2;
	}
	& h2{
		font-weight: 700;
		font-size: clamp(24px, calc(32 / 1200 * 100vw), 32px);
		letter-spacing: 0.05em;
		text-align: center;
	}
	& h2+div{
		justify-self: center;
		margin-top: clamp(32px, calc(48 / 1200 * 100vw), 48px);
		font-weight: 700;
		letter-spacing: 0.025em;
	}
}

#form{
	display: grid;
	grid-template-columns: 1fr var(--wrap) 1fr;
	grid-row-gap: clamp(24px, calc(32 / 1200* 100vw), 32px);
	margin-top: clamp(32px, calc(48 / 1200* 100vw), 48px);
	&>*{
		grid-column: 2;
	}
}

#policy{
	justify-self: center;
	}

#agreement{
	display: grid;
	grid-template-columns: auto 1fr;
	grid-gap: 8px;
	&.err{
		padding: 8px 12px;
		background: #fff;
		border: 2px solid var(--color-error);
	}
	& input{
		transform: translateY(0.35em);
	}
	& label{
		grid-template-columns: auto auto auto;
		grid-gap: 0;
		justify-content: center;
		font-weight: 700;
		font-size: clamp(16px, calc(18 / 1200* 100vw), 18px);
	}
}

#captcha{
	justify-self: center;
	margin: 16px 0;
	&:not(:has(div)){
		display: none;
	}
	.captcha-holder{
		width: 100%;
		border-color: #f33f46;
		border-width: 2px;
	}
	.captcha-success{
		border-color: #5bd25b;
	}
}

#submit{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	grid-gap: 16px 24px;
	& button{
		position: relative;
		display: grid;
		align-items: center;
		width: min(100%, 320px);
		min-height: 56px;
		padding: 4px 24px;
		background: var(--color-success);
		color: #fff;
		border-radius: 32px;
		font-weight: 700;
		text-align: center;
		cursor: pointer;
		transition: all 0.2s ease-out;
		&.lsf-error-btn{
			background: var(--color-error);
			pointer-events: none;
		}
	}
	#btnSend{
		background: var(--color-theme);
	}
	#btnModify{
		background: #fff;
		border: 1px solid var(--color-border);
		color: inherit;
		&:hover{
			opacity: 0.8;
		}
	}
}

#toDownload{
	margin-top: clamp(32px, calc(48 / 1200* 100vw), 48px);
	& ul{
		display: grid;
		justify-content: center;
		grid-gap: 8px;
	}
	& li{
		display: contents;
	}
	& a{
		display: grid;
		grid-template-columns: 1fr 16px;
		align-items: center;
		grid-column-gap: 8px;
		min-height: 48px;
		padding: 8px 24px;
		background: #f0f5f3;
		border-radius: 24px;
		color: var(--color-theme);
		font-weight: 700;
		font-size: 14px;
		letter-spacing: 0.05em;
		text-decoration: none;
		&:after{
			content: "";
			aspect-ratio: 1;
			background: currentColor;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" style="fill: none; stroke: black; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"><polyline points="15 10 15 15 1 15 1 10"/><polyline points="12 7 8 11 4 7"/><line x1="8" y1="1" x2="8" y2="11"/></svg>') center no-repeat;
			-webkit-mask-size: contain;
		}
	}
}

.entry{
	position: relative;
	display: grid;
	overflow: hidden;
	@media (min-width: 576px) {
		grid-template-columns: min(15em, 30vw) auto;
	}
	&:before{
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		width: 100vw;
		height: 1px;
		background: #acacac;
		-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 1"><rect width="2" height="1"/></svg>') repeat-x center left;
	}
	& dt,
	& dd{
		padding: 16px 0;
	}
	& dt{
		position: relative;
		display: grid;
		color: var(--color-theme);
		font-weight: 700;
		@media (max-width: 575.98px) {
			padding-bottom: 0;
		}
	}
	& dt{
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 8px;
		align-items: start;
		&:after{
			order: -1;
			content: "任意";
			display: grid;
			align-items: center;
			min-height: 16px;
			padding: 4px 8px;
			background: #ccc;
			border-radius: 4px;
			color: #fff;
			font-weight: 700;
			font-size: 14px;
			letter-spacing: 0.025em;
			line-height: 1;
			transform: translateY(0.1em);
		}
		&.acids{
			&:after{
				content: "\5FC5\9808";
				background: var(--color-error);
			}
		}
	}
	& dd{
		position: relative;
		display: grid;
		grid-gap: 8px;
		&:before{
			content: "";
			position: absolute;
			bottom: 0;
			right: 0;
			width: 100vw;
			height: 1px;
			background: #acacac;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 1"><rect width="2" height="1"/></svg>') repeat-x center left;
		}
	}
	& ul{
		display: flex;
		flex-wrap: wrap;
		grid-gap: 8px 24px;
		padding: 8px;
	}
	& li{
		&:has(input){
			display: grid;
			grid-template-columns: auto 1fr;
			grid-gap: 8px;
			}
		& input{
			transform: translateY(0.4em);
		}
	}
	& p{
		margin: 8px;
		&:not([class]){
			font-size: 14px;
		}
		&.error{
			color: var(--color-error);
		}
	}
	.err{
		background-color: #ffffcc;
		border: 2px solid var(--color-error);
	}
}





