@charset "UTF-8";
/* ==================================================================
   お問合せフォーム（Contact Form 7）・送信完了ページ・404ページ
   - page-contact.php / page-thanks.php / 404.php が読む
   - common.css は header_head.php が読むのでここでは読まない
   ================================================================== */
/* 背景の飾りの丸はフォームでは出さない */
body:after, body:before {
  display: none;
}

/* -------------------------------------------- */
/* 見出しと導入文 */
/* -------------------------------------------- */
#pagetitle {
  padding: 2em 0 .8em;
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
}

.intro {
  max-width: 640px;
  margin: 0 auto 3em;
  padding: 0 20px;
  line-height: 1.9;
  text-align: center;
}

/* -------------------------------------------- */
/* フォーム */
/* -------------------------------------------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto 7em;
  padding: 0 20px;
  /* 同意のチェック */
  /* 送信ボタン */
  /* 入力エラー */
  /* 送信結果のメッセージ */
}
.contact-form .field {
  margin-bottom: 1.8em;
}
.contact-form .field label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
  letter-spacing: .03em;
}
.contact-form .req, .contact-form .opt {
  display: inline-block;
  margin-left: .7em;
  padding: .1em .5em;
  font-size: .72em;
  font-weight: normal;
  line-height: 1.6;
  vertical-align: .15em;
  border-radius: 2px;
}
.contact-form .req {
  background: #ffc52e;
  color: #333;
}
.contact-form .opt {
  color: #888;
  border: 1px solid #ccc;
}
.contact-form .wpcf7-form-control-wrap {
  display: block;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: .75em .9em;
  font-family: inherit;
  font-size: 16px;
  /* iPhone で入力時に拡大されないよう 16px 未満にしない */
  color: #333;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #d19700;
  outline: 2px solid #ffc52e;
  outline-offset: 0;
}
.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}
.contact-form textarea {
  height: 14em;
  line-height: 1.7;
  resize: vertical;
}
.contact-form .field-accept {
  margin: 2.4em 0 2em;
  text-align: center;
}
.contact-form .field-accept .wpcf7-list-item {
  margin: 0;
}
.contact-form .field-accept label {
  cursor: pointer;
}
.contact-form .field-accept input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  margin: 0 .5em 0 0;
  vertical-align: -.15em;
  accent-color: #d19700;
}
.contact-form .field-accept a {
  text-decoration: underline;
}
.contact-form .submit {
  position: relative;
  text-align: center;
}
.contact-form .submit input[type="submit"] {
  width: 100%;
  max-width: 320px;
  padding: 1em;
  font-family: inherit;
  font-size: 1.05em;
  font-weight: bold;
  letter-spacing: .1em;
  color: #333;
  background: #ffc52e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  -webkit-appearance: none;
}
.contact-form .submit input[type="submit"]:hover {
  opacity: .8;
}
.contact-form .submit input[type="submit"]:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.contact-form .submit .wpcf7-spinner {
  position: absolute;
  top: 50%;
  margin: -12px 0 0 12px;
}
.contact-form .wpcf7-not-valid {
  border-color: #c0392b;
}
.contact-form .wpcf7-not-valid-tip {
  margin-top: .4em;
  font-size: .88em;
  color: #c0392b;
}
.contact-form .wpcf7 form .wpcf7-response-output,
.contact-form .wpcf7-response-output {
  margin: 2em 0 0;
  padding: .9em 1em;
  font-size: .92em;
  line-height: 1.7;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
}
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.spam .wpcf7-response-output {
  color: #c0392b;
  border-color: #c0392b;
}

/* -------------------------------------------- */
/* 送信完了ページ */
/* -------------------------------------------- */
.thanks {
  max-width: 640px;
  margin: 0 auto 7em;
  padding: 0 20px;
  line-height: 1.9;
}
.thanks .lead {
  margin-bottom: 2.2em;
  text-align: center;
}
.thanks .note {
  margin-bottom: 3em;
  padding: 1.3em 1.5em;
  font-size: .92em;
  border-left: 4px solid #ffc52e;
  background: #fafafa;
}
.thanks .note h2 {
  margin-bottom: .4em;
  font-size: 1em;
  font-weight: bold;
}
.thanks .note a {
  text-decoration: underline;
}
.thanks .back {
  text-align: center;
}
.thanks .back a {
  display: inline-block;
  padding: .9em 3em;
  font-weight: bold;
  color: #333;
  background: #ffc52e;
  border-radius: 4px;
}
.thanks .back a:hover {
  opacity: .8;
}

/* ==================================================================
   スマホ（767px 以下）
   ================================================================== */
@media screen and (max-width: 767px) {
  #pagetitle {
    /* スマホはヘッダーが固定（高さ 60px）なので、その分下げる */
    padding: calc(60px + 1em) 0 0.6em;
    font-size: 1.5em;
  }

  .intro {
    margin-bottom: 2.4em;
    font-size: .92em;
    text-align: left;
  }

  .contact-form {
    margin-bottom: 5em;
  }
  .contact-form .field {
    margin-bottom: 1.5em;
  }
  .contact-form .field-accept {
    text-align: left;
  }

  .thanks {
    margin-bottom: 5em;
  }
  .thanks .lead {
    text-align: left;
  }
}
