@charset "utf-8";

#contact .inner {
  max-width: 970px;
}

/* case */
main{
  background: url("../img/mainttl_img.jpg") no-repeat center center;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1920px;
  height: 240px;
  margin: 0 auto;
  text-align: center;
}
main h1{
  color: #FFF;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  position: relative;
  text-shadow: #000 1px 0 10px;
}
main h1:before {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 40px);
  width: 80px;
  height: 3px;
  content: '';
  background: #cf0027;
}
.contact_telarea{
  border: 1px solid #9fa0a0;
  padding: 20px;
  margin: 20px 0 60px;
}
.contact_telarea .note{
  border-top: 1px solid #9fa0a0;
  margin-top: 5px;
  padding-top: 10px;
}
.contact_telarea .telbottom{
  font-size: 22px;
}
.contact_telarea .telbottom strong{
  font-size: 32px;
}
.formhead{
  margin: 20px 0;
}
.formhead p a{
  color: #2885ed;
  text-decoration: underline;
}
.formhead p a:hover{
  text-decoration: none;
}
#contact span.required{
  color: #cf0027;
}
.please_area{
  border: 1px solid #9fa0a0;
  margin: 40px 0 20px;
}
.please_label{
  background: #3e3a39;
  color: #FFF;
  padding: 10px;
  text-align: center;
}
.please_area .please_text{
  padding: 15px;
}
.please_area .please_text p{
  font-size: 16px;
}
.form table{
  margin-top: 80px;
}
.form table th,.form table td{
  border-bottom: 1px solid #D4D4D4;
  padding: 10px;
}
.form table th{
  width: 300px;
  vertical-align: top;
}
.form table th span{
  padding: 3px 6px;
  color: #fafafa;
  font-size: 12px;
  letter-spacing: 1px;
  margin: 0px 0px 0px 10px;
  line-height: 9px;
  border-radius: 3px;
  background: #A2093A;
  vertical-align: 3px;
}
.form table td{
}
.form table td .note{
  font-size:0.8em;
}
.form table td input.ltext{
  width: 90%;  
}
.form table td input.mtext{
  width: 60%;  
}
.form table td textarea{
  width: 90% !important;
  height: 120px !important;
}
.form input,.form textarea{
  padding: 10px;
  border-radius: 2px;
  margin: 0;
  background-color: #fff;
  border: 1px solid #A7A6AA;
}

.sendbtn{
  margin-top: 40px;
  text-align: center;
}
.sendbtn input[type="submit"]{
  background: #2885ed;
  border: none;
  color: #FFF;
  display: inline-flex;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  height: 80px;
  min-width: 370px;
  border-radius: 10px;
}

@media screen and (min-width: 768px){
  .contact_telarea .telbottom a{
    pointer-events: none;
  }
}

@media screen and (max-width: 767px){
  main {
    height: 120px;
  }
  main h1 {
    font-size: 18px;
  }
  main.casedetail_main{
    display: none;
  }
  .contact_telarea{
    padding: 15px;
    margin: 20px 0 40px;
  }
  .contact_telarea .note{
    font-size: 14px;
    margin-top: 10px;
  }
  .contact_telarea .telbottom{
    font-size: 16px;
  }
  .contact_telarea .telbottom strong{
    font-size: 22px;
    display: block;
  }
  .formhead{
    margin: 20px 0;
  }
  .formhead p {
    font-size: 14px;
  }
  .please_area .please_text p {
    font-size: 14px;
  }
  .sendbtn input[type="submit"]{
    width: 80%;
    font-size: 14px;
    height: 50px;
    min-width: 100px;
  }
  
  .form table{
    margin-top: 80px;
    border-left: 1px solid #D4D4D4;
    border-right: 1px solid #D4D4D4;
    border-top: 1px solid #D4D4D4;
  }
  .form table th,.form table td{
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
  }
  .form table th{
    background: #EFEFEF;
  }
  .form table th span{
    padding: 3px 6px;
    color: #fafafa;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0px 0px 0px 10px;
    line-height: 9px;
    border-radius: 3px;
    background: #A2093A;
    vertical-align: 3px;
  }
  .form table td{
    border-bottom: 1px solid #D4D4D4;
  }
  .form table td input.ltext{
    width: 100%;  
  }
  .form table td input.mtext{
    width: 100%;  
  }
  .form table td textarea{
    width: 100% !important;
    height: 120px !important;
  }
}

/* モーダルを開くボタン */
.modal-open{
}

/* モーダルと背景の指定 */
.modal{
  position: fixed;
  top: 160px;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}

/* モーダルの擬似要素の指定 */
.modal:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  margin-left: -0.2em;
}

/* クラスが追加された時の指定 */
.modal.is-active{
  opacity: 1;
  visibility: visible;
}

/* モーダル内側の指定 */
.modal-container{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 800px;
  width: 90%;
  font-size: 16px;
}

/* モーダルを閉じるボタンの指定 */
.modal-close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

/* モーダルのコンテンツ部分の指定 */
.modal-content{
  background: #fff;
  text-align: left;
  line-height: 1.8;
  padding: 20px;
}

/* モーダルのコンテンツ部分のテキストの指定 */
.modal-content p{
  margin: 1em 0;
}

@media screen and (max-width: 767px){
  .modal{
    top:40px;
  }
  .modal-container{
    width: 98%;
    font-size: 14px;
  }
}