@font-face {
  font-family: 'Rakuten Sans JP';
  src: url('/fonts/rakuten/RakutenSansJP2_W-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rakuten Sans JP';
  src: url('/fonts/rakuten/RakutenSansJP2_W-DemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/*
 * Establish the same cascade layer order Tailwind v4 uses. This guarantees
 * that remote-app Tailwind utilities (which live in `@layer utilities`) win
 * over the resets below on portalled elements (via createPortal).
 */

@layer theme, base, components, utilities;

@layer base {
  :where(:not([data-remote-app] *)) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, filter 0.5s ease;
  }

  *:focus-visible {
    transition: none;
  }

  img {
    transition: filter 0.3s ease;
  }

  body {
    font-family: 'Rakuten Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
      'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
