@charset "UTF-8";

/* ==========================================================================
   form_hs.css
   ========================================================================== */

/*========================================================================= */
/*構造 */
/*========================================================================== */
/*全体 */
/*---------------------------------------------------------- */

.hs-form {
  margin: 0 auto;
}

/*行 */
/*---------------------------------------------------------- */

.hs-form > fieldset {
  margin: 0;
  padding: 0;
  max-width: 1000px;
}

.hs-form > fieldset .field {
  margin-bottom: 5px;
}

/*========================================================================= */
/*テキスト */
/*========================================================================== */
/*入力見出し */
/*---------------------------------------------------------- */

.hs-form-field > label {
  width: 100%;
  position: relative;
  cursor: default;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 5px;
  padding-top: 8px;
  color: var(--rmeisai-primary);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  @media screen and (max-width: 768px) {
    align-items: baseline;
  }
}

.hs-form-field > label > span {
  font-size: 15px;
  font-weight: bold;
  color: var(--rmeisai-primary);
}

/*青ボックス白抜き文字 */

.hs-form-field .hs-form-required {
  color: white;
  background-color: var(--rmeisai-primary);
  font-size: 73%;
  border-radius: 5px;
  padding: 2px 4px;
  margin: -2px 4px 0 4px;
  @media screen and (max-width: 768px) {
    position: relative;
    top: -2px;
    font-size: 10px;
    width: 32px;
    line-height: 1.4;
    text-align: center;
  }
}

/*errorメッセージ */
/*---------------------------------------------------------- */

.hs-form-field .hs-error-msg {
  font-size: 12px;
  color: #ed6c56;
  padding-left: 0px;
  text-align: left;
}

.hs_error_rollup .hs-main-font-element {
  display: inline-block;
  font-size: 12px;
  border: 1px solid #ed6c56;
  color: #ed6c56;
  padding: 5px 10px;
  cursor: default;
  background-color: white;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 3px;
}

/*legendタグ用 */
/*---------------------------------------------------------- */

.hs-form fieldset legend {
  display: block;
  margin-left: 150px;
  font-size: 19.5px;
  line-height: 1;
  color: var(--black);
}

.hs-form.stacked legend {
  margin-left: 0;
}

.hs-form .hs-field-desc {
  color: #aaa;
  margin: 0px 0px 5px 150px;
  font-size: 10px;
  line-height: 12px;
}

/* 個人情報許可テキスト部分 */
/*---------------------------------------------------------- */

.legal-consent-container .hs-richtext,
.hs-legaltext {
  margin-top: 10px;
  margin-bottom: 3px;
  line-height: 16px;
  font-size: 11px;
  color: var(--black);
  text-align: center;
  text-align: left;
}

/*その他テキスト */
/*---------------------------------------------------------- */

.hs-addtxt, .hs-addtxt-gray {
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 1em;
}

/* ========================================================================= */
/*要素別 */
/*========================================================================== */
/* 要素全体 */
/*---------------------------------------------------------- */

.hs-fieldtype-select .hs-input,
.hs-fieldtype-textarea .hs-input,
.hs-fieldtype-text .hs-input,
.hs-fieldtype-date .hs-input {
  display: inline-block;
  width: 100% !important;
  height: 45px;
  padding: 3px 10px;
  background-color: white;
  font-size: 16px;
  line-height: 18px;
  font-weight: normal;
  color: var(--black);
  border-radius: 3px;
  border: 1px solid #d2d2d2;
  box-sizing: border-box;
}

.hs-input::placeholder {
  color: #b7b6b6;
}

.hs-input:focus {
  border: 2px solid var(--black);
  outline: 0;
}

/*error */
/*---------------------------------------------------------- */

.hs-input.error {
  border-color: #ffdadf;
  -webkit-box-shadow: 0 0 3px rgba(171, 41, 32, 0.25);
  -moz-box-shadow: 0 0 3px rgba(171, 41, 32, 0.25);
  box-shadow: 0 0 3px rgba(171, 41, 32, 0.25);
  background: #fff1f3;
}

/*select */
/*---------------------------------------------------------- */

select.hs-input {
  cursor: pointer;
  &:focus {
    z-index: 3;
    width: 100%;
    border: 1px solid #ffdadf;
    border: 1px solid -webkit-focus-ring-color;
    background: #fff1f3;
    outline-offset: -2px;
  }
}

