/* T1791 v5: the original hero copy on a left rail, the tour film on the right (0.5x, played once).
   CSS only; no React-owned child nodes are added or removed. The film box is exactly 16:9 and is shown as a
   framed screen (radius, 1px ring, shadow on the poster layer behind the video).
   The film's left 6% is plain background, so the film box may start under the end of the rail. */
section.photo-hero[data-t1791-layout="v5"]{--t5-bg:#05080f;--t5-h:calc(100svh - clamp(67px,3.75vw,96px) - 1px);--t5-left:clamp(28px,6vw,104px);--t5-rail:31vw;--t5-film-left:27vw;--t5-padv:clamp(20px,4svh,56px);--t5-padr:clamp(16px,2.2vw,48px);--t5-fw:min(calc(100% - var(--t5-film-left) - var(--t5-padr)),calc((var(--t5-h) - 2 * var(--t5-padv)) * 16 / 9));--t5-radius:clamp(6px,.7vw,12px);height:var(--t5-h)!important;min-height:0!important;background:var(--t5-bg)!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-shade{display:none!important}
section.photo-hero[data-t1791-layout="v5"]::before{content:"";position:absolute;left:auto;right:var(--t5-padr);top:50%;width:var(--t5-fw);height:auto;aspect-ratio:16/9;transform:translateY(-50%);background:url('/videos/ichigeki-tour-r4-poster.webp') 50% 50%/100% 100% no-repeat;border-radius:var(--t5-radius);box-shadow:0 0 0 1px rgba(255,255,255,.09),0 18px 60px rgba(0,0,0,.55);pointer-events:none}
section.photo-hero[data-t1791-layout="v5"] video.photo-hero-image{position:absolute!important;left:auto!important;right:var(--t5-padr)!important;top:50%!important;bottom:auto!important;margin:0!important;width:var(--t5-fw)!important;height:auto!important;aspect-ratio:16/9;object-fit:contain!important;object-position:50% 50%!important;filter:none!important;transform:translateY(-50%)!important;visibility:hidden;animation:none!important;opacity:1!important;background:transparent!important;border-radius:var(--t5-radius)}
section.photo-hero[data-t1791-layout="v5"][data-t1791-ready="new"] video.photo-hero-image{visibility:visible}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-copy{position:absolute!important;z-index:2;left:var(--t5-left);top:0;bottom:0;width:calc(var(--t5-rail) - var(--t5-left) - 16px)!important;max-width:none!important;min-height:0!important;margin:0!important;padding:var(--t5-padv) 0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:clamp(8px,.9vw,16px)!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-logo{width:100%!important;max-width:480px!important;margin:0 0 clamp(2px,.4vw,8px)!important;padding:0!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-copy h1{font-size:max(24px,min(calc((var(--t5-rail) - var(--t5-left) - 16px) / 9.2),56px))!important;line-height:1.08!important;max-width:none!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-subtitle,section.photo-hero[data-t1791-layout="v5"] .photo-hero-statement{word-break:auto-phrase;text-wrap:pretty}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-subtitle{white-space:normal!important;width:auto!important;max-width:none!important;font-size:clamp(13px,1.1vw,20px)!important;line-height:1.5!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-statement{max-width:none!important;font-size:clamp(13px,1.1vw,20px)!important;line-height:1.6!important}
@media(max-width:1100px){section.photo-hero[data-t1791-layout="v5"]{--t5-h:calc(100svh - 59px)}}
/* portrait tablets and short landscape screens: copy band on top, film below at full width */
@media(min-width:761px) and (max-aspect-ratio:4/3),(min-width:761px) and (max-height:560px){
section.photo-hero[data-t1791-layout="v5"]{--t5-pad:clamp(20px,4vw,40px);height:auto!important;padding:0 0 calc(56.25% + .875 * var(--t5-pad))!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-copy{position:relative!important;left:auto;top:auto;bottom:auto;width:auto!important;margin:0 var(--t5-pad)!important;padding:clamp(28px,5vw,48px) 0 0!important;justify-content:flex-start!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-logo{width:min(100%,360px)!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-copy h1{font-size:clamp(32px,5vw,48px)!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-subtitle,section.photo-hero[data-t1791-layout="v5"] .photo-hero-statement{font-size:clamp(14px,1.8vw,18px)!important}
section.photo-hero[data-t1791-layout="v5"]::before{left:var(--t5-pad);right:auto;top:auto;bottom:var(--t5-pad);width:calc(100% - 2 * var(--t5-pad));transform:none}
section.photo-hero[data-t1791-layout="v5"] video.photo-hero-image{left:var(--t5-pad)!important;right:auto!important;top:auto!important;bottom:var(--t5-pad)!important;width:calc(100% - 2 * var(--t5-pad))!important;transform:none!important}
}
/* phones: poster on top, the copy below it, left aligned as in the old hero */
@media(max-width:760px){
section.photo-hero[data-t1791-layout="v5"]{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding:0 0 32px!important}
section.photo-hero[data-t1791-layout="v5"]::before{position:relative;left:auto;right:auto;top:auto;transform:none;flex:none;width:100%;border-radius:0;box-shadow:none}
section.photo-hero[data-t1791-layout="v5"] video.photo-hero-image{display:none!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-copy{position:relative!important;left:auto;top:auto;bottom:auto;width:auto!important;margin:0 18px!important;padding:22px 0 0!important;justify-content:flex-start!important;gap:10px!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-logo{width:min(282px,100%)!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-copy h1{font-size:clamp(30px,8.6vw,40px)!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-subtitle{font-size:14px!important}
section.photo-hero[data-t1791-layout="v5"] .photo-hero-statement{font-size:15px!important}
}
