/* ==========================================================================
   DentalAI Design System v2
   モダン・ミニマル・視認性重視の共通スタイル
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand: Teal */
  --brand-50:  #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;

  /* Neutral (slate系でわずかに寒色に寄せる) */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  /* Surfaces */
  --bg-app: #f6f8fa;
  --surface: #ffffff;
  --border: rgba(15, 23, 42, 0.07);
  --border-strong: rgba(15, 23, 42, 0.12);

  /* Elevation - 柔らかく多層 */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 8px 16px rgba(15, 23, 42, 0.06), 0 32px 64px rgba(15, 23, 42, 0.12);
  --shadow-brand: 0 4px 14px rgba(13, 148, 136, 0.25);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  font-feature-settings: 'palt' 1;
  letter-spacing: 0.01em;
  color: var(--ink-800);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 数値は等幅で読みやすく */
.tnum,
.stat-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ---------- App Background ---------- */
.app-bg {
  background-color: var(--bg-app);
  background-image:
    radial-gradient(ellipse 800px 500px at 8% -8%, rgba(20, 184, 166, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 450px at 100% 0%, rgba(99, 102, 241, 0.05), transparent 55%);
  background-attachment: fixed;
}

/* ---------- Focus Ring (アクセシビリティ) ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- Surface / Card ---------- */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 184, 166, 0.35);
}

.card-interactive:active {
  transform: translateY(0);
}

/* ガラス風ヘッダー */
.glass-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

/* ---------- Brand Mark ---------- */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-brand);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.12s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.34);
  filter: brightness(1.04);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink-700);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--ink-50);
  color: var(--ink-900);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-500);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--ink-100);
  color: var(--ink-800);
}

.btn-danger-soft {
  background: #fff;
  color: #dc2626;
  border-color: #fecaca;
}

.btn-danger-soft:hover:not(:disabled) {
  background: #fef2f2;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-success:hover:not(:disabled) {
  filter: brightness(1.04);
}

.btn-ig {
  background: linear-gradient(120deg, #f09433, #dc2743 45%, #bc1888);
  color: #fff;
  box-shadow: 0 4px 14px rgba(188, 24, 136, 0.28);
}

.btn-ig:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.9375rem 1.75rem;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Form Controls ---------- */
.field-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.5rem;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--ink-400);
  margin-top: 0.375rem;
}

.input,
.textarea,
.select {
  width: 100%;
  font-size: 0.9375rem;
  color: var(--ink-800);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0.75rem 0.9375rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
  outline: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-400);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--ink-300);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
  outline: none;
}

.textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 6rem;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: 0.9375rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
  font-size: 0.875rem;
  transition: color 0.18s var(--ease);
}

.input-group .input {
  padding-left: 2.625rem;
}

.input-group .input:focus + .input-icon,
.input-group .input:focus ~ .input-icon {
  color: var(--brand-500);
}

/* カラーピッカー */
input[type='color'].color-input {
  -webkit-appearance: none;
  appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input[type='color'].color-input:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-sm);
}

input[type='color'].color-input::-webkit-color-swatch-wrapper {
  padding: 2px;
  border-radius: var(--r-md);
}

input[type='color'].color-input::-webkit-color-swatch {
  border: none;
  border-radius: 9px;
}

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-neutral { background: var(--ink-100); color: var(--ink-600); border-color: var(--ink-200); }
.badge-brand   { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.badge-info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- Alerts ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.6;
}

.alert i { margin-top: 0.1875rem; flex-shrink: 0; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info    { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }

/* ---------- Section Header ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.section-title .icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.section-sub {
  font-size: 0.875rem;
  color: var(--ink-500);
  margin-top: 0.375rem;
  line-height: 1.6;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-600);
}

/* ---------- Icon Chip ---------- */
.icon-chip-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  flex-shrink: 0;
}

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.stepper::-webkit-scrollbar { display: none; }

.step-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9375rem 0.5rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-400);
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--ink-100);
  color: var(--ink-400);
  transition: all 0.22s var(--ease);
  flex-shrink: 0;
}

.step-item:hover { color: var(--ink-600); background: var(--ink-50); }