select.hs-input option {
  cursor: pointer;
  background-color: white;
  font-size: 16px;
}

/*矢印 */

.hs-fieldtype-select {
  position: relative;
  &:after {
    position: absolute;
    display: block;
    content: "";
    width: 6px;
    height: 6px;
    border-top: 1px solid #706d6d;
    border-right: 1px solid #706d6d;
    right: 25px;
    top: 49px;
    transform: rotate(135deg);
  }
}

/* radio・checkbox　共通 */
/*---------------------------------------------------------- */

input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
  position: relative;
  display: block;
  float: left;
  /*IE 専用 */
  @media all and (-ms-high-contrast: none) {
    position: relative;
    top: 3px;
    float: left;
  }
}

.hs-fieldtype-checkbox .input ul li,
.hs-fieldtype-radio .input ul li {
  margin-bottom: 10px;
  margin-right: 10px;
  padding-left: 30px;
  /*IE 専用 */
  @media all and (-ms-high-contrast: none) {
    padding-left: 0;
  }
}

.hs-form-radio label,
.hs-form-checkbox label {
  display: block;
  cursor: pointer;
}

.hs-form-radio label > span,
.hs-form-checkbox label > span {
  font-size: 16px;
  margin-left: -5px;
  /*IE 専用 */
  @media all and (-ms-high-contrast: none) {
    margin-left: 0;
  }
}

/*radio */
/*---------------------------------------------------------- */

.hs-form-radio label input[type="radio"] {
  vertical-align: middle;
  border: none;
  width: auto;
  &:before, &:after {
    content: "";
    display: block;
    position: absolute;
  }
  &:before {
    background-color: #fff;
    border: 1px solid #b7b6b6;
    box-sizing: border-box;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    left: -30px;
    top: 0px;
  }
  &:after {
    background-color: #0075ff;
    border-radius: 50%;
    opacity: 0;
    width: 12px;
    height: 12px;
    left: -26px;
    top: 4px;
  }
  &:focus {
    border: none;
  }
}

.hs-form-radio label input[type="radio"]:checked:before {
  border-color: #0075ff;
}

.hs-form-radio label input[type="radio"]:checked:after {
  opacity: 1;
}

.hs-form-radio label:hover input[type="radio"]:after {
  background-color: #005cc8;
}

/*checkbox */
/*---------------------------------------------------------- */

.hs-form-checkbox label input[type="checkbox"] {
  vertical-align: middle;
  border: none;
  &:before, &:after {
    content: "";
    display: block;
    position: absolute;
    /* position: relative; */
  }
  &:before {
    background-color: #fff;
    border-radius: 0%;
    border: 1px solid #b7b6b6;
    width: 20px;
    height: 20px;
    top: 0px;
    left: -30px;
    border-radius: 3px;
  }
  &:after {
    opacity: 0;
    height: 7px;
    width: 14px;
    top: 5px;
    left: -27px;
    border-bottom: 3px solid white;
    border-left: 3px solid white;
    transform: rotate(-45deg);
  }
  &:focus {
    border: none;
  }
}

.hs-form-checkbox label input[type="checkbox"]:checked:before {
  background-color: #0075ff;
  border-color: #0075ff;
}

.hs-form-checkbox label input[type="checkbox"]:checked:after {
  opacity: 1;
}

.hs-form-checkbox label:hover input[type="checkbox"]:checked:before {
  background-color: #005cc8;
}

/*送信ボタン */
/*---------------------------------------------------------- */

.hs-button {
  outline: 0;
  text-decoration: none;
  position: relative;
  text-align: center;
  display: block;
  padding: 24px 20px 22px;
  border-radius: 4px;
  font-size: 22px;
  background: var(--rmeisai-cta);
  color: #fff;
  margin: 20px auto 0;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 500px;
  font-weight: bold;
  line-height: 1.4;
  border: 3px solid #fff;
  border-radius: 1000px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  @media screen and (max-width: 768px) {
    font-size: 18px;
    padding: 14px 20px;
  }
  &:hover {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    background-color: #fff;
    border: 3px solid var(--rmeisai-cta);
    color: var(--rmeisai-cta);
    transform: scale(1.03);
  }
}
