:root {
  --color-bg: #f4f6fb;
  --color-surface: #ffffff;
  --color-text: #1d2433;
  --color-text-muted: #5c6b84;
  --color-border: #d9e0ee;
  --color-primary: #2f6fed;
  --color-primary-hover: #2457c4;
  --color-secondary: #e8eefc;
  --color-secondary-hover: #d7e2fa;
  --color-danger: #d64545;
  --color-danger-hover: #b53535;
  --color-success: #2f9e63;
  --color-warning: #d9902f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(29, 36, 51, 0.08);
  --space: 16px;
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
dl,
dd,
dt {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.button:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.4);
  outline-offset: 2px;
}

.button--primary {
  background: var(--color-primary);
  color: #fff;
}

.button--primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.button--secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.button--secondary:hover:not(:disabled) {
  background: var(--color-secondary-hover);
}

.button--danger {
  background: var(--color-danger);
  color: #fff;
}

.button--danger:hover:not(:disabled) {
  background: var(--color-danger-hover);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.is-hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
