/* Page-only layout fixes for /ja/ai-model/jirei/ (loaded after seo-lp2.css; nothing here touches the shared file) */
/* 4 check cards / 4 flow steps: keep every text block >= 320px wide (1 column up to 900px, 2 columns above) */
.l2-checks{grid-template-columns:repeat(2,1fr)}
.l2-req{grid-template-columns:repeat(2,1fr);gap:28px 40px}
@media (max-width:900px){ .l2-checks{grid-template-columns:1fr} .l2-req{grid-template-columns:1fr} }
/* use-case cards: a little less padding on phones so the text stays >= 280px */
@media (max-width:480px){ .l2-pc{padding:18px 12px} }
/* Hero photo: the woman stands at 55-85% of the frame width; keep her clear of the left gradient and the headline.
   >=1024px: photo in the right part of the hero (cover, anchored right). <=1023px: photo is a full-width block above the headline (text never lies on the person). */
.l2-hero--real .l2-hero-media img{object-position:90% 35%}
@media (min-width:1024px) and (max-width:1279px){ .l2-hero--real .l2-hero-media{width:54%} .l2-hero--real .l2-hero-media img{object-position:96% 35%} .l2-hero--real .l2-hero-txt{max-width:42vw} }
@media (max-width:1023px){
  .l2-hero--real{min-height:0;display:block}
  .l2-hero--real .l2-hero-media{position:relative;left:auto;width:100%;height:78vw;max-height:620px}
  .l2-hero--real .l2-hero-media img{object-position:94% 30%}
  .l2-hero--real::after{display:none}
  .l2-hero--real .l2-hero-in{padding:32px 24px 56px}
  .l2-hero--real .l2-hero-txt{max-width:none}
}
@media (max-width:640px){ .l2-hero--real .l2-hero-in{padding:28px 16px 48px} .l2-hero--real .l2-hero-media{height:96vw;max-height:520px} }
/* Example photos are shown whole: the shared phone/tablet rules force a 3:4 or 5:8 crop (object-fit:cover) which cut products at the edge */
body.l2 .l2-ic .l2-trio img{aspect-ratio:auto;object-fit:contain;height:auto}
body.l2 .l2-ic .l2-trio{align-items:start}
/* >=1280px: show the whole photo (head to shoes and shadow): the photo box is exactly as wide as 1.5 x hero height (the photo is 3:2), anchored to the right,
   its left edge fades into the dark hero background; the headline column is kept clear of the woman (she stands at 55-85% of the photo width). */
@media (min-width:1280px){
  .l2-hero--real .l2-hero-media{left:auto;right:0;width:clamp(840px,calc((100vh - 66px) * 1.5),1650px);max-width:100%}
  .l2-hero--real .l2-hero-media img{object-position:100% 50%;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16%);mask-image:linear-gradient(90deg,transparent 0,#000 16%)}
  .l2-hero--real .l2-hero-txt{max-width:min(720px,52vw)}
}
/* The floating contact buttons stay hidden while the hero is on screen (class set by seo-lp2.js), so they never cover the headline, the photo or the shoes */
body.l2.l2-hero-vis .l2-float{opacity:0;pointer-events:none}
/* Japanese headings break at phrase boundaries, not inside words (no "レディースファ／ッション") */
body.l2 h1,body.l2 h2,body.l2 h3,body.l2 .l2-anchors a{word-break:auto-phrase;text-wrap:balance;overflow-wrap:break-word}
body.l2 main,body.l2 .l2-stat span,body.l2 .l2-lead{word-break:auto-phrase;overflow-wrap:break-word}
body.l2 .l2-ch h2 .l2-nb{display:block}
body.l2 .l2-modelnote{margin-bottom:18px}
/* no lone one-or-two-character last lines (table labels, number-bar captions) */
body.l2 .l2-tbl th,body.l2 .l2-tbl td,body.l2 .l2-stat span,body.l2 .l2-lead{text-wrap:balance}
body.l2 main p,body.l2 main li{text-wrap:pretty}

/* Price table -> cards on phones/tablets: the shared sheet labels the two columns "従来" / "wModel.AI" (for comparison tables). This table is "計算 / 金額（税別）". */
@media (max-width:1100px){
  body.l2 .l2-tbl--calc tbody td:nth-of-type(1)::before{content:"計算";color:var(--blue2)}
  body.l2 .l2-tbl--calc tbody td:nth-of-type(2)::before{content:"金額（税別）";color:var(--acc)}
}
/* Examples: 3 cards. >=1180px: three equal-height columns; below: one column, each card laid out as picture | text. Pictures always sit in the same 4:5 frame, shown whole (contain). */
.l2-ics--jirei{grid-template-columns:1fr;gap:24px;align-items:stretch}
body.l2 .l2-ics--jirei .l2-ic{display:flex;flex-direction:column;height:100%}
body.l2 .l2-ics--jirei .l2-ic-b{display:flex;flex-direction:column;flex:1}
body.l2 .l2-ics--jirei .l2-ic-b .l2-fold{margin-top:auto}
body.l2 .l2-ics--jirei .l2-trio figure{aspect-ratio:4/5;background:#1a1c18}
body.l2 .l2-ics--jirei .l2-trio img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
@media (min-width:900px) and (max-width:1179px){
  body.l2 .l2-ics--jirei .l2-ic{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:0 24px;align-items:start}
  body.l2 .l2-ics--jirei .l2-ic .l2-trio{margin:0;max-width:none;grid-column:1;grid-row:1 / span 5}
  body.l2 .l2-ics--jirei .l2-ic-b{display:contents}
  body.l2 .l2-ics--jirei .l2-ic-b>*{grid-column:2}
  body.l2 .l2-ics--jirei .l2-ic-b>details{grid-column:1 / -1;margin-top:16px}
}
@media (min-width:1180px){
  .l2-ics--jirei{grid-template-columns:repeat(3,1fr)}
  body.l2 .l2-ics--jirei .l2-ic .l2-trio{max-width:none;margin:0}
}
/* Hero on very wide screens: the text column stays narrower and the left gradient is a little stronger, so no line reaches the bright part of the photo (the woman's brightness is unchanged) */
@media (min-width:1700px){
  .l2-hero--real::after{background:linear-gradient(90deg,rgba(14,15,13,.94) 0%,rgba(14,15,13,.86) 36%,rgba(14,15,13,0) 58%),linear-gradient(0deg,rgba(14,15,13,.9),rgba(14,15,13,0) 28%)}
  .l2-hero--real .l2-hero-txt{max-width:600px}
}
body.l2 .l2-ics--jirei .l2-trio{grid-template-columns:1fr 1fr}
body.l2 .l2-ic-b p{text-wrap:wrap}
.jk{white-space:nowrap}
/* roomier text column inside the example cards (>= 320px at 1440) */
body.l2 .l2-ics--jirei .l2-ic{padding:14px}
body.l2 .l2-ics--jirei .l2-ic-b{padding:14px 6px 6px}
