/* CSS Document */

:root{
	--color-success: #b36e3e;
	--color-error: #cc0000;
}

#main{
	margin-bottom: clamp(64px, calc(128 / 1200 * 100dvw), 128px);
}

#inquiry,
#thanks{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	margin-top: clamp(24px, calc(48 / 1200 * 100dvw), 48px);
	overflow: hidden;
	& h2{
		grid-row: 1;
		position: relative;
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 0.25em;
		padding-bottom: 16px;
		color: inherit;
		font-weight: 700;
		font-size: clamp(18px, calc(28 / 768 * 100dvw), 28px);
		&:before{
			content: "";
			aspect-ratio: 1;
			width: 18px;
			border: 5px solid var(--color-theme-sub);
			border-radius: 100%;
			transform: translateY(calc(0.875em - 50%));
		}
		&:after{
			content: "";
			position: absolute;
			right: 0;
			bottom: 0;
			width: 100dvw;
			border-bottom: 1px dashed currentColor;
		}
	}
	& h2+div{
		margin-top: clamp(24px, calc(40 / 1200 * 100dvw), 40px);
	}
}

#form{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	margin-top: clamp(24px, calc(40 / 1200 * 100dvw), 40px);
}

#noticeFoot{
	margin-top: clamp(16px, calc(24 / 1200 * 100dvw), 24px);
	font-weight: 500;
}

#policy{
	justify-self: center;
	}

#agreement{
	display: grid;
	margin-top: clamp(32px, calc(56 / 1200 * 100dvw), 56px);
	& label{
		position: relative;
		padding-left: clamp(24px, calc(32 / 768 * 100vw), 32px);
		font-weight: 700;
		letter-spacing: 0.05em;
		.err &{
			padding: 8px 12px;
			border: 2px solid var(--color-error);
		}
	}
	& a{
		display: contents;
		text-decoration: underline;
	}
}

#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(32px, calc(56 / 1200 * 100dvw), 56px);
	& button{
		all: unset;
		box-sizing: border-box;
		cursor: pointer;
		display: grid;
		align-items: center;
		column-gap: 4px;
		width: min(100%, 280px);
		min-height: 48px;
		padding: 0.25em 1em;
		background: var(--color-theme);
		border-radius: 24px;
		font-weight: 700;
		text-align: center;
		&.lsf-error-btn{
			background: var(--color-error);
		}
		&#btnModify{
			background: transparent;
			border: 1px solid #ccc;
			color: inherit;
		}
	}
}

.fr-view{
	font-weight: 500;
}

.entry{
	display: grid;
	outline: 1px solid #ccc;
	outline-offset: -1px;
	& dt,
	& dd{
		padding: 16px 24px;
		font-weight: 500;
	}
	& dt{
		display: grid;
		column-gap: 1em;
		background: var(--color-theme-sub);
		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: 2px 4px;
				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);
			}
		}
		&:nth-of-type(n+2){
			border-top: 1px solid rgba(255, 255, 255, 0.3);
		}
	}
	& 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{
			min-width: 10em;
			max-width: 20em;
		}
		& dd{
			&:nth-of-type(n+2){
				border-top: 1px solid #ccc;
			}
		}
	}
}





