.c-textField-wrap {
  &.c-textField-wrap--disabled {
    opacity: 40%;
    pointer-events: none;
  }

  .c-textField {
    padding: 8px 16px;
    margin-top: 8px;
    width: 400px;
    height: 48px;
    font-weight: 600;
    &::placeholder {
      color: var(--color-placeholder-operation);
    }
    &.c-textField--error {
      background-color: var(--color-emergency-bg);
      border-color: var(--color-emergency);
    }
  }
  .c-textField-label-wrap {
    display: flex;
    align-items: flex-end;
  }
  .c-textField-required {
    margin-left: 8px;
    font-size: 12px;
    color: var(--color-emergency);
    line-height: 1;
    margin-bottom: 5px;
  }
  .c-textField-label {
  }
  .c-textField-error {
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 0px;
    color: var(--color-emergency);
  }

  /* パターン */
  .c-textField--outlined {
    border: 1px solid var(--line-button_tertiary);
    background-color: var(--color-white);
    &:focus{
      border: 1px solid var(--color-selected);
      border-radius: 0;
      outline: none;
      padding: 7px 15px;
    }
  }
  .c-textField--underlined {
    border: none;
    border-bottom: 2px solid var(--line-button_tertiary);
    &:focus-within {
      border-color: var(--color-selected);
      outline: 0px;
    }
    &.c-textField--error{
      background-color: transparent;
    }
  }
}

.dark {
  .c-textField{
    &::placeholder{
      color: var(--color-placeholder-operation);
    }
    &.c-textField--outlined {
      border: 1px solid transparent;
      background-color: var(--color-black-search-operation);
      &:hover{
        border:1px solid var(--checkbox) ;
      }
      &:focus{
        border: 1px solid var(--color-selected);
        border-radius: 0;
        outline: none;
        padding: 7px 15px;
      }
      &.c-textField--error{
        border: 1px solid var(--color-emergency);
        border-radius: 0;
      }
    }
    &.c-textField--underlined {
      border-bottom: 2px solid var(--checkbox);
      &:hover{
        border: none;
        border-bottom: 2px solid var(--checkbox);
        background-color: var(--color-bg-selector-operation);
      }
      &:focus{
        border: none;
        border-bottom: 2px solid var(--color-selected);
      }
      &.c-textField--error{
        border-bottom: 2px solid var(--color-emergency);
        background-color: transparent;
      }
    }
  }
}