@charset "UTF-8";

:root {
  --brand: #0f4c5c;
  --brand-dark: #0a3742;
  --accent: #b8202e;
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #e2e5ea;
  --line-strong: #cfd4dc;
  --bg: #f5f6f8;
  --bg-soft: #fafbfc;
  --ok: #17683f;
  --ok-bg: #e9f5ee;
  --warn: #8a5a00;
  --warn-bg: #fdf4e3;
  --err: #b3261e;
  --err-bg: #fdecea;
  --radius: 6px;

  /*
   * ここから下は、テーマ（public/themes/）で変える色です。値は Classic のもの。
   * 色を足すときは、直接書かずにここへ名前を作り、各テーマの CSS にも同じ名前を書いてください。
   */
  --surface: #fff;                          /* カード・入力欄の地 */
  --text: #444;                             /* 説明の文 */
  --ink-soft: #5b6472;                      /* 任意バッジ・@ などの文字 */
  --ink-label: #4a5568;                     /* QRコードの見出し・確認メールのアイコン */
  --chip: #eceef1;                          /* 任意バッジ・手順・@ の地 */
  --placeholder: #eef1f5;                   /* 画像が無いときの地 */
  --choice-on: #eef2f8;                     /* 選んだ選択肢の地 */
  --focus: rgba(20, 49, 92, .35);           /* 入力欄のフォーカス枠 */
  --disabled: #c9ced6;                      /* 押せないボタン */
  --captcha-bg: #f5f7f9;

  --header-bg: #fff;
  --header-border: 3px solid var(--brand);
  --header-name: var(--brand);
  --header-sub: var(--muted);
  --footer-bg: var(--brand);
  --footer-border: none;
  --footer-ink: #d7dee9;
  --footer-copy: #9fb0c8;
  --footer-operator: #8fa6bd;
  --footer-link: #b9cbdd;
  --heading-rule: 4px solid var(--brand);   /* 小見出しの左の線 */

  --card-hover-border: var(--brand);
  --card-hover-shadow: 0 4px 14px rgba(20, 49, 92, .08);
  --btn-bg: var(--brand);                   /* 主ボタン（グラデーションも可） */
  --btn-bg-hover: var(--brand-dark);
  --btn-border: transparent;
  --btn-shadow: none;
  --btn-text-shadow: none;
  --btn-hover-filter: none;
  --pay-btn-bg: var(--ok, #12894f);         /* お支払いボタン */
  --pay-btn-border: 2px solid var(--ok, #12894f);
  --pay-btn-shadow: none;

  --info-bg: #edf3fb;
  --info-line: #cfdff5;
  --info-ink: #14315c;
  --notice-alert-bg: #fdeff3;               /* 完了ページ「当日の持ち物」 */
  --notice-alert-icon: #fbdce5;
  --notice-alert-ink: #d81b60;
  --notice-info-bg: #eef1f6;                /* 完了ページ「確認メール」 */
  --notice-info-icon: #dfe4ec;
  --notice-warn-icon: #f7e6c2;
  --notice-pay-bg: #eef5f6;                 /* お支払いのご案内 */
  --notice-pay-ink: #11454f;
  --notice-pay-text: #456a72;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
    "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

a { color: var(--brand); }

.container {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

/* ---------- ヘッダー / フッター ---------- */

.site-header {
  background: var(--header-bg);
  border-bottom: var(--header-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 68px;
}

.site-header__brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--header-name);
}

.site-header__sub {
  font-size: 12px;
  color: var(--header-sub);
  letter-spacing: 0.16em;
}

.site-footer {
  margin-top: 56px;
  padding: 28px 0;
  background: var(--footer-bg);
  border-top: var(--footer-border);
  color: var(--footer-ink);
  font-size: 13px;
}

.site-footer__contact span { margin-right: 20px; white-space: nowrap; }
.site-footer__copy { margin: 8px 0 0; color: var(--footer-copy); font-size: 12px; }

/* ---------- 見出し ---------- */

main { padding: 36px 0 8px; }

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.page-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-left: 10px;
  border-left: var(--heading-rule);
}

/* ---------- カード ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card + .card { margin-top: 20px; }

.event-list { display: grid; gap: 16px; }

.event-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.event-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}

.event-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0 10px;
  color: var(--brand);
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13.5px;
  color: var(--text);
}

.event-card__meta dt { color: var(--muted); display: inline; margin-right: 6px; }
.event-card__meta dd { display: inline; margin: 0; }
.event-card__meta > div { white-space: nowrap; }

/* ---------- バッジ ---------- */

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
  padding: 1px 9px;
  border-radius: 3px;
  letter-spacing: .04em;
  vertical-align: 2px;
}

.badge--open { background: var(--ok-bg); color: var(--ok); }
.badge--few { background: var(--warn-bg); color: var(--warn); }
.badge--full { background: var(--err-bg); color: var(--err); }
.badge--closed { background: var(--chip); color: var(--ink-soft); }

/* ---------- 定義リスト（イベント詳細） ---------- */

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.detail-table th,
.detail-table td {
  border-top: 1px solid var(--line);
  padding: 13px 4px;
  text-align: left;
  vertical-align: top;
}

.detail-table tr:last-child th,
.detail-table tr:last-child td { border-bottom: 1px solid var(--line); }

.detail-table th {
  width: 130px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.event-description {
  white-space: pre-wrap;
  margin: 18px 0 0;
  font-size: 14.5px;
}

/* ---------- フォーム ---------- */

.form-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.form-row:first-of-type { border-top: none; padding-top: 4px; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 7px;
}

.req, .opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: 2px;
  letter-spacing: .04em;
}

.req { background: var(--accent); color: #fff; }
.opt { background: var(--chip); color: var(--ink-soft); }

.form-note {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--brand);
}

input.is-error, select.is-error, textarea.is-error {
  border-color: var(--err);
  background: #fffafa;
}

textarea { min-height: 110px; resize: vertical; line-height: 1.7; }

.input-sm { max-width: 200px; }
.input-md { max-width: 340px; }

.field-error {
  display: block;
  color: var(--err);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
}

.field-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .15s, border-color .15s;
}

