*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { touch-action: manipulation; }
button { user-select: none; }
img { -webkit-touch-callout: none; user-select: none; }

@media (max-width: 767px) {
  input[type="text"], input[type="search"], textarea { font-size: 16px !important; min-width: 0; }
  button:not(.filter-ink-btn) { min-height: 36px; }
}

:root {
  --bg:       #1a1a2e;
  --surface:  #16213e;
  --border:   #0f3460;
  --border2:  #1a4a7a;
  --accent:   #e94560;
  --accent2:  #c73650;
  --blue:     #4090ff;
  --text:     #e0e0e0;
  --text-mid: #a0a0c0;
  --text-dim: #607080;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --transition: 0.15s ease;

  /* インク色 */
  --ink-amber:    #ffc040;
  --ink-amethyst: #c080ff;
  --ink-emerald:  #40d090;
  --ink-ruby:     #ff6070;
  --ink-sapphire: var(--blue);
  --ink-steel:    #90a0b0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

header {
  background: var(--surface);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
header h1 { font-size: 1rem; color: var(--accent); }
header h1 a { color: inherit; text-decoration: none; }
header .spacer { flex: 1; }

/* ---- Breadcrumb ---- */
.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
  flex-shrink: 0;
  user-select: none;
}
.breadcrumb-current {
  color: var(--text-mid);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb-link {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.breadcrumb-link:hover { color: var(--text); }
