:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  --accent: #0ea5e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  line-height: 1.8;
}

.container {
  width: min(880px, 92vw);
  margin: 24px auto;
}

header {
  margin: 24px 0;
}

h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 8px;
  font-weight: 800;
}

.sub {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.card .inner {
  max-width: none;
  margin: 0;
  padding: 18px;
}

.card table {
  width: 100%;
  border-collapse: collapse;
}

.card table th,
.card table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.card table th {
  width: 28%;
  font-weight: 700;
  background: #f1f5f9;
}

.card table tr:last-child th,
.card table tr:last-child td {
  border-bottom: none;
}

.card table a {
  color: var(--accent);
  text-decoration: none;
}

.card table a:hover {
  text-decoration: underline;
}

.card .hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.card .back {
  display: inline-block;
  margin: 12px 0 0;
  color: var(--accent);
  text-decoration: none;
}

.card table .back:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  th {
    width: 36%;
  }
}

.wysiwyg-area h1,
.wysiwyg-area h2,
.wysiwyg-area h3,
.wysiwyg-area h4,
.wysiwyg-area h5,
.wysiwyg-area h6 {
  margin-bottom: 1em;
}

.wysiwyg-area p {
  margin-bottom: 1.5em;
}
