/* LINKsRING 予約システム：お客様向け画面 */
:root {
  /* メインサイト（linksring.net）に合わせた白と黒 */
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #dddddd;
  --accent: #000000;
  --accent-ink: #ffffff;
  --ok: #1e6b3f; --ok-bg: #edf5f0;
  --ng: #b42318; --ng-bg: #fdecea;
  --warn: #6b4a00; --warn-bg: #fbf3df;
  /* 座席の色：くすみパステル */
  --tt-c1: #E8A8A8; --tt-c2: #A8BCE0; --tt-c3: #A8D5BA; --tt-c4: #C7B3E0;
  --tt-c5: #F2C29B; --tt-c6: #9FD3DB; --tt-c7: #EDB3CF; --tt-c8: #D6BFA3;
  --seat-na: #efefef; --seat-na-line: #e2e2e2;
  --seat-taken: #8f8f8f;
  --seat-sel: #000000;
  --radius: 0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "Noto Sans JP", Meiryo, sans-serif;
  letter-spacing: .08em; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.site-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.head-link { font-size: 14px; }
.site-foot { max-width: 760px; margin: 24px auto; padding: 0 16px; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.crumb { font-size: 14px; margin: 0 0 8px; }
.page-title { font-size: 22px; line-height: 1.45; margin: 6px 0 10px; }
.small-title { font-size: 20px; }
.section-h { font-size: 18px; margin: 28px 0 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.panel-h { font-size: 17px; margin: 0 0 8px; }

.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 15px; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-ng { background: var(--ng-bg); color: var(--ng); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }

.btn { display: inline-block; padding: 10px 18px; font: inherit; font-size: 15px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-primary:disabled { opacity: .45; cursor: default; }
.btn-block { display: block; width: 100%; padding: 14px; margin-top: 10px; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

.event-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; color: var(--ink); text-decoration: none; }
.event-title { display: block; font-size: 17px; margin: 4px 0; }
.event-meta { display: block; font-size: 14px; color: var(--muted); }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted); }
.tag-on_sale { background: var(--ok-bg); color: var(--ok); }
.tag-before { background: var(--warn-bg); color: var(--warn); }
.tag-paused, .tag-sales_over { background: var(--ng-bg); color: var(--ng); }
.performers { margin: -4px 0 10px; font-weight: 700; }
.facts { display: grid; grid-template-columns: 6em 1fr; gap: 4px 12px; margin: 10px 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
.desc { margin-top: 12px; }

.tickets { display: grid; gap: 12px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.ticket-head { display: flex; align-items: center; gap: 8px; }
.ticket-head h3 { margin: 0; font-size: 18px; flex: 1; }
.prices { list-style: none; margin: 8px 0; padding: 0; }
.prices li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.stock { font-size: 13px; font-weight: 700; }
.stock-ok { color: var(--ok); } .stock-few { color: var(--warn); } .stock-none { color: var(--ng); }
.howto ol { padding-left: 1.3em; }
.howto li { margin-bottom: 6px; }

.dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.dot.tt-c1 { background: var(--tt-c1); } .dot.tt-c2 { background: var(--tt-c2); } .dot.tt-c3 { background: var(--tt-c3); } .dot.tt-c4 { background: var(--tt-c4); }
.dot.tt-c5 { background: var(--tt-c5); } .dot.tt-c6 { background: var(--tt-c6); } .dot.tt-c7 { background: var(--tt-c7); } .dot.tt-c8 { background: var(--tt-c8); }
.dot-sel { background: var(--seat-sel); } .dot-taken { background: var(--seat-taken); } .dot-na { background: var(--seat-na); border: 1px solid var(--seat-na-line); }

.steps { display: flex; list-style: none; padding: 0; margin: 4px 0 12px; gap: 4px; font-size: 12px; }
.steps li { flex: 1; text-align: center; padding: 6px 2px; border-radius: 6px; background: var(--line); color: var(--muted); }
.steps li.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.steps li.done { background: var(--ok-bg); color: var(--ok); }

/* 座席表 */
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; margin: 8px 0; }
.zoom-bar { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.seat-scroll { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-height: 70vh; -webkit-overflow-scrolling: touch; }
.seat-inner { padding: 8px; }
.seat-inner.zoom-1 { width: 100%; } .seat-inner.zoom-2 { width: 200%; } .seat-inner.zoom-3 { width: 320%; }
.seatmap { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.seatmap .seat rect { fill: var(--seat-na); stroke: var(--seat-na-line); stroke-width: .8; }
.seatmap .seat text { font-size: 8px; fill: var(--muted); pointer-events: none; }
.seatmap .row-label { font-size: 9px; font-weight: 700; fill: var(--muted); }
.seatmap .map-label { font-weight: 700; fill: var(--ink); }
.seatmap .seat-wheelchair rect { fill: var(--seat-na); }
.seatmap .avail { cursor: pointer; }
.seatmap .avail text { fill: #111; }
.seatmap .avail.tt-c1 rect { fill: var(--tt-c1); stroke: var(--tt-c1); } .seatmap .avail.tt-c2 rect { fill: var(--tt-c2); stroke: var(--tt-c2); }
.seatmap .avail.tt-c3 rect { fill: var(--tt-c3); stroke: var(--tt-c3); } .seatmap .avail.tt-c4 rect { fill: var(--tt-c4); stroke: var(--tt-c4); }
.seatmap .avail.tt-c5 rect { fill: var(--tt-c5); stroke: var(--tt-c5); } .seatmap .avail.tt-c6 rect { fill: var(--tt-c6); stroke: var(--tt-c6); }
.seatmap .avail.tt-c7 rect { fill: var(--tt-c7); stroke: var(--tt-c7); } .seatmap .avail.tt-c8 rect { fill: var(--tt-c8); stroke: var(--tt-c8); }
.seatmap .avail:hover rect, .seatmap .avail:focus rect { stroke: var(--ink); stroke-width: 2; outline: none; }
.seatmap .taken rect { fill: var(--seat-taken); stroke: var(--seat-taken); }
.seatmap .taken text { fill: #fff; }
.seatmap .just-taken rect { stroke: var(--ng); stroke-width: 2.5; }
.seatmap .sel rect { fill: var(--seat-sel) !important; stroke: var(--seat-sel) !important; }
.seatmap .sel text { fill: var(--surface) !important; font-weight: 700; }
.seatmap g:focus { outline: none; }

.seat-scroll { cursor: grab; }
.seat-scroll.dragging { cursor: grabbing; }
.seat-scroll.dragging .seatmap .avail { cursor: grabbing; }
.drag-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .drag-hint { display: inline; } }
.selection { position: sticky; bottom: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding: 12px 16px; margin-top: 12px; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.sel-list { list-style: none; padding: 0; margin: 6px 0; max-height: 30vh; overflow: auto; }
.sel-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sel-seat { flex: 1; min-width: 12em; }
.sel-list select { font: inherit; font-size: 14px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.sel-total { text-align: right; font-size: 15px; }
.sel-total strong { font-size: 20px; }

/* 入力 */
.form label { display: block; margin-bottom: 14px; font-size: 15px; font-weight: 600; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea, .panel select, .panel input[type=text] {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-weight: 400; font-size: 16px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.req { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 11px; color: #fff; background: var(--ng); border-radius: 4px; vertical-align: 2px; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
label.check input { width: 20px; height: 20px; }
.privacy { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 10px 0 14px; }
.privacy-text { max-height: 9em; overflow: auto; font-size: 13px; color: var(--muted); margin-top: 4px; }
.qty-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.qty-row select { width: 7em; margin-top: 0; }
.cancel-form { text-align: center; margin: 8px 0 20px; }

.hold-timer { padding: 8px 12px; margin: -4px -4px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.hold-timer.urgent { background: var(--ng-bg); color: var(--ng); }
.lines { width: 100%; border-collapse: collapse; font-size: 15px; }
.lines td { padding: 6px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.lines .num { text-align: right; white-space: nowrap; }
.lines .total td { font-weight: 700; border-bottom: 0; font-size: 17px; }

.resno { text-align: center; }
.resno-value { font-size: 26px; font-weight: 800; letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 4px 0; user-select: all; }
.store-link { border-top: 1px dashed var(--line); padding: 12px 0; }
/* PC：選択中の座席の欄は座席表の下に並べる（横スクロールバーが隠れないように） */
@media (min-width: 700px) {
  .selection { position: static; border-radius: var(--radius); box-shadow: none; }
  .seat-scroll { max-height: 78vh; }
}
@media (max-width: 480px) {
  .wrap { padding: 12px; }
  .page-title { font-size: 20px; }
  .facts { grid-template-columns: 5em 1fr; }
}

/* ===== LINKsRING テーマ（メインサイトに合わせる） ===== */
a { color: var(--ink); }
.site-head { position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 16px; background: #fff; border-bottom: 4px solid rgba(0,0,0,.1); border-top: 0; }
.site-name { display: flex; align-items: center; height: 100%; color: var(--ink); text-decoration: none; letter-spacing: .1em; }
.site-name img { display: block; width: 213px; height: auto; max-width: 52vw; }
.head-nav { display: flex; align-items: center; }
.head-nav a { position: relative; padding: 4px 18px; font-size: 14px; letter-spacing: 2px; color: var(--ink); text-decoration: none; }
.head-nav a + a::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; border-left: 1px solid #999; }
.head-nav a:hover { opacity: .6; }
.hero { background: #000; color: #fff; text-align: center; padding: 48px 16px 44px; }
.hero p { margin: 0; }
.hero-en { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: .06em; }
.hero-ja { margin-top: 8px !important; font-size: 13px; letter-spacing: .4em; }
.hero-lead { max-width: 34em; margin: 20px auto 0 !important; font-size: 14px; line-height: 1.8; }
.wrap { padding: 32px 16px 40px; }
/* 見出し：メインサイトと同じ、斜めの黒い帯 */
.section-h { position: relative; z-index: 0; margin: 40px 14px 20px; padding: 9px 20px; color: #fff; font-size: 16px; font-weight: 400; text-align: center; letter-spacing: .1em; }
.section-h::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; transform: skewX(-20deg); }
.wrap > .section-h:first-child, .wrap > .notice + .section-h { margin-top: 4px; }
.page-title { font-size: 24px; letter-spacing: .06em; }
.panel, .ticket, .event-card, .seat-scroll, .selection, .privacy { border-radius: 0; border-color: var(--line); }
.event-card { position: relative; padding: 18px 48px 18px 18px; border: 1px solid #111; transition: background .15s, color .15s; }
.event-card::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.event-card:hover { background: #000; color: #fff; }
.event-card:hover .event-meta { color: #ccc; }
.event-card:hover .tag { background: #fff; color: #000; }
.event-title { font-size: 18px; margin: 8px 0 4px; }
.tag { border-radius: 0; padding: 2px 10px; font-weight: 400; letter-spacing: .1em; background: #eee; color: #333; }
.tag-on_sale { background: #000; color: #fff; }
.tag-before { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }
.tag-paused, .tag-sales_over { background: #eee; color: #666; }
.btn { border-radius: 0; border-color: #111; letter-spacing: .1em; }
.btn-primary { background: #000; border-color: #000; color: #fff; font-weight: 700; }
.btn-primary:hover { background: #333; }
.btn:not(.btn-primary):hover { background: #000; color: #fff; }
.btn-link { color: var(--ink); }
.steps li { border-radius: 0; background: #eee; color: #777; }
.steps li.on { background: #000; color: #fff; }
.steps li.done { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea, .panel select, .panel input[type=text], .sel-list select { border-radius: 0; border-color: #bbb; }
.form input:focus, .form textarea:focus { outline: 2px solid #000; }
.req { border-radius: 0; background: #000; }
.notice { border-radius: 0; }
.hold-timer { border-radius: 0; }
.crumb a { color: var(--muted); }
.site-foot { max-width: none; margin: 40px 0 0; padding: 40px 16px 44px; background: #000; color: #fff; font-size: 12px; text-align: center; }
.site-foot a { color: #fff; }
.foot-inner { max-width: 760px; margin: 0 auto; }
.site-foot p { margin: 0 0 10px; }
.site-foot .copy { color: #bbb; font-size: 11px; letter-spacing: .1em; }
/* スマホでは座席表を広く使えるよう、ヘッダーは固定しない */
@media (max-width: 699px) { .site-head { position: static; } }
@media (max-width: 480px) {
  .site-head { padding: 0 10px; }
  .head-nav a { padding: 4px 9px; font-size: 12px; letter-spacing: 1px; }
  .hero { padding: 36px 16px 34px; }
  .hero-en { font-size: 34px; }
  .section-h { margin-left: 10px; margin-right: 10px; }
}
/* 公演ページ・予約手続き：ヘッダーは「予約の確認」だけ */
.site-head.minimal { justify-content: flex-end; }
/* 電子チラシ */
.flyer { margin: 0 0 24px; text-align: center; }
.flyer img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; box-shadow: 0 2px 16px rgba(0,0,0,.12); }
