/* Shared split-photo opening. Desktop geometry remains owned by WORK.
   Only this component participates; TOP and photographic genre openings are separate. */
:root{--coco-subhero-mobile-copy:520px;--coco-subhero-mobile-photo:420px;--coco-subhero-title:clamp(48px,17vw,76px);--coco-subhero-background:#ece9e6}
@media(max-width:800px){
 body.cocofilm #main-content .coco-subhero{height:auto;min-height:0;max-height:none;padding:0;margin-block:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;overflow:visible;background-color:var(--coco-subhero-background)}
 body.cocofilm #main-content .coco-subhero .coco-subhero-copy{box-sizing:border-box;position:relative;width:100%;min-width:0;max-width:100%;height:auto;min-height:var(--coco-subhero-mobile-copy);padding:50px 8% 40px;align-self:stretch;display:grid;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:start;gap:14px;background-color:var(--coco-subhero-background)}
 body.cocofilm #main-content .coco-subhero-copy>:is(h1,h2,p,.eyebrow,.small,.about-hero-kicker){margin:0;max-width:100%;min-width:0}
 body.cocofilm #main-content .coco-subhero-copy>:is(h1,.coco-hero-title){width:100%;justify-self:stretch;text-align:center;font-size:var(--coco-page-title-fit,var(--coco-subhero-title))!important;line-height:1;letter-spacing:-.07em;font-weight:700;white-space:normal;word-break:normal;overflow-wrap:anywhere}
 /* Only a successful measurement opts into nowrap; failure/no-JS stays readable. */
 body.cocofilm #main-content .coco-subhero-copy>:is(h1,.coco-hero-title)[data-coco-title-fit]{white-space:nowrap;overflow-wrap:normal}
 body.cocofilm #main-content .coco-subhero-copy>h2{font-size:clamp(22px,5.8vw,25px);line-height:1.8;letter-spacing:.05em;font-weight:500}
 body.cocofilm #main-content .coco-subhero-copy>:is(p,.page-lead):not(.about-hero-kicker){font-size:13px;line-height:2.2;letter-spacing:.02em;font-weight:400}
 body.cocofilm #main-content .coco-subhero-copy>:is(.eyebrow,.small,.about-hero-kicker){font-size:10px;line-height:1.5;letter-spacing:.17em;font-weight:700}
 body.cocofilm #main-content .coco-subhero-copy>:is(.hero-link,.page-link,.about-hero-link){margin:8px 0 0;padding:16px 0;max-width:100%;font-size:11px;line-height:1.5;letter-spacing:.1em}
 body.cocofilm #main-content .coco-subhero .coco-subhero-photo{position:relative;height:var(--coco-subhero-mobile-photo);min-height:0;max-height:none;width:100%;overflow:hidden}
 body.cocofilm #main-content .coco-subhero-photo>img{display:block;width:100%;height:100%;object-fit:cover}
 /* Unify the mobile gray panel; old decorative overflows belong to desktop WORK only. */
 body.cocofilm #main-content .coco-subhero::before,
 body.cocofilm #main-content .coco-subhero::after{content:none}
 /* Page-specific CSS entrance keyframes defer to the one shared JS opacity cue. */
 body.cocofilm #main-content .coco-subhero-copy>*,
 body.cocofilm #main-content .coco-subhero-photo>img{animation:none}
}

/* Match the standard split opening while letting long copy expand its row. */
@media(min-width:801px){
 body.cocofilm #main-content :is(.coco-subhero:not(.access-hero,.coco-not-found),.coco-genre .plan-hero){
  height:auto;min-height:clamp(690px,87svh,950px);max-height:none;
  display:grid;grid-template-rows:minmax(min-content,1fr);
 }
 body.cocofilm #main-content :is(.coco-subhero:not(.access-hero,.coco-not-found),.coco-genre .plan-hero) > :is(.coco-subhero-photo,.plan-photo){
  position:relative;align-self:stretch;width:100%;height:auto;min-height:0;
 }
 body.cocofilm #main-content :is(.coco-subhero:not(.access-hero,.coco-not-found),.coco-genre .plan-hero) > :is(.coco-subhero-photo,.plan-photo) > img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
 }
 body.cocofilm #main-content .news-hero.coco-subhero{grid-template-columns:48% 52%}
 body.cocofilm #main-content .news-hero.coco-subhero > .coco-subhero-copy{width:100%;align-self:center}
 body.cocofilm #main-content #plan-opening > .coco-subhero-copy{padding-block:clamp(32px,5svh,60px)}
 body.cocofilm #main-content #plan-opening > .coco-subhero-copy > :is(h1,h2,p){margin-block:12px}
 
}
@media(max-width:800px){
 body.cocofilm #main-content .coco-genre .plan-hero > .hero-type{
  min-height:var(--coco-subhero-mobile-copy);
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 }
 body.cocofilm #main-content .coco-genre .plan-hero > .plan-photo{height:var(--coco-subhero-mobile-photo)}
}

