* {
	-webkit-appearance: none;
}

/*ヘッダー
---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
.contact header {
	position: relative;
    padding: 0px;
}

.contact header h2 {
	white-space: nowrap;
}

.contact header .block {
	position: relative;
	width        : 40%;
	height       : 350px;
	background   : linear-gradient(to left, #6091d3, #0059b3);
	z-index: 2;
}

.contact header img {
	position: relative;
	right: 0px;
	width: 60%;
	height: 350px;
    z-index: 1;
	filter: brightness(80%);
}

.contact header .block h2 {
	margin-top: 15%;
	margin-left: 13%;
	color: #ffffff;
	font-size: 300%;
	letter-spacing:1.2em;
}

.contact header .block h3 {
	margin-left: 35%;
	color: #ffffff;
	font-size: 100%;
	letter-spacing:1.5em;
}

.contact .refine-flex {
	display: flex;
	justify-content: center;
}

.contact .refine-flex h3 {
	text-align: left;
}

.span1 {
	display: inline-block;
}

.absolute {
    position: absolute;
}

.contact #contents  h3 {
	text-align: center;
	font-size: 170%;
}

#contents #contact h2 {
	left: 0;
	right: 0;
	text-align: center;
	margin: auto;
	bottom: 85px;
	color:#ffffff;
	text-shadow: 0px 0px 5px #000000, 0px 0px 20px #000000, 0px 0px 40px #000000, 0px 0px 60px #000000, 0px 0px 80px #000000, 0px 0px 100px #000000;
}

#contact h2 .absolute {
	position: absolute;
}

#contact .relative img {
	margin: 0 auto;
	margin-bottom: 2%;
	width: 100%;
	height: 200px;
}

.contact #contents .graybox {
	position: relative;
	padding: 0.5em 1em;
    margin: 0 auto;
    font-weight: bold;
	background:#F5F5DC;
	color: #000;
    width: auto;
}

.contact #contents .telNo {
	padding: 0 4%;
	text-align: center;
}

.contact #contents .telNo a {
	font-size: 150%;
}

.contact #contents .graybox h3 {
    text-align: center;
	font-weight: bold;
	padding-left: 0;
}

/*ta1テーブル*/
.contact .ta1 {
	width: 55%;
	table-layout: fixed;
	margin: 0 auto;
	margin-bottom: 1%;
	background: #fff;	/*背景色*/
}

.contact .ta1, .ta1 td, .ta1 th {
	border: 1px solid #ccc;	/*テーブルの枠線の幅、線種、色*/
	padding: 10px;	/*ボックス内の余白*/
	word-break: break-all;
	font-size: 100%;
}

/*左側ボックス*/
.contact .ta1 th {
	width: 35%;	/*幅*/
	text-align: center;	/*センタリング*/
	font-weight: normal;
}

.ta1 textarea {
	width: 98%;
	height: 30%;
	resize: vertical;
}

.ta1 .mfptr img {
	width: 15%;
	height: 18px;
	margin-top:3%;
	padding-right: 2%;
}

.ta1 .mfptr select {
	width: 99.5%;
	height: 30px;
}

input[type="text"] {
	width: 98%;
	border: solid 1px rgb(118, 118, 118);
}

input[type="button"] {
	width: 200px;
	height: 40px;
	text-decoration: none;
	color: #6091d3;
	background: #ffffff;/*色*/
	font-weight: bold;
	border: solid 2px #6091d3;/*線色*/
	margin-left:43%;
	letter-spacing:0.5em;
}

input[type="button"]:hover {
	color: #ffffff;
	background: #6091d3;/*色*/
	border: solid 2px #6091d3;/*線色*/
}

/*画面幅1024px以下の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:1024px) {
	.span1 {
		display: inline;
	}

	.span2 {
		display: inline-block;
	}

	/*ヘッダー
	---------------------------------------------------------------------------*/
	.contact header .block {
		width        : 40%;
		height       : 250px;
	}

	.contact header img {
		right: 0px;
		width: 60%;
		height: 250px;
	}

	.contact header .block h2 {
		margin-top: 14%;
		margin-left: 7%;
		font-size: 280%;
		letter-spacing:0.4em;
	}

	.contact header .block h3 {
		margin-left: 23%;
		font-size: 100%;
		letter-spacing:1.5em;
	}

	/*ta1テーブル*/
	.contact .ta1 {
		width: 70%;
	}
}

/*画面幅800px以下の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:800px) {
	.span2 {
		display: inline;
	}

	.span3 {
		display: inline-block;
	}
	/*ヘッダー
	---------------------------------------------------------------------------*/
	.contact header .block {
		width: 40%;
		height: 280px;
	}

	.contact header img {
		right: 0px;
		width: 60%;
		height: 280px;
	}

	.contact header .block h2 {
		margin-top: 27%;
		margin-left: 5%;
		font-size: 250%;
		letter-spacing:0.3em;
	}

	.contact header .block h3 {
		margin-left: 25%;
		font-size: 100%;
		letter-spacing:1.0em;
	}

	/*ta1テーブル*/
	.contact .ta1 {
		width: 90%;
		table-layout: fixed;
		margin: 0 auto;
	}

	.contact #contents .graybox {
		width: 96%;
	}

	input[type="button"] {
		margin-top: 2%;
		margin-left: 37%;
	}
}

/*画面幅480px以下の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:480px) {
	.span3 {
		display: inline;
	}

	.span4 {
		display: inline-block;
	}

	/*ヘッダー
	---------------------------------------------------------------------------*/
	.contact header .block {
		width        : 40%;
		height       : 150px;
	}

	.contact header img {
		right: 0px;
		width: 60%;
		height: 150px;
	}

	.contact header .block h2 {
		margin-top: 30%;
		margin-left: 4%;
		font-size: 180%;
		letter-spacing:0.2em;
	}

	.contact header .block h3 {
		margin-left: 22%;
		font-size: 100%;
		letter-spacing:0.5em;
	}

	.contact #contents  h3 {
		font-size: 150%;
	}

	.contact #contents .graybox {
		width: 90%;
	}

	.contact #contents p {
		padding-bottom: 10px;
	}

	/*ta1テーブル*/
	.contact .ta1 {
		width: 90%;
		table-layout: fixed;
		margin: 0 auto;
	}

	/*左側ボックス*/
	.contact .ta1 th {
		width: 92.3%;	/*幅*/
		text-align: center;	/*センタリング*/
		font-weight: normal;
		border:none;
		margin-bottom: -3%;
	}

	.contact .ta1 td {
		border: none;
		border-bottom: 1px solid #ccc;	/*テーブルの枠線の幅、線種、色*/;
	}

	.ta1 .mfptr img {
		width: 10%;
		height: 17px;
		margin-top:1.5%;
		margin-right: -20%;
		padding-left: 14%;
	}

	th,td {
		display: block;
	}

	.footerta th {
		display: table-cell;
	}

	input[type="button"] {
		margin-top: 2%;
		margin-left: 20%;
	}
}
