@charset "UTF-8";

/*Copyright 2018 Hyuga Kouzai.*/
/* CSS Document */
/* ------------------------------------------------ */
/* ▼お問い合わせ用(contact.html)
/* ------------------------------------------------ */
/* お問い合わせ */
#contact{
	width:100%;
	margin:0 auto;
}
#contents p{
	&:first-child{
		width:80%;
		margin:1rem auto 0;
		text-align: center;
		line-height: 1.5rem;
		font-size:1.5vw;
		& > span{
			display:none;
		}
	}
	&:nth-child(2){
		display:block;
		width:80%;
		margin:0rem auto 1rem;
		color:red;
		text-align: center;
		line-height: 1.5rem;
		font-size:1.3vw;
	}
}
/* form */
#contact #mail-form{
	width:70%;
	margin:0 auto;
	& table{
		width: 100%;
		margin: 0 auto;
		border-collapse: collapse;
		border-spacing: 0;
		& th{
			font-weight: bold;
			text-align: left;
			width: 32%;
			background: #edfaff;/*#e3ffd2;*/
			line-height:1.5rem;
		}
		& th span{
			padding: 0.1rem 0.8rem;
			margin-right: 0.5rem;
			border-radius: 4px;
			box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.2);
		}
		& th,
		& td{
			border: 1px solid #ccc;
			padding: 0.5rem 0.5rem;
			vertical-align: middle;
			font-size:1.1vw;
		}
		& tr:last-child td{
			text-align: center;
			border: none;
			border-top: 1px solid #ccc;
		} 
		& .required{
			color: red;
			background: #ffcc66;
			border:2px solid orange;
		}
		& .notrequired{
			color: 333333;
			background: #ccffff;
			border:1px solid #2AA8E5;
		}
	}
}

	#contact #mail-form{
		input[type="text"],
		input[type="email"],
		textarea {
			width: 100%;
			border: 1px solid #ccc;
			padding: 0.2rem 0.5rem;
			font-family: inherit;
			height:50px;
		}
	}

#contact #mail-form textarea {
	min-height: 100px;
}

#contact #mail-form {
	input[type="submit"],
	input[type="button"],
	input[type="reset"] {
		width: 10rem;
		background: #2AA8E5;
		border: none;
		color: #fff;
		padding: 0.2rem 0.5rem;
		margin-top: 20px;
		height: 3rem;
		display: inline-block;
		vertical-align: top;
		border-radius: 5px;
		font-family: inherit;
		font-size: 1.6vw;
		opacity: 0.8;
	}
}
/*送信ボタンをhoverしたときの透明度とポインタの変更*/
#contact #mail-form {
	input[type="submit"]:hover,
	input[type="button"]:hover,
	input[type="reset"]:hover{
		opacity:1;
		cursor:pointer;
		font-weight: bold;
		font-size: 1.8vw;
		transition: 0.3s;

	}
}
/*送信完了後*/
#contact#mail-thanks{
	line-height:1.5rem;
	font-size:1.8vw;
	text-align:center;
	}

/* ------------------------------------------------ */
/* タブレット 縦向き*/
/* ------------------------------------------------ */
@media screen and (orientation: portrait) and (min-width: 760px) and (max-width:1300px) {
	#contact #mail-form{
		& table{
			& th{
				width: 32%;
			}
			& th span{
				border-radius: 5px;
			}
			& th,
			& td{
				font-size:1vw;
			}
		}
	}
}
	
/* ------------------------------------------------ */
/* レスポンシブ（780px以下）
/* ------------------------------------------------ */
@media screen and (orientation: portrait) and (max-width:780px) {
	#contents p{
		&:first-child{
			width:90%;
			margin:1rem auto;
			line-height: 1rem;
			font-size:1em;
			& > span{
				display:block;
			}
		}
		&:nth-child(2){
		width:80%;
		margin:0rem auto 1rem;
		text-align: left;
		line-height: 1rem;
		font-size:0.8em;
		padding-left:1em;
		text-indent:-1em;
		}
	}
	#contact #mail-form{
		width:90%;
		margin:0 auto;
		& table{
			width: 100%;
			margin: 0 auto;
			& th{
				font-weight: bold;
				text-align: left;
				background: #edfaff;/*#e3ffd2;*/
				line-height:1.5rem;
			}
			& th,
			& td{
				display: block;
				width: 100%;
				line-height:1.5rem;
				box-sizing: border-box;
				border-bottom: none;
				font-size:1rem;
			}
			& tr:last-child td{
			border-top: 1px solid #ccc;
			} 
		}
	}
	#contact #mail-form{
		input[type="text"],
		input[type="email"],
		textarea {
			width:100%;
			height:50px;
		}
	}
	#contact #mail-form {
		input[type="submit"],
		input[type="button"],
		input[type="reset"] {
			font-size:1rem;
			opacity: 1;
		}
	}
	#contact #mail-form {
		input[type="submit"]:hover,
		input[type="button"]:hover,
		input[type="reset"]:hover{
			font-size: 1.1rem;
			transition: 0.3s;
		}
	}
	/*送信完了後*/
	#contact#mail-thanks{
		line-height:1.5rem;
		font-size:1.2rem;
		text-align:center;
	}
}