/* すたぽん 共通の見た目（ビルド不要の素の CSS）。2026-11-09 */
:root {
  --bg: #fffaf3; --card: #ffffff; --ink: #2a2522; --sub: #6b625c; --line: #ece3d8;
  --brand: #f2662f; --brand-dark: #d4521f; --brand-weak: #fff0e8;
  --ok: #1f8a4c; --ok-weak: #e7f6ed; --bad: #c53030; --bad-weak: #fdecec; --warn: #b7791f;
  --radius: 12px; --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; }
a { color: #1f5fbf; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 48px; min-height: 70vh; }
.inline { display: inline; }

/* ヘッダー・フッター */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; }
.nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand-dark); }
.site-footer { border-top: 1px solid var(--line); color: var(--sub); font-size: 13px; padding: 20px 0; background: #fff; }

/* 部品 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.card-narrow { max-width: 440px; margin: 24px auto; }
h1 { font-size: 24px; line-height: 1.4; margin: 0 0 16px; }
h2 { font-size: 19px; margin: 0 0 12px; }
.muted { color: var(--sub); font-size: 14px; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 1px solid #c24616; background: #c24616; color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: #a83a10; border-color: #a83a10; }
.btn-sm, button.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-sub, button.btn-sub { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-sub:hover, button.btn-sub:hover { background: #faf6f1; border-color: #d9cdbf; }
button.link { background: none; border: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
button.link:hover { color: var(--brand-dark); }

/* フォーム */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--sub); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #ddd2c5; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242, 102, 47, .18); }
.is-invalid { border-color: var(--bad) !important; }
.error { color: var(--bad); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 5px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.flash.ok { background: var(--ok-weak); color: var(--ok); }
.flash.bad { background: var(--bad-weak); color: var(--bad); }
.links-under { text-align: center; font-size: 14px; margin-top: 16px; }

/* Google でログイン（2026-11-10） */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border: 1px solid #dadce0; border-radius: 999px; background: #fff; color: #3c4043; font-weight: 600; text-decoration: none; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cd; }
.or { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* パスワード欄の「目」（js/app.js が付ける） */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; border-radius: 8px; padding: 7px; color: var(--sub); cursor: pointer; line-height: 0; }
.pw-eye:hover { color: var(--ink); background: #f6efe7; }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* 主催者の画面（2026-11-10） */
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.fs { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 14px; margin: 0 0 16px; }
.fs legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.fs .check { margin: 4px 0; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin: 0; padding: 16px 20px; }
.list-item:hover { border-color: #e3c9b3; }
.item-title { font-weight: 700; font-size: 17px; }
.empty { text-align: center; padding: 40px 20px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-draft { background: #f1ede8; color: #6b625c; }
.b-published { background: var(--ok-weak); color: var(--ok); }
.b-closed { background: #eee; color: #777; }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--sub); }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions a { margin-left: 10px; }
.map { height: 380px; border-radius: 10px; border: 1px solid var(--line); z-index: 0; }
.map-sm { height: 280px; }
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.copy-row input { flex: 1; }
.geo-results { list-style: none; padding: 8px 12px; margin: 6px 0 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-height: 200px; overflow: auto; }
.geo-results li { padding: 4px 0; }
.geo-results button.link { color: #1f5fbf; text-align: left; }
.qr-preview svg { width: 200px; height: 200px; }
.danger-zone summary { cursor: pointer; color: var(--sub); }
.btn-danger, button.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover, button.btn-danger:hover { background: #a82727; border-color: #a82727; }
input[type=range] { width: 100%; accent-color: var(--brand); }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .map { height: 300px; }
  h1 { font-size: 21px; }
  .card { padding: 18px; }
  .nav { gap: 10px; font-size: 14px; }
}

/* 参加状況（2026-11-11） */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.kpi strong { font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-label { font-size: 13px; color: var(--sub); font-weight: 700; }
.kpi-sub { font-size: 13px; color: var(--sub); }
.small { font-size: 13px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #f3ede6; color: #5d554f; margin: 1px 2px 1px 0; }
nav[role=navigation] { margin-top: 12px; }

/* プラン（2026-11-11） */
.plan-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; text-decoration: none; color: inherit; font-size: 14px; }
.plan-bar:hover { border-color: #e3c9b3; }
.plan-bar .muted { margin-left: 8px; }
.plan-bar-link { color: #1f5fbf; white-space: nowrap; }
.kpi strong small { font-size: 13px; font-weight: 600; color: var(--sub); }
.table-scroll { overflow-x: auto; }
.plan-table th, .plan-table td { text-align: center; white-space: nowrap; }
.plan-table tbody th { text-align: left; font-size: 14px; color: var(--ink); white-space: normal; min-width: 150px; }
.plan-table thead th { font-size: 15px; color: var(--ink); }
.plan-table .is-current { background: var(--brand-weak); border-radius: 10px 10px 0 0; }
.plan-table .chip { display: block; margin: 4px auto 0; width: max-content; }
.plan-buy td form { display: grid; gap: 6px; justify-items: center; }
.plan-buy td .btn { white-space: nowrap; }

/* フッターの案内（2026-11-11） */
.footer-in { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.footer-in nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.footer-in nav a { color: var(--sub); text-decoration: none; }
.footer-in nav a:hover { color: var(--ink); text-decoration: underline; }

/* 集計のグラフ（2026-11-11）。色は検証済みの3色（青・橙・緑）。棒は細く・線は 2px・目盛りの線は細い実線・文字は系列の色にしない */
.viz { --vz-surface: #fff; --vz-ink: #0b0b0b; --vz-ink2: #52514e; --vz-muted: #898781; --vz-grid: #e1e0d9; --vz-axis: #c3c2b7; --vz-s1: #2a78d6; --vz-s2: #eb6834; --vz-s3: #1baf7a; color-scheme: light; margin: 0; }
.vz-title { font-weight: 700; font-size: 17px; margin: 0 0 2px; }
.vz-sub { color: var(--vz-ink2, #52514e); font-size: 13px; margin: 0 0 12px; }
.vz-frame { display: grid; grid-template-columns: 40px minmax(0, 1fr); --vz-h: 200px; }
.vz-frame.has-end { grid-template-columns: 40px minmax(0, 1fr) 74px; }
.vz-y { position: relative; height: var(--vz-h); font-size: 12px; color: var(--vz-muted); font-variant-numeric: tabular-nums; }
.vz-y span { position: absolute; right: 8px; transform: translateY(50%); line-height: 1; }
.vz-plot { position: relative; height: var(--vz-h); border-bottom: 1px solid var(--vz-axis); }
.vz-grid i { position: absolute; left: 0; right: 0; border-top: 1px solid var(--vz-grid); }
.vz-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.vz-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.vz-bar { display: block; width: min(24px, calc(100% - 2px)); background: var(--vz-s1); border-radius: 4px 4px 0 0; }
.vz-col:hover .vz-bar, .vz-col:focus-visible .vz-bar { filter: brightness(1.18); }
.vz-col:focus-visible, .vz-hit:focus-visible, .vz-row:focus-visible { box-shadow: inset 0 0 0 2px #1f5fbf; border-radius: 4px; }
.vz-val { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--vz-ink); white-space: nowrap; }
.vz-x { grid-column: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); font-size: 12px; color: var(--vz-muted); margin-top: 6px; min-height: 18px; }
.vz-x span { display: flex; justify-content: center; }
.vz-x b { font-weight: 400; white-space: nowrap; }
.vz-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vz-svg polyline { fill: none; stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.vz-svg .s1 { stroke: var(--vz-s1); } .vz-svg .s2 { stroke: var(--vz-s2); } .vz-svg .s3 { stroke: var(--vz-s3); }
.vz-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, 50%); box-shadow: 0 0 0 2px var(--vz-surface); }
.vz-dot.s1 { background: var(--vz-s1); } .vz-dot.s2 { background: var(--vz-s2); } .vz-dot.s3 { background: var(--vz-s3); }
.vz-hit { position: absolute; top: 0; bottom: 0; outline: none; }
.vz-hit::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--vz-axis); opacity: 0; }
.vz-hit:hover::before, .vz-hit:focus-visible::before { opacity: 1; }
.vz-end { position: absolute; left: calc(100% + 8px); transform: translateY(50%); font-size: 12px; color: var(--vz-ink2); white-space: nowrap; line-height: 1; }
.vz-legend { list-style: none; display: flex; gap: 6px 16px; flex-wrap: wrap; padding: 0; margin: 0 0 10px; font-size: 13px; color: var(--vz-ink2); }
.vz-key { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--vz-muted, #898781); border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.vz-key.s1 { border-color: #2a78d6; } .vz-key.s2 { border-color: #eb6834; } .vz-key.s3 { border-color: #1baf7a; }
.vz-rows { display: grid; gap: 8px; }
.vz-row { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; outline: none; }
.vz-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vz-ink); }
.vz-track { display: block; height: 14px; }
.vz-hbar { display: block; height: 100%; background: var(--vz-s1); border-radius: 0 4px 4px 0; }
.vz-row:hover .vz-hbar, .vz-row:focus-visible .vz-hbar { filter: brightness(1.18); }
.vz-row .num { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 2.6em; text-align: right; color: var(--vz-ink); }
.vz-table { margin-top: 10px; font-size: 14px; }
.vz-table summary { cursor: pointer; color: var(--vz-ink2); font-size: 13px; padding: 6px 0; }
.vz-table .table { margin-top: 4px; max-width: 420px; }
.vz-table .table td, .vz-table .table th { padding: 5px 8px; }
.vz-flow td { padding: 7px 6px; } .vz-flow .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.vz-tip { position: fixed; z-index: 60; pointer-events: none; background: #fff; color: #0b0b0b; border: 1px solid rgba(11, 11, 11, .1); border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .14); padding: 8px 10px; font-size: 13px; max-width: 240px; }
.vz-tip .t { color: #52514e; font-size: 12px; margin-bottom: 4px; }
.vz-tip .r { display: flex; align-items: center; gap: 2px 6px; }
.vz-tip .r b { font-variant-numeric: tabular-nums; }
.vz-tip .r span { color: #52514e; }
.viz-grid2 { gap: 0 20px; }
.viz-grid2 > .card { min-width: 0; }
@media (max-width: 640px) { .vz-frame.has-end { grid-template-columns: 40px minmax(0, 1fr); } .vz-end { display: none; } }

/* スマホの幅（2026-11-11）: ヘッダーのメニューは2段目に。表は横に動かせる。グラフの下の目盛りは1つおき */
.logo { white-space: nowrap; }
.nav a, .nav button.link { white-space: nowrap; }
@media (max-width: 640px) {
  .header-in { height: auto; min-height: 56px; flex-wrap: wrap; gap: 2px 12px; padding-top: 8px; padding-bottom: 6px; }
  .nav { flex-basis: 100%; overflow-x: auto; gap: 16px; padding-bottom: 4px; }
  .table-scroll .table { min-width: 480px; }
  .vz-x b.alt { display: none; }
  .nav-hide-sm { display: none; }
  .page-head .row { gap: 6px; }
}

/* 箇条書き（アカウントの削除の説明など） */
.plain-list { margin: 0; padding-left: 1.3em; }
.plain-list li { margin: 8px 0; }

/* 2026-11-12: ボタンの色は、白い字が読める濃さ（#c24616・コントラスト 5.0:1）。読み上げ用の部品（ログイン・主催者の画面でも使う） */
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
