:root {
  color-scheme: light;
  --ink: #171512;
  --muted: #645f57;
  --paper: #fffdf8;
  --cream: #f4eee2;
  --line: #d8cdb9;
  --gold: #a97820;
  --danger: #9b342b;
  --ok: #276340;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.75; }
a { color: inherit; }
main, section, article { min-width: 0; }
p, h1, .fact { overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
button, input { font: inherit; }
button, input[type="email"] { min-height: 48px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; }
.site-header a:last-child { color: var(--muted); }
.site-header a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 7vw, 90px); align-items: start; min-height: 68vh; padding: 76px 0; }
.hero > div { min-width: 0; }
#event-banner { width: 100%; min-width: 0; margin: 0 0 28px; }
#event-banner > img { display: block; width: 100%; max-width: 100%; height: auto; }
[data-banner-placeholder] { display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 100%; min-width: 0; aspect-ratio: 16 / 9; padding: 22px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: var(--cream); font-size: .82rem; overflow-wrap: anywhere; }
[data-banner-placeholder] strong { color: var(--ink); font-size: 1rem; }
[data-banner-placeholder] p { margin: 0; }
.preview-notice { margin-top: 22px; padding: 12px 16px; color: #59471e; background: #faf0d8; border: 1px dashed #b99a54; border-radius: 9px; font-size: .85rem; }
.eyebrow { color: var(--gold); font-size: .85rem; font-weight: 700; letter-spacing: .08em; }
h1, h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; line-height: 1.25; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); margin: 12px 0 24px; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(2.4rem, 4.1vw, 3.6rem); text-wrap: balance; }
.hero h1 > span { display: block; }
.hero h1 .title-description { margin-top: .18em; font-size: .75em; line-height: 1.5; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: #39352f; max-width: 44rem; }
.organizer { font-weight: 700; }
.overview p { margin: 20px 0; }
.overview p:first-child { font-size: 1.1rem; }
.event-facts { width: 100%; border-collapse: collapse; }
.event-facts th, .event-facts td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.event-facts th { width: 155px; background: var(--cream); }
.event-facts td { overflow-wrap: anywhere; }
.agenda-list { padding: 0; margin: 30px 0 20px; list-style: none; counter-reset: agenda; }
.agenda-list li { position: relative; padding: 20px 20px 20px 80px; border-bottom: 1px solid var(--line); counter-increment: agenda; font-size: 1.06rem; }
.agenda-list li:first-child { border-top: 1px solid var(--line); }
.agenda-list li::before { content: counter(agenda, decimal-leading-zero); position: absolute; left: 18px; top: 20px; font-weight: 700; color: var(--gold); }
.agenda-badge { display: inline-block; margin-left: 12px; padding: 3px 10px; border-radius: 999px; background: #ead9ae; color: #493917; font-size: .79rem; font-weight: 700; }
.benefit-note { margin-top: 24px; padding: 20px 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.benefit-note p { margin: 0; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.route-grid article { padding: 22px; background: var(--cream); border-radius: 12px; }
.route-grid h3 { margin-top: 0; font-size: 1rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.fact { padding: 15px 17px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.fact b { display: block; font-size: .78rem; color: var(--muted); }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 18px 50px rgba(28, 22, 14, .08); }
.panel h2 { margin-top: 0; }
#reservation { scroll-margin-top: 24px; }
.jump-link { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; margin-top: 18px; font-weight: 700; text-underline-offset: 5px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input[type="email"] { width: 100%; border: 1px solid #9e9587; border-radius: 9px; padding: 10px 12px; background: white; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #2c69bf; outline-offset: 3px; }
.check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin: 18px 0; font-weight: 400; }
.check input { margin-top: 7px; width: 20px; height: 20px; }
.check { min-height: 44px; cursor: pointer; }
.primary { width: 100%; border: 0; border-radius: 999px; padding: 12px 20px; color: white; background: var(--ink); cursor: pointer; font-weight: 700; }
.primary:hover { background: #39342e; }
.primary:disabled { opacity: .55; cursor: not-allowed; }
.secondary { min-height: 48px; border: 1px solid #817563; border-radius: 9px; padding: 10px 14px; color: var(--ink); background: white; cursor: pointer; }
.secondary:disabled { opacity: .55; cursor: not-allowed; }
.resend-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; }
summary:focus-visible, section:focus-visible, .status:focus-visible, .error-summary:focus-visible { outline: 3px solid #2c69bf; outline-offset: 3px; }
.resend-section .secondary { width: 100%; margin-top: 14px; }
#turnstile-slot, #resend-turnstile { margin: 14px 0; max-width: 100%; }
.small { font-size: .82rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.status, .error-summary { margin-top: 16px; padding: 13px 15px; border-radius: 9px; }
.status { background: #edf6ef; color: var(--ok); }
.status[data-kind="warning"] { background: #fff4d7; color: #6e4b00; }
.error-summary { background: #fbecea; color: var(--danger); }
[hidden] { display: none !important; }
.details { padding: 62px 0 88px; border-top: 1px solid var(--line); }
.details-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.details-grid article { padding: 22px; background: var(--cream); border-radius: 13px; }
.details-grid h3 { margin: 0; font-size: 1rem; }
.steps { padding-left: 1.5em; }
.steps li { padding: 8px 0; }
.faq-section { margin-top: 40px; }
.faq-section details { padding: 10px 0; border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); padding: 30px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 50px 0 70px; }
  .details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  main { width: min(100% - 28px, 1120px); }
  .site-header { padding: 14px; align-items: flex-start; }
  .site-header a:last-child { font-size: .82rem; }
  .facts { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; padding: 25px 14px; }
  .event-facts th { width: 82px; }
  .event-facts th, .event-facts td { padding: 14px 10px; }
  .agenda-list li { padding: 18px 10px 18px 48px; font-size: 1rem; }
  .agenda-list li::before { left: 8px; top: 18px; }
  .agenda-badge { margin-left: 0; }
  .route-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 申込状況（定員に対する現在の申込数） */
.capacity{margin:0 0 14px;padding:16px 18px;border:1px solid rgba(176,122,58,.45);border-radius:14px;background:linear-gradient(180deg,#fffaf0,#fff);text-align:center}
.capacity-label{margin:0 0 4px;font-size:.9rem;letter-spacing:.08em;color:#7a5a2a}
.capacity-count{margin:0;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:700;line-height:1.1;color:#2b2b2b}
.capacity-count #capacity-registered{font-size:clamp(2.6rem,7vw,3.6rem);color:#b07a3a}
.capacity-sep{font-size:1.6rem;margin:0 .15em;color:#8a8273}
.capacity-count #capacity-total{font-size:clamp(1.8rem,5vw,2.4rem)}
.capacity-unit{font-size:1rem;margin-left:.2em;color:#8a8273}
.capacity-remaining{margin:6px 0 0;font-size:1rem;color:#4a4a4a}
.capacity[data-full="true"] #capacity-registered{color:#a33}
.capacity[data-full="true"] .capacity-remaining{color:#a33;font-weight:700}
