@charset "utf-8";
/*==================================================
	【お問合せ】ページ固有のスタイル
==================================================*/
#contact {
	--contact-green: #1c632e;
	--contact-green-light: #e8f3e9;
	--contact-brown: #754321;
	--contact-border: #dbe5dc;
	line-height: 1.8;
}

/*==================================================
	お問合せ内容のご案内
==================================================*/
#contact .about {
	margin: 40px 0;
}
#contact .about ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	margin: 0 0 35px;
	padding: 25px 30px;
	background: #fff;
	border: 1px solid #edf0eb;
	border-radius: 20px;
	list-style: none;
}
#contact .about ul li {
	position: relative;
	margin: 0;
	padding: 5px 0 5px 34px;
	font-size: 115%;
	font-weight: 600;
}
#contact .about ul li::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	width: 21px;
	height: 21px;
	background: url("../img/chk.png") no-repeat center center / contain;
}
#contact .about > p {
	margin: 25px 0 0;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
}

/*==================================================
	フォーム全体
==================================================*/
#contact .waku {
	margin: 45px 0 0;
	padding: 45px;
	background: #fff;
	border: 1px solid #e4eae3;
	border-radius: 25px;
	box-shadow: 0 8px 30px rgba(20, 80, 35, 0.04);
}

#mailform {
	width: 100%;
}

#mailform *,
#mailform *::before,
#mailform *::after {
	box-sizing: border-box;
}

/*==================================================
	入力テーブル
==================================================*/
#mailform .tbl {
	width: 100%;
	margin: 0 0 30px;
	border-collapse: separate;
	border-spacing: 0 10px;
	border: none;
}

#mailform .tbl th,
#mailform .tbl td {
	border: none;
	text-align: left;
}

#mailform .tbl th {
	width: 230px;
	padding: 22px 20px;
	background: #c3e1c9;
	border-radius: 10px 0 0 10px;
	color: var(--color-primary);
	font-size: 15px;
	font-weight: bold;
	vertical-align: middle;
}

#mailform .tbl td {
	padding: 20px 25px;
	background: #f7f7f7;
	border-radius: 0 10px 10px 0;
	vertical-align: middle;
}

/* 必須マーク */
#mailform .tbl th .need {
	float: right;
	display: inline-block;
	margin: 0 0 0 8px;
	padding: 2px 9px;
	background: var(--color-red);
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.5;
	white-space: nowrap;
}

/*==================================================
	テキスト入力・テキストエリア
==================================================*/
#mailform .tbl input[type="text"],
#mailform .tbl textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 13px 16px;
	background: #fff;
	border: 1px solid #d1dcd2;
	border-radius: 8px;
	box-shadow: none;
	color: var(--color-font);
	font-size: 16px;
	line-height: 1.6;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
	-webkit-appearance: none;
}

#mailform .tbl input[type="text"]:focus,
#mailform .tbl textarea:focus {
	outline: none;
	border-color: var(--contact-green);
	box-shadow: 0 0 0 3px rgba(28, 99, 46, 0.12);
}

#mailform .tbl input[type="text"]::placeholder,
#mailform .tbl textarea::placeholder {
	color: #999;
}

#mailform .tbl textarea {
	min-height: 200px;
	resize: vertical;
}

#mailform .tbl input.wno {
	width: 120px;
}

/*==================================================
	チェックボックス
==================================================*/
#mailform .check_list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#mailform .check_list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

#mailform .check_list label {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 48px;
	padding: 10px 13px;
	background: #fff;
	border: 1px solid #dce6dd;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

#mailform .check_list label:hover {
	background: #eff7ef;
	border-color: #9bc4a2;
}

#mailform input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--contact-green);
	cursor: pointer;
}

#mailform .check_list label:has(input:checked) {
	background: #e8f3e9;
	border-color: var(--contact-green);
	color: var(--color-primary);
	font-weight: bold;
}

/*==================================================
	個人情報保護方針
==================================================*/
#mailform .privacy_box {
	max-height: 230px;
	overflow-y: auto;
	margin: 15px 0 0;
	padding: 25px;
	background: #fff;
	border: 1px solid #dbe5dc;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.9;
	overscroll-behavior: contain;
}

#mailform .privacy_box p {
	margin: 0 0 15px;
}

#mailform .privacy_box h4 {
	margin: 22px 0 8px;
	padding-left: 10px;
	border-left: 3px solid var(--contact-green);
	color: var(--color-primary);
	font-size: 14px;
	font-weight: bold;
	line-height: 1.5;
}

#mailform .privacy_box h4:first-of-type {
	margin-top: 15px;
}

#mailform .privacy_box ul {
	margin: 0 0 15px;
	padding-left: 1.5em;
	list-style: disc;
}

