/* CSS Document */

:root{
	--color-error: #d4145a;
}

#main{
	margin-bottom: clamp(80px, calc(160 / 992 * 100dvw), 160px);
}

#inquiry,
#thanks{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	margin-top: clamp(16px, calc(32 / 992 * 100dvw), 32px);
	overflow: hidden;
	& h2{
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 0.5em;
		font-weight: 700;
		font-size: clamp(20px, calc(36 / 768 * 100dvw), 36px);
		letter-spacing: 0.1em;
		&:before{
			content: "";
			width: 4px;
			height: 1em;
			background: var(--color-theme);
			transform: translateY(calc(0.825em - 50%));
		}
	}
	& h2+div{
		margin-top: clamp(24px, calc(40 / 992 * 100dvw), 40px);
	}
}

#toDownload{
	margin-top: clamp(40px, calc(80 / 992 * 100dvw), 80px);
	& ul{
		display: grid;
		justify-items: center;
		grid-row-gap: 16px;
	}
	& li{
		display: contents;
	}
	& a{
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		column-gap: 0.5em;
		min-width: min(100%, 560px);
		min-height: clamp(48px, calc(64 / 768 * 100dvw), 64px);
		padding: 0.25em 1.5em 0.25em 2em;
		border: 1px solid currentColor;
		border-radius: clamp(24px, calc(32 / 768 * 100dvw), 32px);
		font-weight: 700;
		font-size: clamp(14px, calc(18 / 768 * 100dvw), 18px);
		letter-spacing: 0.05em;
		text-align: center;
		text-decoration: none;
		&:hover{
			background: var(--color-theme);
			border-color: transparent;
			color: #fff;
		}
		&:after{
			content: "";
			aspect-ratio: 1;
			width: 20px;
			background: currentColor;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.29,14.67c.2.2.45.29.71.29s.51-.1.71-.29l6-6c.39-.39.39-1.02,0-1.41s-1.02-.39-1.41,0l-4.29,4.29V2c0-.55-.45-1-1-1s-1,.45-1,1v9.54l-4.29-4.29c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41l6,6ZM19,12c-.55,0-1,.45-1,1v5H2v-5c0-.55-.45-1-1-1s-1,.45-1,1v6c0,.55.45,1,1,1h18c.55,0,1-.45,1-1v-6c0-.55-.45-1-1-1Z"/></svg>') no-repeat center / contain;
		}
	}
}

#form{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	margin-top: clamp(24px, calc(40 / 992 * 100dvw), 40px);
}

#noticeFoot{
	margin-top: clamp(16px, calc(24 / 992 * 100dvw), 24px);
}

#policy{
	display: flex;
	justify-content: center;
	margin-top: clamp(32px, calc(56 / 992 * 100dvw), 56px);
}

#agreement{
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.25em;
	&.err{
		padding: 8px 12px;
		border: 2px solid var(--color-error);
	}
	& label{
		font-weight: 700;
		letter-spacing: 0.05em;
	}
	& input{
		font-weight: 700;
		transform: translateY(calc(0.825em - 50%));
	}
	& a{
		text-decoration: underline;
	}
}

#captcha{
	justify-self: center;
	margin-top: clamp(32px, calc(56 / 992 * 100dvw), 56px);
	&: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;
	margin-top: clamp(32px, calc(56 / 992 * 100dvw), 56px);
	& button{
		all: unset;
		box-sizing: border-box;
		cursor: pointer;
		display: grid;
		align-items: center;
		min-width: min(100%, 420px);
		min-height: clamp(48px, calc(64 / 768 * 100dvw), 64px);
		padding: 0.25em 1.5em;
		background: #fff;
		border: 1px solid currentColor;
		border-radius: clamp(24px, calc(32 / 768 * 100dvw), 32px);
		color: var(--color-theme);
		font-weight: 700;
		font-size: clamp(14px, calc(18 / 768 * 100dvw), 18px);
		text-align: center;
		transition: all 0.2s ease-out;
		&:hover{
			background: var(--color-theme);
			border-color: transparent;
			color: #fff;
		}
		&.lsf-error-btn{
			background: var(--color-error);
			border-color: transparent;
			color: #fff;
		}
		&#btnModify{
			background: transparent;
			border: 1px solid #ccc;
			color: inherit;
			&:hover{
				background: #ccc;
				border-color: transparent;
			}
		}
	}
}

.fr-view{
	font-weight: 500;
}

.entry{
	display: grid;
	border-bottom: 1px solid #dedede;
	& dt,
	& dd{
		padding: 1em;
		font-weight: 500;
	}
	& dt{
		display: grid;
		column-gap: 1em;
		background: var(--color-theme);
		color: #fff;
		font-weight: 700;
		z-index: 1;
		&.acids{
			grid-template-columns: 1fr auto;
			&:after{
				content: "\5FC5\9808";
				align-self: start;
				display: grid;
				align-items: center;
				min-height: 16px;
				padding: 0.25em 0.5em;
				background: var(--color-error);
				border-radius: 2px;
				color: #fff;
				font-weight: 700;
				font-size: 12px;
				letter-spacing: 0.05em;
				line-height: 1;
				transform: translateY(0.4em);
			}
		}
	}
	& dd{
		& a:not(:hover){
			text-decoration: none;
		}
	}
	& 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{
		&:first-child{
			margin-bottom: 8px;
		}
		&:last-child{
			margin-top: 8px;
		}
		&.error{
			color: var(--color-error);
		}
	}
	& textarea{
		background-color: #fff;
	}
	& select{
		background-color: #fff;
	}
	.err{
		background-color: #ffffcc;
		border: 2px solid var(--color-error);
	}
	@media (min-width: 576px) {
		grid-template-columns: auto 1fr;
		& dt,
		& dd{
			border-top: 1px solid #dedede;
		}
		& dt{
			min-width: 10em;
			max-width: 20em;
		}
	}
}





