/* ===== LIX overlay: mobile UX additions on top of the master site ===== */
/* Added on top of the real sankotu-meguru.com markup. Does not touch original header/footer content. */

:root {
  --lix-navy: #143a5a;
  --lix-line: #06C755;
}

/* ---- Sticky compact bar (appears on scroll; the "60px -> 54px" header request) ---- */
.lix-sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  background: #fff;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateY(-100%);
  transition: transform .25s ease, height .25s ease, box-shadow .25s ease;
}
.lix-sticky-bar.is-visible { transform: translateY(0); }
.lix-sticky-bar.is-compact { height: 54px; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.lix-sticky-bar__logo {
  font-family: "Shippori Mincho B1", serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--lix-navy);
  transition: font-size .25s ease;
}
.lix-sticky-bar.is-compact .lix-sticky-bar__logo { font-size: 15px; }
.lix-sticky-bar__btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0; cursor: pointer;
}
.lix-sticky-bar__btn .material-symbols-outlined { font-size: 28px; color: var(--lix-navy); }

/* The page's root wrapper uses overflow:clip, which clips position:fixed
   descendants in Chromium. Must be visible for the sticky bar / slide-out
   menu / bottom CTA bar to render outside the page's normal flow. */
body > div:first-child { overflow: visible !important; }

/* The root wrapper and <header> both set an explicit z-index, which makes
   them stacking contexts. That traps position:fixed descendants (our menu
   panel) inside that context's paint order, below <main>/<footer> which
   come later in the DOM. Removing the explicit z-index (keeping position)
   stops them from trapping fixed children, without touching layout. */
body > div:first-child,
header,
header sd-toggle {
  z-index: auto !important;
}

/* ---- Mobile menu: slide-out overlay instead of push-down accordion ---- */
@media (max-width: 767px) {
  .lix-menu-panel {
    position: fixed !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important;
    height: 100vh !important;
    width: 82vw !important; max-width: 360px !important;
    background: #fff !important;
    overflow-y: auto !important;
    z-index: 600 !important;
    box-shadow: -6px 0 28px rgba(0,0,0,.18) !important;
    will-change: transform !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    transform: translateX(100%) !important;
    transition: transform .32s ease !important;
  }
  body.lix-menu-open .lix-menu-panel {
    transform: translateX(0) !important;
  }
  .lix-menu-list {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
  .lix-menu-list li {
    min-height: 48px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }
  .lix-menu-list li + li {
    margin-top: 6px !important;
  }
  .lix-menu-list a {
    display: block !important;
    width: 100% !important;
    padding: 4px 0 !important;
  }
  .lix-menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,20,30,.45);
    z-index: 590;
    opacity: 0; pointer-events: none;
    will-change: opacity;
    transition: opacity .3s ease;
  }
  body.lix-menu-open .lix-menu-backdrop { opacity: 1; pointer-events: auto; }
}

/* ---- Menu-bottom CTA trio (inside the slide-out panel) ---- */
.lix-menu-cta {
  margin: 24px 16px 16px;
  padding-top: 16px;
  border-top: 1px solid #e3e9ee;
}
.lix-menu-cta__tel {
  display: block;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--lix-navy);
  margin-bottom: 12px;
  text-decoration: none;
}
.lix-menu-cta__row { display: flex; gap: 8px; }
.lix-menu-cta__row a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; height: 64px; border-radius: 8px;
  font-size: 12px; text-decoration: none;
}
.lix-menu-cta__row .lix-call { background: #f3f6f8; color: var(--lix-navy); }
.lix-menu-cta__row .lix-line { background: var(--lix-line); color: #fff; }
.lix-menu-cta__row .lix-form { background: #f3f6f8; color: var(--lix-navy); }

/* ---- Bottom fixed CTA bar (phone / LINE / form, always visible) ---- */
.lix-bottom-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 400;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  height: 64px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.1);
  padding-bottom: env(safe-area-inset-bottom);
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.lix-bottom-cta a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; font-size: 11px;
}
.lix-bottom-cta .lix-call { background: #fff; color: var(--lix-navy); }
.lix-bottom-cta .lix-line { background: var(--lix-line); color: #fff; }
.lix-bottom-cta .lix-form { background: #fff; color: var(--lix-navy); }
.lix-bottom-cta .material-icons, .lix-bottom-cta .material-symbols-outlined { font-size: 20px; }
body { padding-bottom: 64px; }

/* ---- Inline CTA block (content-break CTA + reassurance text) ---- */
.lix-inline-cta {
  background: #eef4f8;
  padding: 28px 20px;
  text-align: center;
}
.lix-inline-cta p {
  margin: 0 0 14px;
  color: var(--lix-navy);
  font-size: 14px;
  line-height: 1.7;
}
.lix-inline-cta__row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.lix-inline-cta__row a {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.lix-inline-cta__row .lix-line { background: var(--lix-line); color: #fff; }
.lix-inline-cta__row .lix-form { background: var(--lix-navy); color: #fff; }

/* ---- Footer: single column + grouping ---- */
.lix-footer-nav {
  flex-direction: column !important;
  align-items: flex-start !important;
}
.lix-footer-nav li {
  width: 100% !important;
}
.lix-footer-nav .lix-group-start {
  margin-top: 18px !important;
}
