*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body{
  font-size: 1rem;
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, " MSPゴシック", sans-serif;
}
.wrapper{
 max-width: 800px;
  margin: 0 auto;
}

.header-img img{
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.contact-lead-wrapper{
  font-size: 1rem;
  margin: 0 auto;
  text-align: center;
margin: 100px 0;
}

.contact-heading{
  font-size: 1.9rem;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    margin-bottom: 3rem;
}
.contact-tel-wrapper{
  justify-content: center;
  align-items: center;
  display: flex;
  margin: 0 auto;
  width: 36.5rem;
  border: 9px solid#86c5f3;
  height: 11rem;
}
.contact-tel-svg{
  width: 5.5rem;
  margin-right: 1.25rem;
  }
 .contact-tel-number{
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
 }
 .contact-tel-number span{
  font-size: 2rem;
 }

.contact-tel-time{
  margin-top: 0.95rem;
  font-size: 1rem;
line-height: 1;
}




.contact-mail{
  margin-top: 100px;
}

.contact-mail-label{
  width: 35%;
  position: relative;
  display: flex;
  align-items: center;
}
.contact-mail-label::after{
  position: absolute;
  content: "必須";
  line-height: 1.2;
  left: 170px;
  background-color: #ff6f65;
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: lighter;
  padding: 3px 5px;

}
.contact-mail-form-content{
  margin-top: 50px;
  display: flex;
align-items: start;
  position: relative;
}

.contact-mail-form-content label{
  align-items: center;
  display: flex;
  font-size: 1rem;
}


.contact-mail-form-content-radio {
  display: flex;
  align-items: start;
}
.contact-mail-form-content-radio p{
font-size: 1rem;
}


.contact-mail-form-inquiry{
  display: flex;
}
.contact-mail-form-inquiry label{
  font-size: 1rem;
}
input[type="radio"]{
  margin-right: 5px;
}

.contact-mail-form-content label::after{
  content: "必須";
  line-height: 1.2;
  position: absolute;
  left: 170px;
  background-color: #ff6f65;
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: lighter;
  padding: 3px 5px;
}
.contact-mail-form-content label:not(.contact-mail-label)::after {
  content: none;
}
input[type="text"],[type="email"],[type="tel"]{
  height: 2.5rem;
  width: 65%;
  border: 1px solid #777777;
  border-radius: 4px;
margin-left: auto;
padding-left: 10px;
}

textarea{
  padding: 4px 0;
  height: 10rem;
  width: 65%;
  border: 1px solid #777777;
  border-radius: 4px;
margin-left: auto;
padding-left: 10px;
}
textarea:focus{
  border: 1px solid #86c5f3;
  outline: 0;
}

input[type="text"]:focus,input[type="email"]:focus,input[type="tel"]:focus {
  border: 1px solid #86c5f3;
  outline: 0;
}


.contact-mail-form-privacy{
  border: 1px solid #777777;
  border-radius: 4px;
  padding: 30px;
  margin-top: 100px;
}
.contact-mail-form-privacy dl:first-child{
  margin-bottom: 60px;
}
.contact-mail-form-privacy dl dt{
  font-size: 1rem;
  font-weight: bold;
  padding-bottom: 10px;
}

.contact-mail-form-checkbox{
  text-align: center;
  margin: 30px 0 60px 0 ;
  font-size: 1rem;
}
.contact-mail-form-button{
  margin-bottom: 100px;
}
.contact-mail-form-button button{
  display: block;
  width: 250px;
  height: 50px;
  margin: auto;
  background:#86c5f3;
  border: none;
  border-radius: 2px;
  color: #fff;
  font-size: 1rem;
  line-height: 50px;
  text-align: center;
  transition: all ;
}
.contact-mail-form-button button:hover{
  background: #6ca4e8;
  color: #fff;
}

@media screen and (max-width: 349px){
  .wrapper {
    max-width: 100%;
    padding: 0 16px;
    }
    .header-img img {
    height: 220px;
    width: 100%;
    }
    .contact-lead-wrapper {
      margin: 48px auto;
      text-align: center;
      display: block;
      }
      .contact-lead{
        text-align: center;
        font-size: 0.83rem;
      }

      .contact-lead span{
        display: inline-block; 
      }
    .contact-heading {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    }

    .contact-tel-wrapper {
    width: 100%;
    border-width: 6px;
    height: 8rem;
    }
    .contact-tel-svg {
      display: none;
    }
    .contact-tel-number {
    font-size: 1.6rem;
    white-space: nowrap; 
    display: inline-block; 
    }
.contact-tel-number a{
  color: #0080db;
}
    .contact-tel-number span {
    font-size: 1.2rem;
    }
    .contact-tel-time {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    }
    .contact-mail-label {
    width: 100%;
    margin-bottom: 8px;
    }
  
    .contact-mail-form-content {
    flex-direction: column;
    }
    .contact-mail-form-content label {
    margin-bottom: 4px;
    }
    .contact-mail-form-content-radio{
        
      flex-wrap: wrap;
    }
    .contact-mail-form-inquiry-box{
      flex-wrap: wrap;
      width: 100%;
    }
    input[type="text"],
    [type="email"],
    [type="tel"],
    textarea {
    width: 100%;
    margin-left: 0;
    }
    .contact-mail-form-privacy {
    padding: 16px;
    margin-top: 48px;
    }
    .contact-mail-form-privacy dl {
    margin-bottom: 32px;
    }
    .contact-mail-form-privacy dl dt {
    font-size: 1rem;
    padding-bottom: 4px;
    }
    .contact-mail-form-checkbox {
    margin: 24px 0 32px 0;
    }
    .contact-mail-form-button {
    margin-bottom: 48px;
    }
    .contact-mail-form-button button {
      width: 250px;
      height: 50px;
    font-size: 1rem;
    }
}


  @media screen and (min-width: 350px) and (max-width:767px) {
  /* スマホ用スタイル */
  .wrapper {
  max-width: 100%;
  padding: 0 16px;
  }
  .header-img img {
  height: 240px;
  }
  .contact-lead-wrapper {
  margin: 48px auto;
  text-align: center;
  display: block;
  }

      .contact-lead{
        text-align: center;
        font-size: 0.83rem;
      }

      .contact-lead span{
        display: inline-block; 
      }
  .contact-heading {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  }
  
  .contact-tel-wrapper {
  width: 100%;
  border-width: 6px;
  height: 8rem;
  }
  .contact-tel-svg {
  width: 3.5rem;
  }
  .contact-tel-number {
  font-size: 1.6rem;
  }
.contact-tel-number a{
  color: #0080db;
}
  .contact-tel-number span {
  font-size: 1.2rem;
  }
  .contact-tel-time {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  }
  .contact-mail-label {
  width: 100%;
  margin-bottom: 8px;
  }

  .contact-mail-form-content {
  flex-direction: column;
  }
  .contact-mail-form-content label {
  margin-bottom: 4px;
  }

  .contact-mail-form-content-radio{
      
    flex-wrap: wrap;
  }
  .contact-mail-form-inquiry-box{
    flex-wrap: wrap;
    width: 100%;
  }
  input[type="text"],
  [type="email"],
  [type="tel"],
  textarea {
  width: 100%;
  margin-left: 0;
  }
  .contact-mail-form-privacy {
  padding: 16px;
  margin-top: 48px;
  }
  .contact-mail-form-privacy dl {
  margin-bottom: 32px;
  }
  .contact-mail-form-privacy dl dt {
  font-size: 1rem;
  padding-bottom: 4px;
  }
  .contact-mail-form-checkbox {
  margin: 24px 0 32px 0;
  }
  .contact-mail-form-button {
  margin-bottom: 48px;
  }
  .contact-mail-form-button button {
    width: 250px;
    height: 50px;
  font-size: 1rem;
  }
  }
        @media screen and (min-width: 767px){
          a[href*="tel:"] {
            pointer-events: none;
            cursor: default;
            text-decoration: none;
            color: black;
            }
        }
      


  @media screen and (min-width: 768px) and (max-width: 1023px) {
      /* タブレット用スタイル */
    .wrapper {
      max-width: 90%;
      padding: 0 16px;
    }
    .header-img img {
      height: 300px;
    }
    .contact-heading {
      font-size: 1.8rem;
    }    
    .contact-tel-wrapper {
      width: 70%;
      border-width: 6px;
      height: 8rem;
      }
    .contact-tel-svg {
      margin-right: 8px;
    }
    .contact-tel-number {
      font-size: 2.5rem;
    }
    .contact-tel-time {
      font-size: 1.1rem;
    }

    .contact-mail-label::after {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    input[type="text"],[type="email"],[type="tel"], textarea {
      width: 100%;
      margin-left: 0;
    }
    
    .contact-mail-form-content-radio{
      
      flex-wrap: wrap;
    }
    .contact-mail-form-inquiry-box{
      flex-wrap: wrap;
      width: 100%;
    }
    .contact-mail-form-content {
      flex-wrap: wrap;
    }
    .contact-mail-form-content label {
      width: 100%;
      margin-bottom: 4px;
    }
    .contact-mail-form-privacy {
      margin-top: 50px;
    }
    .contact-mail-form-button button {
      width: 250px;
      height: 50px;
    font-size: 1rem;
    }
  }