/* HIXOR homepage — shop introduction (redesign v3 CONCEPT, 2026-11-23).
   v2 (2026-11-23, hero doors balance fix): the three hero doors are
   now ONE balanced set — equal widths and heights, labels centred on
   both axes, and the shop door's 新登場 badge absolutely positioned
   so it never sizes the button. Panel rules unchanged from v1.
   Loaded ONLY by templates/home.html (head_extra), after shop-v3.css.
   Two jobs:
   1. The hero's third door (.btn-shopdoor): a light "storefront"
      button on the dark hero, so both doors (services / shop) are
      visible in the first screen.
   2. The shopfront panel (.home-shop-panel): the shop's own light
      design (.shop-page scope + shop-v2.css components) set into the
      dark homepage as one rounded panel — the homepage shows the
      actual shop, not a paraphrase of it.
   Rules honoured: no filter: blur(), no mix-blend-mode; every padded
   component pins its children's margins explicitly (boxed-component
   spacing rule) — see .home-shop-head and .home-shop-links below. */

/* ---------- hero doors: one balanced set ---------- */
/* Diagnosis (measured on the v1 build, JA + EN at 390/430/650/1280):
   in the row layout (>=768px) the doors were content-sized flex
   items, so widths followed label length (JA 195/146/197px, EN
   217/149/172px at 1280) and the squeezed row wrapped each label at
   a different point; the two text buttons are block boxes, so a
   shorter label rode high in the stretched box instead of centring;
   and the shop door's badge sat in-flow, widening that button and
   pushing its label off centre at every width.
   Fix: every door is a centred flex box; in the row layout each
   door takes an equal share (flex:1 1 0) and the row stretches all
   three to the tallest door's height; the badge is lifted out of
   flow and pinned over the shop door's top edge. Colours, roles and
   label text are exactly as designed — layout only. */
body.home-soc .hero .hero-actions{align-items:stretch}
body.home-soc .hero .hero-actions .btn{
  display:inline-flex;align-items:center;justify-content:center;
  text-align:center;line-height:1.5;min-height:3.55rem;
}
@media(min-width:768px){
  body.home-soc .hero .hero-actions .btn{flex:1 1 0;min-width:0}
}

/* ---------- hero shop door ---------- */
body.home-soc .hero .btn-shopdoor{
  background:linear-gradient(180deg,#FFFFFF,#E8F3FD);
  color:#101D42;border:1px solid rgba(79,195,255,.55);
  box-shadow:0 12px 30px -10px rgba(3,105,161,.45),inset 0 1px 0 #fff;
  position:relative;
}
body.home-soc .hero .btn-shopdoor:hover{background:linear-gradient(180deg,#FFFFFF,#D9EDFD);color:#101D42}
body.home-soc .hero .btn-shopdoor .btn-tag{
  position:absolute;top:-.62rem;left:50%;transform:translateX(-50%);
  background:#0369A1;color:#fff;font-size:.72rem;font-weight:700;line-height:1;
  padding:.32rem .55rem;border-radius:999px;letter-spacing:.06em;white-space:nowrap;
  box-shadow:0 4px 10px -2px rgba(2,8,24,.45);
}

/* ---------- shopfront panel ---------- */
.home-shop-panel{
  border-radius:20px;
  border:1px solid #C9D9EE;
  box-shadow:0 24px 60px -24px rgba(0,0,0,.55),inset 0 1px 0 #fff;
  padding:2rem 1.75rem 2.25rem;
}
@media(max-width:767px){
  .home-shop-panel{padding:1.5rem 1rem 1.75rem;border-radius:16px}
}

/* panel head — all child margins pinned explicitly */
.home-shop-head{margin:0}
.home-shop-head .home-shop-eyebrowrow{
  margin:0 0 .65rem;display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;
}
.home-shop-newpill{
  background:#0369A1;color:#fff;font-size:.72rem;font-weight:700;line-height:1;
  padding:.34rem .6rem;border-radius:999px;letter-spacing:.06em;
}
.home-shop-eyebrow{
  font-size:.82rem;font-weight:700;letter-spacing:.14em;color:#0369A1;
}
.home-shop-head h2{
  margin:0 0 .6rem;color:#1B1F23;font-size:1.72rem;line-height:1.4;font-weight:700;
  border:0;padding:0;text-shadow:none;
}
@media(max-width:767px){
  .home-shop-head h2{font-size:1.45rem}
}
.home-shop-head .home-shop-lead{margin:0;color:#3D4650;max-width:46em}
.home-shop-head .shop-trust-strip{margin:1.1rem 0 0}

/* group subheads inside the panel are h3 (the section title is the
   h2); mirror the shop index's .shop-group h2 look exactly */
.home-shop-panel .shop-group h3{
  font-size:23px;margin:0 0 4px;font-weight:700;color:#1B1F23;line-height:1.4;
}

/* panel footer links — margins pinned */
.home-shop-links{
  margin:1.9rem 0 0;display:flex;flex-wrap:wrap;gap:.6rem 2rem;
  font-weight:700;font-size:1.02rem;
}
.home-shop-links a{margin:0}
/* the concept theme recolours bare links azure for the dark ground;
   inside the light panel the shop accent must win (contrast) */
body.home-soc .home-shop-panel .home-shop-links a{color:#0369A1}
body.home-soc .home-shop-panel .home-shop-links a:hover{color:#025A8A}

/* guides-section cluster pathways */
.home-pathways{margin-top:1.25rem}
.home-pathways .card-body h3{margin-top:0}
