@charset "UTF-8";

/* ==========================================================================
   object/component/hs-validation.css
   ========================================================================== */

#form03 .hbspt-form .hs_in_house_use li:nth-of-type(2) label {
  position: relative;
  &::before {
    content: "取引先/関連会社等へのご提案の場合、ご提案先の企業名開示にご協力いただきます。";
    position: absolute;
    z-index: 1000;
    top: -47px;
    left: -30px;
    line-height: 40px;
    background-color: var(--rseikyu-accent);
    color: var(--black);
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    padding: 0 15px;
    display: none;
    white-space: nowrap;
    @media screen and (max-width: 576px) {
      top: -64px;
      left: 0;
      line-height: 1.5;
      padding: 12px 15px;
      white-space: normal;
    }
  }
  &::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 30px;
    margin-left: -8px;
    border: 8px solid transparent;
    border-top: 8px solid var(--rseikyu-accent);
    display: none;
  }
}

#form03 .hbspt-form .hs_in_house_use li:nth-of-type(2) label.disp_popup::before, #form03 .hbspt-form .hs_in_house_use li:nth-of-type(2) label.disp_popup::after {
  display: inline-block;
  opacity: 1;
  animation-name: fadeout;
  animation-duration: 6s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

/* hubspot側のinput nameと連動しているので注意 */

.hbspt-form .hs_rsk_company .input,
.hbspt-form .hs_email .input,
.hbspt-form .hs_phone .input {
  position: relative;
}

.hbspt-form .hs_rsk_company .input::before,
.hbspt-form .hs_email .input::before,
.hbspt-form .hs_phone .input::before {
  position: absolute;
  z-index: 1000;
  top: -47px;
  left: 0;
  line-height: 40px;
  background-color: var(--rseikyu-accent);
  color: var(--black);
  font-weight: bold;
  border-radius: 5px;
  font-size: 11px;
  padding: 0 10px;
  display: none;
  white-space: nowrap;
}

.hbspt-form .hs_rsk_company .input::after,
.hbspt-form .hs_email .input::after,
.hbspt-form .hs_phone .input::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 30px;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top: 8px solid var(--rseikyu-accent);
  display: none;
}

.hbspt-form .hs_rsk_company .input.disp_popup::before, .hbspt-form .hs_rsk_company .input.disp_popup::after,
.hbspt-form .hs_email .input.disp_popup::before,
.hbspt-form .hs_email .input.disp_popup::after,
.hbspt-form .hs_phone .input.disp_popup::before,
.hbspt-form .hs_phone .input.disp_popup::after {
  display: inline-block;
  opacity: 1;
  animation-name: fadeout;
  animation-duration: 6s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.hbspt-form {
  .hs_rsk_company .input::before {
    content: "お勤め先の会社名を記入してください";
  }
  .hs_email .input::before {
    content: "お仕事でお使いのメールアドレスを記入してください";
  }
  .hs_phone .input::before {
    content: "日中つながりやすい電話番号を記入してください";
  }
}

@keyframes fadeout {
  75% {
  opacity: 1;
  }
  95% {
  opacity: 0;
  }
  100% {
  opacity: 0;
  display: none;
  }
}
