/* 必須マーク */
.required-mark {
  color: red;
  font-size: 10px;
  margin-left: 6px;
  font-weight: normal;
}

/* 全体の左右に余白 */
.page-template-page-contact .container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 0 !important;
  position: relative;
  overflow: visible;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 全体の背景色 */
body.page-template-page-contact {
  background-color: #ffffff;
}

.page-template-page-contact .contact-foam {
  padding-top: 90px;
}

/* 画面名 */
.page-template-page-contact .contact-foam .block-title {
  position: relative;
  display: inline-block;
  font-size: 36px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 50px;
  color: #000;
  line-height: 1.4;
  padding-left: 0;
  padding-bottom: 18px;
}

/* 標題下面的黃色杠 */
.page-template-page-contact .contact-foam .block-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  background-color: #b08d2f;
  border-radius: 2px;
}

/* 取消之前可能跑到左邊的棒 */
.page-template-page-contact .contact-foam .block-title::before {
  content: none !important;
}

/* ラベル色 */
.wpcf7 label:not(.wpcf7-form-control-wrap) {
  color: #000;
}

/* ==============================
   PC表示（768px以上）
============================== */
@media screen and (min-width: 769px) {

  /* テキスト・メール・電話・プルダウン */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 select {
    width: 480px;
    max-width: 100%;
    padding: 0 12px;
    height: 48px;
    line-height: 48px;
    font-size: 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }

  /* お問い合わせ内容のみ広め */
  .wpcf7 textarea {
    width: 480px;
    max-width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  /* PCのみ縦間隔を少し詰める */
  .wpcf7 p {
    margin-bottom: 24px;
  }
}

/* ==============================
   スマホ表示（768px以下）
============================== */
@media screen and (max-width: 768px) {

  .page-template-page-contact .contact-foam {
    padding-top: 88px;
  }

  /* PC/SP 切り替え */
  .page-template-page-contact .only-pc {
    display: none;
  }

  .page-template-page-contact .only-sp {
    display: block;
  }

  .page-template-page-contact .contact-foam .block-title {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 16px;
    white-space: nowrap;
  }

  .page-template-page-contact .contact-foam .block-title::after {
    width: 44px;
    height: 3px;
  }

  /* SPは元の余白を6の倍数に変更 */
  .wpcf7 p {
    margin-bottom: 48px;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 select {
    width: 100%;
    max-width: 360px;
    height: 48px;
    line-height: 48px;
    padding: 0 12px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .wpcf7 textarea {
    width: 100%;
    max-width: 360px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  .wpcf7 input,
  .wpcf7 select,
  .wpcf7 textarea {
    display: block;
  }
}
