@charset "utf-8";

.contact {
  background: url(../images/TOP3.png) no-repeat center center;
  background: url(../images/TOP3.png) no-repeat center center / cover;
  background-size: cover;
  bottom: 0px;
  right: 0%;
}

.contact .contents .main {
  padding: 2% 5% 0 15%;
  height: 98%;
  position: relative;
  transform: translateZ(0);
}

.contact .contents .main .title {
  clear: both;
  margin-bottom: 20px;
  font-size: 24px;
  letter-spacing: 0.2em;
  padding-bottom: 3px;
  border-bottom: 1px solid #dfd4be;
  color: #dfd4be;
}

.contact .contents .main .title::first-letter {
  margin-right: .1em;
  font-size: 1.5em;
}

#mail_form *{
	margin: 0;
	padding: 0;
}

#mail_form {
	width: 100%;
	background: rgba(0, 70, 121, 0.5);
	border: 1px solid #cccccc;
	border-radius: 7px;
	font-size: 95%;
	line-height: 1.8;
}

#mail_form dl {
	width: 90%;
	margin: 0 auto;
	overflow: hidden;
}

#mail_form dl dt {
	clear: both;
	width: 30%;
	float: left;
	border-top: 1px solid #cccccc;
	padding: 15px 0;
	text-align: right;
	overflow: hidden;
}

#mail_form dl dd {
	width: 65%;
	float: right;
	border-top: 1px solid #cccccc;
	padding: 15px 0 15px 5%;
}

#mail_form dl dt:first-child,
#mail_form dl dt:first-child + dd {
	border: none;
}

#mail_form dl dt span {
	display: block;
	font-size: 85%;
	font-weight: bold;
	color: #8eb4d9;
}

#mail_form input[type="text"],
#mail_form input[type="email"]
{
	max-width: 90%;
	padding: 7px 2%;
	border: 1px solid #cccccc;
	border-radius: 3px;
	background: #fafafa;
	-webkit-appearance: none;
	font-size: 100%;
	font-family: inherit;
	margin-top: 7px;
}

#mail_form input[type="text"]:focus,
#mail_form input[type="email"]:focus,
#mail_form textarea:focus {
	box-shadow: 0px 0px 5px #55ccff;
	border: 1px solid #55ccff;
	background: #ffffff;
}

#mail_form select {
	font-size: 100%;
	font-family: inherit;
	margin-top: 10px;
}

#mail_form textarea {
	display: block;
	width: 90%;
	max-width: 90%;
	height: 200px;
	padding: 7px 2%;
	resize: vertical;
	border: 1px solid #cccccc;
	border-radius: 3px;
	background: #fafafa;
	-webkit-appearance: none;
	font-size: 100%;
	font-family: inherit;
}

#mail_form input#company,
#mail_form input#name,
#mail_form input#read,
#mail_form input#mail_address {
	width: 60%;
}
#mail_form #form_submit {
	width: 90%;
	margin: 0 auto;
	padding: 15px 0;
	border-top: 1px solid #cccccc;
}

#mail_form input[type="button"] {
	padding: 7px 20px;
	border: 1px solid #4cae4c;
	position: relative;
	left: 10%;
	border-radius: 3px;
	background: #5cb85c;
	font-size: 100%;
	color: #ffffff;
	font-family: inherit;
	-webkit-appearance: none;
}

#mail_form input[type="button"]:hover {
	cursor: pointer;
	background: #449d44;
	border: 1px solid #398439;
}

#mail_form input#form_submit_button {
	margin-left: 35%;
}

.error_blank,
.error_format,
.error_match {
	display: block;
	color: #ff0000;
	margin-top: 3px;
}

@media screen and ( max-width: 1000px ) {

#mail_form {
	width: 95%;
	font-size: 100%;
}

#mail_form dl {
	overflow: visible;
}

#mail_form dl dt {
	width: auto;
	float: none;
	text-align: left;
	padding: 15px 0 5px;
	font-weight: bold;
}

#mail_form dl dd {
	width: auto;
	float: none;
	border-top: none;
	padding: 0px 0 20px 0px;
}

#mail_form dl dt span {
	font-weight: normal;
}

#mail_form input[type="text"],
#mail_form input[type="email"] {
	margin-top: 0px;
}

#mail_form input[type="button"] {
	position: static;
	left: 0;
}

.submit {
	text-align: center;
}

#mail_form input#form_submit_button {
	margin-left: 0;
}

#mail_form select {
	font-size: 16px;
	margin-top: 0;
}

@media screen and (max-width:480px) {
	.contact .contents .main {
  		padding: 0 5%;
	}
}
}