/* 大会しおり — 晴れの日の大会プログラム（設計: docs/DESIGN.md） */
:root {
  color-scheme: light;
  --bg: #fffbf3;
  --bg-2: #fff4df;
  --card: #ffffff;
  --ink: #14284b;
  --ink-2: #4a5878;
  --ink-3: #626c86;
  --line: #e9e1d0;
  --line-2: #d8cdb6;
  --sky: #1769c4;
  --sky-deep: #0f4f9a;
  --sky-soft: #e7f1fc;
  --yellow: #ffc83d;
  --yellow-soft: #fff3c9;
  --green: #16a34a;
  --green-ink: #0b6b34;
  --green-soft: #e3f6ea;
  --red: #c62828;
  --red-soft: #fdecea;
  --amber: #f2a20d;
  --amber-soft: #fff1d6;
  --shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 6px 18px rgba(20, 40, 75, .07);
  --shadow-lg: 0 2px 4px rgba(20, 40, 75, .06), 0 16px 40px rgba(20, 40, 75, .12);
  --r: 14px;
  --r-sm: 10px;
  --gutter: 16px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "Avenir Next", "Roboto", "Hiragino Sans", system-ui, sans-serif;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='9' fill='%231769C4'/%3E%3Cpath d='M6.5 9h5v14h-5M11.5 16h3M25.5 9h-5v14h5M20.5 16h-3' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='16' r='3.2' fill='%23FFC83D'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.75;
  overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.sheet { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: .01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 800; margin: 32px 0 12px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 6px; height: 1.15em; border-radius: 3px; background: var(--yellow); flex: none; }
h3 { font-size: 16px; font-weight: 800; margin: 18px 0 6px; }
p { margin: 8px 0; }
small, .small { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.hidden { display: none !important; }
.mk { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* ヘッダー（ロゴはテキスト＋マーク。名前が変わっても崩れない） */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 16px; letter-spacing: .02em; line-height: 1.3; min-height: 44px; }
.brand::before { content: ""; width: 30px; height: 30px; flex: none; background: var(--mark) center / contain no-repeat; }
.hdr nav { display: flex; align-items: center; gap: 4px; }
.hdr nav a, .lp-hdr nav a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--sky-deep); white-space: nowrap; }
.role { font-size: 12.5px; font-weight: 800; color: var(--ink); background: var(--yellow); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* ボタン・入力 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 20px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.3; text-align: center;
  box-shadow: 0 1px 0 rgba(20, 40, 75, .06); transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.primary { background: var(--sky); border-color: var(--sky); color: #fff; box-shadow: 0 3px 0 var(--sky-deep); }
.btn.primary:active { box-shadow: 0 1px 0 var(--sky-deep); transform: translateY(2px); }
.btn.cheer { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 #d9a21c; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 3px 0 #8f1c1c; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: 0 3px 0 #b57700; }
.btn.line { background: #06c755; border-color: #06c755; color: #fff; }
.btn.line::before { content: ""; width: 20px; height: 20px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3C6.5 3 2 6.6 2 11c0 4 3.5 7.3 8.3 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5s5.9-3.5 8-6C21.4 14.3 22 12.7 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 48px; padding: 8px 14px; font-size: 14.5px; }
.btn.ghost { background: transparent; border-color: var(--line-2); font-weight: 700; box-shadow: none; }
.btn.big { min-height: 60px; font-size: 18px; padding: 14px 28px; border-radius: 14px; }
.btn .arr { font-weight: 400; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1 1 auto; }
label { display: block; font-weight: 800; margin: 16px 0 6px; }
label .hint { font-weight: 400; font-size: 13px; color: var(--ink-2); margin-left: 4px; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; min-height: 52px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314284B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat; padding-right: 40px; }
textarea { min-height: 168px; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: #8d95a8; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8cc0f2; outline-offset: 2px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 14px; font-weight: 400; margin: 0; cursor: pointer; background: #fff; }
.choice input { margin-top: 4px; width: 22px; height: 22px; flex: none; accent-color: var(--sky); }
.choice b { display: block; font-size: 16.5px; }
.choice:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); box-shadow: inset 0 0 0 1px var(--sky); }
.err { color: var(--red) !important; font-weight: 700; }

/* カード・注意 */
.card, .box { background: var(--card); border-radius: var(--r); padding: 18px; margin: 14px 0; box-shadow: var(--shadow); border: 1px solid rgba(20, 40, 75, .04); }
.box.soft { box-shadow: none; border: 1.5px solid var(--line); background: #fffdf8; }
.note { background: var(--sky-soft); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin: 12px 0; color: var(--ink); }
.warn { background: var(--yellow-soft); border: 1.5px solid #f3d27a; border-radius: 12px; padding: 12px 14px 12px 46px; font-size: 14.5px; margin: 12px 0; position: relative; }
.warn::before { content: ""; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2314284B'/%3E%3Cpath d='M12 6.5v7' stroke='%23FFC83D' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.6' fill='%23FFC83D'/%3E%3C/svg%3E") center / contain no-repeat; }
.urlbox { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; background: var(--bg); border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 12px; word-break: break-all; user-select: all; color: var(--ink); line-height: 1.55; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; line-height: 1.6; white-space: nowrap; background: #eef0f4; color: var(--ink-2); vertical-align: middle; }
.tag.live { background: var(--green-soft); color: var(--green-ink); }
.tag.live::before, .live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 1.3s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
.tag.done { background: #eef0f4; color: var(--ink-2); }
.tag.todo { background: var(--sky-soft); color: var(--sky-deep); }
.tag.wd { background: #f1eee8; color: var(--ink-2); border: 1px dashed var(--line-2); }
.tag.paid { background: var(--yellow-soft); color: #6b4d00; }
.tag.wait { background: var(--sky-soft); color: var(--sky-deep); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); opacity: 1; } 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); opacity: .75; } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); opacity: 1; } }

/* チームの色チップ */
.chip { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--ink-3)); flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(20, 40, 75, .12); }
.tn { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

/* お知らせ帯（中止だけは美しさより緊急性） */
#bands:empty { display: none; }
.band { position: relative; padding: 16px var(--gutter); font-weight: 800; line-height: 1.45; }
.band-in::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.band .when { display: block; font-weight: 600; font-size: 14px; margin-top: 4px; }
.band-in { max-width: 648px; margin: 0 auto; position: relative; padding-left: 46px; min-height: 34px; }
.band.cancel { background: var(--red); color: #fff; font-size: 22px; padding-top: 20px; padding-bottom: 20px; border-bottom: 6px solid #8f1c1c; }
.band.cancel .band-in::before { top: 0; width: 36px; height: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='white'/%3E%3Cpath d='M18 9v11' stroke='%23C62828' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='26' r='2.6' fill='%23C62828'/%3E%3C/svg%3E"); }
.band.cancel .when { color: #ffe3e0; }
.band.delay { background: var(--amber); color: var(--ink); font-size: 18px; }
.band.delay .band-in::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='15' fill='white' stroke='%2314284B' stroke-width='2.5'/%3E%3Cpath d='M18 10v8.5l5.5 3.5' fill='none' stroke='%2314284B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.band.info { background: var(--sky-soft); color: var(--ink); font-size: 16px; border-bottom: 2px solid #c9def5; }
.band.info .band-in::before { width: 30px; height: 30px; top: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='%231769C4'/%3E%3Ccircle cx='18' cy='11' r='2.4' fill='white'/%3E%3Cpath d='M18 16v10' stroke='white' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.band.info .when { color: var(--ink-2); }

/* 大会の表紙の帯（プログラムの表紙） */
.cover {
  position: relative; overflow: hidden; color: #fff; border-radius: 0 0 22px 22px;
  margin: 0 calc(-1 * var(--gutter)); padding: 22px var(--gutter) 24px;
  background: linear-gradient(135deg, #1a73d4 0%, #1769c4 45%, #11549f 100%);
}
.cover::after { /* コートのライン */
  content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 26px rgba(255, 255, 255, .04), inset 0 0 0 40px rgba(255, 255, 255, .04); pointer-events: none;
}
.cover .ribbon { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--ink); background: var(--yellow); padding: 3px 14px 3px 10px; border-radius: 4px 999px 999px 4px; }
.cover .ribbon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.cover h1 { position: relative; z-index: 1; font-size: 27px; font-weight: 900; margin: 10px 0 6px; line-height: 1.32; text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.cover .meta { position: relative; z-index: 1; font-size: 14.5px; color: #e4efff; font-weight: 600; }
.cover .brandline { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.cover .brandline .brand { color: #fff; font-size: 14px; min-height: 0; }
.cover .brandline .brand::before { width: 24px; height: 24px; filter: drop-shadow(0 0 0 #fff); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); border-radius: 7px; }
.thead { padding: 14px 0 6px; }
.thead .meta { color: var(--ink-2); font-size: 14px; }

/* 次の試合（保護者画面の主役） */
.next { background: var(--card); border-radius: 18px; padding: 18px; margin: -14px 0 18px; position: relative; z-index: 2; box-shadow: var(--shadow-lg); border-top: 5px solid var(--yellow); }
.next .lbl { font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.next .pick { display: grid; gap: 6px; }
.nx { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.nx-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: 14px; color: var(--sky-deep); }
.nx-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 6px; }
.nx-time .clock { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 48px; font-weight: 800; line-height: 1.05; letter-spacing: .01em; color: var(--ink); }
.nx-time .clock small { font-size: 22px; color: var(--ink); font-family: var(--font); font-weight: 800; margin-left: 2px; }
.nx-time .court { font-size: 22px; font-weight: 900; background: var(--ink); color: #fff; border-radius: 10px; padding: 2px 14px; line-height: 1.5; }
.nx-vs { font-size: 17px; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.nx-vs .sub { font-size: 13.5px; font-weight: 600; color: var(--ink-2); width: 100%; }
.nx-vs .vs { font-family: var(--num); color: var(--ink-3); font-size: 14px; font-weight: 800; }
.nx-msg { font-size: 19px; font-weight: 800; }
.nx-msg.stop { color: var(--red); }
.nx-quiet { font-size: 15px; color: var(--ink-2); }
.nx a.small { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--sky); }
.next .big { font-size: 20px; font-weight: 800; }

/* 時間割（試合の並び） */
.panel-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 16px 12px; margin: 10px 0; }
.slot { margin: 0; }
.slot + .slot { border-top: 1px solid var(--line); }
.slot-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 4px; }
.slot-h > span { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; color: var(--sky-deep); background: var(--sky-soft); padding: 1px 12px; border-radius: 999px; }
.m { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 10px 0; border-radius: 10px; }
.m + .m { border-top: 1px dashed var(--line); }
.m .info { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.m .ta { text-align: left; font-weight: 800; font-size: 15.5px; line-height: 1.4; }
.m .tb { text-align: right; font-weight: 800; font-size: 15.5px; line-height: 1.4; display: flex; justify-content: flex-end; }
.m .tb .tn { flex-direction: row-reverse; }
.m .sc { text-align: center; }
.m .tbd { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.m .win { color: var(--ink); text-decoration: underline 3px var(--yellow); text-underline-offset: 5px; text-decoration-skip-ink: none; }
.m.mine .win { text-decoration-color: #e0a400; }
.m.mine { background: linear-gradient(90deg, var(--yellow-soft), #fffaf0); box-shadow: inset 4px 0 0 var(--yellow); padding-left: 12px; padding-right: 8px; }
.wd { text-decoration: line-through; color: var(--ink-3); }

/* スコアボード */
.score { display: inline-flex; align-items: center; gap: 6px; font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; line-height: 1; background: var(--ink); color: #fff; padding: 7px 10px; border-radius: 9px; min-width: 84px; justify-content: center; white-space: nowrap; }
.score i { font-style: normal; opacity: .55; font-size: 15px; }
.score.live { background: #0d3d24; color: #fff; box-shadow: 0 0 0 2px var(--green); }
.vsmark { display: inline-block; min-width: 56px; font-family: var(--num); font-weight: 800; font-size: 14px; color: var(--ink-3); letter-spacing: .06em; }
.wo { font-size: 13px; font-weight: 800; color: var(--ink-2); background: #eef0f4; border-radius: 8px; padding: 4px 10px; }

/* 表（順位表など） */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { padding: 10px 8px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; }
tbody th { background: #fbf7ee; font-weight: 800; text-align: left; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }
td.name { text-align: left; white-space: normal; min-width: 8em; font-weight: 800; }
td.rk { width: 44px; }
.rk b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-family: var(--num); font-size: 15px; background: #eef0f4; color: var(--ink); }
.rk b[data-r="1"] { background: var(--yellow); }
.rk b[data-r="2"] { background: #dfe6ef; }
.rk b[data-r="3"] { background: #f2dcc4; }
td.pts { font-family: var(--num); font-size: 17px; font-weight: 800; }
tr.mine td { background: var(--yellow-soft); }

/* タブ（管理画面） */
.tabs { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px 0; margin: 4px calc(-1 * var(--gutter)) 0; padding-left: var(--gutter); padding-right: var(--gutter); background: rgba(255, 251, 243, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tabs button { font: inherit; font-size: 12.5px; font-weight: 800; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 2px; color: var(--ink-2); cursor: pointer; min-height: 52px; line-height: 1.3; box-shadow: 0 1px 0 rgba(20, 40, 75, .04); }
.tabs button[aria-selected=true] { color: #fff; background: var(--ink); border-color: var(--ink); }
.tabs button[data-tab=notice][aria-selected=false] { color: var(--ink); border-color: #f0b3ad; }
.panel { padding-top: 6px; }

/* 管理の試合カード */
.am { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; margin: 10px 0; border: 1.5px solid transparent; }
.am.is-live { border-color: var(--green); }
.am.is-done { background: #fcfaf5; box-shadow: none; border-color: var(--line); }
.am .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); gap: 8px; font-weight: 700; }
.am .teams { margin: 8px 0 12px; }
.am .tr { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 10px; padding: 5px 0; }
.am .tr .n { font-weight: 800; font-size: 16.5px; line-height: 1.35; }
.am .tr input { text-align: center; font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 800; padding: 6px 4px; min-height: 58px; border-width: 2px; border-color: #cfd6e2; background: #f8fafd; }
.am .tr input:focus { background: #fff; border-color: var(--sky); }
.am .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am .acts .btn { width: 100%; }
.entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1.5px solid #f0b3ad; border-radius: 14px; padding: 10px 10px 10px 16px; margin: 10px 0 4px; }
.entry b { font-size: 14.5px; }
.entry .small { display: block; }
.entry .btn { flex: none; }
.danger-zone { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; margin: 14px 0; border-top: 6px solid var(--red); }
.danger-zone h2 { margin-top: 0; }
.danger-zone h2::before { background: var(--red); }
.amber-zone { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; margin: 14px 0; border-top: 6px solid var(--amber); }
.amber-zone h2 { margin-top: 0; }
.amber-zone h2::before { background: var(--amber); }
.active-n { border-radius: 14px; padding: 14px; margin: 10px 0; background: #fff; border: 2px solid var(--line); }
.active-n.cancel { border-color: var(--red); background: var(--red-soft); }
.active-n.delay, .active-n.postpone { border-color: var(--amber); background: var(--amber-soft); }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.team-row:last-child { border-bottom: 0; }

/* 入場券（料金・有料案内・完成カード） */
.ticket { position: relative; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ticket .stub { position: relative; padding: 18px 20px; border-top: 2px dashed var(--line-2); }
.ticket .stub::before, .ticket .stub::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket .stub::before { left: -12px; }
.ticket .stub::after { right: -12px; }
.ticket .head { padding: 20px 20px 18px; }
.ticket .kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--sky-deep); }
.offer { margin: 14px 0; }
.offer .head { background: linear-gradient(135deg, var(--yellow-soft), #fff); }
.offer h3 { margin: 4px 0 8px; font-size: 18px; }
.offer ul { margin: 6px 0 0; padding: 0; list-style: none; }
.offer li { position: relative; padding: 4px 0 4px 28px; font-size: 14.5px; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%2314284B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* 作成の進み具合 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 8px; position: relative; }
.steps span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-3); text-align: center; }
.steps span::before { content: attr(data-s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); font-family: var(--num); font-size: 16px; color: var(--ink-3); position: relative; z-index: 1; }
.steps span::after { content: ""; position: absolute; top: 17px; left: calc(50% + 18px); width: calc(100% - 36px); height: 3px; background: var(--line); border-radius: 2px; }
.steps span:last-child::after { display: none; }
.steps span.on { color: var(--ink); }
.steps span.on::before { background: var(--sky); border-color: var(--sky); color: #fff; box-shadow: 0 0 0 5px var(--sky-soft); }
.steps span.done { color: var(--sky-deep); }
.steps span.done::before { content: "✓"; background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.steps span.done::after { background: var(--yellow); }
.form-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 6px 18px 20px; margin: 12px 0; }
.form-card .actions { margin-top: 20px; }
.est { background: var(--sky-soft); border-radius: 12px; padding: 12px 14px; margin: 18px 0 6px; font-size: 15px; }
.est b { font-family: var(--num); font-size: 18px; }
.page-title { margin: 8px 0 2px; font-size: 26px; font-weight: 900; }
.page-lead { color: var(--ink-2); margin: 2px 0 6px; font-size: 15px; }

/* 完成（入場券・認定証） */
.done-hero { text-align: center; padding: 18px 0 6px; }
.done-hero .seal { width: 76px; height: 76px; margin: 0 auto 8px; display: block; }
.done-hero h1 { font-size: 28px; font-weight: 900; }
.done-hero .sub { color: var(--ink-2); font-weight: 700; }
.pass { margin: 16px 0; }
.pass .head { display: flex; gap: 14px; align-items: flex-start; }
.pass .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.pass.pub .ic { background: var(--sky-soft); }
.pass.key .ic { background: var(--yellow-soft); }
.pass h3 { margin: 0; font-size: 17px; }
.pass .stub .row { margin-top: 10px; }
.pass.key { border: 2.5px solid var(--yellow); }
.pass.key .stub::before { left: -14.5px; }
.pass.key .stub::after { right: -14.5px; }

/* LP */
.lp { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lp-hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; }
.lp-font { font-family: "Zen Kaku Gothic New", var(--font); }
.hero { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; padding: 18px 0 40px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.08fr .92fr; gap: 40px; padding: 36px 0 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--ink); background: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; box-shadow: var(--shadow); }
.eyebrow::before { content: ""; width: 20px; height: 20px; background: var(--mark) center / contain no-repeat; }
.hero h1 { font-size: clamp(36px, 9vw, 60px); font-weight: 900; line-height: 1.22; margin: 18px 0 16px; letter-spacing: .01em; }
.hero h1 .mk { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%); }
.hero .lead { font-size: 17px; color: var(--ink-2); max-width: 32em; }
.vows { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.vows li { font-weight: 800; font-size: 14.5px; background: var(--sky-soft); color: var(--sky-deep); border-radius: 999px; padding: 6px 14px; }
.cta-box { display: grid; gap: 8px; max-width: 420px; }
.cta-box .small { text-align: center; }
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* LP: スマホ画面の見本 */
.mock-wrap { position: relative; display: grid; justify-items: center; gap: 14px; }
.mock-wrap::before { content: ""; position: absolute; width: 360px; height: 360px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, #fff1c4 0%, rgba(255, 241, 196, 0) 68%); top: 40px; z-index: -1; }
.phone { width: 320px; max-width: 100%; border-radius: 42px; background: var(--ink); padding: 11px; box-shadow: 0 30px 60px rgba(20, 40, 75, .22), 0 6px 14px rgba(20, 40, 75, .12); position: relative; }
.phone .scr { position: relative; border-radius: 32px; overflow: hidden; background: var(--bg); height: 500px; font-size: 12px; line-height: 1.5; }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: var(--ink); z-index: 6; }
.sample-tag { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 7; background: #fff; color: var(--ink-2); font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.mk-cover { background: linear-gradient(135deg, #1a73d4, #11549f); color: #fff; padding: 40px 16px 26px; border-radius: 0 0 18px 18px; position: relative; overflow: hidden; }
.mk-cover::after { content: ""; position: absolute; right: -40px; top: -30px; width: 150px; height: 150px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .16); }
.mk-cover .rb { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 9.5px; padding: 1px 9px; border-radius: 3px 999px 999px 3px; letter-spacing: .06em; }
.mk-cover b { display: block; font-size: 18px; font-weight: 900; margin-top: 4px; }
.mk-cover span.m2 { font-size: 10.5px; color: #e4efff; }
.mk-next { background: #fff; margin: -14px 12px 10px; border-radius: 14px; padding: 12px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--yellow); position: relative; z-index: 2; }
.mk-next .l { font-size: 10.5px; font-weight: 800; color: var(--sky-deep); }
.mk-next .t { display: flex; align-items: baseline; gap: 8px; margin: 2px 0; }
.mk-next .t .c { font-family: var(--num); font-size: 34px; font-weight: 800; line-height: 1.05; }
.mk-next .t .ct { background: var(--ink); color: #fff; font-weight: 900; border-radius: 7px; padding: 0 9px; font-size: 14px; }
.mk-next .v { font-weight: 800; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.mk-list { background: #fff; margin: 0 12px; border-radius: 14px; padding: 4px 12px; box-shadow: var(--shadow); }
.mk-list .hh { display: flex; align-items: center; gap: 6px; }
.mk-list .hh .mk-live { margin-top: 6px; }
.mk-list .h { font-family: var(--num); font-size: 10.5px; font-weight: 800; color: var(--sky-deep); background: var(--sky-soft); border-radius: 999px; padding: 0 9px; display: inline-block; margin: 8px 0 2px; }
.mk-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 5px; padding: 7px 0; font-weight: 800; font-size: 10.5px; white-space: nowrap; letter-spacing: -.01em; }
.mk-row + .mk-row { border-top: 1px dashed var(--line); }
.mk-row .r { text-align: right; justify-content: flex-end; }
.mk-row .tn { gap: 5px; }
.mk-row .r .tn { flex-direction: row-reverse; }
.mk-row .chip { width: 8px; height: 8px; }
.mk-sc { position: relative; display: grid; place-items: center; min-width: 54px; height: 26px; }
.mk-sc > * { grid-area: 1 / 1; }
.mk-sc .score { font-size: 13px; padding: 5px 6px; min-width: 52px; border-radius: 7px; gap: 4px; }
.mk-sc .vsmark { min-width: 0; font-size: 11px; }
.mk-live { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 800; color: var(--green-ink); background: var(--green-soft); border-radius: 999px; padding: 0 7px; }
.mk-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.3s infinite; }
.mk-band { position: absolute; left: 0; right: 0; top: 0; z-index: 5; background: var(--red); color: #fff; padding: 40px 14px 14px 52px; font-weight: 800; font-size: 14px; line-height: 1.4; border-bottom: 4px solid #8f1c1c; box-shadow: 0 10px 24px rgba(198, 40, 40, .3); }
.mk-band::before { content: ""; position: absolute; left: 14px; top: 42px; width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='white'/%3E%3Cpath d='M18 9v11' stroke='%23C62828' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='26' r='2.6' fill='%23C62828'/%3E%3C/svg%3E") center / contain no-repeat; }
.mk-band small { display: block; color: #ffe3e0; font-size: 10.5px; font-weight: 600; }
.mk-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.mk-steps li { font-size: 12.5px; font-weight: 800; color: var(--ink-2); background: #fff; border-radius: 999px; padding: 4px 12px; box-shadow: var(--shadow); border: 2px solid transparent; }
/* 見本の切り替え（12秒で1周: 通常 → 点数が入る → 中止の赤帯） */
.anim .s-vs { animation: mkVs 12s infinite; }
.anim .s-live { animation: mkLive 12s infinite; }
.anim .mk-band { animation: mkBand 12s infinite; }
.anim .st1 { animation: mkS1 12s infinite; }
.anim .st2 { animation: mkS2 12s infinite; }
.anim .st3 { animation: mkS3 12s infinite; }
@keyframes mkVs { 0%, 30% { opacity: 1; } 33%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mkLive { 0%, 30% { opacity: 0; transform: scale(.8); } 34%, 97% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes mkBand { 0%, 63% { transform: translateY(-110%); } 68%, 95% { transform: translateY(0); } 100% { transform: translateY(-110%); } }
@keyframes mkS1 { 0%, 30% { border-color: var(--sky); color: var(--ink); } 33%, 100% { border-color: transparent; color: var(--ink-2); } }
@keyframes mkS2 { 0%, 31% { border-color: transparent; color: var(--ink-2); } 34%, 63% { border-color: var(--green); color: var(--ink); } 66%, 100% { border-color: transparent; color: var(--ink-2); } }
@keyframes mkS3 { 0%, 64% { border-color: transparent; color: var(--ink-2); } 67%, 97% { border-color: var(--red); color: var(--ink); } 100% { border-color: transparent; color: var(--ink-2); } }

/* LP: セクション共通 */
.sec { padding: 56px 0; }
.sec-h { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.sec-h .kick { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--sky-deep); }
.sec-h h2 { display: block; font-size: clamp(25px, 5.6vw, 36px); font-weight: 900; margin: 6px 0 10px; line-height: 1.35; }
.sec-h h2::before { display: none; }
.sec-h p { color: var(--ink-2); }
.band-bg { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* LP: 雨の朝6時（前後の対比） */
.story { display: grid; gap: 18px; }
@media (min-width: 860px) { .story { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.story .side { border-radius: 20px; padding: 22px; position: relative; }
.story .before { background: #eef1f6; color: var(--ink); }
.story .after { background: #fff; box-shadow: var(--shadow-lg); border: 2px solid var(--sky); }
.story .tl { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; border-radius: 6px; padding: 2px 10px; }
.story .before .tl { background: var(--ink-2); color: #fff; }
.story .after .tl { background: var(--sky); color: #fff; }
.story h3 { font-size: 21px; font-weight: 900; margin: 10px 0 12px; }
.story .arrow { display: grid; place-items: center; }
.story .arrow span { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: var(--shadow); }
@media (max-width: 859px) { .story .arrow span { transform: rotate(90deg); } }
.bubbles { display: grid; gap: 8px; margin: 4px 0 16px; }
.bubble { justify-self: start; background: #fff; border-radius: 4px 16px 16px 16px; padding: 7px 13px; font-size: 14.5px; font-weight: 700; box-shadow: 0 1px 2px rgba(20, 40, 75, .08); max-width: 92%; }
.bubble:nth-child(2n) { justify-self: end; border-radius: 16px 4px 16px 16px; }
.bubble .who { display: block; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.unread { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.unread b { background: var(--ink-2); color: #fff; border-radius: 999px; padding: 0 9px; font-family: var(--num); }
.pains { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pains li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); }
.pains li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #a9b1c2; }
.urlchip { display: flex; align-items: center; gap: 10px; background: var(--sky-soft); border-radius: 14px; padding: 12px 14px; font-weight: 800; font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--sky-deep); word-break: break-all; }
.urlchip svg { flex: none; }
.mini-band { margin: 12px 0; background: var(--red); color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.mini-band small { display: block; color: #ffe3e0; font-weight: 600; font-size: 12px; }
.gains { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gains li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 700; }
.gains li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%2314284B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* LP: 3つの約束 */
.promises { display: grid; gap: 16px; }
@media (min-width: 860px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { background: #fff; border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.promise .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--sky-soft); display: grid; place-items: center; margin-bottom: 12px; }
.promise b { display: block; font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.promise p { color: var(--ink-2); margin: 0; }
.promise .no { position: absolute; right: 16px; top: 10px; font-family: var(--num); font-size: 44px; font-weight: 800; color: #f2ecdf; line-height: 1; }

/* LP: 3ステップ（ゼッケン） */
.howto { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: h; }
@media (min-width: 860px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.howto li { counter-increment: h; background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); position: relative; }
.bib { position: relative; width: 64px; height: 56px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 12px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .06); }
.bib::before { content: counter(h); font-family: var(--num); font-size: 30px; font-weight: 800; color: var(--ink); }
.bib::after { content: ""; position: absolute; top: 6px; left: 8px; right: 8px; height: 6px; background: radial-gradient(circle, rgba(20, 40, 75, .35) 2.5px, transparent 3px) left center / 8px 6px no-repeat, radial-gradient(circle, rgba(20, 40, 75, .35) 2.5px, transparent 3px) right center / 8px 6px no-repeat; }
.howto .small { display: block; }
.howto b { display: block; font-size: 18px; font-weight: 900; margin-bottom: 4px; }

/* LP: 無料・有料の入場券 */
.passes { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .passes { grid-template-columns: 1fr 1fr; align-items: start; } }
.pp .head { padding: 22px 22px 18px; }
.pp .kind { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pp .kind b { font-size: 20px; font-weight: 900; }
.pp .price { font-family: var(--num); font-size: 44px; font-weight: 800; line-height: 1.1; margin: 8px 0 2px; }
.pp .price small { font-family: var(--font); font-size: 15px; color: var(--ink-2); font-weight: 700; margin-left: 4px; }
.pp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pp li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 700; }
.pp li::before { content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%231769C4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 21px no-repeat; }
.pp.paid { border: 3px solid var(--yellow); }
.band-bg .ticket .stub::before, .band-bg .ticket .stub::after { background: #fff; }
.ticket[style*=border] .stub::before, .pp.paid .stub::before { left: -15px; }
.pp.paid .stub::after { right: -15px; }
.pp.paid .head { background: linear-gradient(135deg, #fff6d8 0%, #fff 70%); }
.pp.paid li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%2314284B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pp .plus { font-size: 13.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.pp .serial { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .14em; }
.pp .stub p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* LP: FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 0 18px; }
summary { font-weight: 800; cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px; list-style: none; padding: 12px 0; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q"; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--sky-soft); color: var(--sky-deep); font-family: var(--num); display: grid; place-items: center; font-size: 15px; }
summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--ink-3); flex: none; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px 40px; color: var(--ink-2); }

/* LP: 最後のCTA */
.final { position: relative; overflow: hidden; border-radius: 28px; color: #fff; text-align: center; padding: 48px 22px; background: linear-gradient(135deg, #1a73d4 0%, #1769c4 50%, #11549f 100%); margin: 24px 0 8px; }
.final h2 { display: block; font-size: clamp(24px, 5.4vw, 36px); font-weight: 900; margin: 0 0 10px; line-height: 1.4; }
.final h2::before { display: none; }
.final p { color: #e4efff; margin: 0 auto 22px; max-width: 34em; }
.final .btn { max-width: 380px; margin: 0 auto; }
.final svg.deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.final > *:not(svg) { position: relative; }

/* フッター */
.foot { margin-top: 40px; padding: 22px 0 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.foot a { margin-right: 14px; color: var(--ink-2); display: inline-block; padding: 6px 0; }
.foot .brand { font-size: 14px; margin-bottom: 6px; }
.made-with { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; margin-top: 28px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.made-with::before { content: ""; width: 32px; height: 32px; flex: none; background: var(--mark) center / contain no-repeat; }
.made-with a { font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 700; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.legal { font-size: 15px; }
.legal h2 { font-size: 16.5px; }
.legal .doc { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 6px 20px 20px; margin-top: 12px; }
.updated { font-size: 12.5px; color: var(--ink-3); }
.history { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 8px 16px; margin: 8px 0; list-style: none; }
.history li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.history li:last-child { border-bottom: 0; }
.share-row { margin-top: 24px; }
.upd { text-align: center; }
.empty { text-align: center; padding: 28px 16px; }
.empty .big-ic { width: 72px; height: 72px; margin: 0 auto 10px; display: block; }

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim .s-vs { opacity: 0; }
  .anim .s-live { opacity: 1; }
  .anim .mk-band { transform: translateY(-110%); }
}

/* 印刷（本部掲示用 A4・白黒プリンタでも読める） */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 10.5pt; color: #000; }
  .sheet { max-width: none; padding: 0; }
  .no-print, .hdr, .tabs, .btn, .made-with, .next, .toast, .brandline, .ribbon { display: none !important; }
  .print-only { display: block; }
  .cover { background: none !important; color: #000; border: 2pt solid #000; border-radius: 0; margin: 0 0 8pt; padding: 8pt 10pt; }
  .cover::after { display: none; }
  .cover h1 { font-size: 18pt; margin: 0; text-shadow: none; }
  .cover .meta { color: #000; }
  .band { background: #fff !important; color: #000 !important; border: 3pt solid #000; padding: 6pt 8pt; margin: 0 0 8pt; font-size: 14pt; }
  .band-in::before { display: none; }
  .band-in { padding-left: 0; }
  .band .when { color: #000 !important; }
  .band.cancel { font-size: 18pt; border: 4pt solid #000 !important; }
  .band { border-color: #000 !important; }
  .band.cancel::after { content: "【中止】"; position: absolute; right: 8pt; top: 6pt; }
  .panel-card, .tbl-wrap, .history, .card, .box { box-shadow: none !important; border: 1px solid #000; border-radius: 0; }
  .m { padding: 3pt 0; break-inside: avoid; }
  .m.mine { background: none; box-shadow: none; padding-left: 0; }
  .m.mine .ta, .m.mine .tb { text-decoration: underline; }
  .slot { break-inside: avoid; }
  .slot-h > span { background: none; color: #000; border: 1px solid #000; }
  .score, .score.live { background: none; color: #000; border: 1.5pt solid #000; box-shadow: none; }
  .chip { display: none; }
  .m .win { text-decoration-color: #000; }
  thead th { background: #fff; color: #000; border-bottom: 2pt solid #000; }
  th, td { padding: 3pt 4pt; border-bottom: 1px solid #000; }
  tr.mine td { background: none; font-weight: 900; }
  .rk b { background: none !important; border: 1px solid #000; }
  h2 { margin-top: 10pt; }
  h2::before { background: #000; }
  .tag { background: none !important; border: 1px solid #000; color: #000 !important; }
  .tag.live::before { display: none; }
  a { color: inherit; text-decoration: none; }
}
.panel-card:empty { display: none; }

@media (max-width: 520px) {
  .panel-card { padding: 4px 12px 10px; }
  .m { gap: 4px 6px; }
  .m .ta, .m .tb { font-size: 14.5px; }
  .m .tn { gap: 6px; }
  .score { font-size: 18px; min-width: 70px; padding: 7px 8px; gap: 4px; }
  .vsmark { min-width: 36px; }
  .m.mine { padding-left: 10px; padding-right: 6px; }
  th, td { padding: 9px 5px; font-size: 13.5px; }
  thead th { font-size: 11.5px; }
  td.name { min-width: 7em; }
  td.rk { width: 36px; }
  .rk b { width: 26px; height: 26px; font-size: 14px; }
}
.form-card > .btn, .form-card > .row { margin-top: 20px; }

/* ---------- 参加チーム募集（v3） ---------- */
.req { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 800; color: #6b4d00; background: var(--yellow-soft); border-radius: 999px; padding: 0 9px; vertical-align: 2px; }
.rc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.rc-stat { background: var(--bg); border-radius: 14px; padding: 10px 12px 12px; border: 1.5px solid var(--line); }
.rc-stat .k { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink-2); letter-spacing: .04em; }
.rc-stat .v { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.rc-stat .v b { font-size: 44px; font-weight: 800; line-height: 1.05; color: var(--ink); }
.rc-stat .v small { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.rc-stat:first-child { background: var(--yellow-soft); border-color: #f3d27a; }
/* 大会要項（晴れやかに刷られたプリント） */
.youkou { position: relative; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin: 18px 0; overflow: hidden; }
.youkou::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--sky) 0 24px, var(--yellow) 24px 36px); }
.yk-head { text-align: center; padding: 22px 18px 6px; }
.yk-kick { display: block; font-family: var(--num); font-size: 11.5px; font-weight: 800; letter-spacing: .24em; color: var(--sky-deep); }
.yk-head h2 { display: inline-block; margin: 2px 0 0; font-size: 22px; font-weight: 900; letter-spacing: .5em; padding-left: .5em; background: linear-gradient(transparent 64%, var(--yellow) 64%, var(--yellow) 92%, transparent 92%); }
.yk-head h2::before { display: none; }
.spec { margin: 6px 0 0; padding: 4px 18px 16px; }
.spec > div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1.5px dotted var(--line-2); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-size: 13.5px; font-weight: 800; color: var(--sky-deep); padding-top: 2px; }
.spec dd { margin: 0; font-weight: 700; font-size: 16px; white-space: pre-wrap; }
.spec dd .small { font-weight: 400; white-space: normal; }
.rc-done .ic { background: var(--yellow-soft); }
.rc-done { border: 2.5px solid var(--yellow); }
.rc-done .stub::before { left: -14.5px; } .rc-done .stub::after { right: -14.5px; }
.rc-no { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 10px 16px; }
.rc-no span { font-weight: 800; font-size: 14px; color: var(--ink-2); letter-spacing: .1em; }
.rc-no b { font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: .06em; }

/* 作成の入口（大会を作る／まず募集する） */
.entry-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.entry-pick a { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 12px 12px; line-height: 1.4; box-shadow: 0 1px 0 rgba(20, 40, 75, .04); }
.entry-pick a b { display: block; font-size: 15px; font-weight: 900; }
.entry-pick a span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.entry-pick a[aria-current=page] { border-color: var(--sky); background: var(--sky-soft); box-shadow: inset 0 0 0 1px var(--sky); }
.entry-pick a[aria-current=page] b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-left: 6px; vertical-align: 2px; box-shadow: 0 0 0 2px var(--ink); }
.dt2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dt2 > div { min-width: 0; }
@media (max-width: 520px) { .dt2 { grid-template-columns: 1fr; gap: 0; } }
.entry-pick + #mine, .entry-pick + #mine + form, .entry-pick ~ form .page-title { margin-top: 18px; }
.app .lock-line { margin-top: 6px; }

/* 管理：募集・申込 */
.switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; margin: 0; font-weight: 400; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tg { flex: none; width: 54px; height: 32px; border-radius: 999px; background: #d6dbe5; position: relative; transition: background .15s; margin-top: 2px; }
.switch .tg::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 40, 75, .3); transition: transform .15s; }
.switch input:checked + .tg { background: var(--sky); }
.switch input:checked + .tg::after { transform: translateX(22px); }
.switch input:focus-visible + .tg { outline: 3px solid #8cc0f2; outline-offset: 2px; }
.switch b { display: block; font-size: 16px; }
.apps { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 2px 16px; margin: 10px 0; }
.app { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.app:last-child { border-bottom: 0; }
.app .t { display: flex; align-items: baseline; gap: 10px; }
.app .no { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13px; color: var(--sky-deep); background: var(--sky-soft); border-radius: 6px; padding: 0 7px; flex: none; }
.app .nm { font-weight: 800; font-size: 16.5px; }
.app.is-wd .nm { text-decoration: line-through; color: var(--ink-3); }
.app .kv { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 2px 10px; font-size: 14px; margin: 8px 0 0; }
.app .kv dt { color: var(--ink-2); font-weight: 700; font-size: 13px; }
.app .kv dd { margin: 0; font-weight: 600; }
.blur { display: inline-block; filter: blur(4px); user-select: none; color: var(--ink-2); }
.locked { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #6b4d00; background: var(--yellow-soft); border-radius: 999px; padding: 0 10px; margin-left: 6px; filter: none; }
.app .checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.app .checks label { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 13.5px; font-weight: 800; cursor: pointer; background: #fff; text-align: center; line-height: 1.25; padding: 4px; }
.app .checks input { width: 20px; height: 20px; accent-color: var(--sky); flex: none; }
.app .checks label:has(input:checked) { background: var(--sky-soft); border-color: var(--sky); }
.app .checks label.wdc:has(input:checked) { background: #f1eee8; border-color: var(--ink-3); }
.app .memo { margin-top: 8px; min-height: 48px; font-size: 15px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.stat-row span { background: var(--card); border-radius: 999px; box-shadow: var(--shadow); padding: 4px 12px; font-size: 13.5px; font-weight: 800; }
.stat-row b { font-family: var(--num); font-size: 17px; margin-left: 4px; }
.edit-d summary::before { display: none; }
.edit-d summary { min-height: 48px; }
/* 運営者：経路別 */
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.seg .btn { flex: 1 1 0; }
table.stats td:first-child, table.stats th:first-child { text-align: left; }
table.stats td { font-family: var(--num); font-size: 16px; font-weight: 800; }
table.stats td:first-child { font-family: var(--font); font-size: 14.5px; }
table.stats tr.total td { background: var(--yellow-soft); }
