/* ============================================================
   tomarin — デモ予約 (Demo Booking) page
   Builds on request.css; adds calendar + slot picker.
   ============================================================ */

.bk-wrap { grid-template-columns: 0.8fr 1.2fr; }
.bk-card { padding: 32px; }

/* ---------- Step indicator ---------- */
.bk-steps {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
}
.bk-step {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-quiet); font-weight: 500;
  white-space: nowrap;
}
.bk-step i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-off-white); border: 0.5px solid var(--border-card);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 12px; font-family: var(--font-en);
  color: var(--text-quiet);
}
.bk-step.active { color: var(--green-text); }
.bk-step.active i { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }
.bk-step-line { flex: 1; height: 1px; background: var(--border-subtle); min-width: 12px; }

/* ---------- Pick layout ---------- */
.bk-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 26px;
  align-items: start;
}

/* ---------- Calendar ---------- */
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cal-month { font-size: 15px; font-weight: 600; color: var(--black); font-variant-numeric: tabular-nums; }
.cal-nav {
  width: 32px; height: 32px; border-radius: 8px;
  border: 0.5px solid var(--border-card); background: white;
  font-size: 18px; color: var(--text-dim); cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 140ms ease;
}
.cal-nav:hover:not(:disabled) { border-color: var(--brand-green); color: var(--green-text); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd {
  text-align: center; font-size: 11px; color: var(--text-quiet);
  font-weight: 500; padding: 4px 0 8px;
}
.cal-wd.sun { color: #c0492e; }
.cal-wd.sat { color: #2f6f8f; }

.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0.5px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 130ms ease;
}
.cal-cell.empty { cursor: default; }
.cal-num { font-size: 13px; color: var(--black); font-variant-numeric: tabular-nums; }
.cal-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-green); }

.cal-cell.open { background: var(--green-bg); border-color: rgba(111,175,42,0.22); }
.cal-cell.open:hover { border-color: var(--brand-green); transform: translateY(-1px); }
.cal-cell.closed { cursor: not-allowed; }
.cal-cell.closed .cal-num { color: var(--text-quiet); opacity: 0.5; }
.cal-cell.today .cal-num { font-weight: 700; }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--border-card); }
.cal-cell.sel { background: var(--brand-green); border-color: var(--brand-green); }
.cal-cell.sel .cal-num { color: #fff; font-weight: 600; }
.cal-cell.sel .cal-dot { background: rgba(255,255,255,0.9); }

.cal-legend {
  display: flex; gap: 18px; margin-top: 16px;
  font-size: 11.5px; color: var(--text-dim);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }
.cal-legend .lg-open { background: var(--green-bg); border: 0.5px solid rgba(111,175,42,0.3); }
.cal-legend .lg-closed { background: var(--bg-off-white); border: 0.5px solid var(--border-card); }

/* ---------- Slots ---------- */
.bk-slots { border-left: 0.5px solid var(--border-subtle); padding-left: 26px; min-height: 280px; }
.bk-slots-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; min-height: 240px; text-align: center; color: var(--text-quiet);
  gap: 14px;
}
.bk-slots-empty p { font-size: 13px; line-height: 1.8; margin: 0; }

