/* =========================================================
   Contact page / Hashimoto Masayuki
   Page slug: contact
   Contact Form 7 markup: .hashimoto-contact-form
   ========================================================= */

/* ---------- page ---------- */
.hm-page-contact,
body.page-contact,
body.page-id-contact {
  background: #f7f7f7;
}

.hm-contact-main {
  background: #f7f7f7;
  color: #0d315d;
}

.hm-contact-shell {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- hero ---------- */
.hm-contact-hero {
  position: relative;
  min-height: 320px;
  background:
    url("../images/contact/contact-hero.png") center / cover no-repeat;
}

.hm-contact-hero__inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 320px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hm-contact-hero__kicker {
  margin: 0 0 12px;
  color: #b79b5b;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hm-contact-hero__title {
  margin: 0;
  color: #062e63;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .06em;
}

.hm-contact-hero__line {
  width: 30px;
  height: 2px;
  margin: 20px 0 20px;
  background: #b79b5b;
}

.hm-contact-hero__lead {
  margin: 0;
  color: #25476f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}

/* ---------- intro ---------- */
.hm-contact-intro {
  padding: 70px 0 56px;
  text-align: center;
}

.hm-contact-intro h2 {
  margin: 0;
  color: #12375f;
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: .06em;
}

.hm-contact-intro p {
  margin: 30px auto 0;
  color: #29496d;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
}

/* ---------- telephone card ---------- */
.hm-contact-phone {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto 38px;
  padding: 31px 38px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 9px;
}

.hm-contact-phone__left,
.hm-contact-phone__right {
  min-height: 84px;
  display: flex;
  align-items: center;
}

.hm-contact-phone__left {
  gap: 22px;
  padding-right: 32px;
  border-right: 1px solid #d9e1eb;
}

.hm-contact-phone__icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f7fa;
  color: #0d3768;
  font-size: 28px;
}

.hm-contact-phone__label {
  margin: 0;
  color: #173a62;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
}

.hm-contact-phone__hours {
  margin: 7px 0 0;
  color: #27496d;
  font-size: 12px;
  font-weight: 600;
}

.hm-contact-phone__right {
  padding-left: 38px;
  display: block;
}

.hm-contact-phone__number {
  margin: 0;
  color: #082f61;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
}

.hm-contact-phone__note {
  margin: 8px 0 0;
  color: #52657a;
  font-size: 12px;
  line-height: 1.7;
}

/* =========================================================
   Contact Form 7
   ========================================================= */
.hashimoto-contact-form {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto 104px;
  padding: 58px 48px 52px;
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 9px;
  color: #15375f;
}

.hashimoto-contact-form .contact-form-body {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hashimoto-contact-form .contact-form-title {
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: center;
}

.hashimoto-contact-form .contact-form-title h2 {
  position: relative;
  margin: 0 0 34px;
  padding-bottom: 16px;
  color: #14375f;
  font-family: "Noto Serif JP", serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .06em;
}

.hashimoto-contact-form .contact-form-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #b79b5b;
  transform: translateX(-50%);
}

.hashimoto-contact-form .cf7-row {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin: 0 0 40px;
}

.hashimoto-contact-form .cf7-row-message {
  align-items: start;
}

.hashimoto-contact-form .cf7-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hashimoto-contact-form .label-text {
  padding-right: 10px;
  color: #0c3568;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.hashimoto-contact-form .badge {
  display: inline-flex;
  min-width: 30px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 1px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
}

.hashimoto-contact-form .badge-required {
  background: #0b315f;
}

.hashimoto-contact-form .badge-optional {
  background: #8d8d8d;
}

.hashimoto-contact-form .cf7-field,
.hashimoto-contact-form .wpcf7-form-control-wrap {
  width: 100%;
  min-width: 0;
}

.hashimoto-contact-form .cf7-input,
.hashimoto-contact-form .cf7-textarea {
  width: 100%;
  margin: 0;
  border: 1px solid #ccd8e6;
  border-radius: 4px;
  background: #fff;
  color: #16395f;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: none;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hashimoto-contact-form .cf7-input {
  height: 46px;
  padding: 0 16px;
}

.hashimoto-contact-form .cf7-textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.hashimoto-contact-form .cf7-input::placeholder,
.hashimoto-contact-form .cf7-textarea::placeholder {
  color: #b3c0ce;
  opacity: 1;
}

.hashimoto-contact-form .cf7-input:focus,
.hashimoto-contact-form .cf7-textarea:focus {
  border-color: #718dac;
  box-shadow: 0 0 0 2px rgba(13, 55, 104, .08);
}

/* radio */
.hashimoto-contact-form .cf7-row-radio {
  align-items: start;
}

.hashimoto-contact-form .cf7-radio-field {
  padding-top: 5px;
}

.hashimoto-contact-form .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.hashimoto-contact-form .wpcf7-list-item {
  margin: 0;
}

.hashimoto-contact-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #17385e;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.5;
}

