section.mailform {
	background-color: #faf0c8;
	padding: 0px 5% 100px 5%;
	> div {
		> div.step {
			max-width: 800px;
			margin-inline: auto;
			display: flex;
			justify-content: center;
			align-items: center;
			column-gap: 10px;
			> div {
				width: 80px;
				min-width: 80px;
				height: 80px;
				min-height: 80px;
				border-radius: 100%;
				font-size: 1rem;
				line-height: 1;
				color: var(--color-accent);
				display: grid;
				place-items: center;
				background-color: #fff;
				border: solid 2px var(--color-accent);
				&.on {
					background-color: var(--color-accent);
					border: solid 2px #fff;
					color: #fff;
				}
			}
			> span {
				font-size: 1rem;
				line-height: 1;
				color: var(--color-accent);
			}
		}
		> form {
			margin-top: 20px;
			margin-bottom: 0;
			> div.input {
				max-width: 800px;
				margin-inline: auto;
				display: flex;
				flex-direction: column;
				row-gap: 5px;
				> dl {
					display: grid;
					grid-template-columns: 200px 1fr;
					column-gap: 5px;
					&:nth-of-type(1) {	/*ハニーポット設置*/
						position: absolute;
						left: -9999px;
					}
					@media (width < 810px) {
						grid-template-columns: 1fr;
					}
					&.wide {
						display: block;
					}
					> dt {
						user-select: none;
						padding-block: 5px;
						padding-inline: 8px;
						display: flex;
						align-items: start;
						justify-content: space-between;
						background-color: transparent;
						@media (width < 810px) {
							padding-inline: 5px;
						}
						> .item {
							font-size: 0.9rem;
							line-height: 1.3;
							color: #111;
							font-weight: 500;
							> span.expand {
								color: var(--color-accent);
								cursor: pointer;
								padding-inline: 10px;
								opacity: 0.5;
								&:hover {
									opacity: 1;
									background-color: #bbb;
								}
							}
							> br.pc {
								@media (width < 810px) {
									display: none;
								}
							}
						}
						> .require {
							font-size: 0.8rem;
							line-height: 1;
							color: #fd8269;
							border: solid 1px currentColor;
							text-align: center;
							padding: 1px 5px 3px 5px;
							border-radius: 3px;
							white-space: nowrap;
							&:empty {
								border: none;
							}
						}
					}
					> dd {
						> p {
							font-size: 0.9rem;
							line-height: 1.4;
							color: #222;
							@media (width < 810px) {
								font-size: min(0.8rem,4.5vw);
							}
						}
						> div.control {
							display: flex;
							column-gap: 5px;
							@media (width < 810px) {
								flex-direction: column;
								row-gap: 1px;
							}
							> div {
								width: 100%;
								position: relative;
								&:has(> div > span.radio),
								&:has(> div > div.checkbox) {
									padding-right: 40px;
									@media (width < 810px) {
										margin-top: 3px;
									}
								}
								&.datetime {
									display: grid;
									grid-template-columns: 1fr 1fr;
									column-gap: 5px;
									> div {
										width: 100%;
										> input {
											width: 100%;
										}
									}
								}
								> div {
									display: flex;
									flex-wrap: wrap;
									gap: 3px;
									input[type="text"],
									select,
									textarea {
										width: 100%;
										transition: 0.3s;
										font-family: inherit;
									}
									textarea {
										field-sizing: content;
									}
								}
								> div[data-validate-mark] {
									position: absolute;
									top: 13px;
									right: 9px;
									width: 16px;
									height: 16px;
									background-image: url(../common/image/form_validate_none.svg);
									background-repeat: no-repeat;
									&[data-mark="ok"] {
										background-image: url(../common/image/form_validate_ok.svg);
									}
									&[data-mark="ng"] {
										background-image: url(../common/image/form_validate_ng.svg);
									}
									&[disabled="disabled"] {
										visibility: hidden;
									}
								}
							}
							> button {
								width: 200px;
							}
						}
						> div[data-validate-error] {
							position: relative;
							> div {
								position: absolute;
								left: 10px;
								top: -15px;
								font-size: 0.8rem;
								line-height: 1;
								color: #f20;
							}
						}
					}
				}
			}
			> div.privacy {
				margin-top: 40px;
				max-width: 800px;
				margin-inline: auto;
				> article {
					margin-bottom: 20px;
					&:last-of-type {
						margin-bottom: 0px;
					}
					> input[type="checkbox"] {
						display: none;
						&:checked + label > figure {
							transform: rotate(-45deg);
						}
						&:checked + label + div {
							animation-name: moreToggleOpen;
							animation-duration: 0.3s;
							animation-fill-mode: forwards;
							animation-timing-function: ease-in;
						}
						& + label + div {
							animation-name: moreToggleClose;
							animation-duration: 0.3s;
							animation-fill-mode: forwards;
							animation-timing-function: ease-out;
						}
					}
					> label {
						list-style: none;
						display: flex;
						align-items: center;
						cursor: pointer;
						column-gap: 20px;
						&:hover {
							opacity: 0.7;
						}
						> h3 {
							color: #1c2d52;
							font-size: 1.1rem;
							line-height: 1;
							font-weight: 500;
						}
						> figure {
							display: grid;
							transition: 0.2s;
							> img {
								width: 10px;
							}
						}
					}
					> div {
						padding-top: 5px;
						overflow: hidden;
						> p {
							font-size: 0.9rem;
							line-height: 1.8;
							color: #222;
							text-align: justify;
						}
					}
				}
			}
			> div.consent {
				margin-top: 20px;
				display: flex;
				justify-content: center;
				> label {
					font-size: 0.9rem;
					line-height: 2.0;
					cursor: pointer;
					text-align: justify;
					font-size: 0.9rem;
					line-height: 2.0;
					color: #222;
					letter-spacing: 0.1em;
					> input {
						accent-color: var(--color-accent);
					}
				}
			}
			> div.submit {
				margin-top: 20px;
				display: flex;
				column-gap: 5px;
				> button {
					width: 100%;
					height: 3.5rem;
					border-radius: 8px;
				}
			}
		}
	}
}
@keyframes moreToggleOpen {
	0% {
		max-height: 0px;
	}
	80% {
		max-height: 100px;
	}
	90% {
		max-height: 200px;
	}
	100% {
		max-height: 9999px;
	}
}
@keyframes moreToggleClose {
	0% {
		max-height: 9999px;
	}
	10% {
		max-height: 200px;
	}
	20% {
		max-height: 100px;
	}
	100% {
		max-height: 0px;
	}
}
