/* Brand Composition 1. TOP-only composition using the approved retail artwork.
 * Canonical selection contract:
 * docs/design-system/brand-composition.json.
 */
#page-home.home-brand-v1 .home-hero--media {
  padding:0 0 clamp(54px,6vw,88px);background:#fff;color:var(--home-ink);
}
#page-home.home-brand-v1 .home-hero--media::before {
  inset:auto 0 0;height:280px;opacity:.55;
  mask-image:linear-gradient(180deg,transparent,#000 60%,transparent);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 60%,transparent);
}
#page-home.home-brand-v1 .home-media__stage {
  display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);align-items:stretch;
  width:min(100%,1440px);max-width:1440px;min-height:clamp(440px,36vw,520px);margin-inline:auto;
  overflow:hidden;border:0;border-radius:0;background:#fff;box-shadow:none;
}
#page-home.home-brand-v1 .home-media__heading {
  display:flex;align-items:center;width:100%;min-width:0;min-height:0;
  padding:clamp(42px,4.5vw,70px) 34px clamp(48px,5vw,76px) max(32px,calc((100vw - 1240px)/2));
  background:transparent;z-index:2;
}
#page-home.home-brand-v1 .home-media__heading::before {content:none;}
#page-home.home-brand-v1 .home-media__heading .home-hero__copy {width:100%;max-width:620px;}
#page-home.home-brand-v1 .home-hero h1 {
  color:var(--home-ink);text-shadow:none;letter-spacing:-.025em;line-height:1.46;
  font-weight:700;-webkit-text-stroke:0 currentColor;
}
#page-home.home-brand-v1 .home-hero__brand {
  color:var(--home-navy);background:none;-webkit-text-fill-color:currentColor;
  font-weight:900;-webkit-text-stroke:.25px currentColor;
}
#page-home.home-brand-v1 .home-brand__action {
  display:inline-flex;align-items:center;justify-content:center;gap:22px;
  width:fit-content;max-width:100%;min-height:48px;margin-top:clamp(22px,2.5vw,34px);padding:12px 24px;
  border:1px solid transparent;border-radius:4px;background:var(--home-coral);
  color:var(--home-ink);font-size:16px;line-height:1.5;font-weight:500;
  transition:background-color .16s ease;
}
#page-home.home-brand-v1 .home-brand__action:hover {background:#ff816f;}
#page-home.home-brand-v1 .home-brand__action:focus-visible {outline:3px solid var(--home-navy);outline-offset:5px;}
#page-home.home-brand-v1 .home-media__figure {
  position:relative;inset:auto;display:block;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;
  aspect-ratio:auto;border-radius:min(11vw,150px) 0 0 0;background-color:var(--home-navy);
}
#page-home.home-brand-v1 .home-media__figure::before {
  content:"";position:absolute;z-index:0;left:0;top:50%;width:100%;aspect-ratio:16/9;transform:translateY(-50%);
  background-image:url('../assets/images/home-retail-intelligence-tl.avif'),url('../assets/images/home-retail-intelligence-tr.avif'),url('../assets/images/home-retail-intelligence-bl.avif'),url('../assets/images/home-retail-intelligence-br.avif');
  background-position:left top,right top,left bottom,right bottom;
  background-size:50.1% 50.1%;background-repeat:no-repeat;
}
#page-home.home-brand-v1 .home-media__figure::after {
  content:"";position:absolute;z-index:1;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(26,49,75,.16),transparent 16%,transparent 86%,rgba(26,49,75,.06));
}
#page-home.home-brand-v1 .home-media__outcomes {margin:36px auto 0;}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile {
  border:0;border-radius:0;background:#fff;background-image:none;box-shadow:none;
}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile::before {content:none;}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile--primary {
  background:var(--home-teal);color:#fff;border-radius:12px;box-shadow:none;
}
#page-home.home-brand-v1 .stat-tile--primary .pct {
  color:#fff;background:none;-webkit-text-fill-color:currentColor;
}
#page-home.home-brand-v1 .home-metric__icon,
#page-home.home-brand-v1 .stat-tile--primary .home-metric__icon {
  color:var(--home-navy);background:none;border-radius:0;box-shadow:none;
}
/* Compact widths recompose the same content as Text → Media; the artwork is never shrunk into the text column. */
@media(max-width:1240px) {
  #page-home.home-brand-v1 .home-media__stage {grid-template-columns:1fr;min-height:0;}
  #page-home.home-brand-v1 .home-media__heading {min-height:0;padding:60px 32px 42px;}
  #page-home.home-brand-v1 .home-media__heading .home-hero__copy {max-width:860px;margin-inline:auto;}
  #page-home.home-brand-v1 .home-media__figure {
    min-height:0;width:calc(100% - 32px);margin-left:32px;aspect-ratio:16/9;border-radius:120px 0 0 0;
  }
  #page-home.home-brand-v1 .home-media__figure::before {top:0;width:100%;height:100%;aspect-ratio:auto;transform:none;}
}
@media(max-width:560px) {
  #page-home.home-brand-v1 .home-media__heading {padding:42px 24px 32px;}
  #page-home.home-brand-v1 .home-hero h1 {letter-spacing:-.025em;}
  #page-home.home-brand-v1 .home-brand__action {margin-top:26px;}
  #page-home.home-brand-v1 .home-media__figure {
    width:calc(100% - 24px);margin-left:24px;aspect-ratio:4/3;border-top-left-radius:88px;
  }
  #page-home.home-brand-v1 .home-media__figure::before {
    left:50%;top:0;width:133.333%;height:100%;transform:translateX(-50%);
  }
  #page-home.home-brand-v1 .home-media__outcomes {margin-top:28px;}
}
@media(min-width:1441px) {
  #page-home.home-brand-v1 .home-media__heading {padding-left:100px;}
}
@media(prefers-reduced-motion:reduce) {
  #page-home.home-brand-v1 .home-brand__action {transition:none;}
}
@media(forced-colors:active) {
  #page-home.home-brand-v1 .home-media__stage,
  #page-home.home-brand-v1 .home-media__heading,
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile {background:Canvas;color:CanvasText;}
  #page-home.home-brand-v1 .home-hero h1,
  #page-home.home-brand-v1 .home-hero__brand,
  #page-home.home-brand-v1 .stat-tile--primary .pct,
  #page-home.home-brand-v1 .home-metric__icon {color:CanvasText;-webkit-text-fill-color:currentColor;}
  #page-home.home-brand-v1 .home-media__figure {visibility:hidden;}
  #page-home.home-brand-v1 .home-brand__action {background:ButtonFace;color:ButtonText;border:1px solid ButtonText;}
}

