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

  .c-selector {
    position: relative;
    width: 400px;
    margin-top: 4px;
    &::after {
      position: absolute;
      content: '';
      pointer-events: none;
      z-index: 1;
      width: 8px;
      height: 8px;
      top: 50%;
      right: 16px;
      transform: translateY(-50%) rotate(45deg);
      border: unset;
      border-bottom: 2px solid var(--color-icon-normal);
      border-right: 2px solid var(--color-icon-normal);
    }
    select {
      position: relative;
      width: 100%;
      height: 40px;
      cursor: pointer;
      padding: 8px 16px;
      appearance: none;
      font-weight: 600;
      &:invalid {
        color: var(--color-icon-normal);
      }
    }
    &.c-selector--error {
      select {
        background-color: var(--color-emergency-bg);
        border-color: var(--color-emergency);
      }
    }
  }
  .c-selector-label-wrap {
    display: flex;
    align-items: flex-end;
  }
  .c-selector-required {
    margin-left: 8px;
    font-size: 12px;
    color: var(--color-emergency);
    line-height: 1;
    margin-bottom: 5px;
  }
  .c-selector-label {
  }
  .c-selector-error {
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 0px;
    color: var(--color-emergency);
  }

  .c-selector--outlined {
    select {
      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-selector--underlined {
    select {
      border: none;
      border-bottom: 2px solid var(--line-button_tertiary);
      &:focus-within {
        border-color: var(--color-selected);
        outline: 0px;
      }
    }
  }
}

.dark {
  .c-selector--outlined {
    select {
      border: 1px solid transparent;
      background-color: var(--color-black-search-operation);
      &:hover{
        border: 1px solid var(--checkbox);
      }
    }
  }
  .c-selector--underlined {
    select {
      border-bottom: 2px solid var(--checkbox);
      &:hover{
        background-color: var(--color-bg-selector-operation);
      }
      &:focus{
        background-color: transparent;
      }
    }
  }
  .c-selector{
    &::after{
      border-bottom: 2px solid var(--color-icon-normal-operation);
      border-right: 2px solid var(--color-icon-normal-operation);
    }
  }
}
