/* CSS Document */

:root{
	--color-error: #853e3a;
	}

#inquiry,
#thanks{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	grid-row-gap: clamp(32px, calc(56 / 1200 * 100vw), 56px);
	margin-top: clamp(24px, calc(48 / 1200 * 100vw), 48px);
	& h2{
		display: grid;
		justify-items: center;
		font-size: clamp(24px, calc(32 / 768 * 100vw), 32px);
		font-family: var(--font-title);
		letter-spacing: 0.2em;
		text-align: center;
		&:before{
			content: "";
			aspect-ratio: 58 / 40;
			width: 58px;
			background: #897750;
			opacity: 0.25;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 58 40" style="fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round;"><polygon points="7 11 17 21 21 17 17 13 7 23 17 33 21 29 17 25 7 35 11 39 15 35 5 25 1 29 5 33 15 23 5 13 1 17 5 21 15 11 11 7 7 11"/><polygon points="25 5 35 15 39 11 35 7 25 17 35 27 39 23 35 19 25 29 29 33 33 29 23 19 19 23 23 27 33 17 23 7 19 11 23 15 33 5 29 1 25 5"/><polygon points="43 11 53 21 57 17 53 13 43 23 53 33 57 29 53 25 43 35 47 39 51 35 41 25 37 29 41 33 51 23 41 13 37 17 41 21 51 11 47 7 43 11"/></svg>') no-repeat center / contain;
		}
	}
}

#inquiry{
	&+#form{
		display: grid;
		grid-template-columns: var(--wrap);
		justify-content: center;
		margin: clamp(32px, calc(56 / 1200 * 100vw), 56px) 0 clamp(64px, calc(96 / 1200 * 100vw), 96px) 0;
		&>*{
			grid-column: 2;
		}
		#noticeFoot{
			margin-top: 16px;
		}
	}
}

#thanks{
	margin-bottom: clamp(64px, calc(96 / 1200 * 100vw), 96px);
	& h2+div{
		justify-self: center;
	}
}

#policy{
	margin-top: clamp(24px, calc(48 / 1200 * 100vw), 48px);
	justify-self: center;
}

#agreement{
	&.err{
		padding: 8px;
		background: #fff;
		border: 2px solid var(--color-error);
	}
	& input{
		margin-right: 8px;
		transform: translateY(0.2em);
	}
	& 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: clamp(24px, calc(48 / 1200 * 100vw), 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;
	& button{
		all: unset;
		box-sizing: border-box;
		cursor: pointer;
		display: grid;
		align-items: center;
		width: min(100%, 320px);
		min-height: clamp(48px, calc(56 / 768 * 100vw), 56px);
		padding: 4px 8px;
		background: var(--color-theme-point);
		border-radius: 4px;
		color: #fff;
		font-family: var(--font-min);
		text-align: center;
		letter-spacing: 0.1em;
		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;
		}
	}
}

.acids{
	&:after{
		content: "\5FC5\9808";
		color: var(--color-error);
		font-weight: 700;
	}
}

.entry{
	display: grid;
	background: #fff;
	border-radius: 4px;
	filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
	@media (min-width: 992px) {
		grid-template-columns: min(16em, 30%) 1fr;
		& dd{
			&:nth-of-type(n+2){
				border-top: 1px solid #d6d6d6;
			}
		}
	}
	& dt{
		display: grid;
		grid-template-columns: 16px 1fr auto;
		min-width: 8em;
		padding: clamp(16px, calc(32 / 1200 * 100vw), 24px) clamp(16px, calc(32 / 1200 * 100vw), 24px) 0 0;
		font-size: 14px;
		@media (min-width: 992px) {
			padding: 30px 0;
		}
		&:nth-of-type(n+2){
			border-top: 1px solid #d6d6d6;
		}
		&:before{
			content: "";
			width: 4px;
			height: 16px;
			background: currentColor;
			transform: translateY(calc(0.325em - 1px));
		}
		&:after{
			content: "任意";
			align-self: start;
			display: grid;
			align-items: center;
			min-height: 16px;
			margin-left: 8px;
			padding: 4px;
			background: #ccc;
			border-radius: 2px;
			color: #666;
			font-size: 12px;
			line-height: 1;
		}
		&.acids{
			&:after{
				content: "必須";
				background: var(--color-error);
				color: #fff;
			}
		}
	}
	& dd{
		display: flex;
		flex-wrap: wrap;
		grid-gap: 8px 16px;
		padding: 16px clamp(16px, calc(24 / 1200 * 100vw), 24px);
		&:has([for*="e_mail"]),
		&:has([for*="password"]){
			flex-direction: column;
			justify-content: start;
		}
		&:has([type="radio"]):nth-child(1),
		&:has([type="checkbox"]):nth-child(1){
			padding-top: 28px;
		}
		&:has([type="radio"]),
		&:has([type="checkbox"]){
			align-content: center;
		}
	}
	& label{
		display: flex;
		align-items: center;
		grid-gap: 4px;
		&[for*="password"]{
			& input{
				width: min(100%, 22em);
				@media (max-width: 575.98px) {
					width: 100%;
				}
			}
		}
		&[for*="_name"]{
			display: grid;
			grid-template-columns: 2.5em auto;
			@media (max-width: 575.98px) {
				width: 100%;
			}
		}
		&[for*="add"],
		&[for*="city"]{
			width: 100%;
		}
		&[for="zip_code_1"],
		&[for="employment_zip_1"]{
			column-gap: 16px;
			&:after{
				content: "-";
				margin: 0 -8px;
			}
		}
		&[for*="zip"]{
			width: 6em;
		}
		& input[type="radio"],
		& input[type="checkbox"]{
			transform: translateY(0.1em);
		}
	}
	& select{
		width: auto;
	}
	& input{
		&[type="button"]{
			all: unset;
			box-sizing: border-box;
			display: grid;
			align-items: center;
			padding: 4px 16px;
			background: #f2f2f2;
			border-radius: 4px;
			color: inherit;
		}
	}
	.err{
		background-color: #ffffcc;
		border: 2px solid var(--color-error);
	}
}

.notes{
	width: 100%;
	color: #853e3a;
	font-size: clamp(12px, calc(14 / 768 * 100vw), 14px);
	& li{
		padding-left: 1.25em;
		text-indent: -1.25em;
	}
}




