/*
SMP EmbeddedForm Default CSS
*/
.setEntryBase {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.smp_form {
  /* // SMP EmbeddedForm Default CSS
  // シャノンフォームにデフォルトで設定されていたcss、適宜書き換えて良いと思う。 */
}

  .smpForm {
    position: relative;
    margin-left: auto;
    margin-right: auto;

    &:has(.ss_complete_message) {
      height: 100% !important;
    }
  }
  .ss_contents input[type='number']::-webkit-outer-spin-button,
  .ss_contents input[type='number']::-webkit-inner-spin-button,
  .ss_contents input[type='date']::-webkit-outer-spin-button,
  .ss_contents input[type='date']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  .ss_contents {
    width: 100%;
    display: flex;
    flex-direction: column;

    &:has(.ss_enquete_form) {
      .ss_enquete_form {
        border-bottom: unset;
      }
    }

    &:not(:has(.ss_enquete_form)) {
      .ss_visitor_form {
        border-bottom: unset;
      }
    }
  }
  .ss_visitor_form , .ss_enquete_form {
    border-bottom: 1px dotted #e2e2e2;
  }
  .ss_privacy_field {
    background-color: #f9f9f9;
  }
  .ss_privacy_field .ss_grid {
    background-color: #ffffff;
    overflow: auto;
    word-break: break-all;
  }
  .ss_contents fieldset {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dotted #e2e2e2;
    gap: 8px 24px;
    align-items: center;

    &:last-child {
      border-bottom: unset;
    }

    &:has(.ss_warning_label) {
      .ss_form_title ,.ss_enquete_title {
        color: #ca0817;
      }
    }

    @media screen and (max-width: 767px) {
      flex-direction: column;
    }
  }
  .ss_input {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    &:has(input[type=checkbox]) {
      display: block;
    }

    &:has(input[type=radio]) {
      table {
        margin: 0;
        tr {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 16px;
          align-items: start;

          td {
            padding: 0;
            display: inline-flex;
            border: unset;
          }
        }
      }
    }
  }
  .ss_input br {
    display: none;
  }
  .ss_form_title ,.ss_enquete_title {
    width: 100%;
    max-width: 216px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    @media screen and (max-width: 767px) {
      max-width: unset;
    }
  }
  .ss_user_notnull {
    color: red;
    display: none;
  }
  .ss_field + .ss_field,
  .ss_enquete_form fieldset {
    border-top: none;
  }
  .ss_contents input,
  .ss_contents select {
    padding: 10px;
    border: unset;
    background: #f5f5f5;
    color: #222;
    font-size: 1.6rem;
  }
  .ss_contents input,
  .ss_contents select ,.ss_contents textarea {
    padding: 15px 15px 15px 20px;
    max-width: 480px;
    width: 100%;
    height: auto;
    border: 1px solid #e0e2e1;
    border-left: 4px solid #e2e2e2;
    background: #f7f7f5;
    color: #222;
    font-size: 15px;
    border-radius: 0 5px 5px 0;

    @media screen and (max-width: 767px) {
      max-width: unset;
    }
  }
  .ss_contents textarea {
    min-height: 225px;
  }
  .ss_contents input[type=checkbox] {
    width: fit-content;
    min-width: unset;
    margin-right: 8px;
    margin-bottom: 4px;
    display: inline-block;
  }
  .ss_contents input[type=radio] {
    width: fit-content;
    min-width: unset;
    margin-right: 8px;
    margin-bottom: 4px;
    display: inline-block;
  }
  .ss_grid:has(.ss_warning_label) {
    .ss_warning_label {
      display: none;
      position: absolute;
      left: 0;
      top: 4px;
    }

    .ss_error_msg ,.errorMsg {
      width: 100%;
      display: block;
    }

    input, input[type=text], select , textarea {
      background: #f4dee0;
    }

    .ss_upComment,
  .ss_leftComment,
  .ss_rightComment, .ss_bottomComment {
      &:has(.ph) {
        order: -1;
      }
    }
  }
  input[type=checkbox]:focus {
    border-color: unset;
  }
  .ss_required_field .ss_form_title::after ,.ss_required_field .ss_enquete_title::after {
    content: "必須";
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    background: #d53945;
    color: #fff;
    font-size: 0.7em;
    border-radius: 10px;
    word-break: keep-all;
  }
  .ss_required_field  {
    input , select , textarea {
      border-left: 4px solid #ca0817;
    }
  }
  .ss_upComment,
  .ss_leftComment,
  .ss_rightComment, .ss_bottomComment {
    color: #c0c0c0;
    font-size: 14px;

    &:has(.ph) {
      color: #626262;
      font-size: 15px;
    }
  }
  .ss_btnArea {
    width: 100%;
    text-align: center;
    margin: 30px auto 0;
    padding-top: 30px;
    border-top: 4px solid #e2e2e2;
    order: 999;

    &::before {
      content: "※「送信」ボタンをクリックすると、確認画面を通らずにそのまま送信されます。\A入力内容にお間違いがないか、今一度ご確認をお願いいたします。";
      white-space: pre-wrap;
      display: block;
      line-height: 1.5;
      margin-bottom: 24px;

      @media screen and (max-width: 767px) {
        text-align: left;
        white-space: inherit;
      }
    }

    p {
      width: fit-content;
      margin: 0 auto;
      text-align: center;
      position: relative;
      transition: all 0.3s ease-out;

      &::before {
        font-family: 'takaraCP';
        content: "\e902";
        color: #FFF;
        font-size: 0.6em;
        position: absolute;
        top: 50%;
        left: 86px;
        -webkit-transform: translate(0, -50%);
        transform: translate(0, -50%);
      }

      &:hover {
      opacity: .5;
    }
    }
  }
  .ss_btnArea input {
    width: 240px;
    padding: 15px 10px 15px 20px;
    font-size: 1em;
    border: 0;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    background: #68aabc;
    color: #fff;
    border-radius: 0;
    transition: all 0.3s ease-out;
  }
  .ss_warning_label {
    background-color: #fc92a5;
    border-radius: 3px;
    vertical-align: top;
    display: inline-block;
    padding: 2px;
    font-size: 11.844px;
    line-height: 12px;
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    white-space: nowrap;
  }
  .ss_error_msg,
  .errorMsg {
    vertical-align: top;
    font-size: 0.75em;
    color: #ca0817;
    display: flex;
    align-items: flex-start;

    &::before {
      content: "※";
    }
  }
  .ss_complete_message {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  /* 注釈テキスト */
  .form_note_text {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    line-height: 1.5;

    &::before {
      content: "※";
    }
  }

  /* input　横並び */
  #ss_name , #ss_name_ka , #ss_zip {
    .ss_grid {
      position: relative;
    }
    &:not(#ss_zip) {
        @media screen and (max-width: 767px) {
          .ss_grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
          }
        }
      }
    .ss_input {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      align-content: flex-end;
      gap: 4px;
      flex-direction: row;

      input[type=text] {
        flex: 1;
      }
    }
    .ss_leftComment {
      font-size: 15px;
      color: #222;
    }

    .ss_upComment , .ss_rightComment {
      width: 100%;
    }

    .ss_input:last-of-type .ss_rightComment {
      /* visibility: hidden; */
      position: absolute;
      bottom: 0;
      left: 0;

      @media screen and (max-width: 767px) {
        visibility: visible;
      }
    }

    .ss_grid:has(.ss_warning_label) {
      .ss_input {
        .ss_error_msg, .errorMsg {
          margin-bottom: 0;
        }
      }
    }
  }

  #ss_zip {
    .ss_grid {
      display: grid;
      grid-template-columns: repeat(2 , 1fr);
      gap: 32px !important;
      align-items: start;

      .ss_input:first-of-type {
        .ss_rightComment {
          width: fit-content;
          position: absolute;
          color: #222;
          bottom: 16px;
          left: 50%;
          -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
        }
      }
    }
  }

  /* 個人情報の取り扱い */
  [id="ss_VisitorData.attribute1"] {
    .parsonal_info_wrap {
      height: 200px;
      padding: 24px;
      margin-bottom: 13px;
      color: #222;
      border: 1px solid #d9d9d9;
      overflow-y: auto;
      background: #fff;
      h3 {
        margin-bottom: 16px;
        margin-top: 32px;
        font-size: 18px;
        line-height: 2rem;

        &:first-of-type {
          margin-top: 0;
        }
      }
      p {
        margin-bottom: 0;
        font-size: 14px;

        &:has(a) br {
          display: block;
        }
      }
      a {
        color: #008fc0;
      }
      ul {
        margin: 16px 0;

        li {
          padding-left: 16px;
          font-size: 14px;
          margin-bottom: 4px;
          position: relative;
          line-height: 2.125;

          &::before {
            position: absolute;
            inset: 10px auto auto 0;
            display: block;
            width: 8px;
            height: 8px;
            background: #d9d9d9;
            content: "";
          }
        }
      }
      br {
        display: none;
      }
      address {
        margin-top: 32px;
        font-size: 14px;
      }
      address br {
        display: block;
      }
    }
  }

  /* Spinner */
  .ss_submit_loader {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.25);
  }
  .spinner::before {
    content: '';
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100px;
    width: 100px;
    margin-top: -50px;
    margin-left: -50px;
    border-radius: 50%;
    border: 0.5em solid #ffffff;
    border-top-color: rgba(0, 0, 0, 0);
    -webkit-animation: spinner 1s infinite infinite;
    animation: spinner 1s linear infinite;
  }
  @-webkit-keyframes spinner {
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes spinner {
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

  /*
    Responsive CSS
  */
  /* PC */
  @media screen and (min-width: 768px) {
    #ss_name .ss_grid ,  #ss_name_ka .ss_grid ,#ss_zip .ss_grid {
      display: grid;
      grid-template-columns: repeat(2 , 1fr);
      gap: 16px;
      align-items: start;
    }
    .ss_grid {
      width: 100%;
      /* // display: -webkit-box;
      // display: -ms-flexbox;
      // display: flex; */
    }
  }
  /* ipad */
  @media screen and (max-width: 767px) {
    .ss_rightComment {
      display: block;
    }
    .ss_grid {
      width: 100%;
      word-break: break-all;
    }
    .ss_grid input:not([type='checkbox']):not([type='radio']):not([type='date']):not([type='datetime-local']) {
      width: 100%;
    }
  }
  /* Vertical Screen (Smartphone) */
  @media screen and (max-width: 480px) {
    .ss_leftComment {
      display: block;
    }
    .ss_grid input:not([type='checkbox']):not([type='radio']) {
      width: 100%;
    }
  }

  /* 完了画面*/
  .contact_complete {
    font-size: 1.5em;

    @media screen and (max-width: 767px) {
      font-size: 1.2em;
    }
  }

  .contact_attention {
    color: #d53945;
  }

  .contact_attention_parent {
    display: flex;
  }