/* ============================================================
 * utilities.css - 補助クラス
 * ============================================================ */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* Hidden（JS で hidden 属性を操作する際のCSS対応） */
[hidden] {
  display: none !important;
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Colors */
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-font-accent); }
.text-danger { color: var(--color-danger); }

/* Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

/* Font sizes */
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }

/* Font weight */
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }

/* Border radius */
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }

/* Spin animation (loading) */
@keyframes ieppy-spin {
  to { transform: rotate(360deg); }
}

.ieppy-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: ieppy-spin 0.6s linear infinite;
}
