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

  .c-search {
    padding: 8px 40px 8px 16px;
    font-weight: 600;
    width: 100%;
    &::placeholder {
      color: var(--color-placeholder);
    }
    &.c-search--error {
      background-color: var(--color-emergency-bg);
      border-color: var(--color-emergency);
    }
  }
  .c-search-label-wrap {
    display: flex;
    align-items: flex-end;
  }
  .c-search-required {
    margin-left: 8px;
    font-size: 12px;
    color: var(--color-emergency);
    line-height: 1;
    margin-bottom: 5px;
  }
  .c-search-label {
  }
  .c-search-inner {
    position: relative;
    margin-top: 8px;
    width: 400px;
    height: 40px;
  }
  .c-search-button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
  }

  .c-search-error {
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 0px;
    color: var(--color-emergency);
  }

  /* パターン */
  .c-search--outlined {
    border: 1px solid var(--line-button_tertiary);
    border-radius: 4px;
    background-color: var(--color-bg);
  }
  .c-search--underlined {
    border: none;
    border-bottom: 2px solid var(--line-button_tertiary);
    &:focus-within {
      border-color: var(--color-selected);
      outline: 0px;
    }
  }
}

.dark {
  .c-search--outlined {
    border: 1px solid transparent;
  }
}