/* 僕らのミライEXPO 2026 — TIDEデザインシステム準拠
   モノクロ / Noto Sans JP / 罫線のみ / グラデーション・影なし */

:root {
  color-scheme: light only; /* ダークモードでの自動反転を防ぐ（印刷前提のモノクロ設計のため） */
  --ink: #111;
  --line: #333;
  --line-thin: #bbb;
  --bg: #fff;
  --bg-soft: #f4f4f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 16px 64px; }

header.site {
  border-bottom: 2px solid var(--line);
  padding: 20px 16px;
  margin-bottom: 24px;
}
header.site .brand { font-size: 20px; font-weight: 700; }
header.site .sub { font-size: 13px; color: #555; }

h1 { font-size: 24px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
h2 { font-size: 19px; border-left: 4px solid var(--line); padding-left: 10px; margin-top: 36px; }
h3 { font-size: 16px; }

a { color: var(--ink); }

table.list { border-collapse: collapse; width: 100%; margin: 12px 0; }
table.list th, table.list td { border: 1px solid var(--line-thin); padding: 6px 10px; text-align: left; font-size: 14px; }
table.list th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }

.btn {
  display: inline-block;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--bg-soft); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-small { padding: 4px 12px; font-size: 13px; border-width: 1px; font-weight: 400; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

form .field { margin: 14px 0; }
form label.lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
form input[type="text"], form input[type="email"], form input[type="tel"],
form input[type="password"], form input[type="number"], form input[type="datetime-local"],
form select, form textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  width: 100%;
  max-width: 420px;
  background: var(--bg);
}
form textarea { max-width: 640px; }
.required::after { content: "必須"; font-size: 11px; border: 1px solid var(--ink); padding: 0 4px; margin-left: 6px; font-weight: 400; }

.notice { border: 2px solid var(--line); padding: 12px 16px; margin: 16px 0; }
.notice-info::before { content: "お知らせ"; display: block; font-size: 12px; font-weight: 700; }
.notice-warning { border-width: 3px; }
.notice-warning::before { content: "重要なお知らせ"; display: block; font-size: 12px; font-weight: 700; }
.notice-critical { border-width: 4px; background: var(--ink); color: #fff; }
.notice-critical::before { content: "緊急のお知らせ"; display: block; font-size: 12px; font-weight: 700; }

.alert-error { border: 2px solid var(--ink); padding: 10px 14px; margin: 12px 0; font-weight: 700; }
.alert-ok { border: 1px solid var(--line); padding: 10px 14px; margin: 12px 0; }

.box { border: 1px solid var(--line); padding: 16px; margin: 16px 0; }
.muted { color: #666; font-size: 13px; }
.mono { font-family: "Courier New", monospace; }

/* 管理画面ナビ */
nav.admin { border-bottom: 1px solid var(--line); padding: 8px 0; margin-bottom: 20px; font-size: 14px; }
nav.admin a { margin-right: 14px; text-decoration: none; }
nav.admin a:hover { text-decoration: underline; }
nav.admin .who { float: right; color: #555; }

.grid { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { border: 1px solid var(--line); padding: 12px 20px; min-width: 150px; }
.stat .num { font-size: 28px; font-weight: 700; }
.stat .cap { font-size: 12px; color: #555; }

/* 参加証カード */
.ticket-card {
  border: 2px dashed var(--line);
  padding: 16px;
  margin: 16px 0;
  page-break-inside: avoid;
}
.ticket-card .head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-thin); padding-bottom: 8px; margin-bottom: 8px; }
.ticket-card .qr svg { width: 140px; height: 140px; }
.ticket-card table { font-size: 13px; }

@media print {
  header.site, nav.admin, .no-print { display: none !important; }
  body { font-size: 12px; }
  .container { max-width: none; padding: 0; }
  .ticket-card { margin: 8mm 0; }
}
