@charset "UTF-8";
/* EventDesk 公開側スタイル */

:root {
  --ed-accent: #2e8b57;
  --ed-on-accent: #ffffff;
  --ed-text: #1c2024;
  --ed-muted: #6b7280;
  --ed-line: #e3e6ea;
  --ed-bg: #f6f7f9;
  --ed-card: #ffffff;
  --ed-radius: 10px;
  --ed-max: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ed-bg);
  color: var(--ed-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.ed-container { width: 100%; max-width: var(--ed-max); margin: 0 auto; padding: 0 16px; }

/* ヘッダ・フッタ ------------------------------------------------------- */
.ed-site-header { background: var(--ed-card); border-bottom: 1px solid var(--ed-line); }
.ed-site-header .ed-container { display: flex; align-items: center; min-height: 60px; }
.ed-brand { color: inherit; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.ed-brand img { max-height: 36px; width: auto; display: block; }

.ed-site-footer {
  margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--ed-line);
  color: var(--ed-muted); font-size: 0.85rem; text-align: center;
}
.ed-site-footer p { margin: 0; }

main.ed-container { padding-top: 28px; padding-bottom: 8px; }

/* 見出し --------------------------------------------------------------- */
.ed-page-title { font-size: 1.5rem; line-height: 1.45; margin: 0 0 16px; }
.ed-section-title {
  font-size: 1.2rem; margin: 40px 0 16px; padding-left: 12px;
  border-left: 4px solid var(--ed-accent);
}
.ed-lead { margin: 0 0 20px; }
.ed-muted { color: var(--ed-muted); font-size: 0.9rem; }
.ed-empty { color: var(--ed-muted); padding: 32px 0; text-align: center; }

/* イベント一覧 --------------------------------------------------------- */
.ed-event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ed-event-card {
  background: var(--ed-card); border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius); padding: 18px 20px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.ed-event-card h2 { font-size: 1.1rem; margin: 0 0 8px; }
.ed-event-card h2 a { color: inherit; text-decoration: none; }
.ed-event-card h2 a:hover { text-decoration: underline; }
.ed-event-card-body { flex: 1 1 320px; min-width: 0; }
.ed-event-card-side {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start; justify-content: center;
}
.ed-event-meta { margin: 2px 0; font-size: 0.92rem; }
.ed-event-summary { margin: 10px 0 0; font-size: 0.92rem; color: var(--ed-muted); }
.ed-label {
  display: inline-block; min-width: 3.2em; margin-right: 8px;
  color: var(--ed-muted); font-size: 0.82rem;
}

.ed-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.ed-badge-open { background: #e7f4ec; color: #1e6b41; }
.ed-badge-waitlist { background: #fdf3e0; color: #8a5a00; }
.ed-badge-closed { background: #eceef0; color: #5c636a; }

/* 詳細 ----------------------------------------------------------------- */
.ed-detail-table {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 8px 12px;
  margin: 0 0 24px; padding: 18px 20px;
  background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: var(--ed-radius);
}
.ed-detail-table dt { color: var(--ed-muted); font-size: 0.88rem; }
.ed-detail-table dd { margin: 0; }
.ed-event-body { margin: 0 0 8px; }

/* フォーム ------------------------------------------------------------- */
.ed-form {
  background: var(--ed-card); border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius); padding: 20px;
}
.ed-field { margin-bottom: 20px; }
.ed-field:last-of-type { margin-bottom: 0; }
.ed-field-label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.ed-field-help { margin: 0 0 6px; font-size: 0.83rem; color: var(--ed-muted); }
.ed-required {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px;
  background: #fdecec; color: #b42318; font-size: 0.72rem; font-weight: 700;
  vertical-align: 2px;
}

.ed-form input[type="text"], .ed-form input[type="email"], .ed-form input[type="tel"],
.ed-form input[type="number"], .ed-form input[type="date"], .ed-form textarea, .ed-form select {
  width: 100%; padding: 11px 12px; font-size: 16px; font-family: inherit;
  color: inherit; background: #fff;
  border: 1px solid #c8ccd2; border-radius: 8px;
}
.ed-form textarea { line-height: 1.7; resize: vertical; }
.ed-form input:focus, .ed-form textarea:focus, .ed-form select:focus {
  outline: 2px solid var(--ed-accent); outline-offset: 1px; border-color: var(--ed-accent);
}

.ed-choice-group { display: flex; flex-direction: column; gap: 8px; }
.ed-choice { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.ed-choice input { margin-top: 6px; flex: none; }

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

.ed-form-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ボタン --------------------------------------------------------------- */
.ed-button {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  border: 1px solid var(--ed-line); background: #fff; color: var(--ed-text);
  font-size: 0.95rem; font-weight: 700; font-family: inherit;
  text-decoration: none; text-align: center; cursor: pointer;
}
.ed-button:hover { background: #f2f4f6; }
.ed-button-primary {
  background: var(--ed-accent); color: var(--ed-on-accent); border-color: var(--ed-accent);
}
.ed-button-primary:hover { filter: brightness(0.93); background: var(--ed-accent); }
.ed-button-danger { background: #b42318; color: #fff; border-color: #b42318; }
.ed-button-danger:hover { background: #97200f; }
.ed-button-quiet { color: var(--ed-muted); }

/* 通知 ----------------------------------------------------------------- */
.ed-alert { padding: 14px 16px; border-radius: 8px; margin: 0 0 20px; font-size: 0.93rem; }
.ed-alert p { margin: 0; }
.ed-alert ul { margin: 6px 0 0; padding-left: 1.3em; }
.ed-alert-title { font-weight: 700; }
.ed-alert-error { background: #fdecec; color: #8f1d13; }
.ed-alert-warn { background: #fdf3e0; color: #7a4f00; }
.ed-alert-info { background: #eaf2fb; color: #1f4b7a; }

/* 完了画面 ------------------------------------------------------------- */
.ed-done { text-align: center; }
.ed-done-mark {
  width: 56px; height: 56px; margin: 8px auto 16px; border-radius: 50%;
  background: var(--ed-accent); color: var(--ed-on-accent);
  font-size: 30px; line-height: 56px;
}
.ed-receipt-box {
  margin: 24px auto; padding: 18px; max-width: 320px;
  background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: var(--ed-radius);
}
.ed-receipt-label { margin: 0; font-size: 0.82rem; color: var(--ed-muted); }
.ed-receipt-no {
  margin: 4px 0 0; font-size: 1.9rem; font-weight: 700; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.ed-qr-block { margin: 24px 0; }
.ed-qr { display: block; margin: 0 auto 8px; width: 220px; height: 220px; }
.ed-done-actions { margin: 24px 0; }
.ed-done-note { margin-top: 24px; }

/* 受付票 --------------------------------------------------------------- */
.ed-ticket {
  background: var(--ed-card); border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius); padding: 24px;
}
.ed-ticket-head { border-bottom: 2px solid var(--ed-accent); padding-bottom: 12px; margin-bottom: 20px; }
.ed-ticket-kicker { margin: 0; font-size: 0.78rem; letter-spacing: 0.2em; color: var(--ed-muted); }
.ed-ticket-title { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.45; }
.ed-ticket-body { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.ed-ticket-qr { flex: 0 0 200px; text-align: center; }
.ed-ticket-qr svg { width: 190px; height: 190px; display: block; margin: 0 auto; }
.ed-ticket-receipt {
  margin: 10px 0 0; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.ed-ticket-qr-note { margin: 4px 0 0; }
.ed-ticket-detail { flex: 1 1 260px; margin-bottom: 0; border: none; padding: 0; background: none; }
.ed-ticket-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.ed-contact-note {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ed-line);
  font-size: 0.88rem; color: var(--ed-muted);
}

/* 印刷 ----------------------------------------------------------------- */
@media print {
  body { background: #fff; }
  .ed-site-header, .ed-site-footer, .ed-no-print { display: none !important; }
  main.ed-container { padding: 0; max-width: none; }
  .ed-ticket { border: none; border-radius: 0; padding: 0; }
  .ed-alert { border: 1px solid #999; }
}

@media (max-width: 480px) {
  .ed-page-title { font-size: 1.3rem; }
  .ed-detail-table { grid-template-columns: 1fr; gap: 2px 0; padding: 16px; }
  .ed-detail-table dt { margin-top: 8px; }
  .ed-detail-table dt:first-child { margin-top: 0; }
  .ed-ticket-qr { flex: 1 1 100%; }
}
