/*
Theme Name:問い合わせフォームのスタイル
Version:1.0
*/

/*------------
ステップバー
------------*/
ol.stepBar {
	margin: 5% auto 10%;
	display: flex;
	max-width: 400px;
	position: relative;
	text-align: center;
	display: flex;
	justify-content: center;

}

ol.stepBar li {
	margin: 0;
	padding: 0;
	font-size: 12px;
	list-style: none;
	position: relative;
	width: 33.333%;
}

ol.stepBar li:after {
	background: var(--bg-color);
	content: "";
	width: calc(100% - 24px);
	height: 4px;
	position: absolute;
	left: calc(-50% + 12px);
	top: 10px;
}

ol.stepBar li:first-child:after {
	display: none;
}

ol.stepBar li span {
	background: var(--bg-color);
	display: inline-block;
	height: 24px;
	margin-bottom: 5px;
	line-height: 24px;
	width: 24px;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}

ol.stepBar .visited:after {
	background: var(--main-color);
}

ol.stepBar .visited span {
	background: var(--main-color);
	color: #fff;
}

ol.stepBar li:before {
	content: none;
}

/*------------
リセット
------------*/
button,
input[type="submit"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 0;
	border: none;
	outline: none;
	background: transparent;
}

input::placeholder {
	color: #aaa;
}

input:-ms-input-placeholder {
	color: #aaa;
}

input::-ms-input-placeholder {
	color: #aaa;
}

input,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
	outline: auto;
}

/*------------
フォームのスタイル
------------*/
#contentArea .inner {
	width: min(95%, 700px);
	padding: 0;
}

.strong {
	margin-right: 1em;
	display: inline-block;
	font-weight: bold;
}

.small {
	font-size: 12px;
}

.formList {
	width: 100%;
}

.formList li {
	width: 100%;
	position: relative;
	padding: 25px 10px;
	text-align: left;
	color: var(--text-color);
	border-bottom: solid 1px var(--bg-color);
}

.formList li:last-child {
	border: none;
}

.formList li::before {
	content: none;
}

span.label {
	margin: 0 15px 15px 0;
	display: inline-block;
	font-weight: bold;
}

span.hissu {
	padding: 2px 5px;
	background: red;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	position: relative;
	top: -2px;
}


.formList input[type="email"],
.formList input[type="text"],
.formList input[type="tel"] {
	margin: 5px 0;
	width: 100%;
	max-width: 400px;
	height: 40px;
	padding: 10px;
	border-radius: 0;
	background: var(--bg-color);
	font-size: 16px;
	border: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.formList textarea {
	margin: 10px 0;
	padding: 10px;
	width: 100%;
	height: 200px;
	background: var(--bg-color);
	border: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	font-size: 16px;
}

.formList textarea#banchi {
	height: 42px;
}

.formList textarea::placeholder {
	color: #aaa;
}

.formList select {
	margin: .5em 0;
	width: 100%;
	max-width: 400px;
	height: 40px;
	padding: 0 30px 0 10px;
	border-radius: 0;
	background: var(--bg-color);
	font-size: 16px;
	border: none;
	background-image: url(../images/icon-arrow.png);
	background-repeat: no-repeat;
	background-size: 12px 10px;
	background-position: right 10px center;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	color: var(--text-color);
}


.formList label {
	margin-bottom: 5px;
	width: 48%;
	justify-content: flex-start;
	align-items: center;
}


select::-ms-expand {
	display: none;
}

/*ラジオボタン*/
.wpcf7-radio {
	position: relative;
	display: flex;
	flex-direction: column;
}

input[type=radio] {
	transform: translateY(-3px);
}

.formList .wpcf7-list-item {
	margin: 0 0 10px 0;
}


/*ボタン関連*/
.btn-box {
	margin: 2em 0 1em;
	text-align: center;
	position: relative;
}

.wpcf7-submit,
.wpcf7cp-cfm-edit-btn,
.btn-box.previous input[type="button"],
.btn-box input[type="submit"] {
	margin-bottom: 1em;
	width: 100%;
	max-width: 250px;
	height: 50px;
	border: none;
	background: var(--main-color) !important;
	color: #fff;
	letter-spacing: 0.25em;
	transition-duration: .3s;
	cursor: pointer;
	border-radius: 3px;
}

.wpcf7cp-cfm-edit-btn,
.btn-box.previous input[type="button"] {
	background: var(--bg-color) !important;
	color: var(--text-color);
}

.wpcf7-submit:hover,
.wpcf7cp-cfm-edit-btn:hover,
.btn-box.previous input[type="button"],
.btn-box input[type="submit"]:hover {
	opacity: .7;
}

.btn-box input[type="submit"][name="submitBack"] {
	background: #aaa !important;
}

.formList .wpcf7-spinner {
	position: absolute;
	right: 50px;
	top: 30px;
}

/*添付を削除*/
.clear-file-btn {
	margin: .5em 0 1em;
	font-size: 13px;
	padding: 4px 8px;
	border: 1px solid #ccc;
	background: #f9f9f9;
	cursor: pointer;
}

.clear-file-btn:hover {
	opacity: .7;
}

/*エラー*/
.formList .wpcf7-not-valid-tip {
	color: red;
	margin-bottom: 10px;
	line-height: 1.25;
	font-size: 13px;
}

.formList input[type="email"].wpcf7-not-valid,
.formList input[type="text"].wpcf7-not-valid,
.formList input[type="tel"].wpcf7-not-valid {
	background-color: #ffc0cb36;
	border: solid 1px red;
}

.formList .wpcf7-radio.wpcf7-not-valid,
.formList textarea.wpcf7-not-valid,
.formList select.wpcf7-not-valid {
	background-color: #ffc0cb36;
	border: solid 1px red;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	padding: 20px 15px;
	border: solid 1px red;
	background-color: #ffc0cb36;
	line-height: 1.5;
}

.current-check {
	position: absolute;
	top: 0;
	left: -50vw;
}

/*確認画面*/
.wpcf7:has(#wpcf7cpcnf) .formList {
	display: none;
}

.wpcf7 #wpcf7cpcnf {
	position: static;
}

#wpcf7cpcnf :is(th, td) {
	display: block;
}

#wpcf7cpcnf th {
	width: 100%;
	background: inherit;
	padding: 1em 0 0;
	border: none;
}

#wpcf7cpcnf td {
	padding: 0 0 1em;
}

.wpcf7cp-btns {
	display: flex;
	justify-content: center;
}

/*==========================================
 sp［480px以下］
===========================================*/
@media screen and (max-width: 480px) {

	/* iOSでのデフォルトスタイルをリセット */
	input[type="submit"],
	input[type="button"] {
		border-radius: 0;
		-webkit-box-sizing: content-box;
		-webkit-appearance: button;
		appearance: button;
		border: none;
		box-sizing: border-box;
		cursor: pointer;
	}

	input[type="submit"]::-webkit-search-decoration,
	input[type="button"]::-webkit-search-decoration {
		display: none;
	}

	input[type="submit"]:focus,
	input[type="button"]:focus {
		outline-offset: -2px;
	}

}