/* デモ予約の案内（ポップアップ・ページの最後の常設の欄） */
.ebl-demo { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.ebl-demo.is-open { opacity: 1; }
.ebl-demo[hidden] { display: none; }
html.ebl-demo-open { overflow: hidden; }
.ebl-demo__backdrop { position: absolute; inset: 0; background: rgba(11, 76, 92, .55); backdrop-filter: blur(2px); }
.ebl-demo__box { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); width: min(1100px, 100%); max-height: min(720px, calc(100dvh - 32px)); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(11, 76, 92, .35); transform: translateY(12px); transition: transform .25s ease; }
.ebl-demo.is-open .ebl-demo__box { transform: none; }
.ebl-demo__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.ebl-demo__x:hover { background: var(--mist); }
.ebl-demo__lead { position: relative; padding: 36px 32px; color: #fff; background: radial-gradient(circle at 105% 108%, rgba(255, 255, 255, .12) 0 28%, transparent 28.2%), radial-gradient(circle at 105% 108%, rgba(255, 255, 255, .08) 0 40%, transparent 40.2%), linear-gradient(160deg, var(--teal) 0%, var(--deep) 100%); overflow-y: auto; }
.ebl-demo__tag { display: inline-block; margin: 0 0 14px; padding: 2px 12px; border-radius: 99px; background: #fff; color: var(--teal-ink); font-size: 13px; font-weight: 700; }
.ebl-demo__lead h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 30px); line-height: 1.45; color: #fff; }
.ebl-demo__lead p { margin: 0 0 14px; font-size: 14px; line-height: 1.8; }
.ebl-demo__lead ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.ebl-demo__lead li { position: relative; padding-left: 26px; margin-bottom: 8px; line-height: 1.6; }
.ebl-demo__lead li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(transparent 0 0); }
.ebl-demo__lead li::after { content: ""; position: absolute; left: 5px; top: calc(.2em + 4px); width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ebl-demo__alt a { color: #fff; font-weight: 700; }
.ebl-demo__cal { display: flex; flex-direction: column; min-height: 0; padding: 56px 16px 16px; overflow-y: auto; }
.ebl-demo__mount { display: none; }
.ebl-demo.has-cal .ebl-demo__mount { display: block; flex: 1; min-height: 520px; }
.ebl-demo.has-cal .ebl-demo__plan { display: none; }
.ebl-demo__plan { display: flex; flex-direction: column; gap: 18px; margin: auto 0; }
.ebl-demo__shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(11, 76, 92, .14); background: var(--mist); }
.ebl-demo__shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.ebl-demo__shot figcaption { padding: 8px 12px; font-size: 12px; color: var(--soft); background: #fff; border-top: 1px solid var(--line); }
.ebl-demo__steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ebl-demo__steps li { counter-increment: s; padding: 12px 12px 12px; border-radius: 12px; background: var(--mist); font-size: 12px; line-height: 1.6; color: var(--soft); }
.ebl-demo__steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 6px; border-radius: 50%; background: var(--teal-ink); color: #fff; font-weight: 700; font-size: 13px; }
.ebl-demo__steps b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.ebl-demo__cta { display: block; padding: 16px 20px; border-radius: 99px; background: var(--orange); color: #fff; text-align: center; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(224, 145, 42, .35); transition: transform .15s ease, box-shadow .15s ease; }
.ebl-demo__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(224, 145, 42, .45); color: #fff; }
.ebl-demo__cta::after { content: " →"; }
.ebl-demo__note { margin: -8px 0 0; text-align: center; font-size: 12px; color: var(--soft); }
.ebl-demo__mount iframe { width: 100% !important; min-height: 560px; border: 0; }
/* TimeRex のカレンダーは横幅 640px ほどで組まれているので、狭いときは demo-popup.js で縮めて収める（右端が切れないように） */
.ebl-demo__cal, .ebl-demo__mount { min-width: 0; }
.ebl-demo__mount { overflow: hidden; }
.ebl-demo.is-scaled .ebl-demo__mount iframe { max-width: none !important; }
.ebl-demo.has-cal.is-scaled .ebl-demo__mount { min-height: 0; flex: none; }
/* ページの最後（フッターの上）に常設する欄。ポップアップと同じ中身を、画面の流れの中に置く */
.ebl-demo.ebl-demo--inline { position: static; inset: auto; z-index: auto; display: block; opacity: 1; padding: clamp(56px, 8vw, 96px) var(--gut); background: var(--mist); scroll-margin-top: 72px; }
.ebl-demo--inline .ebl-demo__box { width: 100%; max-width: 1120px; max-height: none; margin-inline: auto; transform: none; box-shadow: 0 20px 50px rgba(11, 76, 92, .14); }
.ebl-demo--inline .ebl-demo__lead { padding: 44px 40px; overflow: visible; }
.ebl-demo--inline .ebl-demo__lead h2 { font-size: clamp(26px, 3vw, 34px); }
.ebl-demo--inline .ebl-demo__cal { padding: 28px 24px; overflow: visible; }
.ebl-demo--inline.has-cal .ebl-demo__mount { min-height: 600px; }
.ebl-demo--inline.has-cal.is-scaled .ebl-demo__mount { min-height: 0; }
@media (max-width: 760px) {
  .ebl-demo { padding: 0; place-items: end center; }
  .ebl-demo__box { grid-template-columns: minmax(0, 1fr); max-height: 92dvh; border-radius: 20px 20px 0 0; overflow-y: auto; }
  .ebl-demo__lead { padding: 28px 20px 20px; overflow: visible; }
  .ebl-demo__lead ul, .ebl-demo__lead p:not(.ebl-demo__tag):not(.ebl-demo__alt) { display: none; }
  .ebl-demo__lead h2 { font-size: 22px; margin-bottom: 8px; }
  .ebl-demo__cal { padding: 8px 12px 20px; overflow: visible; }
  .ebl-demo.has-cal .ebl-demo__mount { min-height: 480px; }
  .ebl-demo__steps { grid-template-columns: 1fr; }
  .ebl-demo__steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; }
  .ebl-demo__steps li::before { grid-row: span 2; margin: 0; }
  .ebl-demo__shot { display: none; }
  .ebl-demo.ebl-demo--inline { padding: 48px 16px; }
  .ebl-demo--inline .ebl-demo__box { border-radius: 20px; overflow: hidden; }
  .ebl-demo--inline .ebl-demo__lead { padding: 28px 20px 20px; }
  .ebl-demo--inline .ebl-demo__lead p:not(.ebl-demo__tag):not(.ebl-demo__alt) { display: block; font-size: 14px; }
  .ebl-demo--inline .ebl-demo__lead ul { display: block; margin-bottom: 14px; }
  .ebl-demo--inline .ebl-demo__lead p:not(.ebl-demo__alt) br { display: none; }
  .ebl-demo--inline .ebl-demo__cal { padding: 16px 16px 24px; }
  .ebl-demo--inline .ebl-demo__shot { display: block; }
}
@media (prefers-reduced-motion: reduce) { .ebl-demo, .ebl-demo__box { transition: none; } }
