@media (max-width:880px){
  html{scroll-padding-top:calc(76px + env(safe-area-inset-top,0px))}
  body{margin:0;overflow-x:visible;overflow-wrap:anywhere}

  .menu-btn,.nav a,.btn,.fcol a,.gallery button,.lb-nav button,.ccard :is(input,select,textarea){min-width:44px;min-height:44px}
  .menu-btn,.nav a,.nav a.lang,.nav .btn,.btn,.lb-nav button{font-size:1rem}
  .nav{align-items:stretch;overflow-y:auto;max-height:calc(100vh - 76px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 76px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  .nav a,.fcol a:not(.btn){display:flex;align-items:center}
  .nav a:not(.btn)::after{bottom:0}
  .nav a.lang,.nav .btn{align-self:flex-start}
  .btn{max-width:100%;line-height:1.25}
  .btn svg{flex:none}

  .kicker,.sticker,.card p,.step p,.mtag,.mdate,.facts li,.also,.base p,.reach span,.legend,
  .ym-list,.ym-time li,.ym-time span,.ym-quote cite,.values .vlabel,.t-date,.timeline p,.ym-tags li,
  .ccard label,.ccard .err,.ccard .ok,footer,.fbottom,dialog p{font-size:1rem}

  .hero .wrap,.mission,.ccard{grid-template-columns:minmax(0,1fr)}
  .contact .wrap > *{min-width:0}
  .ccard{padding:clamp(16px,5vw,36px)}
  .ccard .two > *{min-width:0}
  iframe,embed,object,video{max-width:100%}
  video{height:auto}

  dialog{padding:8px;max-height:calc(100% - 24px)}
  dialog img{max-height:55vh;max-height:55dvh;object-fit:contain}
  .lb-nav{flex-wrap:wrap}
}
