/*  ------ コンタクトフォーム ------ */

.contact-title {
  font-size: 32px;
  line-height: 44.8px;
  color: #222A42;
  position: relative;
}
@media screen and (max-width: 768px) {
  .contact-title {
    font-size: 24px;
    line-height: 33.6px;
    font-weight: 600;
  }
}
.contact-title:before {
  content: "CONTACT";
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  top: -30px;
  left: 0;
  position: absolute;
  color: #be1e2d;
  font-family: 'Playfair Display', serif;
}
@media screen and (max-width: 768px) {
  .contact-title:before {
    font-size: 16px;
    line-height: 19.8px;
    top: -26px;
    left: 0;
  }
}
.contact-subtitle {
  font-size: 20px;
  line-height: 28px;
  color: #001242;
  margin-left: 28px;
  position: relative;
  display: inline-block;
}
@media screen and (max-width: 768px) {
  .contact-subtitle {
    font-size: 16px;
    line-height: 19.8px;
    margin-left: 20px;
  }
  .contact-subtitle:before {
    width: 8px !important;
    height: 1px;
    top: 50%;
    transform: translateY(-50%);
    left: -14px !important;
    background: #232a40;
  }
}
.contact-subtitle:before {
  position: absolute;
  content: "";
  width: 12px;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
  left: -20px;
  background: #232a40;
}
.contact-description {
  font-size: 16px;
  font-weight: 500;
  color: #222a42;
  line-height: 32px;
  margin-top: 16px;
  opacity: .6;
}
@media screen and (max-width: 768px) {
  .contact-description {
    font-size: 14px;
    line-height: 28px;
    margin-top: 24px;
  }
}
.contact-form {
  width: 100%;
  max-width: 480px;
  margin: 197px auto 96px;
}
@media screen and (max-width: 768px) {
  .contact-form {
    padding: 0 16px;
    margin: 142px auto 48px;
  }
}
.contact-form li {
  margin-top: 48px;
}
.contact-form label {
  margin-bottom: 12px;
}

.contact-form span.not-valid-tip {
    font-size: 80%;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  margin-top: 12px;
  margin-bottom: 8px;
  background-color: #fff;
  color: #222a42;
  width: 100%;
  height: 48px;
  border: 1px solid #222a42;
  font-size: 100%;
  padding: 0.5em;
}

.contact-form textarea  {
  height: 240px;
}
.contact-form input[type="submit"] {
  font-size: 100%;
  padding: 0.2em 0.4em;
  background: #BE1E2D;
  color: #fff;
  cursor: pointer;
  border: none;
  width: 280px;
  height: 48px;
  font-size: 16px;
  border-radius: 0;
  font-weight: normal;
  font-family : 'Yu Mincho', 'Yu Mincho', serif;
}

input::placeholder,
textarea::placeholder {
  font-family : 'Yu Mincho', 'Yu Mincho', serif;
  font-weight: normal;
}
.submit-button {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.submit-text a {
  color: #222A42;
  text-decoration: underline;
}
/* ------ Validation + status output (ported from the Contact Form 7 stylesheet the live site loaded) ------ */
.not-valid-tip {
  color: #dc3232;
  font-size: 1em;
  font-weight: normal;
  display: block;
}
.contact-form .form-response-output {
  margin: 2em .5em 1em;
  padding: .2em 1em;
  border: 2px solid #ffb900;
}
.contact-form .form-response-output[hidden] {
  display: none;
}
.contact-form input[type="submit"]:disabled {
  cursor: not-allowed;
}
/* Honeypot: off-screen for people, still present for bots */
.contact-form .hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------ /contact/thanks/ (added) ------ */
.thanks-calendly {
  margin-top: 48px;
}
.thanks-calendly[hidden] {
  display: none;
}
.thanks-calendly-frame iframe {
  display: block;
  width: 100%;
  min-width: 288px;
  height: 700px;
  margin-top: 24px;
  border: 1px solid #222a42;
  background: #fff;
}