/* KPI → scale continuity: keep the existing proof copy verbatim, but read it as the
 * second evidence layer of the HERO rather than as a separate dark brand band. */
#page-home.home-brand-v1 .home-hero--media {
  padding-bottom:clamp(28px,3.5vw,44px);
}
#page-home.home-brand-v1 .home-scale {
  padding:0 0 clamp(72px,7vw,96px);
  overflow:visible;
  color:var(--home-navy);
  background:#fff;
  background-image:none;
}
#page-home.home-brand-v1 .home-scale::before,
#page-home.home-brand-v1 .home-scale::after {
  content:none;
  display:none;
}
#page-home.home-brand-v1 .home-scale .wrap {
  width:min(calc(100% - 48px),1240px);
  max-width:1240px;
  padding:clamp(32px,3vw,44px) 0 0;
  border-top:1px solid #dbe3ea;
}
#page-home.home-brand-v1 .home-scale__statement {
  max-width:1120px;
}
#page-home.home-brand-v1 .home-scale__lead,
#page-home.home-brand-v1 .home-scale__close,
#page-home.home-brand-v1 .scale-unit {
  color:var(--home-navy);
}
#page-home.home-brand-v1 .scale-fact strong {
  color:var(--home-coral);
  background:none;
  -webkit-text-fill-color:currentColor;
  font-size:clamp(2.25rem,calc(1.46rem + 2.3vw),3.5rem);
}
@media(max-width:560px) {
  #page-home.home-brand-v1 .home-hero--media {padding-bottom:24px;}
  #page-home.home-brand-v1 .home-scale {padding-bottom:64px;}
  #page-home.home-brand-v1 .home-scale .wrap {
    width:calc(100% - 40px);
    padding-top:30px;
  }
  #page-home.home-brand-v1 .home-scale__statement {max-width:100%;}
}
/* Preserve the existing Proof Statement stress contract at 200% text size. */
@container (max-width:14rem) {
  #page-home.home-brand-v1 .scale-fact strong {font-size:1.5rem;}
}
@media(forced-colors:active) {
  #page-home.home-brand-v1 .home-scale {background:Canvas;color:CanvasText;}
  #page-home.home-brand-v1 .home-scale .wrap {border-top-color:CanvasText;}
  #page-home.home-brand-v1 .home-scale__lead,
  #page-home.home-brand-v1 .home-scale__close,
  #page-home.home-brand-v1 .scale-unit,
  #page-home.home-brand-v1 .scale-fact strong {
    color:CanvasText;
    background:none;
    -webkit-text-fill-color:currentColor;
  }
}

/* Hero Evidence Hierarchy 1: Promise > Outcome > Scale.
 * The Promise stays dominant through the authored HERO composition. Outcome proof
 * immediately follows it, with 売上増 as the single primary outcome and the other
 * outcomes reduced to a comparison rail. Scale is supporting trust evidence, not a
 * second headline-sized KPI field. */