.btn--primary {
  background: var(--btn-bg);
  color: #fff;
  border-color: var(--btn-border);
  box-shadow: var(--btn-shadow);
  text-shadow: var(--btn-text-shadow);
}
.btn--primary:hover { background: var(--btn-bg-hover); filter: var(--btn-hover-filter); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--muted); }

.btn--block { display: block; width: 100%; }

.btn[disabled], .btn--disabled {
  background: var(--disabled);
  color: #fff;
  box-shadow: none;
  text-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.form-actions .btn { min-width: 200px; }

/* ---------- お知らせ ---------- */

.alert {
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 22px;
  border: 1px solid transparent;
}

.alert--error { background: var(--err-bg); border-color: #f3c9c5; color: #8c1d18; }
.alert--info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }
.alert--success { background: var(--ok-bg); border-color: #c3e3d1; color: var(--ok); }
.alert--warn { background: var(--warn-bg); border-color: #f0dcb0; color: var(--warn); }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- 完了ページ ---------- */

.complete {
  text-align: center;
  padding: 44px 28px;
}

.complete__mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid; place-items: center;
  font-size: 34px;
  margin: 0 auto 18px;
}

.complete__title {
  font-size: clamp(17px, 4.7vw, 22px);
  text-wrap: balance;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--brand);
  line-height: 1.5;
}
.complete__text { color: var(--text); font-size: 14.5px; margin: 0 0 24px; }

.code-box {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto 26px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 20px;
}

.code-box__label { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.code-box__value { font-size: 26px; font-weight: 700; letter-spacing: .08em; color: var(--brand); }

@media (max-width: 600px) {
  .code-box__value { font-size: 23px; }
}

/* ---------- その他 ---------- */

.back-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--brand); text-decoration: underline; }

