@charset "utf-8";
.main_header h2,
.contact .read{
 text-align: center;
}
.contact .read{
	width: 90%;
	margin: 40px auto 40px;
}
.contactbox h2 {
	font-size: 1.3em;
}

.contactbox h2 span {
	color: #fff;
	background-color: #ff8c00;
	padding: 5px 10px;
}
table{
	display: flex;
	justify-content: center;
	max-width: 800px;
	margin: auto;
	text-align: left;
}
table tr {
	display: flex;
	justify-content: left;
	width: 100%;
	flex-wrap: wrap;
	padding: 10px 0;
	border-bottom: 1px solid #cecece;
}
table .flexbox td,
table .flexbox th{
	width: 100%;
	display: flex;
}
table .flexbox th{
	margin-bottom: 10px;
}
table .cell02 td input,
textarea{
	width: 100%;
}
.cell02 th{
	width: 40%;
}
.cell02 td{
	width: 60%;
}
.column{
	display: flex;
	flex-wrap: nowrap;
}
.column input{
	margin:0 10px;
}
.f_caution,
.f_any {
	display: inline-block;
	margin-right: 8px;
	font-size: 0.9em;
}

.f_caution {
	padding: 3px 12px;
	color: #fff;
	font-weight: bold;
	background-color: #685f58;
	border-radius: 20px;
}

.f_any {
	padding: 3px 8px;
	color: #685f58;
	background-color: #fff;
}

.formbox {
	width: 100%;
	margin: 40px auto 0;
	padding: 40px 0;
	position: relative;
	z-index: 1;
}

.formbox::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	margin: auto;
	width: 0;
	height: 0;
	border-left: 40px solid transparent;
	border-right: 40px solid transparent;
	border-top: 30px solid #aaa199;
}

.formbox table {
	max-width: 800px;
	width: 90%;
	margin: auto;
}

/* for table */
#form {
	border-collapse: collapse;
	margin: auto;
	width: 90%;
}

.formbox th {
	color: #685f58;
	font-weight: bold;
	min-width: 240px;
}

.formbox td {
	max-width: 530px;
}

.formbox th,
.formbox td {
	padding: 20px 20px;
	text-align: left;
}

.formbox table input,
.formbox table textarea {
	border: 2px solid #999999;
	border-radius: 5px;
}

.formbox .tel_time th {
	width: 100%;
	color: #505050;
	font-weight: normal;
	border-bottom: none;
	padding-bottom: 0;
}

.border_none th,
.border_none td {
	border-bottom: none;
	padding-bottom: 0;
}

.mailbox input[type="text"]:first-of-type {
	margin-bottom: 5px;
}

p.btn input {
	background-color: #685f58;
	color: #fff;
	text-align: center;
	width: 100%;
	max-width: 400px;
	min-height: 60px;
	border-radius: 45px;
	display: block;
	position: relative;
	font-size: 14px;
	border: none;
}
p.btn{
	display: flex;
	justify-content: center;
	align-items: center;
	position:relative;
	width: 80%;
		margin: 20px auto;
		max-width: 400px;
	font-size: 14px;
}

p.btn::after {
	/* 擬似要素で矢印アイコンをつくる */
	content: '';
	border: 0;
	border-top: solid 2px #fff;
	border-right: solid 2px #fff;
	display: flex;
	position: absolute;
	top: 50%;
	right: 20px;
	width: 10px;
	height: 10px;
	z-index: 2;
	transform: translateY(-50%) rotate(45deg);
	/* rotate(45deg)で矢印を回転（向きを変更）させる */
}
p.btn.bkbtn::after {
	/* 擬似要素で矢印アイコンをつくる */
	content: '';
	border: 0;
	border-top: solid 2px #fff;
	border-right: solid 2px #fff;
	display: flex;
	position: absolute;
	top: 50%;
	left: 20px;
	right: inherit;
	width: 10px;
	height: 10px;
	z-index: 2;
	transform: translateY(-50%) rotate(-135deg);
	/* rotate(45deg)で矢印を回転（向きを変更）させる */
}
table .agreetext,
table tr:last-of-type{
	border: none;
}
.agreetext th {
	border-bottom: none;
	padding-bottom: 0;
}

