@charset "UTF-8";

/* ++++++++++++++++++++++++++++++
contact page
++++++++++++++++++++++++++++++ */
#mainTitle .ja-title small {
	display: inline-block;
}
#lowerBox .wBox {
	box-sizing: border-box;
}
#lowerBox .wBox.input {
	background-repeat: no-repeat;
	background-image: url(../images/contact/img.svg);
}
@media screen and (min-width:769px), print{
	#mainHeader { padding-bottom: 375px; }
	#lowerBox .wBox {
		margin-top: -280px;
		padding-bottom: 400px;
	}
	#lowerBox .wBox.input {
		background-size: 160px auto;
		background-position: right 100px top 65px;
	}
}
@media screen and (max-width:768px){
	#mainTitle { height: auto; }
	#lowerBox .wBox.input {
		padding-top: 220px;
		background-size: 140px auto;
		background-position: center top;
	}
}

#form dl,
#form #formFooter {
	border-top: 1px solid #c8c8c8;
}
#form,
#form select {
	color: #6633cc;
	font-family: "Noto Sans JP", sans-serif;
}
#form #select {
	position: relative;
	display: inline-block;
}
#form #select::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	top: 0;
	bottom: 0;
	margin-block: auto;
	position: absolute;
	pointer-events: none;
	border-style: solid;
	border-color: #6633cc transparent transparent;
}
#form select {
	cursor: pointer;
	appearance: none;
}
#form input[type="text"],
#form input[type="email"],
#form select,
#form textarea {
	display: inline-block;
	background-color: #fff;
	border: 1px solid #e6e6e6;
	box-sizing: border-box;
}
#form .required {
	color: #fff;
	text-align: center;
	display: inline-block;
	background-color: #b4ade4;
}
#formFooter { text-align: center; }
#formFooter .button button,
#formFooter .button input[type="button"],
#formFooter .button input[type="submit"],
#formFooter .button a {
	color: #fff;
	display: block;
	margin-inline: auto;
	background-color: #6633cc;
	border: none;
	appearance: none;
	cursor: pointer;
}
#formFooter .button input[type="button"] {
	color: #505050;
	background-color: #e6e6e6;
}
#formFooter .button input[type="submit"] + input[type="button"] {
	margin-top: 10px;
}
#formFooter .button button[disabled] {
	cursor: default;
	color: #fff !important;
	background-color: #c8c8c8 !important;
}
#formFooter .privacy a {
	color: #505050;
	text-decoration: underline;
}
#formWrap .title { color: #6633cc; }
#formWrap table { width: 100%; }
#formWrap tr > * {
	vertical-align: top;
	border-block: 1px solid #c8c8c8;
}
@media screen and (min-width:769px), print{
	#form .intro { margin-bottom: 45px; }
	#form #select { margin-bottom: 100px; }
	#form #select::after {
		right: 10px;
		border-width: 10px 6px 0;
	}
	#form #select select { width: 560px; }
	#form dl { padding: 40px 0; }
	#form .required {
		width: 70px;
		padding: 4px 0;
		border-radius: 10px;
		margin-left: 10px;
		vertical-align: top;
	}
	#form .col .title { margin-bottom: 24px; }
	#form .row { display: flex; }
	#form .row .title {
		width: 160px;
		padding: 2px 0;
	}
	#form .row .input { width: calc(100% - 160px); }
	#form input[type="text"],
	#form input[type="email"],
	#form select,
	#form textarea {
		padding: 7px 12px;
		border-radius: 5px;
	}
	#form input[type="text"],
	#form textarea { width: calc(100% - 80px); }
	#form input[type="email"] { width: 270px; }
	#form textarea { height: 230px; }
	#formFooter .privacy { margin: 40px 0 30px; }
	#formFooter .privacy > * { margin: 0 2em; }
	#formFooter .button button,
	#formFooter .button input[type="button"],
	#formFooter .button input[type="submit"],
	#formFooter .button a {
		width: 500px;
		font-size: 18px;
		border-radius: 10px;
		padding: 27px 0;
	}
	#formFooter .button button:hover,
	#formFooter .button a:hover {
		color: #505050;
		background-color: #b4ade4;
	}
	#formFooter .button input[type="button"]:hover {
		color: #fff;
		background-color: #505050;
	}
	#formWrap .title {
		font-size: 24px;
		margin-bottom: 50px;
	}
	#formWrap .formTable { margin-top: 20px; }
	#formWrap tr th { width: 250px; }
	#formWrap tr > * { padding: 20px 0; }
	#formWrap #formFooter { margin-top: 50px; }
	#lowerBox .thx { margin-bottom: 50px; }
}
@media screen and (max-width:768px){
	#form {
		font-size: 12px;
		#select {
			width: 100%;
			margin-block: 20px 50px;
			&::after {
				right: 9px;
				border-width: 10px 5px 0;
			}
		}
		dl {
			position: relative;
			padding-block: 20px 25px;
			.required {
				font-size: 11.7px;
				padding: 2px 13px;
				border-radius: 7.5px;
				position: absolute;
				top: 18px;
				right: 0;
			}
		}
		.input { margin-top: 18px; }
		input[type="text"],
		input[type="email"],
		select,
		textarea {
			width: 100%;
			padding: 6px;
			border-radius: 4px;
		}
		textarea { height: 200px; }
		#formFooter {
			padding-top: 47px;
			.privacy > * {
				display: block;
				text-align: left;
			}
			.privacy a { margin-left: 1em; }
		}
	}
	#lowerBox .button { margin-top: 20px; }
	#lowerBox .button button,
	#lowerBox .button input[type="button"],
	#lowerBox .button input[type="submit"],
	#lowerBox .button a {
		width: 100%;
		margin-top: 10px;
		padding: 20px 0 21px;
		border-radius: 7.5px;
	}
	#formWrap { padding-top: 50px; }
	#formWrap .title { margin-bottom: 10px; }
}