
/*=======================================================*/
/* お問い合わせフォーム */
/*=======================================================*/

#formWrap {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	color: var(--txt-color);
	font-size: 16px;
	line-height: 1.8;
	--form-rule: #DED8D2;
}


/*=======================================================*/
/* テーブル */
/*=======================================================*/

table.formTable {
	width: 100%;
	margin: 0 auto;
	border-collapse: collapse;
	table-layout: fixed;
	background-color: transparent;
}

table.formTable th,
table.formTable td {
	position: relative;
	border: none;
	box-sizing: border-box;
	padding-top: 20px;
	padding-bottom: 20px;
	vertical-align: middle;
}

/* 左側：項目名 */
table.formTable th {
	width: 28%;
	padding-right: 22px;
	padding-left: 5px;
	background-color: transparent;
	color: var(--txt-color);
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	letter-spacing: .04em;
	background-image: linear-gradient(var(--main-color), var(--main-color));
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: calc(100% - 22px) 1px;
}

/* 右側：入力欄 */
table.formTable td {
	padding-left: 22px;
	padding-right: 5px;
	background-image: linear-gradient(var(--line-color), var(--line-color));
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: calc(100% - 20px) 1px;
}


/*=======================================================*/
/* 項目名・必須ラベル */
/*=======================================================*/

.formTable .form-label {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.formTable .form-required {
	display: inline-block;
	padding: 2px 7px;
	margin-left: 5px;
	border-radius: 3px;
	background-color: var(--main-color);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	letter-spacing: 0;
}


/*=======================================================*/
/* 入力欄 */
/*=======================================================*/

.formTable input[type="text"],
.formTable input[type="email"],
.formTable input[type="tel"],
.formTable input[type="date"],
.formTable select,
.formTable textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #ebe8e6;
	border-radius: 4px;
	box-sizing: border-box;
	background-color: #fff;
	color: var(--txt-color);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
	transition: border-color .2s, box-shadow .2s;
}

.formTable input::placeholder,
.formTable textarea::placeholder {
	color: #A39D98;
}

/* 入力中 */
.formTable input:focus,
.formTable select:focus,
.formTable textarea:focus {
	outline: none;
	border-color: var(--main-color);
	box-shadow: 0 0 0 3px rgba(245, 119, 59, .12);
}

.formTable textarea {
	min-height: 180px;
	resize: vertical;
	line-height: 1.8;
}


/*=======================================================*/
/* セレクトボックス */
/*=======================================================*/

.formTable select {
	padding-right: 45px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23554239' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 14px;
}


/*=======================================================*/
/* ラジオボタン */
/*=======================================================*/

.formTable td label {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	margin-right: 20px;
	line-height: 1.6;
	cursor: pointer;
}

.formTable input[type="radio"],
.formTable input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: .4em;
	accent-color: var(--main-color);
}


/*=======================================================*/
/* ボタン */
/*=======================================================*/

#formWrap input[type="submit"],
#formWrap input[type="reset"],
#formWrap input[type="button"] {
	display: inline-block;
	min-width: 180px;
	min-height: 50px;
	margin: 0 5px;
	padding: 14px 35px;
	border: none;
	border-radius: 4px;
	box-sizing: border-box;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	transition: background-color .2s, opacity .2s;
}

#formWrap input[type="submit"] {
	background-color: var(--accent-color2);
}

#formWrap input[type="reset"],
#formWrap input[type="button"] {
	background-color: #9A9692;
}

@media (hover: hover) {
	#formWrap input[type="submit"]:hover,
	#formWrap input[type="reset"]:hover,
	#formWrap input[type="button"]:hover {
		opacity: .8;
	}
}

#formWrap input[type="submit"]:focus-visible,
#formWrap input[type="reset"]:focus-visible,
#formWrap input[type="button"]:focus-visible {
	outline: 2px solid var(--main-color);
	outline-offset: 4px;
}


/*=======================================================*/
/* その他 */
/*=======================================================*/

/* reCAPTCHA v3 */
.grecaptcha-badge {
	margin-bottom: 70px;
	z-index: 9999;
}

/* リンク */
a.m-unli {
	color: var(--accent-color2);
	text-decoration: underline;
	text-underline-offset: 3px;
}

a.m-unli:hover {
	color: var(--main-color);
}


/*=======================================================*/
/* SP */
/*=======================================================*/

@media only screen and (max-width: 767px) {

	#formWrap {
		width: 100%;
	}

	table.formTable,
	table.formTable tbody,
	table.formTable tr {
		display: block;
		width: 100%;
	}

	table.formTable th,
	table.formTable td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	/* 項目名を上に配置 */
	table.formTable th {
		padding: 20px 0 8px;
		background-image: none;
	}

	/* 入力欄 */
	table.formTable td {
		padding: 0 0 22px;
		background-position: left bottom;
		background-size: 100% 1px;
	}

	/* ボタン */
	#formWrap input[type="submit"],
	#formWrap input[type="reset"],
	#formWrap input[type="button"] {
		display: block;
		width: 100%;
		margin: 0 0 10px;
	}

}


/* ================================
   single（見た目：白い枠だけ）
================================ */
.tel_bnr-single{
	background: #ffffff85;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px 40px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* ================================
   ボタン制御
================================ */

.tel_bnr-single .btn-call{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end; /* grid内で右寄せ */
}

/* ================================
   ボタンデザイン
================================ */
.btn-call{
	background: var(--main-color);
	color: #fff;
	padding: 14px 28px;
	border-radius: 8px;
	font-weight: bold;
	font-size: 15px;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
	transition: background 0.2s, transform 0.1s;
	width: auto;          /* auto列を押し広げない */
	max-width: none;
	align-self: center;
}

.btn-call:hover{
	background: var(--accent-color2);
	transform: translateY(-1px);
}

/* SP：押しやすくフル幅 */
@media only screen and (max-width: 767px) {
	.btn-call{
		width: 100%;
		box-sizing: border-box;
	}
	.tel_bnr-single .btn-call{
		justify-self: center; /* grid内で中央寄せ */
	}
	.tel_bnr-single{
		background: #ffffffa6;
		padding: 20px 20px;
	}
}