.agreebox th {
	text-align: left;
}

.agreement h3 {
	margin-bottom: 10px;
	font-weight: normal;
}
.agreetx{
	margin-bottom: 10px;
}
.agreement h4{
	text-align: left;
	font-weight: bold;
	margin-bottom: 10px;
}
.agreement li{
	margin-bottom: 20px;
}
.agreement ul{
	margin: 10px 0;
}
.agreement ul li{
	list-style:disc;
	list-style-position: inside;
	padding-left: 1.3em;
		text-indent: -1.3em;
	margin-bottom: 5px;
}
.agreement {
	margin: auto;
	background-color: #e7dcc6;
	padding: 40px;
	font-size: 0.8em;
	max-height: 200px;
	overflow-y: scroll;
	color: #505050;
	font-weight: normal;
	line-height: 150%;
	border-radius: 20px;
}

.agreebox input[type="checkbox"] {
	width: 24px;
	height: 24px;
	border-radius: 0;
	border: 2px solid #999999;
	vertical-align: middle;
	margin-right: 5px;
}
.scroll-box::-webkit-scrollbar {
	background: #fff5ec;
}

.scroll-box::-webkit-scrollbar-thumb {
	background-color: #aaa199;
}
.formbox input[type="radio"] {
	width: 24px;
	height: 24px;
	border-radius: 12px;
	border: 2px solid #999999;
	vertical-align: middle;
	margin-right: 5px;
}

.formbox input[type="radio"]:last-of-type {
	margin-left: 20px;
}

/* for title */

/* for message */
.contact{
	background: url(img/bg_form.jpg) no-repeat;
	background-size: cover;
	padding: 80px 0;
}
.contact .msg {
	text-align: center;
}

p.msg {
	color: red;
	margin: 3vw;
}
p.msg.thanks{
	color:#685f58;
}
span.msg {
	color: red;
	font-weight: bold;
	text-decoration: underline;
}

span.error {
	color: red;
	font-weight: bold;
	text-decoration: underline;
}

p.btn.btnbox {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 40px auto 0;
}

p.btn.btnbox input {
	margin: 0;
}

p.btn.btnbox input:last-of-type {
	margin-left: 10px;
}

/* for back-button */
form.back {
	margin-top: 3vw;
}

@media (max-width:700px) {
	.formbox {
		padding: 8vw 0;
		margin: 8vw auto 0;
	}

	.telbox h3 {
		font-size: 1.2em;
	}

	.contactbox h2 {
		font-size: 1.2em;
	}

	.formbox table {
		width: 95%;
	}

	.formbox table td,
	.formbox table th {
		display: block;
		width: 100%;
	}

	.formbox td {
		padding: 2vw 20px 20px;
	}

	.formbox input[type="text"],
	.formbox textarea {
		width: 100%;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
	}

	.formbox th {
		border-bottom: none;
		padding-bottom: 0;
	}

	.formbox .agreebox_check th {
		padding-bottom: 20px;
	}

	p.btn input {
		font-size: 1.3em;
		max-width: 400px;
		min-height: 70px;
		border-radius: 35px;
	}
}

@media (max-width:600px) {
	.contactbox h2 {
		font-size: 1.15em;
	}
table tr{
	padding: 4vw 0;
}
.cell02 th,
.cell02 td{
	width: 100%;
}
.cell02 th{
	margin: 0 0 10px 0 ;
}
.contact .read{
	text-align: left;
	margin: 5vw auto;
}
}
@media (max-width:480px) {
	.column {
		flex-wrap: wrap;
	}

	.column div {
		width: 100%;
	}
}