/* ダスビダーニャ チケット — 文字とボタンを大きく、色だけに頼らない */
:root {
  --red: #a8192e;
  --red-dark: #7d0f20;
  --ink: #1f1b17;
  --paper: #f7f1e5;
  --card: #fffdf8;
  --line: #d9cdb8;
  --muted: #5e554b;
  --gold: #b8860b;
  --ok: #1d6b3a;
  --warn: #8a5a00;
  --ng: #a8192e;
  --focus: #1a5fb4;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }  /* 本文 18px */
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
}
a { color: var(--red-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-head { background: var(--red); color: #fff; border-bottom: 4px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .06em; line-height: 1.2; }
.logo small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .1em; opacity: .9; }
.site-head nav a { color: #fff; font-weight: 700; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.site-head nav a:hover { background: rgba(255,255,255,.15); }

main { padding: 20px 0 48px; }
h1 { font-size: 1.6rem; line-height: 1.35; margin: .4em 0 .6em; }
h2 { font-size: 1.3rem; line-height: 1.4; margin: 1.6em 0 .6em; border-left: 6px solid var(--red); padding-left: 10px; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
p { margin: .6em 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* 手順の表示 */
.steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 16px; font-size: .8rem; }
.steps li { flex: 1; text-align: center; padding: 6px 2px; background: #ebe2d1; color: var(--muted); border-radius: 6px; }
.steps li.now { background: var(--ink); color: #fff; font-weight: 700; }
.steps li.done { background: #d6c9b1; color: var(--ink); }
.step-now { font-weight: 700; color: var(--red-dark); margin: 0; }

/* カード */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; }
.card.accent { border-left: 6px solid var(--red); }

/* ボタン */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1.05rem; text-align: center; text-decoration: none;
  padding: 14px 22px; min-height: 56px; border-radius: 12px; border: 2px solid var(--ink); cursor: pointer;
  background: var(--card); color: var(--ink);
}
.btn.primary { background: var(--red); border-color: var(--red-dark); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.block { display: block; width: 100%; }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn-row .btn { flex: 1 1 200px; }
.linklike { background: none; border: none; color: var(--red-dark); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }

/* フォーム */
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type=email], input[type=text], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1.15rem; padding: 12px 14px; border: 2px solid #8f8576; border-radius: 10px; background: #fff;
}
input.code { letter-spacing: .12em; text-transform: uppercase; font-family: ui-monospace, Menlo, Consolas, monospace; }
.help { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.error, .msg.error { background: #fde8eb; border: 2px solid var(--ng); color: #5c0a15; padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.msg { padding: 12px 14px; border-radius: 10px; margin: 10px 0; border: 2px solid var(--line); background: var(--card); }
.msg.success { border-color: var(--ok); background: #e6f3ea; }
.msg.info { border-color: var(--gold); background: #fbf3df; }

/* 公演ページ */
.hero { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; padding: 18px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--ink) 14px 28px); }
.hero h1 { margin-top: 10px; }
.hero .no { color: var(--red); font-weight: 800; font-size: 1rem; letter-spacing: .1em; margin: 6px 0 0; }
.hero .portrait { width: 100%; max-width: 260px; justify-self: center; }
@media (min-width: 640px) { .hero { grid-template-columns: 1.4fr 1fr; } }
dl.facts { display: grid; grid-template-columns: 5em 1fr; gap: 4px 10px; margin: 10px 0; }
dl.facts dt { font-weight: 700; color: var(--muted); }
dl.facts dd { margin: 0; }
.big-date { font-size: 1.3rem; font-weight: 800; }

/* 座席表 */
.zone-tabs { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.zone-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.zone-floor { width: 3em; font-weight: 800; }
.zone-group button { flex: 1 1 4.5em; font: inherit; font-size: .95rem; font-weight: 700; padding: 6px 4px; border: 2px solid var(--ink); background: var(--card); border-radius: 10px; min-height: 46px; line-height: 1.25; }
.zone-group button[aria-selected=true] { background: var(--ink); color: #fff; }
.now-zone { font-weight: 800; font-size: 1.1rem; margin: 6px 0; }
.overview-card { padding: 10px 12px; }
.overview-card summary { cursor: pointer; }
#overview { display: block; width: 100%; height: 42vh; max-height: 420px; margin-top: 8px; }
.ov-seat { stroke: none; }
.ov-seat.other { fill: #d8cfbf; } .ov-seat.now { fill: var(--ink); } .ov-seat.sel { fill: var(--red); }
#overview { cursor: pointer; }
.ov-label { font-size: 30px; font-weight: 800; fill: var(--ink); pointer-events: none; }
.ov-stage { fill: #f3d6da; stroke: var(--red-dark); pointer-events: none; }
.floor-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.floor-tabs button { font: inherit; font-weight: 700; padding: 8px 4px; border: 2px solid var(--ink); background: var(--card); border-radius: 10px; min-height: 48px; line-height: 1.3; }
.floor-tabs button[aria-selected=true] { background: var(--ink); color: #fff; }
.seatmap-box { background: #fff; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; position: relative; touch-action: none; }
.seatmap-box svg { display: block; width: 100%; height: 62vh; max-height: 640px; user-select: none; -webkit-user-select: none; }
.zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.zoom button { width: 48px; height: 48px; font-size: 1.5rem; font-weight: 700; border-radius: 10px; border: 2px solid var(--ink); background: #fff; }
.seat { stroke: #6d6252; stroke-width: .6; cursor: pointer; }
.seat.free { fill: #fff; }
.seat.sel { fill: var(--red); stroke: var(--red-dark); stroke-width: 1.2; }
.seat.taken { fill: #8c8479; cursor: not-allowed; }
.seat.na { fill: #e2dccf; stroke: #cfc6b5; cursor: not-allowed; }
.stage { fill: #f3d6da; stroke: var(--red-dark); }
.stage-label { font-weight: 700; fill: var(--red-dark); }
.rowlabel { font-size: 6px; fill: var(--muted); font-weight: 700; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 8px 0; font-size: .9rem; }
.legend i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #6d6252; vertical-align: -3px; margin-right: 4px; }
.legend .free i { background: #fff; } .legend .sel i { background: var(--red); } .legend .taken i { background: #8c8479; } .legend .na i { background: #e2dccf; }
.selbar { position: sticky; bottom: 0; background: var(--card); border-top: 3px solid var(--ink); padding: 10px 12px; margin: 0 -16px; z-index: 5; }
.selbar .list { font-weight: 700; min-height: 1.6em; }
.seat-pill { display: inline-block; padding: 2px 10px; margin: 2px; border-radius: 999px; background: var(--red); color: #fff; font-size: .9rem; }

/* 表 */
table.list { width: 100%; border-collapse: collapse; background: var(--card); }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.list th { background: #efe6d4; font-size: .9rem; }

/* マイチケット */
.ticket-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ticket-row input[type=checkbox] { width: 28px; height: 28px; margin-top: 4px; }
.ticket-seat { font-size: 1.2rem; font-weight: 800; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 2px solid currentColor; }
.badge.self { color: var(--ink); }
.badge.given { color: #1a5fb4; }
.badge.used { color: var(--ok); }
.badge.cancelled { color: var(--muted); }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qr-box { background: #fff; padding: 12px; border: 2px solid var(--ink); border-radius: 10px; max-width: 320px; margin: 12px auto; }
.qr-box svg { width: 100%; height: auto; display: block; }
.code-big { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: .1em; text-align: center; }

/* 受付 */
.checkin body, body.checkin { background: #111; color: #fff; }
body.checkin .site-head, body.checkin .site-foot { display: none; }
body.checkin main { padding-top: 8px; }
.scan-video { width: 100%; max-height: 50vh; background: #000; border-radius: 12px; object-fit: cover; }
.result { margin: 12px 0; padding: 22px 16px; border-radius: 14px; text-align: center; font-size: 1.6rem; font-weight: 800; border: 4px solid #fff; min-height: 120px; }
.result.ok { background: var(--ok); }
.result.warn { background: #c27c00; color: #000; }
.result.ng { background: var(--ng); }
.result .sub { font-size: 1.1rem; font-weight: 700; margin-top: 6px; }
body.checkin input[type=search] { background: #fff; color: #000; }
body.checkin .btn { background: #fff; color: #000; }
body.checkin table.list { color: var(--ink); }

footer.site-foot { border-top: 1px solid var(--line); padding: 20px 0 40px; font-size: .88rem; color: var(--muted); }
footer.site-foot a { margin-right: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
