/* HERO (2026-10-10 design, Issue #108). White base with a pale blue/orange geometric backdrop;
   copy on the left, three tilted cards on the right (PC) or below the copy (tablet/SP).
   Card 1 plays the Creative videos (js/home-hero.js); cards 2/3 are links.
   The scroll hand-off to ABOUT (js/hero-about.js) drives --cxha-* variables used at the end. */
.cxhv { --cxhv-ink:#0d1b3e; --cxhv-muted:#8c99b8; --cxhv-h:max(520px,calc(100svh - var(--cxha-header,64px)));
  position:relative; isolation:isolate; min-height:var(--cxhv-h); padding:0; overflow:clip; background:#fbfcfe; color:var(--cxhv-ink); }
.cxhv-bg { position:absolute; inset:0; z-index:-1; background:url('/material/home-2026/hero/hero-bg.webp') 100% 50% / cover no-repeat; }
.cxhv-inner { position:relative; display:flex; align-items:center; max-width:1600px; min-height:var(--cxhv-h); margin-inline:auto; padding:clamp(32px,5svh,72px) clamp(32px,4.4vw,72px); }
.cxhv-copy { position:relative; z-index:4; width:min(42%,640px); }
.cxhv-kicker { margin:0; color:var(--cxhv-muted); font-family:Inter,Arial,sans-serif; font-size:clamp(12px,.95vw,15px); font-weight:600; letter-spacing:.16em; }
/* HERO-only exception in DESIGN-SYSTEM-2026.md: the main copy is set in a Mincho face. */
.cxhv-title { margin:clamp(14px,2svh,24px) 0 0; color:var(--cxhv-ink); font-family:'Noto Serif JP','Hiragino Mincho ProN','Yu Mincho',YuMincho,serif; font-size:clamp(40px,min(4.4vw,8.4svh),78px); font-weight:500; line-height:1.38; letter-spacing:.02em; white-space:nowrap; }
html[lang="en"] .cxhv-title { font-size:clamp(34px,min(3.6vw,7svh),62px); line-height:1.2; white-space:normal; }
.cxhv-lead { margin:clamp(14px,2.4svh,28px) 0 0; color:#2a3654; font-size:clamp(14px,1.12vw,17px); line-height:1.9; letter-spacing:.04em; }
.cxhv-sp-br { display:none; }
.cxhv-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:clamp(20px,3.4svh,40px); }
.cxhv-actions .cxh-button { min-width:186px; box-shadow:0 10px 24px rgba(13,27,62,.1); }
.cxhv-actions .cxh-button-outline { border-color:rgba(13,27,62,.14); background:rgba(255,255,255,.88); }

/* Cards stage: a fixed-shape box; cards sit on percentages so the composition scales as one. */
.cxhv-stage { --cxhv-sw:min(54vw,900px,calc(var(--cxhv-h) * .94 * 1.1));
  position:absolute; right:clamp(16px,3vw,56px); top:calc(50% - var(--cxhv-sw) / 2.2); z-index:2; width:var(--cxhv-sw); height:calc(var(--cxhv-sw) / 1.1);
  scale:var(--cxha-cards-scale,1); translate:0 var(--cxha-cards-shift,0px); opacity:var(--cxha-cards-opacity,1); transform-origin:50% 40%; }
.cxhv-card { position:absolute; display:block; border-radius:14px; background:#fff; color:#fff; box-shadow:0 26px 60px rgba(30,58,120,.18),0 4px 14px rgba(30,58,120,.08);
  transition:left .55s cubic-bezier(.2,.8,.2,1),top .55s cubic-bezier(.2,.8,.2,1),width .55s cubic-bezier(.2,.8,.2,1),rotate .55s cubic-bezier(.2,.8,.2,1),scale .35s ease,opacity .35s ease,box-shadow .3s ease; }
.cxhv-card img { display:block; width:100%; height:100%; border-radius:inherit; object-fit:cover; }
.cxhv-card--business { left:3%; top:14%; z-index:2; width:40%; aspect-ratio:840 / 1061; rotate:11deg; }
.cxhv-card--system { left:39%; top:49%; z-index:3; width:38%; aspect-ratio:.86; rotate:-12deg; }
.cxhv-card--system img { object-position:50% 0; }
.cxhv-card--creative { left:47%; top:3%; z-index:1; width:52%; rotate:9deg; }
/* Arrow badge: cards 2/3 are links (Creative uses a play icon instead). */
.cxhv-go { position:absolute; right:14px; bottom:14px; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.92); color:var(--cxhv-ink); font-size:18px; box-shadow:0 6px 16px rgba(13,27,62,.16); transition:translate .25s ease; }

