@charset "utf-8";
/* CSS Document */

.contact_page .contact_text {
	margin: 10% 5%;
}
.contact_page table p {
	font-size: 12px;
}
.contact_page table,
.contact_page table tbody,
.contact_page table tr,
.contact_page table th,
.contact_page table td {
	display: block;
}

/* --- フォームエリア --- */
form.contact_box {
	width: 95%; /* フォームエリアの幅 */
	margin: 0 auto;
	font-size: 14px;
	background: none;
}
/* --- フォームエリア内の段落 --- */
form.contact_box p {
/*line-height: 130%;*/
}
/* --- 段落内の「必須」画像 --- */
form.contact_box p.attention img {
vertical-align: middle;
}

/* --- テーブル --- */
form.contact_box table {
width: 95%; /* テーブルの幅 */
background-color: #f9f9f9; /* テーブルの背景色 */
border: 1px #c0c0c0 solid; /* テーブルの境界線 */
margin: 0 auto;
}
/* --- セル（tr） --- */
form.contact_box tr {
display: block;
}
/* --- 見出しセル（th） --- */
form.contact_box th {
padding: 10px 8px; /* 見出しセルのパディング（上下、左右） */
background-color: #f5f5f5; /* 見出しセルの背景色 */
border-bottom: 1px #c0c0c0 dotted; /* 見出しセルの下境界線 */
text-align: left;
line-height: 130%;
display: block;
}
/* --- 見出しセル内の補足テキスト --- */
form.contact_box th span.supplement {
font-weight: normal;
}
/* --- データセル（td） --- */
form.contact_box td {
padding: 10px 5px 7px; /* データセルのパディング（上、左右、下） */
background-color: #ffffff; /* データセルの背景色 */
border-bottom: 1px #c0c0c0 dotted; /* データセルの下境界線 */
display: block;
}
/* --- データセル内の補足テキスト --- */
form.contact_box td span.supplement {
color: #808080;
}
/* --- 必須項目セル --- */
form.contact_box td.required {
width: 26px; /* 必須項目セルの幅 */
padding: 10px 3px; /* 必須項目セルのパディング（上下、左右） */
background-color: #c4e6fa; /* 必須項目セルの背景色 */
text-align: center;
}
/* --- 任意項目セル --- */
form.contact_box td.arbitrary {
background-color: #e0f1fc; /* 任意項目セルの背景色 */
}

/* --- フォーム部品 --- */
form.contact_box input,
form.contact_box select,
form.contact_box textarea {
margin-bottom: 2px; /* フォーム部品の下マージン */
margin-top: 1px; /* フォーム部品の上マージン */
}
form.contact_box input#tel {
	width: 50%;
}

/* --- フォーム部品のサイズ --- */
/* --- （長めのテキスト入力欄） --- */
#company, #section, #name, #name2,
#email, #address {
width: 90%; /* フォーム部品の幅 */
}
/* --- （短めのテキスト入力欄） --- */
#tel1, #tel2, #tel3,
#fax1, #fax2, #fax3 {
width: 70px; /* フォーム部品の幅 */
}
#zip1, #zip2 {
width: 70px; /* フォーム部品の幅 */
}
/* --- （複数行のテキスト入力欄） --- */
#message {
width: 90%; /* フォーム部品の幅 */
height: 10em; /* フォーム部品の高さ */
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
	padding: 0.5rem 0.5rem 0.3rem;
	font-size: 1.1rem;
	resize: none;
	width: 100%;
}

/* --- ボタン --- */
form.contact_box p.contact_button {
margin: 20px auto; /* ボタンのマージン（上、左右、下） */
text-align: center;
max-width: 230px;
}

/* --- 希望時間ボーダー --- */
.contact_days {
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

/* --- メニュー選びの幅 --- */
#prefecture {
	width: 100%;
	height: 30px;
}

@media screen and (min-width:768px){
	.contact_page .contact_text {
		margin: 5% 2%;
	}
	.contact_page table p {
		font-size: 14px;
	}
	.display_br {
		display: none;
	}
	#prefecture {
		width: auto;
	}
		/* --- セル（tr） --- */
	form.contact_box tr {
		display: block;
	}
	/* --- 見出しセル（th） --- */
	form.contact_box th {
		width: 30%;
		float: left;
		min-height: 37px;
	}
	form.contact_box tr:nth-child(2) th,
	form.contact_box tr:nth-child(2) td {
		min-height: 62px;
	}
	form.contact_box tr:nth-child(3) th,
	form.contact_box tr:nth-child(3) td {
		min-height: 86px;
	}
	/* --- データセル（td） --- */
	form.contact_box td {
		width: 66%;
		float: right;
	}
	form.contact_box tr:last-child th, form.contact_box tr:last-child td {
		min-height: 220px;
	}
}
@media screen and (min-width:1000px){
	form.contact_box table {
		width: 75%;
	}
	.contact_page .contact_text {
		margin: 2% 5%;
	}
}