
h2 {
	font-family: var(--noto-serif);
	font-size: 24px;
	font-weight: 500;
	text-align: center;
	margin: 40px 0;
	letter-spacing: 0.13em;
	line-height: 1.8;
	border: none;
	color: var(--black);
}
input[type="radio"] {
	cursor: pointer;
}
select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
	width: 100%;
	border: 1px solid var(--border);
	padding: 4px 6px;
}
textarea {
	height: 12em;
}
select:focus-within,
td.sosiki .flex:focus-within,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
textarea:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible {
	outline: 2px solid #33A8D0;
}

div#formWrap {
	width: 90%;
	margin: 0 auto;
}
div#formWrap form {
	margin-bottom: 100px;
}
table.formTable {
	width: 100%;
}

tr {
	display: flex;
	flex-flow: column;
	align-items: start;
	margin: 24px 0;
	padding-bottom: 24px;
	border-bottom: 1px solid #ccc;
}
th, 
td {
	padding: 4px 6px;
}
th {
	margin-bottom: 6px;
	font-family: var(--noto-sans);
	font-weight: 600;
}
th span.hissu {
	display: inline-block;
	margin-right: 6px;
	padding: 0 .5em;
	background: var(--red);
	border-radius: 2px;
	color: #fff;
	font-weight: 500;
	font-size: .9em;
}
td {
	width: 100%;
}
td.sosiki .flex {
	gap: 6px;
	width: 60px;
}
.submit-wrapper {
	gap: 4px;
	max-width: 400px;
	width: 100%;
	height: 48px;
	margin: 0 auto;
	margin-top: 40px;
	color: #fff;
	& .input-wrapper {
		width: 100%;
		height: 100%;
	}
	& input {
		text-align: center;
		width: 100%;
		height: 100%;
		border-radius: 5px;
		transition: all .2s;
	}
	& input:hover {
		opacity: .7;
	}
	& input[type="submit"] {
		background: var(--black);
		color: #fff;
	}
	& input[type="reset"] {
		color: var(--black);
		border: 0.5px solid var(--border);
	}
	& .input-wrapper:first-child {
		width: calc(70% - 4px);
		position: relative;
	}
	& .input-wrapper:first-child::after {
		position: absolute;
		content: "\e315";
		top: 50%;
		right: 6px;
		transform: translateY(-50%);
		font-family: "Material Symbols Outlined";
		font-weight: 400;
		color: #fff;
	}
	& .input-wrapper:nth-child(2) {
		width: 30%;
	}
}

@media screen and (min-width: 768px) {
div#formWrap {
	width: 80%;
	max-width: 800px;
}
div#formWrap > p {
	margin: 40px 0;
}
table {
	width: 100%;
}
tr {
	flex-flow: row;
}
th {
	width: 35%;
	margin-bottom: 0;
}
td {
	width: calc(65% - 24px);
}
td.sosiki {
	display: flex;
	flex-flow: row;
	gap: 4px;
	& div.flex {
		width: auto;
		gap: 4px;
		padding: 4px 6px;
	}
}
label.flex,
div.label.flex,
div.address {
	flex-flow: row;
}
p.label {
	width: 30%;
	margin-bottom: 0;
	padding: 4px 6px;
}
.submit-wrapper {
	width: 400px;
}

}

/* エラー画面 */
.contact-error {
	padding-top: 40px;
}
.contact-error h4 {
	margin-bottom: 20px;
}
.contact-error p.error_messe {
	padding: 12px 0;
	border-bottom: 0.5px solid #E5E5E5;
	& span.err {
		color: var(--red);
		font-weight: 700;
	}
}
.contact-error .submit-wrapper {
	justify-items: center;
	margin-top: 40px;
	margin-bottom: 100px;
	& .input-wrapper:first-child {
		width: 200px;
	}
	& .input-wrapper:first-child::after {
		color: var(--black);
	}
	& input {
		width: 100%;
		border: 1px solid var(--black);
		border-radius: 12px;
	}
}

/* 確認画面 */
.contact-confirm .submit-wrapper {
	& .input-wrapper input[type="button"] {
		border: 0.5px solid var(--border);
	}
}

/* 送信完了画面 */
.contact-thanks .bg-wrapper {
	align-content: center;
	text-align: center;
	min-height: 350px;
	margin-top: 60px;
	position: relative;
	& h3 {
		text-align: center;
		font-family: var(--noto-serif);
		font-size: 21px;
	}
	& p {
		text-align: center;
		margin: 28px 0;
	}
	& a {
		display: inline-block;
		padding: 6px 28px;
		border: 1px solid var(--black);
		border-radius: 8px;
		position: relative;
	}
	& a::after {
		position: absolute;
		content: "\e315";
		top: 50%;
		right: 6px;
		transform: translateY(-50%);
		font-family: 'Material Symbols Outlined';
	}
	& span.bg {
		position: absolute;
		content: '';
		width: 350px;
		height: 350px;
		top: 50%;
		left: 50%;
		transform: translateX(-50%) translateY(-50%);
		border-radius: 50%;
		background: linear-gradient(to left, #FCE5D9, #FFF7F3);
		filter: blur(8px);
		z-index: -1;
	}
}