/* ============================================================
   components.css — Buttons, cards, forms, stepper, calendar, etc
   ============================================================ */

/* ---------- Button ---------- */
.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
  cursor: pointer;
}
.c-button:hover { transform: translateY(-1px); }
.c-button:active { transform: translateY(0); }
.c-button[disabled], .c-button[aria-busy="true"] {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}
.c-button--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.c-button--primary:hover { background: var(--color-primary-dark); }
.c-button--secondary {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.c-button--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.c-button--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.c-button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.c-button--ghost-dark {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.c-button--ghost-dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.c-button--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.c-button--sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.c-button--block { width: 100%; }

/* ---------- Card ---------- */
.c-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.02);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.c-card--interactive { cursor: pointer; }
.c-card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.c-card__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-transform: uppercase;
}
.c-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 8px;
}
.c-card__body {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 8px;
}

/* ---------- Feature card (4 functions) ---------- */
.c-feature {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.c-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at 0 0, var(--color-primary-light), transparent 70%);
  pointer-events: none;
}
.c-feature > * {
  position: relative;
  z-index: 1;
}
.c-feature__badge {
  display: inline-flex;
  width: max-content;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
}
.c-feature h3 { font-size: 1.15rem; }
.c-feature p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}
#features .c-feature:nth-child(1) { --feature-image: url("../assets/images/feature/feature-01-openspace.jpg"); }
#features .c-feature:nth-child(2) { --feature-image: url("../assets/images/feature/feature-02-showcase.jpg"); }
#features .c-feature:nth-child(3) { --feature-image: url("../assets/images/feature/feature-03-workshop.jpg"); }
#features .c-feature:nth-child(4) { --feature-image: url("../assets/images/feature/feature-04-interactive.jpg"); }
#features .c-feature,
.p-guidelines-features .c-feature {
  padding-top: 170px;
}
#features .c-feature::before,
.p-guidelines-features .c-feature::before {
  inset: 0 0 auto;
  width: auto;
  height: 146px;
  background:
    linear-gradient(180deg, rgba(42, 7, 46, 0.02), rgba(42, 7, 46, 0.24)),
    var(--feature-image) center / cover no-repeat;
}
.p-guidelines-features .c-feature:nth-child(1) { --feature-image: url("../assets/images/feature/feature-01-openspace.jpg"); }
.p-guidelines-features .c-feature:nth-child(2) { --feature-image: url("../assets/images/feature/feature-02-showcase.jpg"); }
.p-guidelines-features .c-feature:nth-child(3) { --feature-image: url("../assets/images/feature/feature-03-workshop.jpg"); }
.p-guidelines-features .c-feature:nth-child(4) { --feature-image: url("../assets/images/feature/feature-04-interactive.jpg"); }

/* ---------- Stat card ---------- */
.c-stat {
  display: grid;
  gap: 6px;
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: center;
}
.c-stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.c-stat__label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.c-stat__suffix {
  font-size: 0.5em;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: 2px;
}