.bk-slots-head { margin-bottom: 16px; }
.bsh-date { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.bsh-sub { font-size: 12px; color: var(--text-dim); }

.bk-slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.bk-slot {
  font-family: var(--font-en); font-size: 14px; font-weight: 500;
  color: var(--black); background: var(--bg-off-white);
  border: 0.5px solid var(--border-card); border-radius: 10px;
  padding: 12px 0; cursor: pointer; transition: all 140ms ease;
  font-variant-numeric: tabular-nums;
}
.bk-slot:hover { border-color: var(--brand-green); color: var(--green-text); }
.bk-slot.sel { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }
.bk-next { width: 100%; justify-content: center; }
.bk-next:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Recap on details step ---------- */
.bk-slot-recap {
  display: flex; align-items: center; gap: 14px;
  background: var(--green-bg); border: 0.5px solid rgba(111,175,42,0.25);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 26px;
}
.bsr-icon {
  width: 40px; height: 40px; border-radius: 10px; background: white;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 0.5px solid rgba(111,175,42,0.3);
}
.bsr-date { font-size: 14px; font-weight: 600; color: var(--black); }
.bsr-time { font-size: 12px; color: var(--green-text); margin-top: 2px; }
.bsr-change {
  margin-left: auto; font-family: inherit; font-size: 12px; font-weight: 500;
  color: var(--green-text); background: white; border: 0.5px solid rgba(111,175,42,0.3);
  border-radius: 8px; padding: 7px 14px; cursor: pointer; transition: all 140ms ease;
}
.bsr-change:hover { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }

.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.bk-submit { width: 100%; justify-content: center; margin-top: 4px; }

/* ---------- Notify tomarin (confirmation) ---------- */
.bk-notify {
  max-width: 420px;
  margin: 0 auto 26px;
  text-align: center;
}
.bk-notify-btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
}
.bk-notify-note {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ---------- Add-to-calendar (confirmation) ---------- */
.bk-cal-add {
  max-width: 420px;
  margin: 0 auto 30px;
  text-align: center;
}
.bca-label {
  font-family: var(--font-en);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-quiet); margin-bottom: 12px;
}
.bca-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bca-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
  text-decoration: none; transition: all 150ms ease;
}
.bca-btn.gcal {
  background: var(--brand-green); color: #fff; border: 0.5px solid var(--brand-green);
}
.bca-btn.gcal:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bca-btn.ics {
  background: white; color: var(--black); border: 0.5px solid var(--border-card);
}
.bca-btn.ics:hover { border-color: var(--brand-green); color: var(--green-text); }
.bca-note {
  font-size: 11.5px; line-height: 1.7; color: var(--text-dim);
  margin-top: 14px;
}
.bca-note strong { color: var(--green-text); }

/* ---------- Demo type toggle ---------- */
.bk-typetoggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--bg-off-white); border: 0.5px solid var(--border-card);
  border-radius: 14px; padding: 6px; margin: 22px 0 24px;
}
.btt-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-family: inherit; text-align: left; cursor: pointer;
  background: transparent; border: 0.5px solid transparent; border-radius: 10px;
  padding: 11px 14px; transition: all 150ms ease;
}
.btt-opt:hover { background: rgba(255,255,255,0.6); }
.btt-opt.on { background: #fff; border-color: rgba(111,175,42,0.3); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.btt-name { font-size: 14px; font-weight: 600; color: var(--black); }
.btt-opt.on .btt-name { color: var(--green-text); }
.btt-min { font-size: 12px; color: var(--text-dim); font-family: var(--font-en); font-variant-numeric: tabular-nums; }

/* ---------- Agenda ---------- */
.bk-agenda { margin-bottom: 24px; }
.bka-head {
  font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 12px;
}
.bka-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bka-list li {
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.4;
}
.bka-no {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-bg); color: var(--green-text);
  border: 0.5px solid rgba(111,175,42,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; font-family: var(--font-en);
}

/* ---------- Presenter picker ---------- */
.bk-hostpick { margin-bottom: 22px; }
.bkhp-head {
  font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 12px;
}
.bkhp-grid { display: flex; flex-direction: column; gap: 8px; }

/* Presenter card (also used as a selectable button) */
.bk-host {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; font-family: inherit; cursor: pointer;
  background: var(--bg-off-white); border: 0.5px solid var(--border-card);
  border-radius: 12px; padding: 11px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.bk-host:hover { border-color: rgba(111,175,42,0.4); }
.bk-host.on {
  background: var(--green-bg);
  border-color: var(--brand-green);
  box-shadow: 0 10px 26px -18px rgba(111,175,42,0.6);
}
.bk-host-photo {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  overflow: hidden; background: #fff; border: 0.5px solid var(--border-card);
}
.bkh-name { font-size: 13.5px; font-weight: 600; color: var(--black); }
.bkh-role { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.bkh-check {
  position: absolute; top: 50%; right: 14px; margin-top: -10px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-green);
  opacity: 0; transform: scale(0.6); transition: all 180ms cubic-bezier(.16,1.3,.4,1);
}
.bk-host.on .bkh-check { opacity: 1; transform: scale(1); }

/* ---------- Post-booking flow ---------- */
.bk-flow { margin-bottom: 24px; }
.bkf-head {
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-quiet); margin-bottom: 12px;
}
.bkf-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bkf-steps li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 1.5; color: var(--text-dim);
}
.bkf-no {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; font-family: var(--font-en);
}

