@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .user_ratio_rank_1 {
    @apply bg-blue-500 text-white;
  }
  .user_ratio_rank_2 {
    @apply bg-blue-300 text-gray-900;
  }
  .user_ratio_rank_3 {
    @apply bg-blue-200 text-gray-900;
  }
  .user_ratio_rank_4 {
    @apply bg-blue-100 text-gray-900;
  }
  .user_ratio_rank_5{
    @apply bg-blue-50 text-gray-900;
  }

  span.required {
    @apply inline-block text-xs border border-red-400 rounded px-2 bg-red-50 text-red-500 mx-2 font-semibold;

    &::before {
      position: relative;
      top: 3px;
      right: 2px;
      content: '*';
      @apply text-sm;
    }
    &::after {
      position: relative;
      content: '必須';
      @apply text-xs;
    }
  }

  .either-required {
    @apply inline-block text-xs border border-red-300 rounded px-2 bg-white text-red-500 mx-2 font-semibold;

    &::before {
      position: relative;
      top: 3px;
      right: 2px;
      content: '*';
      @apply text-sm;
    }
    &::after {
      position: relative;
      content: 'どちらか必須';
      @apply text-xs;
    }
  }

  .ransack {
    &.text {
      @apply border border-gray-300 text-sm focus:outline-none focus:ring-0 focus:border-primary-500 rounded w-full py-2 px-2 bg-white placeholder-gray-300;
    }

    &.submit {
      @apply text-sm bg-primary-500 border border-primary-600 hover:bg-primary-600 rounded px-4 py-2 text-white;
    }
  }
}

@layer base {
  a {
    @apply text-blue-600;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
