/* ============================================================
   Shared site header — two SEPARATE components, not one
   responsive block:
     - .l-side-navi  : PC-ONLY sticky left sidebar (nav + owner CTA).
       Hidden entirely on SP.
     - .l-page-head  : SP-ONLY standalone header (character + brand
       card only, no nav/owner — those live in the .c-sp-menu overlay
       instead, see components.css). Hidden entirely on PC.
   Figma reference: node 509:528 (PC) / node 627 tree (SP) for parking-management;
   node 303:2069 (PC) / node 327:5609 (SP) for the top page.
   Both share the same inner "card" building blocks (.l-side-navi__card,
   __intro, __corp, __title, __dot, and the c-character frame) since the
   visual language is identical — only the outer wrapper + what it
   contains (nav/owner or not) differs.
   Used by every page (parking-management, top).
   ============================================================ */

.l-side-navi {
  background: #fff;
  position: relative;
  z-index: 20;
  display: none;
}

.l-page-head {
  display: none;
}

.l-side-navi__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 40px 80px;
}

.l-side-navi__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;  
  padding-top: 40px;
  position: relative;
}

/* frame size for the shared c-character face+hand overlay; pulled down over
   the card below it by the same amount the two overlap in the design. */
.l-side-navi__character-frame {
  width: 250px;
  margin-bottom: -17px;
}

/* ---- l-side-navi__card : the bordered card with corner dots ----
   On PC (inside .l-side-navi) it wraps the intro block AND the nav + owner
   CTA (Figma "Frame 1511", border-3 #222, radius 20, padding 40, gap 32).
   On SP (inside .l-page-head) it wraps only the intro block — border-2,
   radius 10, padding 20 (see the SP media query below), no nav/owner. */
.l-side-navi__card {
  background: #fff;
  border: 3px solid #222;
  border-radius: 20px;
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
}

.l-side-navi__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  border-bottom: 2px dashed #ccc;
  padding-bottom: 32px;
  text-decoration: none;
  color: inherit;
}

.l-side-navi__corp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Mplus 1p", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1; /* Figma: leading-none — without this the "の" text box
                     inherits the global line-height:1.8 and grows taller
                     than the 24px/18px logo image next to it */
  color: #222;
  margin: 0;
}
.l-side-navi__corp-logo {
  height: 24px;
  width: auto;
}

/* ---- title block: "月極駐車場" + search icon + "検索サイト" ----
   PC (Figma node 438:4963): stacked column, "月極駐車場" on its own line,
   then the icon+"検索サイト" row below.
   SP (Figma node 438:4932/438:4930): a single row, all three items inline.
   Driven entirely by flex-direction below — no manual <br> needed. */
.l-side-navi__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: "Mplus 1p", "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: #222;
}
.l-side-navi__title-main,
.l-side-navi__title-sub {
  font-size: 40px;
  line-height: 1.2;
  white-space: nowrap;
}
.l-side-navi__search {
  display: flex;
  align-items: center;
  gap: 6px;
}
.l-side-navi__search-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.l-side-navi__nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
  width: 100%;
}

/* Figma Frame 10727: pin 16x21 + Noto Sans JP Bold 18px / lh 1.5.
   Default (inactive) is #bbb; .-current is #005bac. Top page marks
   "月極駐車場をお探しの方"; every other page marks "月極駐車場オーナー様". */
.l-side-navi__audience {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: #bbb;
  white-space: nowrap;
}
.l-side-navi__audience.-current {
  color: #005bac;
}
.l-side-navi__audience-icon {
  display: block;
  width: 16px;
  height: 21px;
  flex-shrink: 0;
}

.l-side-navi__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.l-side-navi__links {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.l-side-navi .c-link-navigation {
  justify-content: flex-start;
  font-size: 16px;
}

.l-side-navi__owner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.l-side-navi__owner-btn {
  background: #005bac;
  color: #fff;
  font-family: "Mplus 1p", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  width: 100%;
  padding: 16px 24px;
  position: relative;
  z-index: 1;
}

/* Hover state — Figma node 345:6798 (PC/ButtonNavi, "hovered" variant):
   only the background changes, #005bac -> #004aa1. */
.l-side-navi__owner-btn:hover {
  background: #004aa1;
}

.l-side-navi__logo {
  margin: 0;
  line-height: 0;
}
.l-side-navi__logo img {
  height: 22px;
  width: auto;
}

/* Logo plus the two external text links stacked under it. Same list is
   reused inside .c-sp-menu__brand, which is already a centered column. */
.l-side-navi__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.l-side-navi__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.l-side-navi__legal li {
  margin: 0;
  font-family: "Noto Sans JP", "Mplus 1p", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #005bac;
}
.l-side-navi__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}
.l-side-navi__legal a:hover {
  color: #004aa1;
}

/* ---- corner dots on .l-side-navi__card (Figma "Ellipse 1-4") ---- */
.l-side-navi__dot {
  position: absolute;
  border-radius: 100%;
  background: #e6e6e6;
}

/* ============================================================
   SP — .l-page-head only (standalone header, no nav/owner)
   ============================================================ */
