/* OVERCOAT customer-facing pages (event booking / manage booking).
   Tone follows overcoatnyc.com: Instrument Sans 500 at 14px, Rich Black on white, square
   controls with 0.1em tracking, choice boxes like the size selector (selected = #f2f2f2). */
:root {
  --ink: #1f2021;                    /* OVERCOAT Rich Black (logo) */
  --ink-2: rgba(31, 32, 33, 0.72);
  --ink-3: rgba(31, 32, 33, 0.45);
  --hair: rgba(31, 32, 33, 0.14);
  --paper: #ffffff;
  --soft: #f2f2f2;                   /* selected choice box, as on the product page */
  --grey: #9a9a9a;                   /* breadcrumb grey */
  font-family: "Instrument Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-weight: 500;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-size: 14px; line-height: 1.6; }
.lead, .desc { font-size: 13px; line-height: 1.75; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:is(button, input, select, textarea, a):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: inherit; }

.brandbar { display: flex; justify-content: center; padding: 24px 36px; border-bottom: 1px solid var(--hair); }
.brandbar img { display: block; height: 18px; width: auto; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 36px 64px; }
@media (min-width: 640px) { .wrap { padding: 0 56px 72px; } }
.card { padding: 32px 0; border-bottom: 1px solid var(--hair); }
.card:last-child { border-bottom: 0; }
@media (min-width: 640px) { .card { padding: 40px 0; } }

/* Key visual stays modest in both orientations: width and height are capped, aspect kept. */
.hero { margin: 28px 0 0; }
.hero img { display: block; margin: 0 auto; width: auto; height: auto; max-width: min(475px, 100%); max-height: min(475px, 60vh); }

.eyebrow { font-size: 12px; letter-spacing: 0.02em; color: var(--grey); margin: 0 0 12px; }
/* The site's product titles use 0.1em in the narrow SaaSeries face; Instrument Sans is wider, so 0.04em matches the look. */
h1 { font-size: 21px; line-height: 1.4; font-weight: 700; letter-spacing: 0.04em; margin: 0 0 16px; }
h2 { display: inline-block; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; margin: 0 0 20px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.period { font-size: 14px; letter-spacing: 0.02em; margin: 0 0 18px; }
.lead { margin: 0 0 16px; }
.desc { margin: 0; }
.meta { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.75; }
.meta > div + div { margin-top: 20px; }
.meta div { display: flex; gap: 12px; }
.meta dt { flex-shrink: 0; min-width: 52px; color: var(--grey); }
.meta dd { margin: 0; min-width: 0; }
ul.bul { list-style: none; margin: 0; padding: 0; }
.rich-img { margin: 16px 0; }
.rich-img img { display: block; max-width: min(420px, 85%); max-height: 60vh; width: auto; height: auto; margin: 0 auto; }
.desc a, .meta a, .summary-table a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
ul.bul li { position: relative; padding-left: 1em; }
ul.bul li + li { margin-top: 6px; }
/* ご案内: its own block under 会期/会場, centred title with the notes below */
/* ご案内 follows the booking block as its own section */
.guide { margin: 0; }
.guide h3 { margin: 0 0 16px; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; }
.guide-body { font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.guide-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
ul.bul li::before { content: "・"; position: absolute; left: 0; }
.desc strong, .meta strong { font-weight: 700; }
.desc u, .meta u { text-underline-offset: 3px; }

.steps { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; letter-spacing: 0.02em; color: var(--grey); margin: 0 0 24px; white-space: nowrap; }
.steps span.on { color: var(--ink); }

/* month calendar: compact; bookable dates are black-outlined circles, the chosen one is filled */
.cal { max-width: 340px; margin: 0 auto; border: 1px solid var(--ink); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 4px; border-bottom: 1px solid var(--hair); }
.cal-head b { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; }
.cal-nav { width: 40px; height: 40px; border: 0; background: none; font-size: 18px; line-height: 1; }
.cal-nav:disabled { opacity: 0.2; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 4px 6px 10px; row-gap: 8px; }
.cal-dow { text-align: center; font-size: 10px; color: var(--ink-3); padding: 6px 0 2px; letter-spacing: 0.1em; }
.cal-day {
  justify-self: center; width: 100%; max-width: 35px; aspect-ratio: 1 / 1; border: 1px solid transparent; border-radius: 50%; background: none; padding: 0;
  font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--grey); opacity: 0.6;
}
.cal-day.open { opacity: 1; color: var(--ink); border-color: var(--ink); }
.cal-day.open:hover { background: rgba(31, 32, 33, 0.06); }
.cal-day.full { opacity: 1; color: var(--ink-3); text-decoration: line-through; border: 1px dashed var(--hair); }
.cal-day.on, .cal-day.on:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal-day:disabled { cursor: default; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--ink-2); padding: 8px 12px; border-top: 1px solid var(--hair); }
.cal-legend .k { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.cal-legend .k.open { border: 1px solid var(--ink); color: var(--ink); }
.cal-legend .k.on { background: var(--ink); color: var(--paper); }
.cal-legend .k.full { border: 1px dashed var(--ink-3); }

.day-title { font-size: 13px; letter-spacing: 0.04em; margin: 28px 0 10px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  min-width: 72px; height: 38px; padding: 0 12px; border: 1px solid var(--ink); background: var(--paper);
  font-size: 13px; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; line-height: 1.1;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
}
.slot small { font-size: 9px; letter-spacing: 0.05em; margin-top: 2px; }
.slot:disabled { border-color: var(--hair); color: var(--grey); cursor: default; }
.slot:disabled span { text-decoration: line-through; }
.slot.on { background: var(--soft); }
.slot.current:not(.on) { border-style: dashed; }

/* form */
.field { margin: 0 0 22px; }
.field label { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; margin: 0 0 6px; }
.field label .req { font-size: 11px; color: var(--grey); margin-left: 6px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); font-size: 16px; font-weight: 500;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 96px; resize: vertical; }
/* Inputs stay 16px so iOS doesn't zoom in; only the example text is set smaller. */
.field ::placeholder { font-size: 13px; color: var(--grey); opacity: 1; }
.field .help { font-size: 12px; color: var(--grey); margin: 6px 0 0; }
.selected-slot { background: var(--soft); padding: 12px 16px; margin: 0 0 24px; font-size: 13px; }
.selected-slot b { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: block; width: 100%; max-width: 360px; min-height: 44px; margin-left: auto; margin-right: auto; padding: 12px 30px; border: 1px solid transparent;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; line-height: 1.4;
  text-align: center; text-decoration: none;
}
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn + .btn { margin-top: 10px; }
.linkbtn { border: 0; background: none; padding: 0; text-decoration: underline; color: var(--ink); font-size: 13px; }

.summary-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 13px; border-bottom: 1px solid var(--hair); }
.summary-table th { text-align: left; font-weight: 500; color: var(--grey); padding: 12px 12px 12px 0; border-top: 1px solid var(--hair); width: 96px; vertical-align: top; }
.summary-table td { padding: 12px 0; border-top: 1px solid var(--hair); }
.notice { font-size: 12px; color: var(--ink-2); margin: 16px 0 0; }
.privacy { max-width: 360px; margin: 20px auto 0; font-size: 11px; line-height: 1.7; color: var(--grey); text-align: center; }
.privacy p { margin: 0 0 6px; text-align: left; }
.privacy a { color: var(--grey); text-underline-offset: 3px; }
.error { color: var(--ink); font-size: 13px; margin: 12px 0 0; min-height: 1em; }
.error:not(:empty)::before { content: "※ "; }
.status-badge { display: inline-block; font-size: 11px; padding: 2px 10px; border: 1px solid var(--ink); letter-spacing: 0.15em; }
.status-badge.cancelled { color: var(--ink-3); border-color: var(--ink-3); }
.message { border: 1px solid var(--ink); padding: 12px 16px; margin: 0 0 20px; font-size: 14px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.footer { text-align: center; font-size: 12px; color: var(--grey); padding: 24px 16px 40px; border-top: 1px solid var(--hair); }
.footer a { color: var(--grey); text-decoration: none; }
.loading { text-align: center; color: var(--ink-3); padding: 80px 0; }