/* ---------- Tag / badge ---------- */
.c-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.c-tag--event       { background: #f7e8f8; color: var(--tag-event); }
.c-tag--exhibition  { background: #e3f3e6; color: var(--tag-exhibition); }
.c-tag--workshop    { background: #fdebd0; color: var(--tag-workshop); }
.c-tag--academic    { background: #e0ebf8; color: var(--tag-academic); }
.c-tag--maintenance { background: #ececec; color: var(--tag-maintenance); }

/* ---------- Alert ---------- */
.c-alert {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  background: var(--color-bg-soft);
  font-size: 0.95rem;
  align-items: flex-start;
}
.c-alert__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-weight: 700;
}
.c-alert--info     { border-color: var(--color-info);    background: #eef4fb; color: #1a3d6b; }
.c-alert--success  { border-color: var(--color-success); background: #ecf6ee; color: #1d5526; }
.c-alert--warning  { border-color: var(--color-warning); background: #fdf3e6; color: #7c4506; }
.c-alert--error    { border-color: var(--color-error);   background: #fbecea; color: #6e1812; }

/* ---------- Form fields ---------- */
.c-field {
  display: grid;
  gap: 4px;
}
.c-field + .c-field { margin-top: 20px; }
.c-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}
.c-field__label--required::after {
  content: "必須";
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}
.c-field__label--optional::after {
  content: "任意";
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #eee;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.c-field-help {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 2px;
}
.c-field-help strong { color: var(--color-text); }
.c-field-why {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
}
.c-input,
.c-textarea,
.c-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.c-textarea {
  min-height: 140px;
  padding-block: 14px;
  resize: vertical;
  line-height: 1.7;
}
.c-input:focus, .c-textarea:focus, .c-select:focus,
.c-input:focus-visible, .c-textarea:focus-visible, .c-select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.c-input[aria-invalid="true"],
.c-textarea[aria-invalid="true"],
.c-select[aria-invalid="true"] {
  border-color: var(--color-error);
  background: #fdf3f2;
}
.c-input[aria-invalid="true"]:focus,
.c-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}
.c-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23171717' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.c-error-message {
  color: var(--color-error);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.9rem;
}
.c-error-message::before {
  content: "⚠";
  font-size: 1.05em;
}
.c-error-summary {
  background: #fbecea;
  border-left: 4px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #6e1812;
  margin-bottom: 16px;
}
.c-error-summary h3 {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.c-error-summary h3::before { content: "⚠"; }
.c-error-summary ul {
  margin-left: 24px;
  font-size: 0.9rem;
}
.c-error-summary ul li { list-style: disc; }
.c-error-summary a { color: #6e1812; text-decoration: underline; font-weight: 600; }

/* ---------- Choice card (radio / checkbox card) ---------- */
.c-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  padding: 16px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.c-choice-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
/* 選べない選択肢（例：空間全体展示のときの「専有(貸切)」）は薄くして無効を明示 */
.c-choice-card:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}
.c-choice-card:has(input:disabled):hover {
  border-color: var(--color-border);
  background: #fff;
  transform: none;
  box-shadow: none;
}
.c-choice-card.is-selected,
.c-choice-card:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.c-choice-card__title {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-choice-card__desc {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.c-choice-card__check {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-border-strong);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.c-choice-card.is-selected .c-choice-card__check,
.c-choice-card:has(input:checked) .c-choice-card__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.c-choice-card.is-selected .c-choice-card__check::after,
.c-choice-card:has(input:checked) .c-choice-card__check::after { content: "✓"; }
.c-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.c-choice-card:focus-within {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.c-choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .c-choice-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Stepper ---------- */
.c-stepper {
  display: grid;
  gap: 14px;
  padding: 20px 0;
}
.c-stepper__status {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.c-stepper__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: step;
}
.c-stepper__item {
  flex: 1 1 0;
  min-width: 90px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  display: grid;
  gap: 2px;
  text-align: left;
  position: relative;
}
.c-stepper__item__num {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.c-stepper__item__label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
}
.c-stepper__item.is-current {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.c-stepper__item.is-current .c-stepper__item__num {
  background: var(--color-primary);
  color: #fff;
}
.c-stepper__item.is-done .c-stepper__item__num {
  background: var(--color-success);
  color: #fff;
}
.c-stepper__item.is-done .c-stepper__item__num::after { content: "✓"; }
.c-stepper__item.is-done .c-stepper__item__num { font-size: 0; }
.c-stepper__item.is-done .c-stepper__item__num::after { font-size: 13px; }
.c-stepper__item.is-error {
  border-color: var(--color-error);
  background: #fbecea;
}
.c-stepper__item.is-error .c-stepper__item__num {
  background: var(--color-error);
  color: #fff;
}
@media (max-width: 720px) {
  .c-stepper__item__label { display: none; }
  .c-stepper__item.is-current .c-stepper__item__label { display: block; }
  .c-stepper__item { flex: 0 0 auto; min-width: 0; padding: 8px 10px; }
  .c-stepper__item.is-current { flex: 1 1 auto; }
}

@media (max-width: 767px) {
  .p-reserve-page .c-button,
  .p-reserve-page .c-input,
  .p-reserve-page .c-select,
  .p-reserve-page .c-file-drop__button {
    min-height: 52px;
  }

  .p-reserve-page .c-input,
  .p-reserve-page .c-select,
  .p-reserve-page .c-textarea {
    font-size: 16px;
    border-radius: 12px;
  }

  .p-reserve-page .c-field {
    gap: 8px;
  }

  .p-reserve-page .c-field__label {
    font-size: 1rem;
  }

  .p-reserve-page .c-field-help,
  .p-reserve-page .c-field-why {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .p-reserve-page .c-choice-card {
    min-height: 72px;
    padding: 14px 48px 14px 16px;
    border-radius: 14px;
  }

  .p-reserve-page .c-choice-card__title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .p-reserve-page .c-choice-card__desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .p-reserve-page .c-choice-card__check {
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
  }

  .p-reserve-page .c-stepper {
    position: sticky;
    top: var(--header-height);
    z-index: 30;
    margin-inline: calc(-1 * clamp(20px, 5vw, 40px));
    padding: 10px clamp(20px, 5vw, 40px) 12px;
    background: rgba(247, 247, 244, 0.94);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid var(--color-border);
  }

  .p-reserve-page .c-stepper__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .p-reserve-page .c-stepper__list::-webkit-scrollbar {
    display: none;
  }

  .p-reserve-page .c-stepper__item {
    min-width: 42px;
    min-height: 42px;
    padding: 8px;
    align-content: center;
    justify-items: center;
    border-radius: 12px;
  }

  .p-reserve-page .c-stepper__item.is-current {
    min-width: 132px;
    justify-items: start;
  }

  .p-reserve-page .c-step-card {
    border-radius: 16px;
    padding: 116px 16px 112px;
    box-shadow: 0 10px 32px rgba(20, 20, 30, 0.08);
  }

  .p-reserve-page .c-step-card::before {
    height: 96px;
  }

  .p-reserve-page .c-step-card__head {
    margin-bottom: 20px;
  }

  .p-reserve-page .c-step-card__num {
    font-size: 0.78rem;
  }

  .p-reserve-page .c-step-card__title {
    font-size: 1.28rem;
    line-height: 1.35;
  }

  .p-reserve-page .c-step-card__lead {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .p-reserve-page .c-step-card__actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    margin: 0;
    padding: 10px clamp(16px, 5vw, 24px) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -12px 32px rgba(20, 20, 30, 0.10);
    flex-direction: column-reverse;
    /* スクロール連動でのスマート開閉（入力中は隠して入力領域を広げる） */
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
  }

  /* 下スクロール中（入力・閲覧中）は固定ナビを退避し、設問・入力スペースを最大化 */
  .p-reserve-page.is-nav-hidden .c-step-card__actions {
    transform: translateY(130%);
  }

  .p-reserve-page .c-step-card__actions .c-button {
    width: 100%;
    flex: none;
    white-space: normal;
  }

  .p-reserve-page .c-time-row {
    gap: 14px;
  }

  .p-reserve-page .c-calendar {
    padding: 12px;
    border-radius: 14px;
  }

  .p-reserve-page .c-calendar__nav button {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .p-reserve-page .c-calendar__grid,
  .p-reserve-page .c-calendar__weeks {
    gap: 3px;
  }

  .p-reserve-page .c-calendar__day {
    min-height: 48px;
    border-radius: 10px;
    font-size: 0.88rem;
    padding-top: 5px;
  }

  .p-reserve-page .c-confirm-card {
    padding: 16px;
    border-radius: 14px;
  }

  .p-reserve-page .c-file-drop {
    padding: 22px 16px;
  }
}

/* ---------- Form progress ---------- */
.c-form-progress {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}
.c-form-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--color-primary) 0%, #d04dd6 100%);
  border-radius: inherit;
  width: 0;
  transition: width var(--dur-base) var(--ease-out);
}

/* ---------- Step card ---------- */
.c-step-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: calc(clamp(20px, 4vw, 40px) + 164px) clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.c-step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 164px;
  background:
    linear-gradient(180deg, rgba(42, 7, 46, 0.02), rgba(42, 7, 46, 0.24)),
    var(--step-image) center / cover no-repeat;
}
.c-step-card[data-step="1"] { --step-image: url("../assets/images/reserve/step-01-date.jpg"); }
.c-step-card[data-step="2"] { --step-image: url("../assets/images/reserve/step-02-organizer.jpg"); }
.c-step-card[data-step="3"] { --step-image: url("../assets/images/reserve/step-03-content.jpg"); }
.c-step-card[data-step="4"] { --step-image: url("../assets/images/reserve/step-05-detail.jpg"); }
.c-step-card[data-step="5"] { --step-image: url("../assets/images/reserve/step-06-confirm.jpg"); }
/* ステップ切替・アンカー時に見出しが固定ヘッダー/ステッパーの下へ隠れないよう余白を確保 */
.p-reserve-page .c-step-card { scroll-margin-top: 88px; }
@media (max-width: 767px) { .p-reserve-page .c-step-card { scroll-margin-top: 148px; } }
.c-step-card > * {
  position: relative;
  z-index: 1;
}
.c-step-card__head {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}
.c-step-card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: 700;
}
.c-step-card__title {
  font-size: 1.5rem;
  font-weight: 700;
}
.c-step-card__lead {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 4px;
}
.c-step-card__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.c-step-card__actions .c-button { flex: 1 1 140px; }
.c-step-card__actions .c-button--primary { flex: 2 1 180px; }
@media (max-width: 600px) {
  .c-step-card__actions { flex-direction: column; }
}

/* ---------- Confirm card ---------- */
.c-confirm-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  gap: 12px;
}
.c-confirm-card + .c-confirm-card { margin-top: 14px; }
.c-confirm-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.c-confirm-card__head h3 { font-size: 1.05rem; }
.c-confirm-card__edit {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}
.c-confirm-card dl {
  display: grid;
  gap: 6px;
  grid-template-columns: 130px 1fr;
  font-size: 0.95rem;
}
.c-confirm-card dt {
  color: var(--color-text-muted);
  font-weight: 500;
}
.c-confirm-card dd {
  font-weight: 500;
  word-break: break-word;
}
@media (max-width: 600px) {
  .c-confirm-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .c-confirm-card dl dt { font-size: 0.8rem; }
  .c-confirm-card dl dd { margin-bottom: 6px; }
}

/* ---------- File drop ---------- */
.c-file-drop {
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  background: var(--color-bg);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  cursor: pointer;
}
.c-file-drop:hover,
.c-file-drop.is-dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.c-file-drop__title {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 6px;
}
.c-file-drop__hint {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
.c-file-drop__icon {
  font-size: 28px;
  color: var(--color-primary);
}
.c-file-drop input { position: absolute; left: -9999px; }
.c-file-drop__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 12px;
}
.c-file-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.c-file-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}
.c-file-list__name { flex: 1; word-break: break-all; }
.c-file-list__size { color: var(--color-text-muted); font-size: 0.8rem; }
.c-file-list__remove {
  background: var(--color-bg);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--color-error);
}
.c-file-list__remove:hover { background: var(--color-error); color: #fff; }

/* ---------- Calendar ---------- */
.c-calendar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.c-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.c-calendar__title { font-weight: 700; font-size: 1.1rem; }
.c-calendar__nav {
  display: inline-flex;
  gap: 6px;
}
.c-calendar__nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 22px; font-weight: 800; line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.c-calendar__nav button:hover { background: var(--color-primary); color: #fff; }
.c-calendar__nav button:active { transform: scale(0.93); }
.c-calendar__weeks {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}
.c-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.c-calendar__day {
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 0 4px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
  min-height: 44px;
}
.c-calendar__day:hover { background: var(--color-primary-soft); border-color: var(--color-primary-light); }
.c-calendar__day.is-other { color: var(--color-text-soft); }
.c-calendar__day.is-today { font-weight: 700; }
.c-calendar__day.is-today::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}
.c-calendar__day.is-disabled {
  color: #c8cad0;
  cursor: not-allowed;
  background: #f5f5f0;
}
.c-calendar__day.is-disabled:hover { background: #f5f5f0; border-color: transparent; }
.c-calendar__day.has-events { background: var(--color-primary-light); }
/* 選択時は「紫背景・白文字」を最優先で適用（has-events より後＋高詳細度で上書き → 白文字がつぶれない） */
.c-calendar__day.is-selected,
.c-calendar__day.is-selected.has-events {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.c-calendar__day.is-selected::after { background: #fff; }
/* 日付の数字を読みやすく大きめに */
.c-calendar__day > span:first-child { font-size: 1.05rem; font-weight: 600; line-height: 1.05; }
.c-calendar__day.is-today > span:first-child { font-weight: 700; }
.c-calendar__dots {
  display: flex;
  gap: 2px;
  margin-top: auto;
  margin-bottom: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.c-calendar__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.c-calendar__dot--event       { background: var(--tag-event); }
.c-calendar__dot--exhibition  { background: var(--tag-exhibition); }
.c-calendar__dot--workshop    { background: var(--tag-workshop); }
.c-calendar__dot--academic    { background: var(--tag-academic); }
.c-calendar__dot--maintenance { background: var(--tag-maintenance); }

/* ---- 開催ログ／予約のタイトル付きピル（フルカレンダー：見やすさ重視・会議2026-06-18） ---- */
#full-calendar .c-calendar__day {
  aspect-ratio: auto;
  min-height: 108px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 8px 8px 10px;
  text-align: left;
}
#full-calendar .c-calendar__daynum { align-self: flex-start; }
.c-calendar__events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  width: 100%;
  overflow: hidden;
}
.c-calendar__pill {
  display: block;
  max-width: 100%;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  border-left: 3px solid var(--color-border);
  background: #f3f3ef;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-calendar__pill--event       { background: #f7e8f8; color: var(--tag-event);       border-left-color: var(--tag-event); }
.c-calendar__pill--exhibition  { background: #e3f3e6; color: var(--tag-exhibition);  border-left-color: var(--tag-exhibition); }
.c-calendar__pill--workshop    { background: #fdebd0; color: var(--tag-workshop);    border-left-color: var(--tag-workshop); }
.c-calendar__pill--academic    { background: #e0ebf8; color: var(--tag-academic);    border-left-color: var(--tag-academic); }
.c-calendar__pill--maintenance { background: #ececec; color: var(--tag-maintenance); border-left-color: var(--tag-maintenance); }
.c-calendar__pill.is-log::before { content: "📋 "; }
.c-calendar__more { font-size: 0.7rem; color: var(--color-text-soft); font-weight: 600; padding-left: 2px; }
/* 選択日（紫背景）でもピルが読めるよう、白い縁取りで浮かせる */
.c-calendar__day.is-selected .c-calendar__pill { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7); }

/* 開催ログへのリンク（日別パネル／モーダル内） */
.c-day-events__link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.c-day-events__link:hover { text-decoration: underline; }

/* ---------- Time picker ---------- */
.c-time-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .c-time-row { grid-template-columns: 1fr auto 1fr; align-items: end; }
}
.c-time-row__sep {
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  padding-bottom: 14px;
}
@media (max-width: 767px) {
  .c-time-row__sep { display: none; }
}

/* ---------- Modal ---------- */
.c-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 30, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base), visibility 0s linear var(--dur-base);
}
.c-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-base), visibility 0s;
}
.c-modal__panel {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(16px);
  transition: transform var(--dur-base) var(--ease-out);
}
.c-modal.is-open .c-modal__panel { transform: translateY(0); }
.c-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.c-modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  background: var(--color-bg);
}
.c-modal__close:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* ---------- Event card ---------- */
.c-event-card {
  display: grid;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.c-event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.c-event-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-primary-light), #fce6ff);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.c-event-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.c-event-card__body {
  padding: 18px 22px 22px;
  display: grid;
  gap: 8px;
}
.c-event-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.c-event-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 4px;
}
.c-event-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-event-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.c-event-card__footer span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

/* ---------- Filter chips ---------- */
.c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.c-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--color-border-strong);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.c-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.c-chip.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ---------- Search input ---------- */
.c-search {
  position: relative;
  display: flex;
  align-items: center;
}
.c-search__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: #fff;
  font-size: 1rem;
}
.c-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.c-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* ---------- Quote / pull quote ---------- */
.c-quote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 24px;
  background: var(--color-primary-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.85;
}
.c-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- TOC ---------- */
.c-toc {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
}
.c-toc h3 { font-size: 0.95rem; margin-bottom: 12px; }
.c-toc ol { display: grid; gap: 6px; counter-reset: toc; }
.c-toc ol li { font-size: 0.95rem; }
.c-toc ol li::before {
  counter-increment: toc;
  content: counter(toc) ".";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 6px;
}
.c-toc a { text-decoration: none; }
.c-toc a:hover { text-decoration: underline; }

/* ---------- Checklist ---------- */
.c-checklist {
  display: grid;
  gap: 10px;
}
.c-checklist li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  align-items: flex-start;
}
.c-checklist__num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ============================================================
   Rules & agreement gate (reserve) — progressive disclosure UI
   ============================================================ */
.c-rules {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
}
.c-rules__head h2 { font-size: var(--fs-h2); margin-top: 6px; }
.c-rules__intro { color: var(--color-text-muted); margin-top: 10px; max-width: var(--measure-cjk); }
.c-rules__points { display: grid; gap: 12px; margin: 24px 0 20px; }
.c-rules__point {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}
.c-rules__num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.c-rules__point h3 { font-size: 1rem; margin-bottom: 4px; }
.c-rules__point p { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.7; }
.c-rules__details { display: grid; gap: 8px; margin-bottom: 24px; }
.c-disclosure { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.c-disclosure > summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  font-weight: 600; display: flex; align-items: center; gap: 10px;
  background: var(--color-surface);
}
.c-disclosure > summary::-webkit-details-marker { display: none; }
.c-disclosure > summary::before { content: "＋"; color: var(--color-primary); font-weight: 700; width: 1em; }
.c-disclosure[open] > summary::before { content: "−"; }
.c-disclosure[open] > summary { border-bottom: 1px solid var(--color-border); }
.c-disclosure__body { padding: 14px 18px 18px; }
.c-disclosure__body ul { display: grid; gap: 8px; }
.c-disclosure__body li { position: relative; padding-left: 16px; font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.75; }
.c-disclosure__body li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); }
.c-rules__agree {
  border-top: 1px solid var(--color-border); padding-top: 20px; margin-top: 4px;
  display: grid; gap: 14px; justify-items: start;
}
.c-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 500; line-height: 1.6; padding: 4px 0; }
.c-check input { width: 24px; height: 24px; accent-color: var(--color-primary); flex: none; margin-top: 1px; }
.c-rules__agree-hint { font-size: 0.85rem; color: var(--color-text-soft); }

