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

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
/* 紙吹雪エフェクト用CSS */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f00; /* デフォルト色、JSで上書き */
  border-radius: 50%;
  opacity: 0;
  transform: translateY(0) rotate(0deg);
  pointer-events: none; /* クリックイベントをブロックしない */
  z-index: 9999; /* 最前面に表示 */
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(-50px) rotate(0deg) scale(0.5); /* 開始位置とサイズ */
  }
  20% {
    opacity: 1;
    transform: translateY(0px) rotate(30deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(400px) rotate(720deg) scale(0.2); /* 落下位置と回転、最終的なサイズ */
  }
}

/* モーダル表示中の背景スクロールを禁止 */
body.overflow-hidden {
  overflow: hidden;
}
#confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: visible;
  z-index: 9999;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f43f5e; /* ピンク系 */
  opacity: 0.9;
  will-change: transform, opacity;
  border-radius: 2px;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
/*
 * 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.
 *


 */
