section.mailform {
	> div {
		> div.step {
			max-width: 800px;
			margin-inline: auto;
			display: grid;
			grid-template-columns: repeat(3,1fr);
			background-color: #eee;
			> div#formStep1 {
				font-size: min(0.8rem,4.5vw);
				line-height: 1;
				color: #222;
				padding-block: 8px;
				text-align: center;
				clip-path: polygon(0 0,95% 0,100% 50%,95% 100%,0 100%);
				&.on {
					background-color: var(--color-accent2);
					color: #fff;
				}
			}
			> div#formStep2 {
				font-size: min(0.8rem,4.5vw);
				line-height: 1;
				color: #222;
				padding-block: 8px;
				text-align: center;
				clip-path: polygon(0 0,95% 0,100% 50%,95% 100%,0 100%,5% 50%);
				background-color: rgba(0,0,0,0.05);
				&.on {
					background-color: var(--color-accent2);
					color: #fff;
				}
			}
			> div#formStep3 {
				font-size: min(0.8rem,4.5vw);
				line-height: 1;
				color: #222;
				padding-block: 8px;
				text-align: center;
				clip-path: polygon(0 0,100% 0,100% 100%,0 100%,5% 50%);
				&.on {
					background-color: var(--color-accent2);
					color: #fff;
				}
			}
		}
		> form {
			margin-top: 10px;
			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;
					@media (width < 810px) {
						grid-template-columns: 1fr;
					}
					&.wide {
						display: block;
					}
					> dt {
						user-select: none;
						padding-block: 5px;
						padding-inline: 8px;
						display: grid;
						align-items: start;
						background-color: rgba(0,0,0,0.05);
						@media (width < 810px) {
							padding-inline: 5px;
						}
						> .item {
							grid-area: 1/1/2/2;
							font-size: 0.9rem;
							line-height: 1.4;
							color: #111;
							font-weight: 500;
							> small {
								font-size: 0.7rem;
								color: #666;
							}
							> span.expand {
								color: var(--color-accent2);
								cursor: pointer;
								padding-inline: 10px;
								opacity: 0.5;
								&:hover {
									opacity: 1;
									background-color: #bbb;
								}
							}
							> br.pc {
								@media (width < 810px) {
									display: none;
								}
							}
						}
						> .require {
							grid-area: 1/1/2/2;
							justify-self: end;
							font-size: 0.8rem;
							line-height: 1;
							color: var(--color-accent2);
							border: solid 1px currentColor;
							text-align: center;
							padding: 1px 5px 3px 5px;
							border-radius: 3px;
							white-space: nowrap;
							&:empty {
								border: none;
							}
						}
						> .any {
							grid-area: 1/1/2/2;
							justify-self: end;
							font-size: 0.8rem;
							line-height: 1;
							color: #aaa;
							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: 16px;
									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.file {
							display: flex;
							flex-wrap: wrap;
							gap: 5px;
							@media (width < 810px) {
								margin-top: 3px;
							}
							> div {
								user-select: none;
								position: relative;
								overflow: hidden;
								background-color: #ddd;
								width: 194px;
								height: 150px;
								cursor: pointer;
								display: grid;
								&:hover {
									opacity: 0.7;
								}
								> p {
									grid-area: 1/1/2/2;
									justify-self: center;
									align-self: end;
									padding-bottom: 10px;
									font-size: 0.9rem;
									color: #fff;
									line-height: 1.2;
								}
								> div {
									grid-area: 1/1/2/2;
									justify-self: center;
									align-self: center;
									width: 184px;
									height: 140px;
									> img {
										width: 100%;
										height: 100%;
										object-fit: contain;
									}
								}
								> input[type="file"] {
									grid-area: 1/1/2/2;
									justify-self: center;
									align-self: center;
									width: 100%;
									height: 100%;
									cursor: pointer;
									opacity: 0;
								}
							}
							> a {
								text-decoration: none;
								background-color: #ddd;
								font-size: 0.8rem;
								line-height: 1;
								color: #fff;
								padding-block: 7px;
								padding-inline: 15px;
								user-select: none;
								justify-self: center;
								align-self: end;
								border-radius: 30px;
								cursor: pointer;
								&:hover {
									opacity: 0.7;
								}
							}
						}
						> 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: 10px;
				max-width: 800px;
				margin-inline: auto;
				padding-block: 15px;
				padding-inline: 20px;
				> p {
					text-align: center;
					font-size: 0.9rem;
					line-height: 1.8;
					color: #111;
					> a {
						color: var(--color-accent2);
						text-decoration: underline;
						background-image: url(../../common/image/mark_external.svg);
						background-repeat: no-repeat;
						background-position: 100% 50%;
						padding-right: 15px;
						&:hover {
							opacity: 0.7;
						}
					}
				}
			}
			> div.consent {
				margin-top: 10px;
				text-align: center;
				> label {
					font-size: 0.9rem;
					color: #222;
					line-height: 1.4;
					cursor: pointer;
					> input {
						accent-color: var(--color-accent2);
					}
				}
			}
			> div.submit {
				margin-top: 20px;
				display: flex;
				column-gap: 5px;
				> button {
					width: 100%;
					height: 3.5rem;
					border-radius: 8px;
				}
			}
		}
	}
}