/* One opening-title spec for every subpage, genre page and 404.
   Size: a shared standard per breakpoint; fit-page-title.js only shrinks long words to the column.
   Face: Latin and digits in DM Sans (e.g. 100 DAYS, 753), Japanese in Mincho. */
:root{--coco-subhero-title-desktop:clamp(64px,6.95vw,100px)}
@media(min-width:801px){:root{--coco-subhero-title:var(--coco-subhero-title-desktop)}}
body.cocofilm #main-content :is(.coco-subhero-copy,.page-header-copy,.coco-genre .plan-hero>.hero-type)>:is(h1,.coco-hero-title){
 font-family:'DM Sans','Noto Serif JP',serif!important;
 font-size:var(--coco-page-title-fit,var(--coco-subhero-title))!important;
 font-weight:700!important;line-height:1;
}
@media(min-width:801px){body.cocofilm #main-content :is(.coco-subhero-copy,.page-header-copy,.coco-genre .plan-hero>.hero-type)>:is(h1,.coco-hero-title){letter-spacing:-.035em!important}}
body.cocofilm #main-content :is(.coco-subhero-copy,.page-header-copy,.coco-genre .plan-hero>.hero-type)>:is(h1,.coco-hero-title)[data-coco-title-fit]{white-space:nowrap;overflow-wrap:normal}
body.cocofilm #main-content :is(.coco-subhero-copy,.page-header-copy,.coco-genre .plan-hero>.hero-type)>:is(.eyebrow,.small,.about-hero-kicker){font-size:10px!important;line-height:1.5;letter-spacing:.17em;font-weight:700}
/* Same title line on every page: copy starts at a fixed offset instead of centring its
   variable-length content, with one eyebrow → title → lead rhythm. */
@media(min-width:801px){
 body.cocofilm #main-content :is(.coco-subhero:not(.access-hero),.coco-genre .plan-hero)>:is(.coco-subhero-copy,.hero-type){align-self:start!important;margin-top:0!important;padding-top:170px!important;padding-left:86px!important}
 body.cocofilm #main-content :is(.coco-subhero:not(.access-hero),.coco-genre .plan-hero)>:is(.coco-subhero-copy,.hero-type)>:first-child{margin:0 0 25px!important}
 body.cocofilm #main-content :is(.coco-subhero:not(.access-hero),.coco-genre .plan-hero)>:is(.coco-subhero-copy,.hero-type)>:is(h1,.coco-hero-title){margin:0 0 28px!important}
}
@media(max-width:800px){
 body.cocofilm #main-content :is(.coco-subhero:not(.access-hero),.coco-genre .plan-hero)>:is(.coco-subhero-copy,.hero-type){align-content:start!important;justify-content:flex-start!important;padding-top:98px!important}
}
@media(max-width:800px){body.cocofilm #main-content .coco-genre .plan-hero>.hero-type{gap:14px}body.cocofilm #main-content .coco-genre .plan-hero>.hero-type>*{margin:0!important}}