/* ---------- Social proof ---------- */
.bk-proof {
  border-top: 0.5px solid var(--border-subtle);
  padding-top: 22px; margin-bottom: 24px;
}
.bkp-label {
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-quiet); margin-bottom: 14px;
}
.bkp-logos {
  display: flex; align-items: center; flex-wrap: wrap; gap: 22px;
  margin-bottom: 18px;
}
.bkp-logos img {
  height: 30px; width: auto; object-fit: contain;
  opacity: 1;
  transition: opacity 160ms ease;
}
.bkp-logos img:hover { opacity: 0.68; }
.bkp-quote {
  margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--brand-green);
  font-family: var(--font-jp-serif); font-size: 14px; line-height: 1.8;
  color: var(--black);
}
.bkp-quote cite {
  display: block; margin-top: 8px; font-family: var(--font-en);
  font-style: normal; font-size: 11.5px; color: var(--text-quiet);
}

/* ============================================================
   Modern layer (demo page only — loaded after request.css)
   ============================================================ */

/* Ambient background: larger, soft-blurred brand shapes */
.req-main { padding-top: 132px; }
.req-shapes svg { opacity: 0.9; filter: blur(38px); }
.req-shapes svg:nth-child(1) { transform: scale(3.4); }
.req-shapes svg:nth-child(2) { transform: scale(3.0); }
.req-shapes svg:nth-child(3) { transform: scale(2.6); }

/* Display title — tighter, larger, more contemporary rhythm */
.req-aside .req-title {
  font-size: 46px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.req-aside .req-lead { font-size: 14.5px; max-width: 30em; }

/* Segmented toggle — sliding, pill-inside-pill */
.bk-typetoggle {
  border-radius: 16px; padding: 5px; gap: 5px;
  border-color: var(--border-subtle);
  box-shadow: inset 0 1px 2px rgba(31,58,43,0.04);
}
.btt-opt { border-radius: 12px; padding: 12px 16px; transition: all 200ms cubic-bezier(.4,0,.2,1); }
.btt-opt.on { box-shadow: 0 6px 18px -10px rgba(31,58,43,0.4); }

/* Unified premium cards for agenda / host / flow / proof */
.bk-agenda {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 0.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 18px 44px -34px rgba(31,58,43,0.3);
}
.bka-list li { font-size: 14px; }
.bk-host, .bk-proof {
  border-radius: 14px;
}
.bk-host {
  background: linear-gradient(160deg, #fff, var(--bg-off-white));
  padding: 11px 14px;
  box-shadow: 0 12px 30px -26px rgba(31,58,43,0.3);
}
.bk-host.on { background: var(--green-bg); }
.bk-host-photo { box-shadow: 0 4px 12px -8px rgba(31,58,43,0.5); }
.bk-flow {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 0.5px solid var(--border-subtle);
  padding: 18px 20px;
  border-radius: 18px;
}
.bk-note-line {
  font-size: 12.5px; line-height: 1.7; color: var(--text-dim);
  margin: 18px 0 20px;
}
.bkp-townlogo { width: 72px; height: 28px; display: inline-block; }
.bkp-logos .bkp-town { height: 44px; width: auto; }
.bk-proof {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 0.5px solid var(--border-subtle);
  border-top: 0.5px solid var(--border-subtle);
  padding: 20px 22px;
}

/* Calendly card — rounder, layered depth, subtle brand accent */
.cal-card {
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 40px 90px -50px rgba(31,58,43,0.4), 0 8px 24px -20px rgba(31,58,43,0.3);
  overflow: hidden;
  position: relative;
}
.cal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-green), #9ED4E2 55%, #F5D938);
}

/* Floating nav — frosted */
.site-nav.scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .bk-wrap { grid-template-columns: 1fr; }
  .req-aside .req-title { font-size: 36px; }
}
@media (max-width: 600px) {
  .bk-grid { grid-template-columns: 1fr; gap: 22px; }
  .bk-slots { border-left: none; padding-left: 0; border-top: 0.5px solid var(--border-subtle); padding-top: 20px; min-height: 0; }
  .bk-slots-empty { display: none; }
  .bk-fields { grid-template-columns: 1fr; gap: 0; }
  .bk-card { padding: 24px 20px; }
  .bk-step span:not(.bk-step i) { font-size: 11px; }
}
