@charset "utf-8";

/*------------------------------
  コンタクトフォーム
---------------------------------*/
.color-check {
	color: #F00
}

/* form内のフォントウェイトを500に */
form#req {
	font-weight: 500;
}

ul.clsName li {
	padding: 10px;
	list-style: none;
	/* liのlist-styleをnoneにする */
}

.takuji {
	display: none
}

dl.mailform {
	margin-top: 10px;
}

dl.mailform dt {
	float: left;
	width: 200px;
	clear: both;
	text-align: right;
	font-size: clamp(1rem, 2vw, 1.1rem);
	font-weight: 500;
	padding: 20px 0px 5px 0px;
	margin: 0px;
}

dl.mailform dd {
	padding: 20px 10px 20px 220px;
	border-bottom: solid 1px #CCCCCC;
	margin: 0px;
	font-size: clamp(1rem, 2vw, 1.1rem);
	font-weight: 500;
}

img.must {
	width: 30px;
	height: 16px;
	float: left;
	margin: 0px 0px 0px 5px;
}

/* form内のinputとtextareaに限定 */
form#req input[type="text"],
form#req input[type="email"],
form#req input[type="radio"] {
	margin-bottom: 5px;
	padding: 5px;
	font-size: 16px;
	border: 1px solid #ddd;
	font-weight: 500;
}

form#req textarea {
	border: 1px solid #ddd;
	font-size: 16px;
	width: 80%;
	font-weight: 500;
}

/* プルダウンフォームのスタイルを最適化 */
form#req select {
	padding: 8px 10px;
	font-size: 16px;
	border: 1px solid #ddd;
	background-color: #fff;
	cursor: pointer;
	font-weight: 500;
	width: auto;
	min-width: 100px;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	height: auto;
	line-height: 1.5;
}

form#req select:focus {
	outline: none;
	border-color: #24357e;
	box-shadow: 0 0 0 2px rgba(36, 53, 126, 0.1);
}

/* 「内容確認」ボタンは中央揃え */
form#req .mail_buttons,
.mail_buttons {
	text-align: center;
	margin-top: 20px;
}

form#req input#submit_button,
input#submit_button,
input[type="submit"]#submit_button {
	margin-top: 10px;
	padding: 15px 30px !important;
	font-size: 90%;
	background-color: #e5e5e5 !important;
	color: #000 !important;
	border: 1px solid #ccc !important;
	cursor: pointer;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
}

form#req dl dd.error input,
form#req dl dd.error textarea,
form#req dl dd.error label {
	background: #FFF6E2;
}

* html form#req dl dd.error label {
	background: none;
}

*+html form#req dl dd.error label {
	background: none;
}

form#req dl dd p.error {
	margin: 0;
	color: red;
	margin-bottom: 0;
	padding: 0;
	font-size: 12px;
}

ul.clsName li {
	padding: 5px;
	list-style: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 580px) {
	dl.mailform dt {
		float: none;
		width: 100%;
		padding: 10px;
		text-align: left;
	}

	dl.mailform dd {
		width: 100%;
		padding: 10px;
		padding-left: 10px;
		/* スマホ時は左パディングを調整 */
		text-align: left;
	}

	img.must {
		margin-right: 5px;
	}

	/* メールアドレス入力フィールドの幅制御を追加 */
	form#req input[type="text"],
	form#req input[type="email"] {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	form#req textarea {
		width: 90%;
		margin-left: auto;
		margin-right: auto;
	}

	form#req label {
		text-align: left;
	}

	/* スマホ時のプルダウンフォーム */
	form#req select {
		width: 100%;
		max-width: 100%;
		padding: 8px 10px;
		font-size: 16px;
		-webkit-appearance: none;
		appearance: none;
		border-radius: 0;
		height: auto;
		line-height: 1.5;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 10px center;
		background-size: 12px;
		padding-right: 35px;
	}

	/* 生年月日のセレクタを横並びに（改行しない） */
	form#req dd.mfp:has(#b-year) {
		white-space: nowrap;
	}

	form#req #b-year,
	form#req #b-month,
	form#req #b-day {
		display: inline-block;
		width: auto;
		min-width: 80px;
		max-width: 120px;
		margin-right: 0.5rem;
		margin-bottom: 0.5rem;
		vertical-align: middle;
		-webkit-appearance: none;
		appearance: none;
		border-radius: 0;
		height: auto;
		line-height: 1.5;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 10px center;
		background-size: 12px;
		padding-right: 35px;
	}
}