/* Gate the form until agreed — only when JS is active (robust without JS) */
html.js #reserve-form-section { display: none; }
html.js #reserve-form-section.is-revealed { display: block; }

/* ---- Rules points: white card (no gray) + smooth scroll OPEN/CLOSE (Apple/Tesla-style) ---- */
.c-rules__point {
  background: #fff;
  border-color: #e2e2dd;
  transition: box-shadow .55s var(--ease-out), border-color .55s var(--ease-out);
}
/* Collapsed by default (JS active); opens in the reading band, closes when it leaves.
   True content-height animation via grid 0fr->1fr (no max-height snap) = gentle reveal. */
html.js .c-rules__point .c-rules__reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(4px);
  transition:
    grid-template-rows .8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .55s cubic-bezier(0.22, 1, 0.36, 1),
    transform .7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: grid-template-rows, opacity;
}
html.js .c-rules__point .c-rules__reveal > * { overflow: hidden; min-height: 0; }
html.js .c-rules__point.is-open .c-rules__reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}
/* only the focused (open) card stands out -> minimal at-a-glance */
html.js .c-rules__point.is-open { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
html.js .c-rules__point:not(.is-open) .c-rules__num { opacity: .42; transition: opacity .55s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  html.js .c-rules__point .c-rules__reveal { transition: opacity .25s; transform: none; }
}

/* ============================================================
   Carousel — Apple-Store-style horizontal showcase + autoplay
   ============================================================ */
.c-carousel { position: relative; }
.c-carousel__viewport { overflow: hidden; }
.c-carousel__track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.c-carousel__track::-webkit-scrollbar { display: none; }
.c-carousel__slide {
  flex: 0 0 clamp(280px, 44%, 520px);
  scroll-snap-align: start;
}
@media (max-width: 767px) { .c-carousel__slide { flex-basis: 86%; } }

.c-carousel__ui {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: var(--space-5);
}
.c-carousel__play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; border-radius: var(--radius-pill);
  background: var(--color-primary); color: #fff; font-weight: 600; font-size: .95rem;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.c-carousel__play:hover { opacity: .9; }
.c-carousel__play-icon { font-size: .8em; line-height: 1; }
.c-carousel__dots { display: flex; gap: 8px; align-items: center; margin-inline: auto; }
.c-carousel__dot {
  width: 8px; height: 8px; border-radius: 999px; background: #cdcdd2;
  transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.c-carousel__dot.is-active { width: 28px; background: var(--color-primary); }
.c-carousel__nav { display: flex; gap: 8px; }
.c-carousel__nav button {
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--color-border-strong);
  display: grid; place-items: center; font-size: 1.35rem; line-height: 1; color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.c-carousel__nav button:hover { border-color: var(--color-primary); color: var(--color-primary); }
/* subtle "now playing" cue on the active slide */
.c-carousel.is-playing .c-carousel__slide { transition: opacity .5s var(--ease-out); }

/* ============================================================
   Section table-of-contents (jump to home sections) — advanced cards
   ============================================================ */
.c-section-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: var(--space-6);
}
.c-section-toc a {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: #fff; color: var(--color-text); text-decoration: none; font-weight: 600;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.c-section-toc a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  border-color: var(--color-primary);
}
.c-section-toc__num { font-family: var(--font-display); color: var(--color-primary); font-weight: 700; font-size: 1.05rem; }
.c-section-toc__label { flex: 1; }
.c-section-toc__arrow { color: var(--color-primary); transition: transform var(--dur-fast) var(--ease-out); }
.c-section-toc a:hover .c-section-toc__arrow { transform: translateX(5px); }

/* ===== 料金ノーティス（確認画面 ⑥・編集的でブランド感のある意匠） =====
   丸アイコン＋色面の“汎用カード”をやめ、見出し(eyebrow)＋表示フォントの金額＋
   左の細いブランドアクセントで、サイト全体（明朝見出し・抑制された紫）と統一。 */
.c-fee-notice {
  display: grid;
  gap: 8px;
  position: relative;
  padding: 20px 22px 20px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
}
.c-fee-notice::before {
  content: "";
  position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--color-primary);
}
.c-fee-notice__title {
  margin: 0;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--color-primary); text-transform: uppercase;
}
.c-fee-notice__amount {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem); color: var(--color-text); line-height: 1.12;
}
.c-fee-notice__amount small { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500; color: var(--color-text-soft); margin-left: 8px; }
.c-fee-notice__text { margin: 0; font-size: 0.9rem; color: var(--color-text-soft); line-height: 1.78; }