@media (max-width: 767px) {
  .l-page-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    position: relative;
    padding: 0 20px;
    margin-top: 24px;
  }

  .l-page-head .l-side-navi__brand {
    padding-top: 0;
  }
  .l-side-navi__character-frame {
    width: 130px;
    margin-bottom: -9px;
  }
  .l-side-navi__card {
    border-width: 2px;
    border-radius: 10px;
    padding: 20px;
    gap: 0;
  }
  .l-side-navi__intro {
    gap: 6px;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .l-side-navi__corp-logo {
    height: 18px;
  }
  .l-side-navi__corp {
    gap: 8px;
    font-size: 18px; /* Figma SP: "の" is 18px, matching the shrunk logo height */
  }
  .l-side-navi__title {
    flex-direction: row;
    gap: 2px;
  }
  .l-side-navi__title-main,
  .l-side-navi__title-sub {
    font-size: 24px;
  }
  .l-side-navi__search {
    gap: 0;
  }
  .l-side-navi__search-icon {
    width: 24px;
    height: 24px;
  }
  .l-side-navi__dot {
    width: 8px;
    height: 8px;
  }
  .l-side-navi__dot.-tl { top: 8px; left: 8px; }
  .l-side-navi__dot.-tr { top: 8px; right: 8px; }
  .l-side-navi__dot.-bl { bottom: 8px; left: 8px; }
  .l-side-navi__dot.-br { bottom: 8px; right: 8px; }
}

/* ============================================================
   PC — .l-side-navi only (sticky sidebar with nav + owner CTA)
   Two-column layout with the sidebar scrolling along with the page but
   pinned to the top of the viewport for as long as the sidebar's own
   (shorter) column has room — i.e. position:sticky inside a flex row
   that is stretched to the full page height by .pm-page/.top-page.

   Fluid scale, mirroring the SP convention above (100vw / 375): the PC
   design is authored at a 1600px reference width (sidebar 400 + main
   1200 — see --design-width-pc/--sidenav-width-pc/--main-width-pc in
   styles.css), so PC values scale as N * (100vw / 1600) instead of
   being pinned to one fixed pixel size below a min-width lock. Not every
   property scales, though — audience labels, owner-btn and the shared
   .c-link-navigation font stay at their fixed px sizes here exactly like
   they already do at the SP breakpoint, for readability/touch-target
   reasons; only the "hero" header content (character, card, corp
   logo+text, title, search icon, dots, spacing) scales with viewport.
   ============================================================ */
@media (min-width: 768px) {
  .pm-page,
  .top-page {
    display: flex;
    align-items: stretch;
    --pc: max(0.92px, calc(100vw / 1600));
  }
  .l-side-navi {
    display: block;
    flex: 0 0 calc(400 * var(--pc));
    width: calc(400 * var(--pc));
  }
  .l-side-navi__inner {
    position: sticky;
    top: 0;
    gap: calc(40 * var(--pc));
    padding: 0 calc(40 * var(--pc)) calc(80 * var(--pc));
  }
  .l-side-navi__brand {
    padding-top: calc(40 * var(--pc));
  }
  .l-side-navi__character-frame {
    width: calc(250 * var(--pc));
    margin-bottom: calc(-17 * var(--pc));
  }
  .l-side-navi__card {
    border-width: calc(3 * var(--pc));
    border-radius: calc(20 * var(--pc));
    padding: calc(40 * var(--pc));
    gap: calc(32 * var(--pc));
  }
  .l-side-navi__intro {
    gap: calc(16 * var(--pc));
    border-bottom-width: calc(2 * var(--pc));
    padding-bottom: calc(32 * var(--pc));
  }
  .l-side-navi__corp-logo {
    height: calc(24 * var(--pc));
  }
  .l-side-navi__corp {
    font-size: calc(24 * var(--pc));
  }
  .l-side-navi__title-main,
  .l-side-navi__title-sub {
    font-size: calc(40 * var(--pc));
  }
  .l-side-navi__search {
    gap: calc(6 * var(--pc));
  }
  .l-side-navi__search-icon {
    width: calc(40 * var(--pc));
    height: calc(40 * var(--pc));
  }
  .l-side-navi__nav {
    gap: calc(32 * var(--pc));
  }
  .l-side-navi__group,
  .l-side-navi__owner {
    gap: calc(16 * var(--pc));
  }
  .l-side-navi__links {
    gap: calc(8 * var(--pc));
    padding-left: calc(24 * var(--pc));
  }
  .l-side-navi__logo {
    margin: 0;
    line-height: 0;
  }
  .l-side-navi__logo img {
    height: calc(22 * var(--pc));
  }
  .l-side-navi__dot {
    width: calc(12 * var(--pc));
    height: calc(12 * var(--pc));
  }
  .l-side-navi__dot.-tl { top: calc(17 * var(--pc)); left: calc(17 * var(--pc)); }
  .l-side-navi__dot.-tr { top: calc(17 * var(--pc)); right: calc(17 * var(--pc)); }
  .l-side-navi__dot.-bl { bottom: calc(17 * var(--pc)); left: calc(17 * var(--pc)); }
  .l-side-navi__dot.-br { bottom: calc(17 * var(--pc)); right: calc(17 * var(--pc)); }
  .pm-main,
  .top-main {
    flex: 1 0 calc(1200 * var(--pc));
    width: calc(1200 * var(--pc));
    min-width: 0;
  }
}
