:root { --navy: #16145F; --blue: #0067B1; --sky: #00A5E3; --red: #E72241; --gray: #B6B8BA; --bg: #F0F4F8; --text: #333; --muted: #666; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Meiryo UI", Meiryo, "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
main.card { max-width: 560px; margin: 24px auto; background: #fff; border: 1px solid var(--gray); border-radius: 12px; padding: 24px 20px; }
h1 { font-size: 22px; color: var(--navy); margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.lang { float: right; font-size: 14px; }
.lang button { background: none; border: 1px solid var(--gray); border-radius: 6px; padding: 4px 10px; margin-left: 4px; cursor: pointer; font: inherit; color: var(--text); }
.lang button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 14px; }
input, select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--gray); border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
button.primary { width: 100%; margin-top: 20px; padding: 14px; font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--blue); border: 0; border-radius: 10px; cursor: pointer; }
button.primary:disabled { background: var(--gray); cursor: default; }
button.secondary { font: inherit; padding: 10px 16px; border: 1px solid var(--gray); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; }
.hidden { display: none !important; }
.note { font-size: 14px; color: var(--muted); }
.error { color: var(--red); font-weight: 600; margin-top: 12px; }
.result { padding: 18px; border-radius: 10px; margin-top: 8px; }
.result.ok { background: #E8F5EE; } .result.ng { background: #FFF5F6; } .result.wait { background: #FFF8E6; }
.result h2 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
img.qr { display: block; width: 240px; height: 240px; margin: 12px auto; image-rendering: pixelated; border: 6px solid #fff; outline: 1px solid var(--gray); }
.receipt { font-size: 30px; font-weight: 700; letter-spacing: 3px; text-align: center; color: var(--navy); margin: 4px 0 12px; }
dl { display: grid; grid-template-columns: 5.5em 1fr; gap: 6px 12px; margin: 12px 0; font-size: 15px; }
dt { color: var(--muted); } dd { margin: 0; }
.ticket-page main.card { text-align: left; }
/* 受付画面 */
body.checkin { background: #111; color: #eee; }
.checkin header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--navy); color: #fff; font-weight: 700; }
.checkin header small { font-weight: 400; color: #cfd8ff; }
.checkin .cam { position: relative; background: #000; }
.checkin video { display: block; width: 100%; max-height: 62vh; object-fit: cover; }
.checkin .frame { position: absolute; inset: 12% 15%; border: 3px solid var(--sky); border-radius: 14px; pointer-events: none; }
.checkin .res { min-height: 150px; padding: 18px 16px; text-align: center; }
.checkin .res.scan { color: #bbb; } .checkin .res.ok { background: #1f7a52; color: #fff; } .checkin .res.dup { background: #b4541f; color: #fff; } .checkin .res.ng { background: var(--red); color: #fff; } .checkin .res.off { background: #555; color: #fff; }
.checkin .res .nm { font-size: 30px; font-weight: 700; margin: 4px 0; } .checkin .res .co { font-size: 17px; opacity: .92; }
.checkin .res .tag { font-size: 20px; font-weight: 700; }
.checkin .manual { padding: 10px 14px; display: flex; gap: 8px; } .checkin .manual input { flex: 1; }
/* 管理画面 */
body.admin main { max-width: 1100px; margin: 16px auto; padding: 0 12px; }
.admin h1 { font-size: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.toolbar input { max-width: 320px; }
table.list { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.list th, table.list td { padding: 8px 10px; border-bottom: 1px solid #e3e7ec; text-align: left; vertical-align: top; }
table.list th { background: #fff; position: sticky; top: 0; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.list .ok { color: #1f7a52; font-weight: 700; } table.list .dim { color: #999; } table.list .warn { color: #b4541f; font-weight: 700; } table.list .bad { color: var(--red); }
table.list button { font: inherit; font-size: 13px; padding: 4px 8px; margin: 0 4px 4px 0; border: 1px solid var(--gray); border-radius: 6px; background: #fff; cursor: pointer; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.tile { background: #fff; border: 1px solid var(--gray); border-radius: 10px; padding: 12px 14px; }
.tile small { display: block; color: var(--muted); font-size: 13px; } .tile b { font-size: 30px; color: var(--navy); } .tile span { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px 0 0; border-bottom: 1px solid var(--gray); }
.bars i { flex: 1; background: var(--sky); display: block; position: relative; min-width: 6px; }
.bars i.hi { background: var(--blue); }
.bars i span { position: absolute; bottom: 100%; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--gray); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.panel h2 { font-size: 16px; margin: 0 0 8px; color: var(--navy); }
.big-screen .tile b { font-size: 48px; }
/* 運営用画面のナビ（nav.js） */
.appnav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--gray); font-size: 14px; }
.appnav .brand { color: var(--navy); font-weight: 700; margin-right: 10px; }
.appnav a { color: var(--blue); text-decoration: none; padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
.appnav a:hover { background: var(--bg); }
.appnav a.on { background: var(--navy); color: #fff; }
.appnav .ext { font-size: 11px; margin-left: 2px; opacity: .8; }
.checkin .appnav { background: #000; border-bottom: 1px solid #333; font-size: 13px; padding: 5px 8px; gap: 2px 2px; }
.checkin .appnav .brand { display: none; }
.checkin .appnav a { color: #9ecbff; padding: 4px 8px; } .checkin .appnav a.on { background: #333; color: #fff; }