/* Creative card: only the videos' pictures, in a row that scrolls sideways (no text, no YouTube UI).
   The YouTube player is created inside the picture only once the card is opened (js/home-hero.js). */
.cxhv-card--creative { background:transparent; box-shadow:none; }
.cxhv-track { display:flex; aspect-ratio:16 / 9; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; border-radius:14px; background:#0b1838; box-shadow:0 26px 60px rgba(30,58,120,.2),0 4px 14px rgba(30,58,120,.08); }
.cxhv-track::-webkit-scrollbar { display:none; }
.cxhv-slide { position:relative; flex:0 0 100%; overflow:hidden; scroll-snap-align:center; scroll-snap-stop:always; }
.cxhv-slide-btn { display:block; width:100%; height:100%; padding:0; border:0; background:#0b1838; cursor:zoom-in; }
.cxhv-slide-btn img { display:block; width:100%; height:100%; object-fit:cover; }
.cxhv-slide.has-player .cxhv-slide-btn { visibility:hidden; }
/* PC moving preview: the player sits behind the picture and can't be pointed at; the picture fades
   once YouTube's start-up title has gone (js/home-hero.js). The button stays on top for the click. */
.cxhv-slide-btn { position:relative; z-index:1; }
.cxhv-slide.has-preview .cxhv-slide-btn { background:transparent; }
.cxhv-preview,.cxhv-preview iframe { pointer-events:none; }
.cxhv-slide-btn img { transition:opacity .8s ease; }
.cxhv-slide.is-revealed .cxhv-slide-btn img { opacity:0; }
.cxhv-player { position:absolute; inset:0; background:#000; }
.cxhv-player iframe { display:block; width:100%; height:100%; border:0; }
/* The card's line, set like the copy baked into cards 2/3 (Mincho, rule + small English), in white
   straight on the picture/video, at the bottom left with a soft shade from below so it stays
   readable and clear of the videos' own titles (2026-10-11: no inner panel). Hidden while open. */
.cxhv-card--creative::before { content:''; position:absolute; inset:0; z-index:2; border-radius:14px; background:linear-gradient(0deg,rgba(7,20,59,.82) 0%,rgba(7,20,59,.5) 30%,rgba(7,20,59,0) 58%); pointer-events:none; }
.cxhv-creative-copy { position:absolute; bottom:9%; left:7%; z-index:3; color:#fff; pointer-events:none; text-shadow:0 1px 2px rgba(7,20,59,.5),0 4px 18px rgba(7,20,59,.55); }
.cxhv-creative-title { margin:0; font-family:'Noto Serif JP','Hiragino Mincho ProN','Yu Mincho',YuMincho,serif; font-size:clamp(14px,1.4vw,22px); font-weight:500; line-height:1.5; letter-spacing:.06em; }
.cxhv-creative-sub { display:flex; flex-direction:column; gap:7px; margin:10px 0 0; font-family:Inter,Arial,sans-serif; font-size:clamp(7px,.58vw,9px); font-weight:600; letter-spacing:.22em; opacity:.88; }
.cxhv-creative-sub::before { content:''; width:26px; height:1px; background:currentColor; opacity:.8; }
.cxhv-card--creative.is-expanded::before,.cxhv-card--creative.is-expanded .cxhv-creative-copy { display:none; }

/* ‹ › × appear only while open, outside the picture (nothing is laid over the player). */
.cxhv-nav,.cxhv-close { position:absolute; display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid rgba(13,27,62,.14); border-radius:50%; background:rgba(255,255,255,.94); color:var(--cxhv-ink); font:inherit; font-size:24px; line-height:1; cursor:pointer; box-shadow:0 8px 20px rgba(13,27,62,.14); }
.cxhv-nav[hidden],.cxhv-close[hidden] { display:none; }
.cxhv-nav:disabled { opacity:.35; cursor:default; }
.cxhv-nav span:first-child,.cxhv-close span:first-child { margin-top:-2px; }
.cxhv-nav--prev { top:50%; left:-60px; margin-top:-22px; }
.cxhv-nav--next { top:50%; right:-60px; margin-top:-22px; }
.cxhv-close { top:-56px; right:0; font-size:22px; }
.cxhv-status { position:absolute; inset:0; z-index:1; display:grid; place-items:center; margin:0; padding:20px; border-radius:14px; background:rgba(11,24,56,.86); color:#dbe4f3; font-size:13px; text-align:center; }
.cxhv-status:empty { display:none; }

/* Expanded (PC): js/home-hero.js sets left/top/width; the card straightens and the others step back. */
.cxhv-card--creative.is-expanded { z-index:5; rotate:0deg; animation:none; }
.cxhv-card--creative.is-expanded .cxhv-track { box-shadow:0 40px 90px rgba(13,27,62,.32); }
.cxhv-card--creative.is-expanded .cxhv-slide-btn { cursor:default; }
.cxhv-stage.is-expanded .cxhv-card:not(.is-expanded) { opacity:.28; scale:.95; pointer-events:none; }
.cxhv-stage.is-expanded ~ .cxhv-words { opacity:0; }

/* Decoration from the design (not content). */
.cxhv-words { position:absolute; right:clamp(16px,2.4vw,40px); top:62%; z-index:1; display:grid; gap:4px; margin:0; padding:14px 0 0; list-style:none; color:#7d8aa8; font-family:Inter,Arial,sans-serif; font-size:9px; font-weight:600; letter-spacing:.2em; transition:opacity .3s ease; }
.cxhv-words::before { content:''; position:absolute; top:0; left:0; width:34px; height:1px; background:currentColor; opacity:.6; }
.cxhv-mark { position:absolute; right:clamp(24px,3.4vw,56px); bottom:clamp(16px,3svh,32px); z-index:1; display:flex; align-items:center; gap:16px; margin:0; color:#7d8aa8; font-family:Inter,Arial,sans-serif; font-size:10px; font-weight:600; letter-spacing:.2em; }
.cxhv-mark::before { content:''; width:56px; height:1px; background:currentColor; opacity:.6; }
.cxhv-scroll { position:absolute; left:clamp(24px,3.4vw,56px); bottom:clamp(16px,3svh,32px); z-index:1; display:flex; align-items:flex-end; gap:22px; margin:0; color:#7d8aa8; font-family:Inter,Arial,sans-serif; font-size:10px; font-weight:600; letter-spacing:.2em; }
.cxhv-scroll::before { content:''; width:1px; height:clamp(48px,8svh,80px); background:linear-gradient(#7d8aa8,rgba(125,138,168,.2)); }
.cxhv-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.cxhv-card:focus-visible,.cxhv-slide-btn:focus-visible,.cxhv-nav:focus-visible,.cxhv-close:focus-visible { outline:3px solid #2f6bff; outline-offset:3px; }
@media (hover:hover) {
  a.cxhv-card:hover { scale:1.025; box-shadow:0 34px 70px rgba(30,58,120,.24); }
  a.cxhv-card:hover .cxhv-go { translate:3px 0; }
  .cxhv-card--creative:not(.is-expanded):hover .cxhv-track { box-shadow:0 34px 70px rgba(30,58,120,.26); }
  .cxhv-nav:not(:disabled):hover,.cxhv-close:hover { background:#fff; }
}
/* Gentle float (cards drift a few px); never while expanded or with reduced motion. */
@media (prefers-reduced-motion:no-preference) {
  .cxhv-card { animation:cxhv-float 8s ease-in-out infinite; }
  .cxhv-card--business { animation-duration:9s; animation-delay:-3s; }
  .cxhv-card--system { animation-duration:10s; animation-delay:-6s; }
  @keyframes cxhv-float { 0%,100% { translate:0 0; } 50% { translate:0 -8px; } }
  .cxhv-card:hover,.cxhv-card:focus-within { animation-play-state:paused; }
  /* The picture in view zooms in slowly so the card never looks frozen. */
  .cxhv-slide.is-current .cxhv-slide-btn img { animation:cxhv-zoom 9s ease-out both; }
  @keyframes cxhv-zoom { from { scale:1; } to { scale:1.08; } }
  /* Load-in: `backwards` only, so the scroll hand-off (opacity/translate variables) owns the end state. */
  .cxh-motion-ready .cxhv-copy { animation:cxhv-in .85s .1s backwards cubic-bezier(.16,1,.3,1); }
  .cxh-motion-ready .cxhv-stage { animation:cxhv-in 1s .3s backwards cubic-bezier(.16,1,.3,1); }
  @keyframes cxhv-in { from { opacity:0; translate:0 24px; } }
}
@media (prefers-reduced-motion:reduce) {
  .cxhv-card,.cxhv-go,.cxhv-words { transition:none; }
}

/* Tablet & SP: copy first, then the cards in their own box below (no FLIP; the video opens in place). */
@media (max-width:1100px) {
  .cxhv { --cxhv-h:auto; }
  .cxhv-inner { display:block; padding:clamp(40px,7vw,64px) clamp(20px,5vw,48px) clamp(64px,10vw,96px); }
  .cxhv-copy { width:auto; max-width:640px; }
  .cxhv-stage { --cxhv-sw:min(100%,720px); position:relative; right:auto; top:auto; height:auto; aspect-ratio:1.1; margin:clamp(28px,5vw,48px) auto 0; }
  .cxhv-words,.cxhv-mark { display:none; }
  .cxhv-bg { background-position:72% 100%; background-size:auto 72%; }
  .cxhv-stage.is-open { aspect-ratio:auto; }
  .cxhv-stage.is-open .cxhv-card:not(.is-expanded) { display:none; }
  .cxhv-card--creative.is-expanded { position:relative; left:auto; top:auto; width:100%; }
  /* Tablet/SP: ‹ › on the left and × on the right, in a row under the picture. */
  .cxhv-card--creative.is-expanded { padding-bottom:56px; }
  .cxhv-card--creative.is-expanded .cxhv-nav,.cxhv-card--creative.is-expanded .cxhv-close { top:auto; bottom:0; margin-top:0; }
  .cxhv-card--creative.is-expanded .cxhv-nav--prev { left:0; }
  .cxhv-card--creative.is-expanded .cxhv-nav--next { left:56px; right:auto; }
  .cxhv-card--creative.is-expanded .cxhv-close { right:0; }
}
@media (max-width:768px) {
  .cxhv-inner { padding:clamp(28px,8vw,48px) 20px 80px; }
  .cxhv-title { font-size:clamp(34px,10.6vw,52px); line-height:1.42; }
  html[lang="en"] .cxhv-title { font-size:clamp(30px,8.6vw,44px); }
  .cxhv-lead { font-size:clamp(14px,3.9vw,16px); }
  .cxhv-sp-br { display:inline; }
  .cxhv-actions { display:grid; gap:12px; max-width:360px; }
  .cxhv-actions .cxh-button { width:100%; justify-content:center; position:relative; }
  .cxhv-actions .cxh-button span:last-child { position:absolute; right:24px; }
  /* Taller box on phones: Creative top-right, business left, system bottom-right (as in the SP design). */
  .cxhv-stage { --cxhv-sw:min(100%,480px); aspect-ratio:.82; margin-top:clamp(20px,6vw,36px); }
  .cxhv-card--creative { left:52%; top:0; width:45%; rotate:8deg; }
  .cxhv-card--business { left:2%; top:23%; width:50%; rotate:9deg; }
  .cxhv-card--system { left:44%; top:54%; width:50%; rotate:-11deg; }
  .cxhv-go { width:34px; height:34px; right:10px; bottom:10px; font-size:16px; }
  .cxhv-creative-copy { bottom:8%; left:6%; }
  .cxhv-creative-title { font-size:clamp(11px,3.1vw,13px); line-height:1.45; }
  .cxhv-creative-sub { display:none; }
  .cxhv-scroll { left:20px; bottom:18px; }
  .cxhv-bg { background-position:68% 100%; background-size:auto 58%; }
}
