/* CSS Document */

:root{
	--color-success: #b36e3e;
	--color-error: #cc0000;
}

#main{
	& iframe{
		height: 6800px;
		@media (max-width: 575.98px) {
			height: 6900px;
		}
		@media (min-width: 576px) and (max-width: 767.98px) {
			height: 6800px;
		}
		@media (min-width: 768px) {
			height: 6100px;
		}
	}
}

#inquiry,
#thanks{
	display: grid;
	grid-template-columns: 1fr min(var(--wrap-fit), 960px) 1fr;
	margin: 40px 0 32px 0;
	&>*{
		grid-column: 2;
	}
	& h2{
		justify-self: center;
		padding-left: 40px;
		background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect y="3" width="24" height="18" rx="1" ry="1" style="fill: %23cf8c40;"/><path d="M12,12L0,20c0,.55.45,1,1,1h22c.55,0,1-.45,1-1l-12-8Z" style="fill: %23e69c47;"/><path d="M11.49,15.69L0,10v-6c0-.55.45-1,1-1h22c.55,0,1,.45,1,1v6l-11.49,5.69c-.32.19-.71.19-1.03,0Z" style="fill: %23f6be71;"/></svg>') no-repeat left center / 24px;
		font: 700 clamp(24px, calc(32 / 768 * 100vw), 32px) var(--font-title);
		letter-spacing: 0.1em;
	}
	& h2+div{
		margin-top: clamp(48px, calc(72 / 1200 * 100vw), 72px);
	}
}

#thanks{
	margin-bottom: clamp(80px, calc(120 / 1200 * 100vw), 120px);
}

#form{
	display: grid;
	grid-template-columns: 1fr var(--wrap) 1fr;
	margin-bottom: clamp(80px, calc(120 / 1200 * 100vw), 120px);
	&>*{
		grid-column: 2;
	}
}

#noticeFoot{
	margin-top: 16px;
	color: #595e5c;
	font-size: 14px;
}

#policy{
	justify-self: center;
	}

#agreement{
	display: grid;
	margin-top: clamp(48px, calc(72 / 1200 * 100vw), 72px);
	& label{
		position: relative;
		padding-left: clamp(24px, calc(32 / 768 * 100vw), 32px);
		color: #595e5c;
		font-weight: 700;
		font-size: clamp(16px, calc(18 / 768 * 100vw), 18px);
		letter-spacing: 0.05em;
		.err &{
			padding: 8px 12px;
			border: 2px solid var(--color-error);
		}
	}
	& input{
		width: clamp(16px, calc(18 / 768 * 100vw), 18px);
		&[type="checkbox"]:checked{
			background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0.5 12 12" fill="none" stroke="%230a749e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="1 7 4 10 11 3" /></svg>') no-repeat center / 75%;
		}
	}
	& a{
		display: contents;
		color: #0a749e;
	}
}

#captcha{
	justify-self: center;
	margin: 48px 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;
	margin-top: clamp(48px, calc(72 / 1200 * 100vw), 72px);
	& button{
		all: unset;
		box-sizing: border-box;
		display: grid;
		grid-template-columns: auto auto;
		justify-content: center;
		align-items: center;
		column-gap: 1em;
		width: min(100%, 400px);
		min-height: clamp(60px, calc(80 / 768 * 100vw), 80px);
		padding: 0.5em 1em;
		border-radius: clamp(28px, calc(40 / 768 * 100vw), 40px);
		border: 1px solid currentColor;
		color: inherit;
		font-size: clamp(14px, calc(20 / 768 * 100vw), 20px);
		letter-spacing: 0.1em;
		text-align: center;
		cursor: pointer;
		&:before,
		&:after{
			content: "";
			grid-column: 2;
			grid-row: 1;
			aspect-ratio: 1;
			width: clamp(24px, calc(32 / 768 * 100vw), 32px);
		}
		&:before{
			background: currentColor;
			border-radius: 100%;
		}
		&:after{
			background: #fff;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" style="fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round;"><polyline points="10 16 22 16"/><polyline points="18 12 22 16 18 20"/></svg>') no-repeat center / 32px;
		}
		&:hover{
			background: var(--color);
			border-color:transparent;
			color: #fff;
			&:after{
				background: var(--color);
			}
		}
		&.lsf-error-btn{
			background: var(--color-error);
			border-color: transparent;
			color: #fff;
			pointer-events: none;
			&:after{
				background: var(--color-error);
			}
		}
	}
	#btnSend{
		background: var(--color-theme);
		border-color: transparent;
		color: #fff;
		&:after{
			background: var(--color-theme);
		}
	}
	#btnModify{
		&:hover{
			opacity: 0.8;
		}
	}
}

#toDownload{
	margin-top: clamp(48px, calc(64 / 1200* 100vw), 64px);
	& ul{
		display: grid;
		justify-content: center;
		grid-gap: 8px;
	}
	& li{
		display: contents;
	}
	& a{
		display: grid;
		grid-template-columns: auto auto;
		justify-content: center;
		align-items: center;
		column-gap: 1em;
		min-width: min(100%, 480px);
		min-height: clamp(56px, calc(64 / 768 * 100vw), 64px);
		padding: 0.5em 1em;
		border-radius: clamp(28px, calc(32 / 768 * 100vw), 32px);
		border: 1px solid currentColor;
		color: inherit;
		font-size: clamp(14px, calc(18 / 768 * 100vw), 18px);
		letter-spacing: 0.1em;
		text-align: center;
		text-decoration: none;
		&:after{
			content: "";
			aspect-ratio: 1;
			width: 16px;
			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;
		}
		&:hover{
			background: var(--color);
			border-color:transparent;
			color: #fff;
		}
	}
}

.entry{
	display: grid;
	border: 1px solid #b3b3b3;
	border-radius: 10px;
	color: #595e5c;
	overflow: hidden;
	@media (min-width: 576px) {
		grid-template-columns: auto 1fr;
	}
	& dt{
		padding: 16px 24px;
		background: #f2f2f2;
		font-weight: 700;
		&:nth-of-type(n+2){
			padding-top: 24px;
			border-top: 1px solid #b3b3b3;
		}
		&:after{
		}
		&.acids{
			display: grid;
			column-gap: 8px;
			grid-template-columns: 1fr auto;
			&:after{
				content: "\5FC5\9808";
				align-self: start;
				display: grid;
				align-items: center;
				min-height: 16px;
				padding: 0 8px;
				background: var(--color-error);
				border-radius: 8px;
				color: #fff;
				font-weight: 700;
				font-size: 12px;
				letter-spacing: 0.05em;
				line-height: 1;
				transform: translateY(0.4em);
			}
		}
		@media (min-width: 576px) {
			min-width: min(20vw, 288px);
		}
	}
	& dd{
		padding: 16px 24px;
		@media (min-width: 576px) {
			&:nth-of-type(n+2){
				border-top: 1px solid #b3b3b3;
			}
		}
		& 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{
		margin: 8px;
		&:not([class]){
			font-size: 14px;
		}
		&.error{
			color: var(--color-error);
		}
	}
	& input[type="text"],
	& select,
	& textarea{
		padding: 8px 16px;
		border-radius: 4px;
	}
	& select{
		padding-right: 2em;
		background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" style="fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"><polyline points="10 15 16 20 21 15" /></svg>') no-repeat center right / 32px, url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 10 10" fill="%23b3b3b3"><rect width="10" height="10" /></svg>') no-repeat center right / 32px 100%;
	}
	.err{
		background-color: #ffffcc;
		border: 2px solid var(--color-error);
	}
}





