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;
  }
}

/*===================================*/

.contact-image{
  background-color:azure;
  position: relative;
}

.contact-image img{
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0.2;
}

.contact-image h1{
  width: 300px; /*縮小時の文字崩れ対策*/
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 50px;
}

/*進行状況*/

.mobile-image{
  display: none;
}

.contact-stage{
  display: flex;
  justify-content: center;	
}

.contact-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;
}

.contact-stage img{
  height: 150px;
}

.contact-stage__now{
  border: solid 5px red;
  background-color: #F8E0EC;/*他のcontact-stage__listのテキスト位置がズレる*/
}

/*入力案内*/
h2{
  font-size: 30px;
  margin: 1px;
}

/*お問い合せ*/
.contact{
  width: 90%;
  margin: 40px auto;
}

.contact-title{
  font-size: 30px;
  line-height: 10px;
  margin-left: 20px;
}

hr{
  border-top: thick solid;
  width: 650px;
}

.contact-form__title{
  margin: 30px 0 10px ;
  text-align: center;

}

/*入力フォーム*/
.icon-size{
  width: 35px;
  vertical-align: bottom;
}

::placeholder{
  color: #D8D8D8;
}

.contact-form{
  border: solid 3px;
  margin: 20px auto;
  font-size: 18px;
}

.contact-form__row{
  border: solid 1px;
}

.contact-form__head{
  text-align: left;
  padding: 20px 10px;
  width: 200px;
  border: solid 1px;
  background-color: floralwhite;
}

.contact-form__data{
  width: 500px;
  vertical-align: middle;
  padding-left: 10px;
}

.contact-form__default{
  width: 300px;
  height: 30px;
  font-size: 18px;
}

.contact-form__way{
  position: relative;
  top: -3px;
}

.contact-form__textarea{
  margin: 10px auto;
  width: 450px;
  height: 150px;
  font-size: 17px;
}

.english-escape{
  word-break: break-all; /*英語の記述は（特にURL）などは折り返さないよう設定されている*/
}

/*ボタン*/

.contact-form__reset{
  width: 650px;
  margin: 10px auto;
  text-align:right;
}

.contact-form__reset input{
  width: 75px;
  padding: 2px;
  font-size: 13px;
  text-decoration: none;
  background-color: #FF0000;
  border-radius: 10px;
  color: white;
  transition: .2s;
}

.contact-form__reset input:hover{
  opacity: 0.4;
  cursor: pointer;
}

.contact-form__submit{
  display: flex;
  justify-content: center;
}

.contact-form__submit input{
  width: 180px;
  padding: 5px;
  font-size: 25px;
  text-decoration: none;
  border: 1px solid #FF0000;
  border-radius: 10px;
  transition: .5s;
}

.contact-form__submit input:hover{
  color: white;
  background-color: #FF0000;
  cursor: pointer;
}

@media(max-width: 847px){

  .font-potition{
    position: relative;
    top: 10px;
  }

  .contact-stage img{
    margin-top: 10px;
  }

  .contact-stage__list{
    width: 130px;
  }
}

@media(max-width: 768px){

  .contact-stage{
    width: 90%;
    margin: auto;
  }

  hr{
    width: 90%;
  }

  .contact-form,
  .contact-form__default,
  .contact-form__postal-code,
  .contact-form__address,
  .contact-form__textarea
  {
    font-size: 2.5vw;
  }

  .contact-form__textarea,
  .contact-form__address
  {
    width: 90%;
  }

  .contact-form__reset{
    width: 90%
  }

}

@media(max-width: 585px){

  .contact-stage__list{
    font-size: 15px;
  }

  .contact-stage img{
    margin-top: 5px;
  }
  
  .contact-form__default{
    width: 80%;
  }
}

@media(max-width: 414px){

  .header-estimate{
    display: none;
  }

  .contact-image img{
    height: 200px;
  }

  .contact-image h1{
    font-size: 35px;
    width: 210px;
  }

  /*進行状況*/

  .contact-stage{
    padding: 20px 10px 30px;
  }

  .pc-image{
    display: none;
  }

  .mobile-image{
    display: block;
    margin: auto;
  }

  .contact-stage img{
    height: 35px;
  }

  .contact-stage{
    display: block;
    margin-top: 10px;
  }

  .contact-stage__list{
    width: 200px;
    padding: 10px 5px;
    margin: 5px auto;
    font-size: 18px;
    border-radius: 30px;
  }

  .font-potition{
    top: 0px;
  }

  /*フォームタイトル*/

  .contact{
    margin-top: 40px;
  }

  .contact-form{
    margin-bottom: 5px;
  }

  .contact-title{
    font-size: 25px;
    text-align: center;
    margin: 0;
  }

  hr{
    border-top: solid 1px;
    margin: 15px auto;
  }

  /*フォーム*/

  .contact-form__title{
    font-size: 25px;
    margin-bottom: 0;
  }

  .icon-size{
    width: 25px;
  }

  .contact-form{
    margin-top: 10px;
  }

  .contact-form__head{
    width: 70px;
    padding: 15px 10px;
    line-height: 18px;
  }

  .contact-form__data{
    width: 230px;

  }

  .contact-form__default,
  .contact-form__address{
    height: 25px;
  }

  .contact-form__textarea{
    width: 90%;
    height: 180px;
  }

  .contact-form__reset{
    margin-bottom: 30px;
  }

  .contact-form__reset input{
    font-size: 12px;
  }

  .contact-form__submit input{
    width: 160px;
    padding: 3px 0;
    font-size: 20px;
    font-weight: 500;
    border-radius: 5px;
  }
}


