/*
 * 参加者の登録画面（/register）。見た目は参加者向けメールと同じテイスト：
 *   紙色の地・ロゴを中央に大きく・白いカード・ゴシック・墨のボタン。角丸は 8 / 6 / 4px。
 * 色とロゴはシリーズごと（public/series/<id>/theme.css が下の変数を上書きし、ロゴは API の page.logo）。
 * 使わないもの：ピル型、色付きの帯、片側だけ色付きの線、影、グラデーション、絵文字。
 */
:root {
  --page: #f2f2f2;      /* 地 */
  --card: #ffffff;
  --ink: #111111;       /* 文字・ボタン・日付の地 */
  --text-2: #3f3f46;
  --muted: #71717a;
  --line: #e0e0e0;
  --field: #d4d4d8;     /* 入力欄の枠 */
  --date-sub: #b4b4b8;  /* 日付の曜日 */
  --done: #56676f;      /* 済んだ手順・登録済み */
  --red: #9b2c2c;
  --red-bg: #f6e8e8;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }

.page { max-width: 560px; margin: 0 auto; padding: 36px 14px 48px; }
.logo { display: flex; justify-content: center; align-items: center; min-height: 40px; margin: 0 0 28px; }
.logo img { width: 260px; max-width: 78%; height: auto; display: block; }
.logo__text { font-weight: 700; font-size: 18px; letter-spacing: .02em; }

.card { background: var(--card); border-radius: 8px; padding: 30px 24px 28px; }
h1 { margin: 0 0 6px; font-size: 20px; line-height: 1.5; font-weight: 700; }
.lead { margin: 0 0 22px; color: var(--text-2); }
.meta { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

/* チケット（メールと同じ日付の地） */
.ticket { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 16px; }
.ticket__hd { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.ticket__date { width: 64px; flex: none; background: var(--ink); color: #fff; border-radius: 5px 0 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; }
.ticket__date b { font-size: 19px; line-height: 1; }
.ticket__date span { font-size: 11px; font-weight: 700; margin-top: 4px; color: var(--date-sub); }
.ticket__title { padding: 10px 14px; min-width: 0; }
.ticket__title b { display: block; font-size: 14px; line-height: 1.45; }
.ticket__title span { font-size: 12px; color: var(--muted); }
.ticket__body { padding: 18px 16px 4px; }
.ticket.is-closed .ticket__body { opacity: .55; }

/* 入力 */
.field { margin: 0 0 18px; }
.field__label { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
.field__label small { font-weight: 400; font-size: 12px; color: var(--muted); }
.field__hint { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; line-height: 1.6; }
.input, .select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; background: #fff; font-size: 16px; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2371717a' stroke-width='1.5'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .07); }
.input:disabled, .select:disabled { background: #f6f6f6; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field); border-radius: 6px; cursor: pointer; font-size: 14.5px; line-height: 1.4; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice small { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; justify-content: flex-end; margin: -6px 0 12px; }
.link { border: 0; background: none; padding: 0; font-size: 13px; color: var(--text-2); text-decoration: underline; cursor: pointer; }
.skip { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.closed { font-size: 13px; color: var(--red); margin: 0 0 14px; }

/* 同意と送信 */
.consent { border-top: 1px solid var(--line); margin: 22px 0 0; padding: 20px 0 0; }
.consent ul { margin: 0 0 14px; padding-left: 1.1em; color: var(--text-2); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--ink); flex: none; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin: 22px 0 0; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--light { background: #fff; color: var(--ink); border: 1px solid var(--field); }
.error { white-space: pre-line; background: var(--red-bg); color: var(--red); border-radius: 6px; padding: 12px 14px; font-size: 14px; margin: 18px 0 0; }

/* 完了：登録した人と、大会までの流れ（メールと同じ） */
.done-list { list-style: none; margin: 0 0 22px; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.done-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.done-list li:last-child { border-bottom: 0; }
.done-list b { display: block; font-size: 15px; }
.done-list div span { display: block; font-size: 12.5px; color: var(--muted); }
.tag { flex: none; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 2px 8px; background: var(--done); color: #fff; }
.tag--todo { background: var(--red-bg); color: var(--red); }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 0 12px; font-size: 14px; }
.flow li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 1px; background: var(--line); }
.flow i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font: 700 12px/20px var(--sans); text-align: center; font-style: normal; flex: none; background: #fff; }
.flow .is-done { color: var(--muted); }
.flow .is-done i { background: var(--done); border-color: var(--done); color: #fff; line-height: 22px; }
.flow .is-now { font-weight: 700; }
.flow .is-now i { background: var(--ink); border-color: var(--ink); color: #fff; line-height: 22px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; padding: 28px 8px 0; }
.foot img { display: block; width: 56px; height: auto; margin: 0 auto 12px; }
.page.is-plain .foot img { display: none; } /* シリーズが分からない画面は、上のロゴが CC.jp なので下では出さない */
.foot a { color: var(--text-2); }
