/* HGE Booking Widget — 自社予約ウィジェット（依頼書 native-booking-system） */
.hgeb { --hgeb-accent: #8a2537; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 16px; font-size: 14px; color: #333; max-width: 560px; margin: 0 auto; box-sizing: border-box; }
.hgeb *, .hgeb *::before, .hgeb *::after { box-sizing: border-box; }
.hgeb-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hgeb-title { font-weight: 700; font-size: 15px; }
.hgeb-navbtn { width: 36px; height: 36px; border: 1px solid #ddd; background: #fff; border-radius: 8px; font-size: 18px; cursor: pointer; }
.hgeb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; width: 100%; }
.hgeb-wd { text-align: center; font-size: 11px; color: #888; padding: 4px 0; }
.hgeb-wd.hgeb-sun { color: #c0392b; }
.hgeb-cell { position: relative; height: 54px; min-width: 0; border: 1px solid #eee; border-radius: 8px; background: #fafafa; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.hgeb-cell.hgeb-empty { border: 0; background: transparent; }
.hgeb-cell:disabled { color: #bbb; cursor: default; }
.hgeb-cell.hgeb-open { background: #fff; border-color: var(--hgeb-accent); cursor: pointer; }
.hgeb-cell.hgeb-open .hgeb-mark { color: var(--hgeb-accent); font-weight: 700; }
.hgeb-daynum { font-size: 12px; line-height: 1; }
.hgeb-mark { font-size: 13px; line-height: 1; }
.hgeb-note, .hgeb-loading { text-align: center; color: #888; font-size: 12px; margin: 10px 0 0; }
.hgeb-error { color: #c0392b; font-size: 13px; line-height: 1.7; }
.hgeb-back { border: 0; background: transparent; color: var(--hgeb-accent); font-size: 13px; cursor: pointer; padding: 0 0 8px; }
.hgeb-subtitle { font-weight: 700; margin: 0 0 10px; }
.hgeb-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hgeb-slot { border: 1px solid var(--hgeb-accent); color: var(--hgeb-accent); background: #fff; border-radius: 999px; padding: 10px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.hgeb-slot:hover { background: var(--hgeb-accent); color: #fff; }
.hgeb-form label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.hgeb-form input, .hgeb-form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; font-family: inherit; }
.hgeb-req { color: #fff; background: var(--hgeb-accent); border-radius: 4px; font-size: 10px; padding: 1px 5px; margin-left: 4px; font-weight: 700; }
.hgeb-opt { color: #666; background: #e8e8e8; border-radius: 4px; font-size: 10px; padding: 1px 5px; margin-left: 4px; font-weight: 700; }
.hgeb-hint { display: block; color: #666; font-size: 11px; margin-top: 4px; font-weight: 400; }
.hgeb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hgeb-submit { width: 100%; border: 0; border-radius: 999px; background: var(--hgeb-accent); color: #fff; font-size: 15px; font-weight: 700; padding: 14px 0; cursor: pointer; }
.hgeb-submit:disabled { opacity: .6; cursor: default; }
.hgeb-err { color: #c0392b; font-size: 13px; margin: 10px 0 0; }
.hgeb-done { text-align: center; padding: 24px 8px; }
.hgeb-done-mark { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--hgeb-accent); color: #fff; font-size: 28px; line-height: 56px; }
.hgeb-done-title { font-size: 17px; margin: 0 0 8px; color: #333; }
.hgeb-done-text { font-size: 13px; color: #555; line-height: 1.8; margin: 0; }
.hgeb-mail { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.hgeb-mail input { flex: 1; min-width: 0; margin-top: 0 !important; }
.hgeb-mail select { flex: 1.2; min-width: 0; padding: 10px 8px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; background: #fff; font-family: inherit; }
.hgeb-at { color: #888; font-weight: 700; }
.hgeb-domain-free { margin-top: 6px !important; }
.hgeb-form input[hidden], .hgeb-domain-free[hidden] { display: none !important; }
.hgeb-desc{margin-top:18px;padding-top:14px;border-top:1px solid #e6dcd8;font-size:13px;line-height:1.9;color:#5b4b4b;text-align:left}
.hgeb-desc-line{margin:0}
.hgeb-desc-sp{height:10px}

/* 2026-09-06 booking-calendar-notices: 期間イベントを日付セル内の帯（レーン）で表示。重なりはレーンを追加（1イベント1行） */
.hgeb-grid--ev .hgeb-cell { height: auto; min-height: 54px; justify-content: flex-start; overflow: visible; }
.hgeb-lanes { width: 100%; display: block; }
.hgeb-lane { position: relative; height: 16px; width: 100%; }
.hgeb-band { position: absolute; left: 0; top: 2px; height: 13px; line-height: 13px; z-index: 2; box-sizing: border-box;
  width: calc(var(--n) * 100% + (var(--n) - 1) * 4px); border-radius: 3px; padding: 0 4px;
  font-size: 10px; font-weight: 700; color: #333; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hgeb-daywrap { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; }
