/*
Theme Name:問い合わせフォームのスタイル
Version:1.0
*/
/*==========================================
 PC
===========================================*/
main :is(h2,h3,h4){
margin-bottom: 1em;
}
/*------ステップバー------*/
.stepBar {
  display: flex;
  max-width: 400px;
  position: relative;
  margin: 10% auto;
  text-align: center;
}
ol.stepBar li {
	margin: 0;
	padding: 0;
  font-size: 12px;
  list-style: none;
  position: relative;
  width: 33.333%;
}
.stepBar li:after {
  background: #ccc;
  content: "";
  width: calc(100% - 24px);
  height: 4px;
  position: absolute;
  left: calc(-50% + 12px);
  top: 10px;
}
.stepBar li:first-child:after {
  display: none;
}
.stepBar li span {
  background: #ccc;
  color: #ffffff;
  display: inline-block;
  height: 24px;
  margin-bottom: 5px;
  line-height: 24px;
  width: 24px;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.stepBar .visited:after {
  background: var(--sub-color);
}
.stepBar .visited span {
  background: var(--sub-color);
}
.stepBar li:before{
	content: none;
}
/*------フォームのスタイル------*/
.form{
	width: 95%;
}
.form tr:not(:last-child) {
border-bottom: solid 2px var(--line-color);
}
.form th {
	padding: 25px 10px;
	width: 30%;
	position: relative;
}
.form th,
.form td{
	background-color: inherit;
	border: none;
	color: var(--text-color);
	text-align: left;
}
/*--必須項目--*/
span.hissu{
	margin-left: 5%;
	padding: 3px 3px 3px 4px;
	background: red;
	color: #fff;
	font-size: 11px;
	display: inline-block;
	position: absolute;
    right: 0;
		top: calc(50% - 12px);
}
.form input[type="email"],
.form input[type="text"],
.form input[type="tel"]{
	margin: 5px 0;
    width: 100%;
	max-width: 400px;
    height: 40px;
	padding: 10px;
	border-radius: 0;
	background: var(--line-color);
	font-size: 16px;
	border: none;
	appearance: none;
	  -webkit-appearance: none;
	  -moz-appearance: none;
}
.form textarea {
    margin: 10px 0;
	padding: 10px;
    width: 100%;
    height: 200px;
	background: var(--line-color);
	border: none;
	appearance: none;
	  -webkit-appearance: none;
	  -moz-appearance: none;
	font-size: 16px;
}
.form select {
	width: 100%;
	max-width: 400px;
	height: 40px;
	padding: 0 30px 0 10px;
	border-radius: 0;
	background: var(--line-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;
}
select::-ms-expand {
	display: none;
}
/*days*/
.form input.days,
.form select.days{
	width: 22%;
	font-size: 14px;
}
.form input[type="submit"],
.form input[type="button"] {
    margin: 0 auto 20px;
    width: 100%;
	max-width: 300px;
    height: 50px;
    border: none;
	background: var(--main-color);
    color: #fff;
    letter-spacing: 0.25em;
    transition-duration: .3s;
	cursor: pointer;
	border-radius:30px;
}
.form input[type="submit"],
.form input[type="button"] {
	background: var(--main-color);
}
.form input[name="submitBack"] {
background: #aaa;
}
.submit-area a{
	text-decoration: underline;
}
.form td.submit-area{
	padding: 30px 5px 0;
	text-align: center;
	background: inherit;
}
.form td.submit-area .btn{
	margin: 0 auto;
	display: block;
	width: 210px;
	transition-duration: .3s;
}
.form td.submit-area .btn:hover{
	opacity: .7;
}

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;
}
/*==========================================
 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;
	}
	span.hissu{
		margin: 0 5px 0;
		position: static;
	}
	.form tr{
	    padding: 10px 0;
		display: flex;
		flex-direction: column;
	}
	.form th{
		padding: 10px 0 5px 10px;
		width: 100%;
	}
	.form td{
		padding: 0 10px 5px;
	}
	.form td.submit-area {
   	padding: 10px 0 0;
    text-align: center;
	}
}