:root {
  --pink: #e8709a;
  --pink-dark: #c9527c;
  --ink: #2b2b2b;
  --muted: #777;
  --line: #e7e7e7;
  --bg: #faf7f8;
  --ok: #2e9e5b;
  --warn: #d98324;
  --danger: #d64545;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
}
a { color: var(--pink-dark); }
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }
header.site {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
header.site .inner {
  max-width: 860px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
header.site .brand { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
header.site .brand small { color: var(--pink-dark); font-weight: 700; }
header.site nav a { margin-left: 14px; font-size: 13px; text-decoration: none; color: var(--muted); }

h1 { font-size: 22px; margin: 8px 0 16px; }
h2 { font-size: 17px; margin: 24px 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
}
.card.clickable { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.card.clickable:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); transform: translateY(-1px); }

.badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  font-weight: 700; vertical-align: middle;
}
.badge.open { background: #e6f6ec; color: var(--ok); }
.badge.full { background: #fdeaea; color: var(--danger); }
.badge.closed { background: #eee; color: var(--muted); }
.badge.member { background: #fdeef4; color: var(--pink-dark); }
.badge.matched { background: #e6f6ec; color: var(--ok); }
.badge.unmatched { background: #fdf0e3; color: var(--warn); }
.badge.pending { background: #eef1f6; color: #5a6b85; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
label .req { color: var(--danger); font-size: 11px; margin-left: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff;
}
textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.radio-group label.choice {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500;
  margin-right: 16px; cursor: pointer;
}
.radio-group input { width: auto; }

button, .btn {
  display: inline-block; background: var(--pink); color: #fff; border: 0;
  padding: 11px 18px; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; text-align: center;
  white-space: nowrap; flex-shrink: 0; /* flexカード内で潰れて縦書きにならないように */
}
button:hover, .btn:hover { background: var(--pink-dark); }
button:disabled { background: #ccc; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.full { display: block; width: 100%; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #333; color: #fff; padding: 12px 20px; border-radius: 8px;
  font-size: 14px; z-index: 100; opacity: 0; transition: opacity .2s; pointer-events: none;
  max-width: 90%;
}
.toast.show { opacity: 1; }
.toast.err { background: var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { background: #faf7f8; font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; padding: 10px 12px; font-weight: 600;
}
.tabs button.active { color: var(--pink-dark); border-bottom-color: var(--pink); }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.notice { white-space: pre-wrap; font-size: 13px; color: #555; background:#fff;
  border:1px solid var(--line); border-radius: var(--radius); padding: 14px; }