/* ===== STEP1 の料金ヒント（編集的・ブランド調：見出し＋表示フォントの金額） ===== */
.c-fee-line {
  display: grid;
  gap: 5px;
  position: relative;
  padding: 15px 18px 15px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.c-fee-line::before {
  content: "";
  position: absolute; left: 0; top: 15px; bottom: 15px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--color-primary);
}
.c-fee-line__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--color-primary); text-transform: uppercase;
}
.c-fee-line__amount {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.55rem); color: var(--color-text); line-height: 1.12;
}
.c-fee-line__amount small { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; color: var(--color-text-soft); margin-left: 8px; }
.c-fee-line__hint { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--color-text); }
.c-fee-line__sub { margin: 0; font-size: 0.84rem; color: var(--color-text-soft); line-height: 1.7; }

/* ===== 予約フォーム：選択した日の開催内容パネル（カレンダーページと同等の表示） ===== */
.c-day-events {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f7f6f9;
}
.c-day-events__head { font-weight: 700; margin-bottom: 12px; font-size: 0.98rem; }
.c-day-events__list { display: grid; gap: 10px; }
.c-day-events__item {
  display: grid; gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.c-day-events__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-day-events__title { font-weight: 600; }
.c-day-events__org { font-size: 0.85rem; color: var(--color-text-soft); }

/* ===== 施設の様子ギャラリー（予約 STEP3）＋ ライトボックス ===== */
.c-space-gallery { margin: 4px 0 26px; }
.c-space-gallery__head { margin-bottom: 14px; }
.c-space-gallery__eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--color-primary); text-transform: uppercase;
}
.c-space-gallery__note { margin: 6px 0 0; font-size: 0.9rem; color: var(--color-text-soft); line-height: 1.7; }
.c-space-gallery__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .c-space-gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.c-space-gallery__item {
  position: relative; margin: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius-md); border: 1px solid var(--color-border);
  background: #efeef1;
}
.c-space-gallery__item img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform var(--dur-base) var(--ease-out);
}
.c-space-gallery__item:hover img,
.c-space-gallery__item:focus-visible img { transform: scale(1.05); }
.c-space-gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 22px 12px 9px;
  font-size: 0.78rem; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, rgba(8,6,10,0) 0%, rgba(8,6,10,0.74) 100%);
}
.c-space-gallery__item:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* ライトボックス（.c-modal を流用：画像を自然サイズで中央表示。パネルは画像にシュリンクラップ） */
.c-modal--lightbox { padding: 24px; }
.c-modal__panel--lightbox {
  position: relative;
  background: transparent; box-shadow: none; padding: 0; overflow: visible;
  width: auto; max-width: none; max-height: none;
  transform: scale(0.96);
}
.c-modal--lightbox.is-open .c-modal__panel--lightbox { transform: scale(1); }
#space-lightbox-img {
  display: block;
  max-width: min(94vw, 1100px);
  max-height: 80vh;
  width: auto; height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