.step-item.is-active {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.step-item.is-active .step-num { background: rgba(255, 255, 255, 0.25); color: #fff; }

.step-item.is-done {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-200);
}
.step-item.is-done .step-num { background: var(--brand-200); color: var(--brand-800); }

.step-sep {
  color: var(--ink-300);
  font-size: 0.625rem;
  flex-shrink: 0;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.5625rem 0.9375rem;
  border-radius: 10px;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--ink-500);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.tab:hover { color: var(--ink-800); background: rgba(15, 23, 42, 0.04); }

.tab.is-active {
  background: var(--surface);
  color: var(--brand-700);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

/* 下線タイプのタブ */
.tab-underline {
  padding: 0.75rem 0.25rem;
  margin-right: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tab-underline:hover { color: var(--ink-800); }
.tab-underline.is-active {
  color: var(--brand-700);
  border-bottom-color: var(--brand-500);
}

/* ---------- Chips (filter) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.8125rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-600);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.chip:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}

.chip.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

/* ---------- Table ---------- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.table thead th {
  background: var(--ink-50);
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table tbody td {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-600);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background-color 0.15s var(--ease); }
.table tbody tr:hover { background: var(--ink-50); }

/* ---------- Progress ---------- */
.progress {
  height: 0.5rem;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  transition: width 0.6s var(--ease-out);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.2s var(--ease-out);
}

/* Tailwind の display ユーティリティより確実に優先させる */
.modal-overlay.hidden {
  display: none !important;
}

.modal-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.28s var(--ease-out);
}

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 20px;
  background: var(--brand-50);
  color: var(--brand-400);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.empty-state .empty-title {
  font-weight: 700;
  color: var(--ink-700);
  font-size: 0.9375rem;
}

.empty-state .empty-desc {
  font-size: 0.8125rem;
  color: var(--ink-400);
  margin-top: 0.375rem;
}

/* ---------- Skeleton ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--ink-100);
  border-radius: var(--r-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.anim-fade-up { animation: fadeInUp 0.35s var(--ease-out) both; }
.anim-fade { animation: fadeIn 0.25s var(--ease-out) both; }

/* リスト項目の段階表示 */
.stagger > * { animation: fadeInUp 0.4s var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(6) { animation-delay: 0.22s; }
.stagger > *:nth-child(n + 7) { animation-delay: 0.26s; }

/* ---------- Article Preview (Markdown) ---------- */
.prose-article {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--ink-700);
  word-break: break-word;
}

.prose-article > *:first-child { margin-top: 0; }

.prose-article h1,
.prose-article h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin: 2rem 0 0.875rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--brand-500);
  line-height: 1.5;
}

.prose-article h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-800);
  margin: 1.5rem 0 0.625rem;
  line-height: 1.5;
}

.prose-article h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-700);
  margin: 1.25rem 0 0.5rem;
}

.prose-article p { margin: 0.875rem 0; }

.prose-article ul,
.prose-article ol {
  margin: 0.875rem 0;
  padding-left: 1.375rem;
}

.prose-article ul { list-style: disc; }
.prose-article ol { list-style: decimal; }
.prose-article li { margin: 0.375rem 0; }
.prose-article li::marker { color: var(--brand-500); }

.prose-article strong { color: var(--brand-700); font-weight: 700; }
.prose-article a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }

.prose-article blockquote {
  margin: 1.25rem 0;
  padding: 0.875rem 1.125rem;
  background: var(--brand-50);
  border-left: 3px solid var(--brand-400);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--brand-900);
  font-size: 0.9063rem;
}

.prose-article code {
  background: var(--ink-100);
  color: var(--ink-800);
  padding: 0.125rem 0.375rem;
  border-radius: 6px;
  font-size: 0.875em;
}

.prose-article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
}

.prose-article thead th {
  background: var(--ink-50);
  color: var(--ink-600);
  font-weight: 700;
  text-align: left;
}

.prose-article th,
.prose-article td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--ink-100);
}

.prose-article tbody tr:last-child td { border-bottom: none; }

.prose-article hr {
  border: none;
  border-top: 1px solid var(--border-strong);
  margin: 2rem 0;
}

/* ---------- Utilities ---------- */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

.hairline-t { border-top: 1px solid var(--border); }
.hairline-b { border-bottom: 1px solid var(--border); }

/* SNSブランドテキスト */
.text-ig-gradient {
  background: linear-gradient(120deg, #f09433, #dc2743 45%, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Scrollbar ---------- */
.scroll-slim::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-slim::-webkit-scrollbar-track { background: transparent; }
.scroll-slim::-webkit-scrollbar-thumb {
  background: var(--ink-300);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.scroll-slim::-webkit-scrollbar-thumb:hover { background: var(--ink-400); background-clip: content-box; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
