/* MOBEA VNext R1.1 — visual QA correction layer
   Purpose: semantic Japanese line breaks + tighter first-view rhythm.
   Additive only; runtime/form/worker logic untouched. */
@supports (word-break:auto-phrase){
  h1,h2,h3{word-break:auto-phrase}
}

/* Services: avoid huge dead space and split compounds such as 営|業 / 改|善. */
.m26-services{padding-top:clamp(58px,6vw,92px)}
.m26-heading h1,
.m26-card h2,
.m26-card h3{
  word-break:keep-all;
  overflow-wrap:normal;
}
.m26-card h2,.m26-card h3{
  font-size:clamp(28px,2.35vw,36px);
  line-height:1.09;
}

/* Agent Gateway: preserve product words as units instead of Webサ|イト. */
.ag-hero{padding-top:clamp(4.75rem,6.5vw,6.25rem)}
.ag-hero-grid{
  grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);
  gap:clamp(2rem,4vw,4rem);
}
.ag-hero h1{
  font-size:clamp(3rem,4.15vw,4.25rem);
  line-height:.98;
  letter-spacing:-.05em;
  word-break:keep-all;
  overflow-wrap:normal;
}

@media(max-width:900px){
  .ag-hero-grid{grid-template-columns:1fr}
  .ag-hero h1{font-size:clamp(3rem,9vw,4.5rem)}
  .m26-services{padding-top:clamp(48px,8vw,72px)}
}
@media(max-width:580px){
  .ag-hero h1{font-size:clamp(2.6rem,12.5vw,3.6rem);line-height:1.01}
  .m26-card h2,.m26-card h3{font-size:clamp(28px,9vw,34px)}
}

/* MOBEA V2.6.1 — AI Deal Desk mobile overflow hotfix
   Scope: AI Deal Desk only. Desktop and Agent Gateway remain unchanged. */
html[data-mobea-product="ai-deal-desk-private-pilot"] .ag-hero-grid > *{min-width:0}
html[data-mobea-product="ai-deal-desk-private-pilot"] .ag-hero h1{max-width:100%}
@media(max-width:580px){
  html[data-mobea-product="ai-deal-desk-private-pilot"] body{overflow-x:clip}
  html[data-mobea-product="ai-deal-desk-private-pilot"] .ag-shell{max-width:calc(100vw - 28px)}
  html[data-mobea-product="ai-deal-desk-private-pilot"] .ag-hero h1{
    font-size:clamp(2.2rem,10.6vw,3.1rem);
    line-height:1.06;
    letter-spacing:-.045em;
    word-break:normal;
    overflow-wrap:normal;
    line-break:strict;
  }
  html[data-mobea-product="ai-deal-desk-private-pilot"] .ag-lead,
  html[data-mobea-product="ai-deal-desk-private-pilot"] .ag-micro,
  html[data-mobea-product="ai-deal-desk-private-pilot"] .ag-btn{max-width:100%;overflow-wrap:anywhere}
}
