/* Tailwind では補えない最小スタイル */

/* iOS Safari: input/select/textarea が 16px 未満だとフォーカス時に auto-zoom が発動する */
input, textarea, select {
  font-size: 16px;
}

/* spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e7e5e4;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* loading overlay */
.loading {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 249, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1001;
  background: #1a1a1a;
  color: #fafaf9;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
}
.toast.error { background: #b91c1c; }

.hidden { display: none !important; }

/* tap highlight 無効化（iPad で押し心地を整える） */
button, a, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* セーフエリア対応（iPad 横向きで切れないように） */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
