html,
body{
  height: 100%; 
}

.background{
  position: fixed;
  z-index: 3;
  width: 100%;
  height: 100%;
  background-color:rgba(0,0,0,0.4);
  transition: 1s;
  opacity: 0;
  visibility: hidden;
}

.pop-up{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 3;
  width: 50%;
  transition: 1s;
  opacity: 0;
  visibility: hidden;
}

.pop-up-message {
  border: solid 1px;
  border-radius: 10px;
  background-color: white;
  color: black;
  padding: 2% 4%;
}

.pop-up-message__text{
  font-size: 2vw;
  text-align: center;
  margin: 5% 3%;
}

.pop-up-message__close{
  position: relative;
  left: 80%;
  width: 6%;
  transition: .5s;
}

.pop-up-message__close:hover{
  opacity: .4;
}
/*============== ポップアップ表示アニメーション ==============*/

.open{
  animation-name: displayMessage;
  animation-duration: .5s;
  animation-fill-mode: forwards;
  transition-timing-function : ease-out;
}

@keyframes displayMessage {
  0% {
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

.close{
  animation-name: closeMessage;
  animation-duration: .5s;
  animation-fill-mode: forwards;
  transition-timing-function : ease-out;
}

@keyframes closeMessage {
  0% {
    visibility: visible;
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}


.quote-image{
	background-color:azure;
	position: relative;
}

.quote-image img{
	width: 100%;
	height: 250px;
	object-fit: cover;
	opacity: 0.2;
}

.quote-image h1{
	width: 200px; /*縮小時の文字崩れ対策*/
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	font-size: 50px;
}

/*進行状況*/

.mobile-image{
	display: none;
}

.quote-stage{
	display: flex;
	justify-content: center;	
}

.quote-stage__list{
	width: 200px;
	margin: 30px 5px;
	padding: 30px 1%;
	text-align: center;
	border-radius: 15px;
	background-color: #F2F2F2;
	border: solid 5px #F2F2F2; /*背景と同色の枠を入れてテキストの高さを調整*/
	font-size: 20px;
	font-weight: bold;
}

.quote-stage img{
	height: 150px;
}

.quote-stage__now{
	border: solid 5px red;
	background-color: #F8E0EC;/*他のquote-stage__listのテキスト位置がズレる*/
}

/*入力案内*/
h2{
	font-size: 30px;
	margin: 1px;
}

/*お問い合せ*/
.quote{
	width: 90%;
	margin: 40px auto;
}

.quote-title{
	font-size: 30px;
	line-height: 10px;
	margin-left: 20px;
}

hr{
	border-top: thick solid;
	width: 650px;
}

.quote-detail,
.quote-detail__caution{
	line-height: 20px;
}

.quote-detail__caution{
	
}

.quote-form__title{
	margin: 30px 0 10px ;
	text-align: center;
	
}

/*入力フォーム*/
.icon-size{
	width: 35px;
	vertical-align: bottom;
}

::placeholder{
	color: #D8D8D8;
}

.quote-form{
	border: solid 3px;
	margin: 20px auto;
	font-size: 18px;
}

.quote-form__row{
	border: solid 1px;
}

.quote-form__head{
	text-align: left;
	padding: 20px 10px;
	width: 200px;
	border: solid 1px;
	background-color: floralwhite;
}

.quote-form__data{
	width: 500px;
	vertical-align: middle;
	padding-left: 10px;
}

.quote-form__default{
	width: 300px;
	height: 30px;
	font-size: 18px;
}

.quote-form__postal-code-p{
	width: 40px;
	height: 30px;
	font-size: 18px;
}

.quote-form__postal-code-m{
	width: 50px;
	height: 30px;
	font-size: 18px;
}

.quote-form__address{
	width: 420px;
	height: 30px;
	font-size: 18px;
}

.quote-form__way{
	position: relative;
	top: -3px;
}

.quote-form__textarea{
	margin: 10px auto;
	width: 450px;
	height: 150px;
	font-size: 17px;
}

.english-escape{
	word-break: break-all; /*英語の記述は（特にURL）などは折り返さないよう設定されている*/
}

/*ボタン*/

.quote-form__reset{
	width: 650px;
	margin: 10px auto;
	text-align:right;
}

.quote-form__reset input{
	width: 75px;
	padding: 2px;
	font-size: 13px;
	text-decoration: none;
	background-color: #FF0000;
	border-radius: 10px;
	color: white;
	transition: .2s;
}

.quote-form__reset input:hover{
	opacity: 0.4;
	cursor: pointer;
}

.quote-form__submit{
	display: flex;
	justify-content: center;
}

.quote-form__submit input{
	width: 180px;
	padding: 5px;
	font-size: 25px;
	text-decoration: none;
	border: 1px solid #FF0000;
	border-radius: 10px;
	transition: .5s;
}

.quote-form__submit input:hover{
	color: white;
	background-color: #FF0000;
	cursor: pointer;
}

@media(max-width: 847px){
	
	.font-potition{
		position: relative;
		top: 10px;
	}
	
	.quote-stage img{
		margin-top: 10px;
	}
	
	.quote-stage__list{
		width: 130px;
	}
}

@media(max-width: 768px){
	
	.quote-stage{
		width: 90%;
		margin: auto;
	}
	
	hr{
		width: 90%;
	}
	
	.quote-form,
	.quote-form__default,
	.quote-form__postal-code,
	.quote-form__address,
	.quote-form__textarea
	{
		font-size: 15px;
	}
	
	.quote-form__textarea,
	.quote-form__address
	{
		width: 90%;
	}
	
	.quote-form__reset{
		width: 90%
	}

}

@media(max-width: 585px){
	
	.quote-stage__list{
		font-size: 15px;
	}
	
	.quote-stage img{
		margin-top: 5px;
	}
}

@media(max-width: 414px){
	
	.header-estimate{
		display: none;
	}
	
	.quote-image img{
		height: 200px;
	}
	
	.quote-image h1{
		font-size: 35px;
		width: 140px;
	}
	
/*進行状況*/
	
	.quote-stage{
		padding: 20px 10px 30px;
	}
	
	.pc-image{
		display: none;
	}
	
	.mobile-image{
		display: block;
		margin: auto;
	}
	
	.quote-stage img{
		height: 35px;
	}
	
	.quote-stage{
		display: block;
		margin-top: 10px;
	}
	
	.quote-stage__list{
		width: 200px;
		padding: 10px 5px;
		margin: 5px auto;
		font-size: 18px;
		border-radius: 30px;
	}
	
	.font-potition{
		top: 0px;
	}
	
/*フォームタイトル*/
	
	.quote{
		margin-top: 40px;
	}
	
	.quote-form{
		margin-bottom: 5px;
	}
	
	.quote-title{
		font-size: 23px;
		text-align: center;
		margin: 0;
	}
	
	hr{
		width: 340px;
		border-top: solid 1px;
		margin: 15px auto;
	}
	
/*フォーム*/
	
	.quote-form__title{
		font-size: 25px;
		margin-bottom: 0;
	}
	
	.icon-size{
		width: 25px;
	}
	
	.quote-form{
		font-size: 14px;
		margin-top: 10px;
	}
	
	.quote-form__head{
		width: 70px;
		padding: 15px 10px;
		line-height: 18px;
	}
	
	.quote-form__data{
		width: 230px;
		
	}
	
	.quote-form__default,
	.quote-form__address{
		width: 200px;
		height: 25px;
	}
	
	.quote-form__textarea{
		width: 200px;
		height: 180px;
	}
	
	.quote-form__reset{
		margin-bottom: 30px;
	}
	
	.quote-form__reset input{
		font-size: 12px;
	}
	
	.quote-form__submit input{
		width: 160px;
		padding: 3px 0;
		font-size: 20px;
		font-weight: 500;
		border-radius: 5px;
	}
}