#mailform .privacy_box li {
	margin-bottom: 5px;
}

#mailform .privacy_box > :last-child {
	margin-bottom: 0;
}

/* スクロールバー */
#mailform .privacy_box::-webkit-scrollbar {
	width: 7px;
}

#mailform .privacy_box::-webkit-scrollbar-track {
	background: #f0f3ef;
	border-radius: 10px;
}

#mailform .privacy_box::-webkit-scrollbar-thumb {
	background: #adcbb1;
	border-radius: 10px;
}

/* 同意チェック */
#mailform .privacy_agree {
	margin: 20px 0 0;
}

#mailform .privacy_agree label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 17px 20px;
	background: #eaf4eb;
	border: 1px solid #cce0cf;
	border-radius: 10px;
	color: var(--color-primary);
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
}

#mailform .privacy_agree label:hover {
	background: #dff0e2;
}

/*==================================================
	フォーム下部の案内
==================================================*/
#mailform > .cen_pc {
	margin: 30px 0 0;
	line-height: 2;
	text-align: center;
}

/*==================================================
	送信・リセットボタン
==================================================*/
#mailform .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 35px 0 0;
	padding: 0;
	list-style: none;
}

#mailform .btn li,
#mailform .btn li + li {
	margin: 0;
	padding: 0;
	list-style: none;
}

#mailform .btn input {
	display: block;
	width: 230px;
	height: 58px;
	margin: 0;
	padding: 0 20px;
	background: var(--color-primary);
	border: 1px solid var(--color-primary);
	border-radius: 35px;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
	appearance: none;
	-webkit-appearance: none;
}

#mailform .btn input:hover {
	background: var(--color-primary);
	opacity: 1;
	filter: none;
	transform: translateY(-2px);
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
}

#mailform .btn input[type="reset"] {
	background: #f2f2f2;
	border-color: #ddd;
	color: #666;
}

#mailform .btn input[type="reset"]:hover {
	background: #e5e5e5;
}

/*==================================================
	タブレット
==================================================*/
@media only screen and (max-width: 768px) {
	#contact .waku {
		padding: 25px;
	}

	#mailform .tbl th {
		width: 210px;
		padding: 18px 15px;
	}

	#mailform .tbl td {
		padding: 18px 15px;
	}

	#mailform .check_list {
		grid-template-columns: 1fr;
	}

	#mailform .tbl input[type="text"],
	#mailform .tbl textarea {
		font-size: 16px;
	}

	#mailform .btn input {
		width: 180px;
	}
}

/*==================================================
	スマートフォン
==================================================*/
@media only screen and (max-width: 640px) {
	
	#contact .about h3 {
		font-size: 18px;
	}
	#contact .about ul {
		display: block;
		padding: 15px 20px;
	}
	
	#contact .waku {
		margin-top: 30px;
		padding: 18px 15px;
		border-radius: 15px;
	}

	#mailform .tbl {
		display: block;
		width: 100%;
		margin-bottom: 20px;
		border-spacing: 0;
	}

	#mailform .tbl tbody {
		display: block;
	}

	#mailform .tbl tr {
		display: block;
		margin-bottom: 15px;
	}

	#mailform .tbl th,
	#mailform .tbl td {
		display: block;
		width: 100%;
	}

	#mailform .tbl th {
		padding: 12px 15px;
		border-radius: 8px 8px 0 0;
		font-size: 14px;
	}

	#mailform .tbl td {
		padding: 15px;
		border-radius: 0 0 8px 8px;
	}

	#mailform .tbl th .need {
		float: right;
		font-size: 11px;
	}

	#mailform .tbl input[type="text"],
	#mailform .tbl textarea {
		padding: 12px;
		font-size: 16px;
	}

	#mailform .tbl textarea {
		min-height: 170px;
	}

	#mailform .check_list {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	#mailform .check_list label {
		min-height: 45px;
		padding: 10px;
		font-size: 13px;
	}

	#mailform .privacy_box {
		max-height: 220px;
		padding: 15px;
		font-size: 12px;
	}

	#mailform .privacy_box h4 {
		font-size: 13px;
	}

	#mailform .privacy_agree label {
		padding: 15px 10px;
		font-size: 13px;
	}

	#mailform > .cen_pc {
		margin-top: 20px;
		font-size: 12px;
		text-align: left;
	}

	#mailform > .cen_pc br {
		display: none;
	}

	#mailform .btn {
		gap: 10px;
		margin-top: 25px;
	}

	#mailform .btn li {
		flex: 1;
		min-width: 0;
	}

	#mailform .btn input {
		width: 100%;
		height: 52px;
		padding: 0 10px;
		font-size: 14px;
	}
}
