:root {
  --c-bg: #fafafa;
  --c-fg: #1a1a1a;
  --c-muted: #6b7280;
  --c-card: #ffffff;
  --c-border: #e5e7eb;
  --c-primary: #4f46e5;
  --c-primary-hover: #4338ca;
  --c-accent: #f472b6;
  --c-danger: #ef4444;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP',
    sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  line-height: 1.6;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.btn:hover { background: var(--c-primary-hover); text-decoration: none; color: #fff; }
.btn.secondary { background: #fff; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn.secondary:hover { background: #f3f4ff; color: var(--c-primary); }
.btn.danger { background: var(--c-danger); }
.btn.ghost { background: transparent; color: var(--c-muted); border: 1px solid var(--c-border); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

input, textarea, select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--c-fg);
}

.field { margin-bottom: 1.2rem; }
.field .hint { font-size: 0.8rem; color: var(--c-muted); margin-top: 0.3rem; }
.error { color: var(--c-danger); font-size: 0.85rem; margin-top: 0.4rem; }

.muted { color: var(--c-muted); }
.small { font-size: 0.85rem; }

.flex { display: flex; gap: 0.75rem; align-items: center; }
.flex.wrap { flex-wrap: wrap; }
.flex.col { flex-direction: column; align-items: stretch; }

h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1rem; margin: 0 0 0.5rem; }

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--c-primary);
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 0.3rem;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-published { background: #d1fae5; color: #065f46; }
.status-hidden { background: #f3f4f6; color: #4b5563; }

header.site {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 0.9rem 1.25rem;
}
header.site .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.site .logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-fg);
  letter-spacing: -0.02em;
}
header.site .logo:hover { text-decoration: none; }

footer.site {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--c-muted);
  font-size: 0.85rem;
}