.hashimoto-contact-form .wpcf7-list-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid #8194aa;
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-content: center;
}

.hashimoto-contact-form .wpcf7-list-item input[type="radio"]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #123d6b;
  transform: scale(0);
  transition: transform .12s ease;
}

.hashimoto-contact-form .wpcf7-list-item input[type="radio"]:checked::before {
  transform: scale(1);
}

/* privacy */
.hashimoto-contact-form .cf7-privacy {
  margin: 17px 0 0 201px;
}

.hashimoto-contact-form .cf7-privacy p {
  margin: 0;
  color: #334e6d;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.hashimoto-contact-form .cf7-privacy a {
  color: #0a3768;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* submit */
.hashimoto-contact-form .cf7-submit-area {
  margin-top: 27px;
  text-align: center;
}

.hashimoto-contact-form .cf7-submit-wrap {
  position: relative;
  display: inline-block;
}

.hashimoto-contact-form .cf7-submit-wrap::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 22px;
  color: #fff;
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.hashimoto-contact-form .cf7-submit {
  width: 220px;
  height: 52px;
  margin: 0;
  padding: 0 50px 0 28px;
  border: 0;
  border-radius: 0;
  background: #082f59;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(8, 47, 89, .12);
  transition: opacity .15s ease;
}

.hashimoto-contact-form .cf7-submit:hover {
  opacity: .9;
}

.hashimoto-contact-form .wpcf7-spinner {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
}

/* CF7 validation / status */
.hashimoto-contact-form .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #b04444;
  font-size: 12px;
}

.hashimoto-contact-form .wpcf7-response-output {
  margin: 26px 0 0 !important;
  padding: 12px 16px !important;
  border-width: 1px !important;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- support CTA used under contact ---------- */
.hm-contact-support-cta {
  padding: 72px 0 76px;
  background: #00203a;
  color: #fff;
  text-align: center;
}

.hm-contact-support-cta__kicker {
  margin: 0 0 10px;
  color: #b79b5b;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
}

.hm-contact-support-cta h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: .08em;
}

.hm-contact-support-cta p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.9;
}

.hm-contact-support-cta__button {
  min-width: 174px;
  min-height: 46px;
  margin-top: 30px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  color: #092f58 !important;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hm-contact-phone {
    grid-template-columns: 1fr;
  }

  .hm-contact-phone__left {
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid #d9e1eb;
  }

  .hm-contact-phone__right {
    padding: 22px 0 0;
  }

  .hashimoto-contact-form .cf7-row {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
  }

  .hashimoto-contact-form .cf7-privacy {
    margin-left: 180px;
  }
}

@media (max-width: 767px) {
  .hm-contact-shell,
  .hm-contact-phone,
  .hashimoto-contact-form {
    width: calc(100% - 40px);
  }

  .hm-contact-hero {
    min-height: 270px;
    background-position: 54% center;
  }

  .hm-contact-hero__inner {
    width: calc(100% - 40px);
    min-height: 270px;
  }

  .hm-contact-hero__title {
    font-size: 32px;
  }

  .hm-contact-intro {
    padding: 52px 0 30px;
  }

  .hm-contact-intro h2 {
    font-size: 24px;
  }

  .hm-contact-intro p {
    margin-top: 22px;
    font-size: 15px;
    text-align: left;
  }

  .hm-contact-phone {
    margin-bottom: 26px;
    padding: 24px 22px;
  }

  .hm-contact-phone__label {
    font-size: 19px;
  }

  .hm-contact-phone__number {
    font-size: 27px;
  }

  .hashimoto-contact-form {
    margin-bottom: 72px;
  }

  .hashimoto-contact-form {
    padding: 32px 20px 34px;
  }

  .hashimoto-contact-form .contact-form-title h2 {
    margin-bottom: 36px;
    font-size: 24px;
  }

  .hashimoto-contact-form .cf7-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .hashimoto-contact-form .cf7-label {
    gap: 8px;
  }

  .hashimoto-contact-form .cf7-radio-field {
    padding-top: 0;
  }

  .hashimoto-contact-form .wpcf7-radio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hashimoto-contact-form .cf7-privacy {
    margin: 22px 0 0;
  }

  .hashimoto-contact-form .cf7-submit {
    width: min(220px, 100%);
  }

  .hm-contact-support-cta {
    padding: 54px 20px 58px;
  }

  .hm-contact-support-cta h2 {
    font-size: 25px;
  }
}
