html { scroll-behavior: smooth; }
body { overflow-x: clip; }
header { position: -webkit-sticky; position: sticky; top: 0; }
.logo-svg { height: 28px; width: auto; display: block; }
@media (max-width: 640px) { .logo-svg { height: 22px; } }

/* shadcn/ui: focus-ring */
:focus-visible {
  outline: 2px solid hsl(0 0% 3.9%);
  outline-offset: 2px;
  border-radius: 0.25rem;
}
a:not([class]) { color: hsl(0 0% 3.9%); text-decoration: underline; text-underline-offset: 4px; }

/* 黒背景セクション内のmutedテキストをWCAG AA準拠に上書き */
.bg-dark .text-muted,
.bg-ink .text-muted,
[class*="bg-dark"] .text-muted {
  color: rgba(255, 255, 255, 0.65) !important; /* 6.37:1 ✅ AA */
}
.bg-paper .text-muted {
  color: #666666 !important; /* 4.60:1 ✅ AA */
}

/* shadcn/ui: badge */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
  border: 1px solid hsl(0 0% 89.8%);
  color: hsl(0 0% 45.1%);
  background: transparent;
}
.badge-dark {
  border-color: hsl(0 0% 20%);
  color: hsl(0 0% 65%);
}

/* shadcn/ui: separator */
.separator { height: 1px; background: hsl(0 0% 89.8%); }
.separator-dark { height: 1px; background: hsl(0 0% 15%); }

/* shadcn/ui: card */
.card {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(0 0% 89.8%);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06);
}
.card-dark {
  background: hsl(0 0% 7%);
  border: 1px solid hsl(0 0% 15%);
  border-radius: 0.5rem;
}

/* shadcn/ui: button variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 11px 22px;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px; /* WCAG 2.5.5 */
}
.btn-default {
  background: hsl(0 0% 3.9%);
  color: hsl(0 0% 98%);
  border: 1px solid transparent;
}
.btn-default:hover { background: hsl(0 0% 15%); }
.btn-outline {
  background: transparent;
  color: hsl(0 0% 3.9%);
  border: 1px solid hsl(0 0% 89.8%);
}
.btn-outline:hover { background: hsl(0 0% 96.1%); }
.btn-ghost {
  background: transparent;
  color: hsl(0 0% 45.1%);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: hsl(0 0% 96.1%); color: hsl(0 0% 3.9%); }
.btn-white {
  background: hsl(0 0% 100%);
  color: hsl(0 0% 3.9%);
  border: 1px solid transparent;
}
.btn-white:hover { background: hsl(0 0% 94%); }
.btn-line-green { background: #06C755; color: #fff; border: none; }
.btn-line-green:hover { background: #05b34c; box-shadow: 0 6px 32px rgba(6,199,85,0.45); transform: translateY(-1px); }
.btn-cta {
  background: #06C755;
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 24px rgba(6,199,85,0.35);
}
.btn-cta:hover { background: #05b34c; box-shadow: 0 6px 32px rgba(6,199,85,0.45); transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 0.5rem; min-height: 48px; }
