@charset "UTF-8";
/*
  /rakurakucloud/mailmarketing/asset/css/object/module/m-form-step.css
  フォーム用CSS
*/
/* =================================================
 * reset
 * ================================================*/

:root {
  /* HubSpot Define custom styling for embedded forms using CSS */
  /* Global（システム設定されている設定値） Variables */
  --hsf-global__font-family:
      /* すべての要素のフォントファミリーを設定 */ "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, Meiryo, YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, sans-serif;
  --hsf-global__font-size:
      /* すべての要素のフォントサイズを設定 */ 16px;
  --hsf-global__color:
      /* すべての要素のデフォルトのテキスト色を設定 */ var(--black);
  --hsf-global-error__color:
      /* エラーの色を設定 */ #d93025;

  /* Row（行） Variables */
  --hsf-row__horizontal-spacing:
      /* 行間の水平間隔を設定 */ 0;
  --hsf-row__vertical-spacing:
      /* 行間の垂直間隔を設定 */ 15px;
  --hsf-module__vertical-spacing:
      /* モジュール間の垂直間隔を設定 */ 15px;

  /* Button（ボタン各種） Variables */
  /*
    --hsf-button__font-family: すべてのボタンのフォントファミリーを設定;
    --hsf-button__font-size: すべてのボタンのフォントサイズを設定;
    --hsf-button__color: var(--white) ; すべてのボタンのテキスト色を設定;
    --hsf-button__background-image: すべてのボタンの背景画像を設定 ;
    */
  --hsf-button__background-color:
      /* すべてのボタンの背景色を設定 */ var(--rmailmarketing-dark);
  --hsf-button__border-radius:
      /* すべてのボタンの境界の半径を設定 */ 5px;
  --hsf-button__padding:
      /* すべてのボタンのパディングを設定 */ 20px 0 22px 0;
  --hsf-button__box-shadow:
      /* すべてのボタンのボックスシャドウを設定 */ none;
  --hsf-button__width:
      /* すべてのボタンの幅 */ 187px;
  --hsf-button__height:
      /* すべてのボタンの高さ */ 63px;

  /* Rich Text (リッチテキスト)Variables */
  /*
    --hsf-richtext__font-family: リッチテキスト要素のフォントファミリーを設定 ;
    --hsf-richtext__font-size: リッチテキスト要素のフォントサイズを設定 ;
    --hsf-richtext__color: テキスト要素のテキスト色を設定 ;
    */

  /* Heading（見出し） Variables */
  /*
    --hsf-heading__font-family: フォームの見出しのフォントファミリーを設定 ;
    --hsf-heading__color: フォームの見出しのテキストの色を設定 ;
    --hsf-heading__text-shadow: フォームの見出しのテキストシャドウを設定 ;
    */

  /* Background（背景） Variables */
  /*
    --hsf-background__background-image: フォームの背景画像を設定 ;
    --hsf-background__background-size: 背景サイズを設定 ;
    --hsf-background__background-position: 背景の位置を設定 ;
    --hsf-background__background-repeat: 背景の繰り返し動作を設定 ;
    --hsf-background__border-style: フォームの境界線のスタイルを設定 ;
    --hsf-background__border-color: フォームの境界線の色を設定 ;
    --hsf-background__border-radius: フォームの境界線の半径を設定 ;
    --hsf-background__border-width: フォームの境界線の幅を設定 ;
    */
  --hsf-background__background-color:
      /* フォームの背景色を設定 */ transparent;
  --hsf-background__padding:
      /* フォームのパディングを設定  */ 0 0 20px;

  /* Error Alert（エラーアラート） Variables */
  /*
    --hsf-erroralert__font-family: エラーアラートのフォントファミリーを設定 ;
    --hsf-erroralert__color: エラーアラートのテキストの色を設定 ;
    */
  --hsf-erroralert__font-size:
      /* エラーアラートのフォントサイズを設定 */ 14px;

  /* Info Alert（情報アラート） Variables */
  /* --hsf-infoalert__font-family: 情報アラートのフォントファミリーを設定 ;  */
  --hsf-infoalert__font-size:
      /* 情報アラートのフォントサイズを設定 */ 14px;
  --hsf-infoalert__color:
      /* 情報アラートのテキストの色を設定 */ #d93025;

  /* Field Input（フィールド） Variables */
  /*
    --hsf-field-label__font-family: フィールドラベルのフォントファミリーを設定 ;
    --hsf-field-description__font-family: フィールドの説明のフォントファミリーを設定 ;
    --hsf-field-footer__font-family: フィールドフッターのフォントファミリーを設定;
    --hsf-field-footer__color: フッター文字色;
    --hsf-field-input__font-family: 入力欄フォント;
    --hsf-field-input__color: 入力欄文字色;
    */
  --hsf-field-label__font-size:
      /* フィールドラベルのフォントサイズを設定 */ 16p;
  --hsf-field-label__color:
      /* フィールドラベルのテキスト色を設定 */ var(--black);
  --hsf-field-label-requiredindicator__color:
      /* フィールドラベルの必須インジケータの色を設定 */ var(--white);
  --hsf-field-description__color:
      /* フィールドの説明のテキストの色を設定 */ var(--black);
  --hsf-field-input__background-color:
      /* フィールド入力の背景色を設定 */ var(--white);
  --hsf-field-input__placeholder-color:
      /* フィールド入力のプレースホルダーの色を設定 */ var(--gray-08);
  --hsf-field-input__border-color:
      /* フィールド入力の境界線の色を設定 */ var(--gray-08);
  --hsf-field-input__border-width:
      /* フィールド入力の境界線の幅を設定 */ 1px;
  --hsf-field-input__border-style:
      /* フィールド入力の境界線のスタイルを設定 */ solid;
  --hsf-field-input__border-radius:
      /* フィールド入力の境界半径を設定 */ 10px;
  --hsf-field-input__padding:
      /* フィールド入力のパディングを設定 */ 20px;

  /* Field Textarea（フィールドテキストエリア） Variables */
  /*
    --hsf-field-textarea__font-family: テキストエリアフォント;
    --hsf-field-textarea__color: テキストエリアのテキストの色を設定 ;
    */
  --hsf-field-textarea__background-color:
      /* テキストエリアの背景色を設定 */ var(--white);
  --hsf-field-textarea__placeholder-color:
      /* テキストエリア内のプレースホルダーテキストの色を設定 */ var(--gray-08);
  --hsf-field-textarea__border-color:
      /* テキストエリアの境界線の色を設定 */ var(--gray-08);
  --hsf-field-textarea__border-width:
      /* テキストエリアの境界線の幅を設定 */ 1px;
  --hsf-field-textarea__border-style:
      /* テキストエリアの境界線のスタイルを設定 */ solid;
  --hsf-field-textarea__border-radius:
      /* テキストエリアの境界半径を設定 */ 10px;
  --hsf-field-textarea__padding:
      /* テキストエリアのパディングを設定 */ 20px;

  /* Field Checkbox（フィールドチェックボックス） Variables */
  --hsf-field-checkbox__padding:
      /* フォームのチェックボックス内のパディングを設定 */ ;
  --hsf-field-checkbox__background-color:
      /* チェックボックスの背景色を設定 */ var(--white);
  --hsf-field-checkbox__color:
      /* チェックボックスのテキストの色を設定 */ var(--rmailmarketing-dark);
  --hsf-field-checkbox__border-color:
      /* チェックボックスの境界線の色を設定 */ var(--rmailmarketing-dark);
  --hsf-field-checkbox__border-width:
      /* チェックボックスの境界線の幅を設定 */ 1px;
  --hsf-field-checkbox__border-style:
      /* チェックボックスの境界線の幅を設定 */ solid;
}