#space-lightbox-cap {
  margin: 12px 0 0; text-align: center; color: #fff;
  font-size: 0.92rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.c-modal--lightbox .c-modal__close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(255,255,255,0.94); box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

/* アラート内の太字は紫ではなく、そのアラートの意味色（緑/赤など）を継承する */
.c-alert strong, .c-alert b { color: inherit; }

/* ============================================================
   モバイルUX / 人間工学 強化（理論ベース監査の確定指摘を反映）
   根拠: WCAG 2.5.5(44px)/2.5.8(24px)・Apple HIG 44pt・Material 48dp・
        Fitts の法則・iOS フォーム自動ズーム回避(入力16px)・WCAG 1.4.3 AA(4.5:1)
   ============================================================ */

/* --- コントラストAA化（タグ文字色／全幅で有効） --- */
.c-tag--workshop    { color: #9a5b06; } /* on #fdebd0 = 4.64:1 */
.c-tag--exhibition  { color: #1f6e2c; } /* on #e3f3e6 = 5.48:1 */
.c-tag--maintenance { color: #4b5563; } /* on #ececec = 6.40:1 */
/* カレンダー当月外の日付：階層を回復しつつ可読（誤タップ低減） */
.c-calendar__day.is-other { color: #6e6e69; }

/* --- モーダルの閉じる×を44pxへ（全幅・Fitts） --- */
.c-modal__close { width: 44px; height: 44px; font-size: 20px; }

/* --- 確認画面の「修正」リンクを最小44pxの当たり判定に（最終ステップの復帰導線） --- */
.c-confirm-card__head { align-items: center; }
.c-confirm-card__edit {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 6px 10px; margin: -6px -10px;
  font-size: 0.9rem; font-weight: 600;
}

@media (max-width: 1023px) {
  /* 全フォームで入力16px固定（iOS自動ズーム回避）＋タッチ高さ確保（reserve以外にも適用） */
  .c-input, .c-select, .c-textarea { font-size: 16px; }
  .c-input, .c-select { min-height: 52px; }
  .c-field-help { font-size: 1rem; line-height: 1.65; }

  /* カレンダー（calendar.html を含む全カレンダー）をタップしやすく＋画面内に収める */
  .c-calendar { padding: 10px; }
  .c-calendar__grid, .c-calendar__weeks { gap: 3px; }
  .c-calendar__nav { gap: 8px; }
  .c-calendar__nav button { width: 48px; height: 48px; font-size: 24px; }
  /* aspect-ratio:1/1 だと min-height がセル幅も固定し7列で枠を超過するため、
     モバイルでは正方形固定を解除し幅を1frで縮められるようにする（高さは46pxで十分なタップ域）。 */
  .c-calendar__day { min-height: 46px; aspect-ratio: auto; border-radius: 10px; }

  /* フルカレンダーもスマホでは7列に収めるため、タイトル付きピルは「色バー」に圧縮（タップで詳細表示） */
  #full-calendar .c-calendar__day { min-height: 54px; padding: 6px 3px; align-items: center; }
  #full-calendar .c-calendar__daynum { align-self: center; }
  .c-calendar__events { flex-direction: row; flex-wrap: wrap; gap: 2px; justify-content: center; margin-top: 4px; }
  .c-calendar__pill { font-size: 0; line-height: 0; width: 14px; height: 4px; padding: 0; border-left: none; border-radius: 2px; background: currentColor; }
  .c-calendar__pill.is-log::before { content: none; }
  .c-calendar__more { font-size: 0.62rem; }

  /* event-log の絞り込みチップ（タップ最小＋隣接間隔） */
  .c-chip { min-height: 44px; padding: 10px 16px; font-size: 0.9rem; }
  .c-chips { gap: 10px; row-gap: 12px; }

  /* 小ボタンも最低44px（カレンダーCTA等の取りこぼし防止） */
  .c-button--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }

  /* 添付の削除（破壊的操作）ボタンを44pxへ */
  .c-file-list__remove { width: 44px; height: 44px; }
  .c-file-list__item { padding: 12px; gap: 8px; }

  /* 認証/開催報告フォームの送信ボタンをサムゾーン（下部）にスティッキー配置 */
  .c-rules form .c-button--block.c-button--lg {
    position: sticky; bottom: 0; z-index: 5;
    margin: 16px calc(-1 * clamp(20px, 5vw, 40px)) 0;
    width: auto; border-radius: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(20, 20, 30, .12);
  }
}

/* ===== 学外の方向け 予約フロー図（c-flow / details トグル）：広報課の公式フローを整理した可視化 ===== */
.c-flow {
  margin: 18px 0;
  border: 1px solid var(--color-primary, #8b168f);
  border-radius: 14px;
  background: linear-gradient(180deg, #faf4fb, #ffffff);
  overflow: hidden;
}
.c-flow__summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  font-weight: 800; font-size: 0.95rem; line-height: 1.5;
  color: var(--color-primary-dark, #6d1170);
}
.c-flow__summary::-webkit-details-marker { display: none; }
.c-flow__summary::before {
  content: "＋"; flex: none;
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-primary, #8b168f); color: #fff;
  font-weight: 800; font-size: 17px; line-height: 1;
}
.c-flow[open] .c-flow__summary::before { content: "−"; }
.c-flow__summary-text { flex: 1; }
.c-flow__summary-hint { flex: none; font-size: 0.74rem; font-weight: 700; color: var(--color-text-muted, #8a8a8a); }
.c-flow[open] .c-flow__summary-hint { display: none; }
.c-flow__summary:hover { background: rgba(139, 22, 143, 0.04); }
.c-flow__body { padding: 2px 16px 18px; }
.c-flow__legend {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 0 0 14px; font-size: 0.78rem; color: var(--color-text-muted, #555);
}
.c-flow__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.c-flow__dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.c-flow__dot--user { background: #eaf5db; border: 1px solid #cfe6ad; }
.c-flow__dot--univ { background: #dcebfb; border: 1px solid #b9d2f5; }
.c-flow__note {
  margin: 0 0 16px;
  font-size: 0.86rem; line-height: 1.7;
  color: var(--color-text-muted, #555);
}
.c-flow__phase {
  padding: 14px;
  border: 1px solid var(--color-border, #e7e0ec);
  border-radius: 14px;
  background: #fff;
}
.c-flow__phase-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.c-flow__phase-num {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; background: var(--color-primary, #8b168f);
  padding: 3px 10px; border-radius: 999px;
}
.c-flow__phase-title { font-weight: 700; font-size: 0.94rem; }
.c-flow__chip {
  margin-left: auto;
  font-size: 0.76rem; line-height: 1.4;
  background: #fff3e0; color: #9a3412; border: 1px solid #fcd9b6;
  padding: 4px 10px; border-radius: 999px;
}
.c-flow__chip strong { font-weight: 800; }
.c-flow__steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
}
.c-flow__step {
  position: relative; flex: 1 1 132px; min-width: 118px;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 10px 12px; border-radius: 10px;
  font-weight: 700; font-size: 0.88rem; line-height: 1.4; text-align: center;
}
.c-flow__actor { font-size: 0.68rem; font-weight: 700; opacity: 0.78; }
.c-flow__step--user { background: #eaf5db; color: #3f6212; border: 1px solid #cfe6ad; }
.c-flow__step--univ { background: #dcebfb; color: #1e3a8a; border: 1px solid #b9d2f5; }
.c-flow__step--goal { background: var(--color-primary, #8b168f); color: #fff; border: 1px solid #6d1170; } /* A4: ゴールを紫に統一 */

/* A3: 手続きの通し番号（丸1〜9を STEP1→STEP2 で連続採番） */
.c-flow__body { counter-reset: flowstep; }
.c-flow__step { counter-increment: flowstep; }
.c-flow__step::before {
  content: counter(flowstep);
  position: absolute; top: -9px; left: -9px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-primary, #8b168f); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); z-index: 2;
}
.c-flow__step--goal::before { background: #fff; color: var(--color-primary, #8b168f); } /* 紫地に白丸＋紫数字 */

/* A5: 予約可能日バナー（学外の56日ルールを具体日付で明示） */
.c-cal-banner {
  margin: 0 0 12px; padding: 10px 14px;
  background: #fff7ed; border-left: 3px solid #f4a93a; border-radius: 8px;
  font-size: 0.86rem; font-weight: 700; color: #9a3412; line-height: 1.6;
}

/* A7: 立場切替で料金欄を一瞬ハイライトし「料金が変わった」を視覚で伝える */
@keyframes feeFlash {
  0% { box-shadow: 0 0 0 0 rgba(139, 22, 143, 0); }
  30% { box-shadow: 0 0 0 6px rgba(139, 22, 143, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(139, 22, 143, 0); }
}
.c-fee-line.is-changed { animation: feeFlash 0.9s ease-out; border-radius: 12px; }

/* ===== 特例：時間外・休日利用（本学常勤教員の責任のもと） ===== */
.c-afterhours__toggle,
.c-afterhours__consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; line-height: 1.6; }
.c-afterhours__toggle input,
.c-afterhours__consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.c-afterhours__notice { margin-top: 12px; padding: 12px 14px; background: #fff7ed; border-left: 3px solid #f4a93a; border-radius: 10px; }
.c-afterhours__warn { margin: 0 0 10px; font-size: 0.86rem; color: #9a3412; line-height: 1.7; }
/* カレンダー：特例で選べる休館日（専用色＋「特例可」表示）。is-disabled とは別系統 */
.c-calendar__day.is-special { background: #fff3e0; color: #9a3412; cursor: pointer; position: relative; }
.c-calendar__day.is-special:hover { background: #ffe3bf; }
.c-calendar__day.is-special::after {
  content: "特例可"; position: absolute; bottom: 2px; left: 0; right: 0;
  text-align: center; font-size: 9px; font-weight: 700; color: #c2620a; pointer-events: none;
}

/* 開催ログ：Firestore読み込み完了まではデモを隠し、ダミーの一瞬表示(フラッシュ)を防ぐ */
#event-grid.is-loading > .c-event-card { display: none; }
.c-flow__step:not(:last-child)::after {
  content: "❯"; position: absolute; right: -11px; top: 50%;
  transform: translateY(-50%);
  font-weight: 900; font-size: 14px; color: var(--color-primary, #8b168f); z-index: 1;
}
.c-flow__bridge {
  margin: 12px 0; text-align: center;
  font-weight: 700; font-size: 0.86rem;
  color: var(--color-primary-dark, #6d1170);
}
@media (max-width: 640px) {
  .c-flow__steps { flex-direction: column; }
  .c-flow__step { flex: 1 1 auto; }
  .c-flow__step:not(:last-child)::after {
    content: "▼"; right: 50%; top: auto; bottom: -11px;
    transform: translateX(50%); font-size: 11px;
  }
  .c-flow__chip { margin-left: 0; }
}
