/* CSS Document */

/* =========================================================
   Contact Page
   ========================================================= */

.contact-page{
  
  color: #000000;
}

.contact-page__container{
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
}

/* Hero
========================================================= */
.contact-page__hero{
  padding: 80px 0 28px;
  text-align: center;
}

.contact-page__title{
  margin: 0;
  color: #0B72D0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.contact-page__notice{
  margin: 22px 0 0;
  color: #D01C1C;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

/* Content
========================================================= */
.contact-page__content{
  padding: 56px 0 120px;
}

.contact-page__intro{
  width: min(100%, 760px);
  margin: 0 auto 42px;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.red{
color: #D01C1C;
}

.contact-page__intro p{
  margin: 0;
}

.contact-page__form-wrap{
  width: min(100%, 760px);
  margin: 0 auto;
}

/* =========================================================
   Contact Form 7
   ========================================================= */
.wpcf7{
  width: 100%;
}

.wpcf7 form{
  margin: 0;
}

.contact-form{
  width: 100%;
}

.contact-form__row{
  margin-top: 28px;
}

.contact-form__row:first-child{
  margin-top: 0;
}

.contact-form__label{
  display: block;
  margin-bottom: 10px;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.contact-form__required{
  display: inline-block;
  margin-right: 8px;
  color: #D01C1C;
  font-weight: 700;
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="tel"],
.contact-form__field textarea{
  width: 100%;
  appearance: none;
  border: 1px solid #D3D3D3;
  border-radius: 0;
  background: #FFF;
  color: #222;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  box-sizing: border-box;
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="tel"]{
  height: 48px;
  padding: 0 16px;
}

.contact-form__field textarea{
  min-height: 260px;
  padding: 16px;
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus{
  outline: none;
  border-color: #0B72D0;
}

/* 会社名・住所など通常幅 */
.contact-form__field{
  width: 100%;
}

/* 電話番号3分割 */
.contact-form__tel{
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-form__tel-unit{
  flex: 0 0 140px;
}

.contact-form__tel-unit input[type="tel"]{
  width: 100%;
  text-align: center;
}

.contact-form__tel-sep{
  flex: 0 0 auto;
  color: #888;
  font-size: 24px;
  line-height: 1;
}

/* 送信ボタン */
.contact-form__submit{
  margin-top: 52px;
  text-align: center;
}

.contact-form__submit .wpcf7-spinner{
  display: block;
  margin: 14px auto 0;
}

.contact-form__submit input[type="submit"]{
  appearance: none;
  min-width: 360px;
  height: 68px;
  padding: 0 34px;
  border: 1px solid #8F8F8F;
  border-radius: 9999px;
  background: #FFF;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.contact-form__submit input[type="submit"]:hover{
  opacity: .85;
}

.contact-form__submit input[type="submit"]:disabled{
  cursor: not-allowed;
  opacity: .6;
}

/* バリデーション・メッセージ */
.wpcf7-not-valid-tip{
  margin-top: 8px;
  color: #C05A5A;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.wpcf7 form .wpcf7-response-output{
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid #D3D3D3;
  font-size: 14px;
  line-height: 1.7;
}

/* プレースホルダー */
.contact-form ::placeholder{
  color: #B6B6B6;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 800px){
  .contact-page__container{
    width: min(100% - 32px, 1080px);
  }

  .contact-page__hero{
    padding: 40px 0 18px;
  }

  .contact-page__title{
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
  }

  .contact-page__notice{
    margin-top: 18px;
    font-size: 16px;
  }

  .contact-page__content{
    padding: 26px 0 80px;
  }

  .contact-page__intro{
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.9;
  }

  .contact-form__row{
    margin-top: 24px;
  }

  .contact-form__label{
    margin-bottom: 8px;
    font-size: 16px;
  }

  .contact-form__field input[type="text"],
  .contact-form__field input[type="email"],
  .contact-form__field input[type="tel"]{
    height: 52px;
    padding: 0 14px;
    font-size: 16px;
  }

  .contact-form__field textarea{
    min-height: 220px;
    padding: 14px;
    font-size: 16px;
  }

  .contact-form__tel{
    gap: 10px;
  }

  .contact-form__tel-unit{
    flex: 1 1 0;
    min-width: 0;
  }

  .contact-form__tel-sep{
    font-size: 20px;
  }

  .contact-form__submit{
    margin-top: 42px;
  }

  .contact-form__submit input[type="submit"]{
    min-width: 100%;
    height: 64px;
    font-size: 16px;
  }
}