#page-home.home-brand-v1 .home-hero--media {padding-bottom:clamp(24px,2.8vw,36px);}
#page-home.home-brand-v1 .home-media__outcomes {margin:26px auto 0;}
#page-home.home-brand-v1 .home-media__outcomes .stat-tiles {
  grid-template-columns:minmax(244px,1.18fr) repeat(4,minmax(0,1fr));
  gap:0;
  align-items:center;
}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile {
  min-height:126px;
  padding:16px 18px;
  gap:14px;
  justify-content:center;
}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile--primary {
  min-height:164px;
  margin-right:30px;
  padding:22px 24px 20px;
  align-self:stretch;
  background:var(--home-teal);
  color:#fff;
  border-radius:12px;
}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile--primary .pct,
#page-home.home-brand-v1 .home-media__outcomes .stat-tile--primary .home-metric__icon {
  color:#fff;
  -webkit-text-fill-color:currentColor;
}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile--primary .pct {
  font-size:clamp(4rem,5.4vw,5.2rem);
  line-height:.98;
  font-weight:500;
}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile:not(.stat-tile--primary) {
  border:0;
  border-left:1px solid #dbe3ea;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile:not(.stat-tile--primary)::before {content:none;}
#page-home.home-brand-v1 .home-media__outcomes .stat-tile:not(.stat-tile--primary) .pct {
  color:var(--home-navy);
  font-size:clamp(2.45rem,3.1vw,3.15rem);
  line-height:1;
  font-weight:500;
}

/* Scale proof is a quiet, full-bleed trust line. The same approved sentence is
 * preserved, but its visual weight is intentionally below both Outcome tiers. */
#page-home.home-brand-v1 .home-scale {
  padding:24px 0 26px;
  overflow:visible;
  color:var(--home-navy);
  background:#f4f6f8;
  background-image:none;
  text-align:center;
}
#page-home.home-brand-v1 .home-scale .wrap {
  width:100%;
  max-width:none;
  padding:0;
  border:0;
}
#page-home.home-brand-v1 .home-scale__statement {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:baseline;
  gap:4px 8px;
  width:min(calc(100% - 48px),1240px);
  max-width:1240px;
  margin-inline:auto;
}
#page-home.home-brand-v1 .home-scale__lead,
#page-home.home-brand-v1 .home-scale__close {
  margin:0;
  color:var(--home-navy);
  font-size:clamp(1rem,.96rem + .18vw,1.125rem);
  line-height:1.7;
  font-weight:500;
}
#page-home.home-brand-v1 .home-scale__metrics {
  display:inline-flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:baseline;
  gap:3px 10px;
  width:auto;
  max-width:100%;
  margin:0;
}
#page-home.home-brand-v1 .scale-fact {gap:.05em;}
#page-home.home-brand-v1 .scale-fact strong {
  color:var(--home-navy);
  background:none;
  -webkit-text-fill-color:currentColor;
  font-size:clamp(1.75rem,1.52rem + .72vw,2.25rem);
  line-height:1;
  font-weight:500;
}
#page-home.home-brand-v1 .scale-unit {
  color:var(--home-navy);
  font-size:clamp(.9375rem,.9rem + .12vw,1.0625rem);
  line-height:1.45;
  font-weight:500;
}

@media(min-width:561px) and (max-width:1360px) {
  #page-home.home-brand-v1 .home-media__outcomes .stat-tiles {grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;}
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile--primary {
    grid-column:1 / -1;
    margin:0 0 16px;
    min-height:154px;
  }
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile:not(.stat-tile--primary) {
    min-height:116px;
    border-left:1px solid #dbe3ea;
    border-top:1px solid #dbe3ea;
  }
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile:nth-child(2) {border-left:0;}
}
@media(max-width:560px) {
  #page-home.home-brand-v1 .home-media__outcomes {margin-top:22px;}
  #page-home.home-brand-v1 .home-media__outcomes .stat-tiles {grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;}
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile--primary {
    grid-column:1 / -1;
    min-height:148px;
    margin:0 0 14px;
    padding:20px 22px;
  }
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile--primary .pct {font-size:clamp(3.9rem,20vw,4.6rem);}
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile:not(.stat-tile--primary) {
    min-height:104px;
    padding:15px 4px;
    border-left:0;
    border-top:1px solid #dbe3ea;
  }
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile:nth-child(odd):not(.stat-tile--primary) {border-left:1px solid #dbe3ea;}
  #page-home.home-brand-v1 .home-scale {padding:18px 0 20px;}
  #page-home.home-brand-v1 .home-scale__statement {
    width:calc(100% - 40px);
    gap:3px 6px;
  }
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile .label,
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile:not(.stat-tile--primary) .label {
    flex-direction:column;
    align-items:center;
    gap:.4rem;
  }
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile:not(.stat-tile--primary) .pct {font-size:2.15rem;}
  #page-home.home-brand-v1 .home-scale__metrics {gap:3px 8px;}
  #page-home.home-brand-v1 .scale-fact strong {font-size:1.7rem;}
  #page-home.home-brand-v1 .scale-unit {font-size:.9375rem;}
}
@container (max-width:14rem) {
  #page-home.home-brand-v1 .scale-fact strong {font-size:1.5rem;}
}
@media(forced-colors:active) {
  #page-home.home-brand-v1 .home-media__outcomes .stat-tile:not(.stat-tile--primary) {border-color:CanvasText;}
  #page-home.home-brand-v1 .home-scale {background:Canvas;color:CanvasText;}
  #page-home.home-brand-v1 .home-scale__lead,
  #page-home.home-brand-v1 .home-scale__close,
  #page-home.home-brand-v1 .scale-unit,
  #page-home.home-brand-v1 .scale-fact strong {color:CanvasText;-webkit-text-fill-color:currentColor;}
}