.empty {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.steps {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.steps li {
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--chip);
  letter-spacing: .04em;
}

.steps li.is-current { background: var(--brand); color: #fff; font-weight: 700; }

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .card { padding: 20px 16px; }
  .detail-table th { width: 96px; font-size: 13px; }
  .form-actions .btn { min-width: 100%; }
  .event-card__meta > div { white-space: normal; }
}

/* ---------- 男女別の入力・表示 ---------- */

.badge--male   { background: #e6eef8; color: #1d5f9e; }
.badge--female { background: #fbe9ef; color: #a83f66; }

.muted-note { color: var(--muted); font-size: 13px; }

.form-sublabel {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.gender-grid {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.gender-field { flex: 0 0 auto; }

.count-input {
  width: 88px;
  text-align: center;
  font-size: 17px !important;
  font-variant-numeric: tabular-nums;
}

.gender-total {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  margin-left: 4px;
}

.gender-total__value {
  margin: 0;
  font-size: 15px;
  color: var(--brand);
  font-weight: 700;
  line-height: 1.9;
}

.gender-total__value span { font-size: 24px; }

.form-row.has-error { background: #fffafa; border-radius: 4px; }

.site-footer__operator {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--footer-operator);
}
.site-footer__operator a { color: var(--footer-link); }

@media (max-width: 600px) {
  .gender-grid { gap: 12px; }
  .gender-total { border-left: none; padding-left: 0; margin-left: 0; width: 100%; }
}

.gender-field .field-group { flex-wrap: nowrap; align-items: center; gap: 6px; }
.gender-field .field-group > span { white-space: nowrap; font-size: 14px; }

/* 年齢（短い入力欄＋「歳」） */
.age-field { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 7px; }
.age-field .count-input { width: 110px; }
.age-field > span { white-space: nowrap; font-size: 14px; }

/* ---------- 受付票（画面表示） ---------- */

.ticket {
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px 24px 20px;
  max-width: 520px;
  margin: 0 auto;
}

.ticket__label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.ticket__event {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  margin: 4px 0 8px;
  line-height: 1.5;
}

.ticket__when, .ticket__where {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

.ticket__code {
  margin: 18px 0;
  padding: 14px 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  text-align: center;
}

.ticket__code-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .12em;
}

.ticket__code-value {
  display: block;
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
}

.ticket__guest { padding-top: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.ticket__name { margin: 0; font-size: 20px; font-weight: 700; }
.ticket__name span { font-size: 13px; font-weight: 400; margin-left: 3px; }
.ticket__company { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ticket__party { margin: 8px 0 0; font-size: 14px; }
.ticket__party strong { font-size: 18px; }

.ticket__note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* 完了ページの受付票エリア */
.complete__ticket {
  margin-top: 26px;
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.complete__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.complete__actions .btn { min-width: 220px; }

@media (max-width: 600px) {
  .complete__actions { gap: 8px; }
  .complete__actions .btn { width: 100%; min-width: 0; }
}

@media print {
  .site-header, .site-footer, .btn, .back-link, .steps, .page-lead { display: none !important; }
  body { background: #fff; }
  .ticket { border-color: #333; }
}

/* 受付票のバーコード */
.ticket__codes {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.ticket__barcode { margin: 0; text-align: center; }
.ticket__barcode svg { display: block; margin: 0 auto; }
.ticket__barcode figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

@media screen {
  .ticket__barcode svg { width: auto; max-width: 100%; height: auto; }
  /* 画面ではスマートフォンでも読み取りやすい大きさにする */
  .ticket__barcode--qr svg { width: 170px; }
  .ticket__barcode--pdf417 svg { width: 260px; }
}

@media screen and (max-width: 600px) {
  .ticket__codes { gap: 14px; }
  .ticket__barcode--qr svg { width: 200px; }
  .ticket__barcode--pdf417 svg { width: min(100%, 280px); }
}

/* ---------- イベント画像 ---------- */

/* 一覧ページ：カード上部の横長バナー（3:1） */
.event-card--banner { padding-top: 0; }

.event-card__banner {
  display: block;
  position: relative;
  margin: 0 -22px 16px;
  padding-top: 33.3333%;          /* 3:1 */
  overflow: hidden;
  background: var(--placeholder);
  border-radius: var(--radius) var(--radius) 0 0;
}

.event-card__banner img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 申込ページ：イベント画像が無いときの横長バナー */
.event-banner {
  position: relative;
  padding-top: 33.3333%;          /* 3:1 */
  overflow: hidden;
  background: var(--placeholder);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.event-banner img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 申込ページ：正方形に近い画像の箱（4:3） */
.event-image {
  position: relative;
  width: min(100%, 420px);
  padding-top: min(75%, 315px);   /* 4:3 */
  margin: 0 auto 22px;
  overflow: hidden;
  background: var(--placeholder);
  border-radius: var(--radius);
}

.event-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 任意項目のまとまり（プロフィール） ---------- */

.optional-block {
  margin-top: 30px;
  padding: 22px 20px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.optional-block__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px;
}

/* Instagram の「@」付き入力欄 */
.input-prefix {
  display: flex;
  align-items: stretch;
  max-width: 340px;
}

.input-prefix__mark {
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: var(--chip);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
}

.input-prefix .input-md {
  max-width: none;
  flex: 1 1 auto;
  border-radius: 0 6px 6px 0;
}

/* 参加目的などの選択肢 */
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.choice:hover { border-color: var(--brand); }

.choice input {
  width: auto;
  margin: 0;
  accent-color: var(--brand);
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--choice-on);
  font-weight: 700;
}

/* ---------- 完了ページ（受付用QRコード・各種のご案内） ---------- */

.complete__lead {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--muted);
}

/* 色つきのご案内ボックス（アイコン＋見出し＋本文） */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 18px 20px;
  border-radius: 10px;
  margin: 0 0 18px;
}

.notice__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.notice__icon svg { display: block; }

.notice__body { flex: 1 1 auto; min-width: 0; }

.notice__title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
}

.notice__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text);
}

/* 当日の持ち物（いちばん伝えたいこと） */
.notice--alert { background: var(--notice-alert-bg); }
.notice--alert .notice__icon { background: var(--notice-alert-icon); color: var(--notice-alert-ink); }
.notice--alert .notice__title { color: var(--notice-alert-ink); }

/* 確認メールのご案内 */
.notice--info { background: var(--notice-info-bg); }
.notice--info .notice__icon { background: var(--notice-info-icon); color: var(--ink-label); }
.notice--info .notice__title { color: var(--ink); }

/* 届かない場合のご案内 */
.notice--warn { background: var(--warn-bg); }
.notice--warn .notice__icon { background: var(--notice-warn-icon); color: var(--warn); }
.notice--warn .notice__title { color: #7a4f00; }

/* 受付用QRコード */
.qr-box {
  margin: 0 auto 22px;
  width: min(100%, 320px);
  padding: 18px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.qr-box__label {
  display: block;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--ink-label);
}

.qr-box__code svg {
  display: block;
  margin: 0 auto;
  width: 200px;
  height: auto;
  max-width: 100%;
}

/* 完了ページの明細（左揃え） */
.complete__detail {
  text-align: left;
  margin: 0 0 22px;
}

.complete__detail th {
  color: var(--muted);
  font-weight: normal;
  font-size: 13.5px;
}

@media (max-width: 600px) {
  .complete { padding: 32px 16px; }
  .notice { padding: 16px; gap: 12px; }
  .notice__icon { width: 40px; height: 40px; }
  .notice__title { font-size: 15px; }
  .qr-box__code svg { width: 215px; }
}

/* スクリーンショットのとき、ご案内の色をはっきり残す */
@media print {
  .notice { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 参加費のお支払い ---------- */

.pay__title { margin: 0 0 8px; font-size: clamp(20px, 4vw, 26px); line-height: 1.4; }
.pay__lead  { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

.pay__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--soft, #f4f7f8);
  border-radius: 10px;
  font-size: 14px;
}

.pay__summary dt { margin: 0; color: var(--muted); white-space: nowrap; }
.pay__summary dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.pay__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }

.pay__amount { margin: 0 0 22px; }

.pay__table { width: 100%; border-collapse: collapse; }
.pay__table th,
.pay__table td { padding: 10px 2px; text-align: left; font-weight: 400; font-size: 14px; }
.pay__table td { text-align: right; font-variant-numeric: tabular-nums; }
.pay__table tr + tr th,
.pay__table tr + tr td { border-top: 1px solid var(--line, #dfe4e9); }

.pay__total th { font-weight: 700; font-size: 15.5px; padding-top: 14px; }
.pay__total td { font-weight: 700; font-size: 21px; padding-top: 14px; }

.pay__form { margin: 0; }

.pay__wallets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pay__wallet  { min-height: 48px; }

.pay__or {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.pay__card {
  min-height: 90px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 10px;
}

.pay__status { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); min-height: 1.4em; }

.btn--pay {
  width: 100%;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--pay-btn-bg);
  border: var(--pay-btn-border);
  box-shadow: var(--pay-btn-shadow);
  text-shadow: var(--btn-text-shadow);
  border-radius: 10px;
  cursor: pointer;
}

.btn--pay:hover  { filter: brightness(.95); }
.btn--pay:active { transform: translateY(1px); }
.btn--pay[disabled] { opacity: .55; cursor: default; transform: none; }

.pay__secure { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; text-align: center; }
.pay__test   { display: flex; flex-direction: column; gap: 10px; }
.pay__links  { margin: 24px 0 0; text-align: center; }

.notice--pay { background: var(--notice-pay-bg); color: var(--notice-pay-ink); }
.notice--pay .notice__title { margin: 0 0 4px; font-weight: 700; font-size: 14.5px; }
.notice--pay .notice__text  { margin: 0 0 12px; font-size: 13px; color: var(--notice-pay-text); }
.notice--pay .btn--pay      { width: auto; display: inline-block; padding: 12px 24px; font-size: 15px; }

.notice--ok    { background: #e8f5ee; color: #0d6b3d; }
.notice--error { background: #fdecea; color: #b3261e; font-weight: 700; }

/* ---------- 画像認証 ---------- */

.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.captcha__image {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line, #dfe4e9);
  background: var(--captcha-bg);
}

.captcha__reload {
  font: inherit;
  font-size: 13px;
  padding: 9px 14px;
  color: var(--brand, #14315c);
  background: var(--surface);
  border: 1px solid var(--line, #dfe4e9);
  border-radius: 8px;
  cursor: pointer;
}

.captcha__reload:hover { border-color: var(--brand, #14315c); }

.captcha__input {
  width: 180px;
  max-width: 100%;
  font-size: 20px;
  letter-spacing: .18em;
  text-align: center;
}

/* ---------- メンテナンス ---------- */

.maintenance {
  max-width: 560px;
  margin: 24px auto 0;
  text-align: center;
}

.maintenance__lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.9;
}

.maintenance__message {
  margin: 20px 0 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}

/* 管理者としてメンテナンス中の公開ページを見ているときの帯 */
.maintenance-bar {
  padding: 8px 16px;
  background: var(--warn-bg);
  border-bottom: 1px solid #f0dcb0;
  color: var(--warn);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