.hs-form-html {
  margin: 30px 0 0;
  /* 入力項目のラベル周りと必須マーク書き換えの設定 */
  .hsfc-FieldLabel {
    position: relative;
    font-weight: bold;
  }

  .hsfc-FieldLabel > span:nth-child(1) {
    display: flex;

    span.hsfc-FieldLabel__RequiredIndicator {
      background-color: var(--rmailmarketing-dark);
      border-radius: 5px;
      background-size: 100%;
      padding: 5px 8px 6px;
      line-height: 1;
      width: 40px;
      height: 23px;
      white-space: nowrap;
      font-size: 0;
      text-align: center;
      display: block;
      order: 1;
      margin-right: 5px;
    }

    span.hsfc-FieldLabel__RequiredIndicator::after {
      content: "必須";
      display: inline;
      font-size: 12px;
      text-align: center;
      color: var(--white);
    }

    span:not(.hsfc-FieldLabel__RequiredIndicator) {
      order: 2;
      margin-top: 2px;
    }
  }

  /* エラーテキストの装飾設定 */
  .hsfc-ErrorAlert {
    position: relative;
  }

  .hsfc-ErrorAlert::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url(/rakurakucloud/mailmarketing/asset/image/common/icon/icon-error.svg);
    background-size: cover;
    background-repeat: no-repeat;
    vertical-align: bottom;
    margin-right: 5px;
  }

  /* 個人情報の文言 */
  .hsfc-RichText {
    font-size: 13px;
    line-height: 1.2;
  }

  /* input要素の状態変化による装飾設定 */
  input:focus {
    border-color: var(--rmailmarketing-dark) !important;
  }
  input:-internal-autofill-selected {
    background-color: var(--white) 5e6;
  }
  input[aria-required="true"][aria-invalid="true"] {
    border-style: solid !important;
    border-color: #d93025 !important;
  }

  input[aria-required="true"][aria-invalid="false"].hsfc-TextInput.valid-input {
    position: relative !important;
  }

  input[aria-required="true"][aria-invalid="false"].hsfc-TextInput.valid-input::before {
    content: "";
    position: absolute;
    top: 19px;
    right: 20px;
    width: 25px;
    height: 25px;
    background: #00cc44;
    border-radius: 50%;
    z-index: 999;
    display: block;
  }

  input[aria-required="true"][aria-invalid="false"].hsfc-TextInput.valid-input::after {
    content: "";
    position: absolute;
    top: 25px;
    right: 27px;
    width: 9px;
    height: 7px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
    z-index: 999;
    display: block;
  }

  /* セレクトボタン要素周りの設定 */
  [data-hsfc-id="Renderer"] .hsfc-DropdownInput__Caret > span {
    content: "";
    display: inline-block;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 10px;
    height: 10px;
    z-index: 0;
    border-top: none;
    border-left: 2px solid var(--rmailmarketing-dark);
    border-right: none;
    border-bottom: 2px solid var(--rmailmarketing-dark);
    transform: rotate(-45deg);
  }

  /* 各ボタン要素周りの設定 */
  .hsfc-NavigationRow__Buttons {
    gap: 10px;
  }

  button {
    height: 63px;
    box-sizing: border-box !important;
    position: relative;
    transform: translateY(0) !important;
    border: 1px solid var(--rmailmarketing-dark) !important;
  }

  button[type="submit"] {
    width: 260px !important;
    background: var(--rmailmarketing-cta);
    border: 1px solid var(--rmailmarketing-cta) !important;
  }

  button.hsfc-Button.button-item--next {
    text-indent: -35px;
  }

  button[type="submit"]::after,
  button.hsfc-Button.button-item--next::before {
    position: absolute;
    top: 50%;
    right: 20px;
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: none;
    border-top: solid 2px var(--white);
    border-right: solid 2px var(--white);
    transform: translateY(-50%) translateX(0) rotate(45deg);
    transition: transform 0.3s;
  }

  button.hsfc-Button.button-item--previous {
    background-color: var(--white);
    color: var(--black) !important;
    border: 1px solid var(--gray-08) !important;
    width: 127px;
    padding: 20px 0 22px 20px;
  }

  button.hsfc-Button.button-item--previous::before {
    position: absolute;
    top: 50%;
    left: 20px;
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: none;
    border-top: solid 2px var(--gray-08);
    border-left: solid 2px var(--gray-08);
    transform: translateY(-50%) translateX(0) rotate(-45deg);
    transition: transform 0.3s;
  }

  @media (hover: hover) {
    button[type="submit"]:hover {
      background: var(--white) !important;
      color: var(--rmailmarketing-cta) !important;
      border: 1px solid var(--rmailmarketing-cta) !important;
      cursor: pointer;
      &::after {
        border-top: 2px solid var(--rmailmarketing-cta);
        border-right: 2px solid var(--rmailmarketing-cta);
      }
    }

    button.hsfc-Button.button-item--next:hover {
      background: var(--white) !important;
      color: var(--rmailmarketing-dark) !important;
      border: 1px solid var(--rmailmarketing-dark) !important;
      cursor: pointer;
    }

    button.hsfc-Button.button-item--next:hover::before {
      transform: translateY(-50%) translateX(5px) rotate(45deg);
      border-top: solid 2px var(--rmailmarketing-dark);
      border-right: solid 2px var(--rmailmarketing-dark);
    }
    button.hsfc-Button.button-item--previous:hover {
      background-color: var(--white);
    }
    button.hsfc-Button.button-item--previous:hover::before {
      transform: translateY(-50%) translateX(-5px) rotate(-45deg);
      border-top: solid 2px var(--gray-08);
      border-left: solid 2px var(--gray-08);
    }
  }

  /* チェックノックス要素周りの設定 */
  .hsfc-CheckboxInput {
    width: 20px;
    height: 20px;
  }
  @media screen and (max-width: 430px) {
    button[type="submit"] {
      padding: 0 30px 0 10px;
      line-height: 1.2;
      width: 100% !important;
    }
    button[type="submit"]:hover {
      width: 100% !important;
    }

    .hsfc-NavigationRow__Buttons {
      flex-direction: initial !important;
    }

    .hsfc-TextareaInput {
      padding: 10px;
      line-height: 1.2;
      min-height: 6em;
    }
  }
}
