:root {
  --ink: #1c1c22;
  --ink-2: #3a3942;
  --muted: #5e5d66;
  --line: #c9c7bf;
  --line-soft: #e4e2dc;
  --bg: #f6f5f1;
  --card: #ffffff;
  --chip: #f1f0eb;
  --accent: #3438c8;
  --accent-dark: #22258f;
  --accent-soft: #e3e4fb;
  --ok: #1f6b3a;
  --ok-soft: #e3f3e8;
  --warn: #8a4b00;
  --warn-soft: #fdf0dc;
  --err: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line-soft);
}
header.site .wrap { display: flex; align-items: baseline; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.logo {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
}
.logo-sub { font-size: 12px; color: var(--muted); }
main { display: flex; flex-direction: column; gap: 16px; padding: 20px 0 8px; }
.card { background: var(--card); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
h1, h2 { margin: 0; line-height: 1.4; }
h1 { font-size: 21px; }
h2 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 18px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'M PLUS Rounded 1c', sans-serif; font-weight: 800; font-size: 26px;
}
.row { display: flex; gap: 14px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; background: var(--chip); border-radius: 999px; padding: 4px 12px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.off { color: var(--muted); background: var(--chip); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.badge.info { color: var(--accent-dark); background: var(--accent-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-weight: 700; font-size: 14px; }
.req { color: var(--err); font-weight: 700; }
input[type=text], input[type=email], input[type=url], input[type=password], textarea {
  min-height: 44px; width: 100%;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amounts button {
  min-height: 44px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700;
  background: #fff; color: var(--ink); border: 1px solid var(--line); cursor: pointer;
}
.amounts button[aria-pressed=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn {
  min-height: 52px; width: 100%; border: 0; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700;
  background: var(--accent); color: #fff; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:disabled { background: #d9d8e6; color: #55546a; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #d6d4cc; min-height: 44px; }
.btn.ghost:hover { background: var(--chip); color: var(--ink); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.box { background: var(--bg); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.box ol, .box ul { margin: 6px 0 0; padding-left: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.error { color: var(--err); font-size: 14px; font-weight: 700; }
.error:empty { display: none; }
.singer-link { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.singer-link:hover { color: var(--ink); background: var(--chip); }
.list { display: flex; flex-direction: column; gap: 10px; }
footer.site { padding: 16px 0 32px; font-size: 12px; color: var(--muted); }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
.doc h2 { margin-top: 8px; }
.doc ol, .doc ul { padding-left: 20px; margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line-soft); padding: 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--chip); width: 34%; }
table.admin { border-collapse: collapse; width: 100%; font-size: 13px; }
table.admin th, table.admin td { border-bottom: 1px solid var(--line-soft); padding: 6px; text-align: left; }
.scroll { overflow-x: auto; }
[hidden] { display: none !important; }
