/* ============================================
 * HubSpot Form Custom CSS - 2 Column Version (HSFC)
 * Based on: ffcom-mktoForm_v2.css
 * Updated for: HubSpot UI Forms Components (hsfc-*)
 * ============================================ */

/* --- Container / Wrapper --- */
.hs-form-html,
.hbspt-form {
  width: 100%;
  background-color: #F6F7F6;
  padding: 2em 1.5em;
  box-sizing: border-box;
}

/* ✅ 背景色抜け対策（developer埋め込み / HSFC） */
.hs-form-html .hsfc-Step,
.hs-form-html .hsfc-Step__Content {
  background-color: #F6F7F6 !important;
}

/* --- Base typography --- */
.hs-form-html,
.hs-form-html * {
  box-sizing: border-box;
}

.hs-form-html {
  font-family: "Clarimo UD PE Regular", "UD Shin Go Regular JIS2004", sans-serif;
}

.hs-form-html p {
  font-size: 16px;
}

/* --- ① Input Field Padding --- */
.hs-form-html .hsfc-TextInput {
  padding: 13px 20px !important;
  border: 1px solid #ADADAD !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  background-color: #fff !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Placeholder (2col: #707070, darker than 1col) */
.hs-form-html input::placeholder,
.hs-form-html textarea::placeholder {
  color: #707070;
}

/* Focus */
.hs-form-html input:focus,
.hs-form-html textarea:focus,
.hs-form-html select:focus {
  border-color: inherit;
  outline: none;
}

/* --- Labels --- */
.hs-form-html label {
  margin: 12px 0 5px 0;
  padding: 0 0 2px;
  font-size: 16px;
  font-weight: normal;
  font-family: "Clarimo UD PE Regular", "UD Shin Go Regular JIS2004", sans-serif;
}

/* --- ④ Required Asterisk --- */
.hs-form-html .hs-form-required {
  margin-left: 0.5em;
  color: #990000;
  font-weight: bold;
}

/* --- Error Messages --- */
.hs-form-html .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hs-form-html .hs-error-msgs li label,
.hs-form-html .hs-error-msgs li span {
  display: block;
  max-width: none;
  padding: 14px 15px;
  background: #3A6F9A;
  border: 0;
  color: #fff;
  font-size: 15px;
  text-shadow: none;
  box-shadow: none;
}

/* --- ③ Textarea Height (5 rows) --- */
.hs-form-html textarea {
  min-height: 7.5em;
  resize: vertical;
}

/* --- ⑤ Submit Button --- */
.hs-form-html .hsfc-Button {
  width: 100% !important;
  padding: 23px 0 !important;
  background: #333333 !important;
  border: 0 !important;
  border-radius: 3px !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 17px !important;
  font-weight: bold !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color 0.4s !important;
}

.hs-form-html .hsfc-Button:hover,
.hs-form-html .hsfc-Button:focus {
  background: #018463 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* --- ⑥ Button Spacing (Marketo元CSS準拠: 4em / 2em) --- */
.hs-form-html .hsfc-NavigationRow__Buttons {
  margin-top: 4em !important;
  margin-bottom: 2em !important;
  padding-top: 0 !important;
}

/* --- Rich Text / HTML --- */
.hs-form-html .hs-richtext,
.hs-form-html .hsfc-RichText {
  width: auto;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.hs-form-html a {
  text-decoration: underline;
}

.hs-form-html a:hover {
  text-decoration: none;
}

/* --- Radio / Checkbox (best-effort) --- */
.hs-form-html .inputs-list li label {
  font-size: 16px;
  margin-top: -3px;
  margin-bottom: 0.8em;
}

/* ============================================
 * ⑦ Responsive Breakpoints
 * ============================================ */

/* --- 949px --- */
@media screen and (max-width: 949px) {
  .hs-form-html,
  .hbspt-form {
    padding: 2em 2em;
  }
}

/* --- 749px --- */
@media screen and (max-width: 749px) {
  .hs-form-html,
  .hbspt-form {
    padding: 2em 1em;
  }

  * {
    -webkit-tap-highlight-color: rgba(185, 210, 231, 0.1);
  }

  .hs-form-html label {
    margin-top: 15px;
    font-size: 13px;
  }

  .hs-form-html .hs-form-required {
    font-size: 10px;
  }

  .hs-form-html .hsfc-Button {
    padding: 22px 0 !important;
    font-size: 15px !important;
  }

  .hs-form-html .hsfc-TextInput {
    padding: 1em !important;
    border: 1px solid #ADADAD !important;
    font-size: 15px !important;
  }

  .hs-form-html textarea {
    height: 5em;
  }
}

/* --- 480px --- */
@media screen and (max-width: 480px) {
  .hs-form-html,
  .hbspt-form {
    padding: 0.1em;
  }

  .hs-form-html .inputs-list li label {
    font-size: 15px;
  }

  .hs-form-html textarea {
    height: 8em;
  }
}