/* Below 1280px the 1920 canvas is no longer zoom-scaled (app.js fit()); sections reflow instead. */
@media (max-width:1279px){
  /* Root + generic fluid reset */
  .s0[data-node-id="117:421"]{width:100%;overflow-x:clip}
  .s0 :is(div,p){max-width:100%;min-width:0}
  .s0 :is(p,span){white-space:normal}
  .s0 :is(.s19,.s21,.s25,.s69,.s307,.s315){white-space:pre-wrap}
  .s0 .s302{white-space:nowrap}
  /* break multi-span headings only at span boundaries (e.g. not inside キャンペーン) */
  .s0 :is(.s184,.s286){word-break:keep-all;overflow-wrap:anywhere}
  .s0 img{max-width:100%}
  .s0>[data-node-id]:not(.s1){scroll-margin-top:72px}

  /* Header */
  .s0 .s1{height:64px;padding-inline:24px;gap:16px}
  .s0 .a-brand{width:auto}
  .s0 .a-brand img{width:auto;height:36px}
  .s0 .s3{width:auto;height:auto;flex:1;text-align:center;white-space:nowrap}
  .s0 .s4{padding:12px 18px}

  /* 01 Hero */
  .s0 .s6{height:auto;display:flex;flex-direction:column;gap:40px;padding:96px 48px 80px}
  [data-node-id="117:427"]::before{background:linear-gradient(180deg,rgba(250,252,248,.8) 0%,rgba(250,252,248,.45) 100%)}
  .s0 :is(.s7,.s17,.s22){position:relative;left:auto;top:auto}
  .s0 .s7{gap:32px}
  .s0 .s10{font-size:clamp(14px,2.4vw,24px);line-height:1.4}
  .s0 .s13{font-size:clamp(26px,5.6vw,56px);line-height:1.4}
  .s0 .s16{font-size:clamp(15px,2.2vw,22px);line-height:1.7}
  .s0 :is([data-node-id="474:14"],[data-node-id="474:16"]){width:auto}
  .s0 .s17{flex-wrap:wrap}
  .s0 :is(.s18,.s20){padding:14px 26px;min-height:48px}
  .s0 :is(.s19,.s21){font-size:clamp(16px,2vw,20px);line-height:1.5}
  .s0 .s22{width:240px;height:240px;gap:6px;flex-shrink:0}
  .s0 .a-price-ring{width:100%;height:100%}
  .s0 .s23{font-size:20px;line-height:1.4}
  .s0 .s24{font-size:34px;line-height:1.3}
  .s0 .s25{font-size:14px;line-height:1.5;text-align:center}

  /* Section heading type */
  .s0 :is(.s29,.s31,.s111,.s113,.s187,.s61 p,.s286 span){font-size:clamp(26px,5vw,56px);line-height:1.45}
  .s0 :is(.s30,.s112,.s186,.s188){font-size:clamp(32px,6.4vw,72px);line-height:1.35}
  .s0 :is(.s32,.s114 p,.s64 p,.s189,.s255,.s288 p){font-size:clamp(16px,2.2vw,24px);line-height:1.7}
  .s0 .s254{font-size:clamp(26px,5vw,52px);line-height:1.4}
  .s0 .s75{font-size:clamp(28px,5vw,48px);line-height:1.4}
  .s0 .s76{font-size:clamp(16px,2.2vw,22px);line-height:1.6}
  .s0 :is(.s27,.s109,.s183,.s253,.s285){gap:20px}
  .s0 :is(.s64,.s255){height:auto}
  .s0 :is(.s255,.s288){width:auto}

  /* 02 Problem & Solution */
  .s0 .s26{width:100%;gap:56px;padding:96px 48px}
  .s0 .s33{width:100%;gap:40px}
  .s0 :is(.s34,.s46){width:100%;height:auto;gap:24px}
  .s0 :is(.s34,.s46){align-items:stretch}
  .s0 :is(.s35,.s47){width:auto;height:auto;flex:1 1 0}
  .s0 :is(.s37,.s38,.s49,.s50){width:auto}
  .s0 :is(.s37,.s49){font-size:clamp(20px,2.6vw,28px);line-height:1.4}
  .s0 :is(.s38,.s50){font-size:16px;line-height:1.7}
  .s0 .s40{font-size:clamp(22px,3vw,30px)}
  /* "+" / "=" badges sit in the two gaps of the 3-column row */
  .s0 :is(.s51,.s53){translate:-50% -50%;z-index:1}
  .s0 .s51{left:calc((100% - 48px)/3 + 12px)}
  .s0 .s53{left:calc((100% - 48px)/3*2 + 36px)}
  .s0 .s54{height:auto;aspect-ratio:1920/158}

  /* 03 Deliverables + samples */
  .s0 .s56{width:100%;padding:96px 48px}
  .s0 .s57{gap:80px}
  .s0 .s58{gap:48px}
  .s0 :is(.s67,.s73,.s74,.s75,.s76,.s77){width:100%}
  .s0 .s68{padding:28px 32px}
  .s0 :is(.s70,.s71){font-size:clamp(20px,2.6vw,26px)}
  .s0 .s72{font-size:16px;line-height:1.7}
  .s0 .s78{flex-wrap:wrap;align-items:stretch}
  .s0 .s79{height:auto;aspect-ratio:676/704}
  .s0 :is(.s84,.s92,.s102){height:64px}
  .s0 :is(.s85,.s93){width:auto;height:auto;font-size:18px}
  /* row 2: two portrait cards + one landscape, widths in the 1920 ratio */
  .s0 .s87{width:auto;height:auto;flex:413 1 0;aspect-ratio:413/892}
  .s0 .s88{height:auto;flex:1 1 0}
  .s0 .s89{display:none}
  .s0 .s90{inset:0;width:100%;height:100%;translate:none}
  .s0 .s94{width:auto;height:auto;flex:412 1 0;aspect-ratio:412/892}
  .s0 .s96{flex:503 1 0;align-self:auto}
  .s0 .s97{height:auto}
  .s0 .s98{height:auto;aspect-ratio:503/893}
  .s0 .s99{height:100%}
  .s0 .s100{left:0;width:100%;height:100%;translate:none}
  /* rows 3-5: 4-up thumbnails */
  .s0 :is(.s103,.s105){width:auto;height:auto;flex:1 1 0;aspect-ratio:326/412}
  .s0 :is(.s104,.s106){width:100%;height:100%}

  /* 04 Proof */
  .s0 .s107{width:100%;gap:56px;padding:96px 48px}
  .s0 .s115{width:100%;gap:40px}
  .s0 :is(.s116,.s157,.s169){width:100%;flex-direction:column;align-items:stretch;gap:32px;padding:40px}
  .s0 .s158{flex-direction:column-reverse;align-items:stretch;gap:32px}
  .s0 :is(.s117,.s170){padding:0}
  .s0 :is(.s144,.s159,.s176){padding:0;align-self:center}
  .s0 .s145{height:auto}
  .s0 .s119{flex-wrap:wrap;gap:12px}
  .s0 .s122{font-size:clamp(24px,3.2vw,32px);line-height:1.4}
  .s0 .s123{height:auto}
  .s0 .s124{font-size:15px;line-height:1.5}
  .s0 .s125{font-size:clamp(28px,4.4vw,44px);line-height:1.35}
  .s0 :is(.s130,.s172){font-size:16px;line-height:0}
  .s0 :is(.s130,.s172) p{line-height:1.7}
  .s0 .s127{gap:16px}
  .s0 .s172{flex:1 1 0}
  .s0 .s129{font-size:18px}
  .s0 .s136{height:auto;min-height:38px;padding-block:2px}
  .s0 .s137{font-size:18px;line-height:1.5}
  .s0 .s139{font-size:24px}
  .s0 :is(.s140,.s141){font-size:20px}
  .s0 .s142{font-size:34px}
  .s0 .s133{flex-wrap:wrap;gap:16px}
  .s0 :is(.s134,.s168,.s173){flex:1 1 220px;padding:20px 24px}
  .s0 :is(.s118,.s171,.s174,.s167){width:100%}

  /* 05 Plan — comparison table rebuilt as a grid (cells were absolutely positioned) */
  .s0 .s181{width:100%;padding:96px 48px 64px}
  .s0 .s182{gap:48px}
  .s0 .s190{gap:48px;order:2}
  .s0 .s247{position:static;order:1;margin-bottom:-36px}
  .s0 .s191{height:auto;width:100%;display:grid;grid-template-columns:minmax(96px,.8fr) repeat(3,minmax(0,1fr));gap:8px}
  .s0 .s191::before{content:""}
  .s0 .s191>*{position:relative;left:auto;top:auto;width:auto;height:auto;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px 8px;text-align:center}
  .s0 .s191>*>:not(.s197){position:static;translate:none;width:auto;height:auto;line-height:1.4}
  .s0 .s197{display:none}
  .s0 :is(.s192,.s196,.s201){padding:20px 8px;border-radius:20px 20px 0 0}
  .s0 :is(.s193,.s198,.s202){font-size:clamp(15px,2.2vw,24px)}
  .s0 :is(.s194,.s199){font-size:clamp(16px,2.4vw,28px)}
  .s0 :is(.s195,.s200){font-size:14px}
  .s0 :is(.s204,.s206,.s208,.s210,.s212,.s215,.s220 p){font-size:clamp(14px,1.8vw,18px)}
  .s0 .s220{line-height:1.4}
  .s0 .s236{width:100%;height:auto}
  .s0 .s237{flex-wrap:wrap;gap:12px}
  .s0 .s241{height:auto;padding:20px 16px}
  .s0 .s242{white-space:normal}

  /* Process */
  .s0 .s250{padding-block:32px}
  .s0 .s250>.s41{width:100%}
  .s0 .s250 .s42{width:min(558px,100%)}
  .s0 .s251{width:100%;height:auto;aspect-ratio:558/60}
  .s0 .s252{width:100%;gap:48px;padding:40px 48px 96px}
  .s0 :is(.s253,.s256){width:100%}
  .s0 .s257{flex-wrap:wrap;gap:16px 48px}
  .s0 .s259{font-size:clamp(18px,2.4vw,24px)}
  .s0 .s261{padding:28px 32px;gap:24px}
  .s0 :is(.s268,.s276){height:auto;gap:12px}
  .s0 :is(.s269,.s277,.s282,.s283){display:none}
  .s0 :is(.s270,.s273,.s281){width:auto}
  .s0 .s271{font-size:clamp(20px,2.6vw,26px)}
  .s0 .s272{font-size:clamp(18px,2.4vw,24px)}
  .s0 .s273{font-size:16px;line-height:1.7}
  .s0 .s281{font-size:16px;line-height:1.5;flex:1 1 0}
  .s0 .s267{font-size:14px}

  /* 06 Form + FAQ */
  .s0 .s284{gap:56px;padding:96px 48px}
  .s0 .s306{width:auto;flex:1 1 0}
  .s0 :is(.s292,.s295,.s296,.s297,.s300,.s308,.s310,.s312,.s313,.s319,.s320,.s324,.s332,.s334){width:100%}
  .s0 .s293{font-size:clamp(22px,3.2vw,30px)}
  .s0 .s296{height:auto;flex:1 1 0}
  .s0 .s310{height:auto;flex:1 1 0}
  .s0 .s300,.s0 .s308{height:56px}
  .s0 [data-name="Input"] input{font-size:16px!important}
  .s0 .s313{min-height:44px}
  .s0 .s314{width:28px;height:28px}
  .s0 .s315{font-size:15px}
  .s0 .s316{width:min(504px,100%);padding:22px 56px}
  .s0 .s317{left:auto;right:24px}
  .s0 .s318{white-space:normal;text-align:center}
  .s0 .s320{padding:40px 24px}
  .s0 .s321{font-size:clamp(28px,4vw,40px)}
  .s0 .s322{width:100%;height:auto;font-size:16px;line-height:1.7}
  .s0 .s323{width:100%}
  .s0 .s327{font-size:14px}
  .s0 .s329{width:100%;height:auto;font-size:15px;line-height:1.7}
  .s0 .s330{min-height:52px;max-width:100%}
  .s0 .s333{padding:20px 24px}
  .s0 [data-node-id="117:799"] .s336{font-size:18px;line-height:1.6}

  /* Footer */
  .s0 .s342{width:100%;padding:40px 24px}
  .s0 :is(.s344,.s346,.s347,.s348){width:100%;height:auto}
  .s0 .s343{width:100%}
}

@media (max-width:767px){
  /* Header: logo + CTA only; sections are reached by scrolling */
  .s0 .s1{padding-inline:16px;gap:12px}
  .s0 .a-brand img{height:30px}
  .s0 .s3{display:none}
  .s0 .s4{padding:10px 14px}
  .s0 .s5{font-size:14px}

  .s0 .s6{padding:72px 16px 56px;gap:32px}
  .s0 .s7{gap:24px}
  .s0 .s8{gap:14px}
  .s0 .s12{padding-inline:8px}
  /* longest headline line (14 chars) stays on one line */
  .s0 .s13{font-size:min(30px,calc((100vw - 52px)/14))}
  .s0 .s17{width:100%;flex-direction:column;align-items:stretch;gap:12px}
  .s0 :is(.s18,.s20){justify-content:center}
  .s0 .s22{width:200px;height:200px;align-self:center}
  .s0 .s23{font-size:17px}
  .s0 .s24{font-size:28px}

  .s0 :is(.s26,.s56,.s107,.s284){padding:64px 16px}
  .s0 .s181{padding:64px 16px 48px}
  .s0 .s252{padding:32px 16px 64px}
  .s0 .s26{gap:40px}

  /* Problem cards stack; the "+" / "=" badges sit between cards */
  .s0 :is(.s34,.s46){flex-direction:column;gap:16px}
  .s0 :is(.s35,.s47){flex:none;width:100%;padding:24px}
  .s0 .s46>:nth-child(1){order:1}
  .s0 .s46>.s51{order:2}
  .s0 .s46>:nth-child(2){order:3}
  .s0 .s46>.s53{order:4}
  .s0 .s46>:nth-child(3){order:5}
  .s0 :is(.s51,.s53){position:relative;left:auto;top:auto;translate:none;align-self:center;margin-block:-34px;flex-shrink:0}

  .s0 .s68{padding:24px 20px}
  .s0 .s77{gap:12px}
  .s0 .s78{gap:12px}
  .s0 .s79{flex:1 1 100%}
  .s0 :is(.s87,.s94){flex:1 1 calc(50% - 6px)}
  .s0 .s96{flex:1 1 100%}
  .s0 :is(.s103,.s105){flex:1 1 calc(50% - 6px)}
  .s0 :is(.s84,.s92,.s102){height:56px}
  .s0 :is(.s85,.s93){font-size:16px}

  .s0 :is(.s116,.s157,.s169){padding:28px 20px;gap:28px}
  .s0 :is(.s144,.s159){gap:8px}
  /* before/after image clusters keep their composition, just smaller */
  .s0 :is(.s148,.s155){zoom:.5}
  .s0 :is(.s161,.s164){zoom:.55}
  .s0 :is(.s177,.s180){zoom:.8}
  .s0 :is(.s145,.s153,.s160){gap:10px}
  .s0 .s127{gap:12px}
  .s0 :is(.s139,.s140,.s141){font-size:22px}
  .s0 .s142{font-size:32px}

  /* Plan table: scrolls inside its own box rather than the page */
  .s0 .s190{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .s0 .s190{align-items:flex-start}
  .s0 .s191{min-width:340px;grid-template-columns:72px repeat(3,minmax(0,1fr));gap:4px}
  .s0 .s191>*{padding:10px 4px;min-height:64px}
  .s0 :is(.s192,.s196,.s201){padding:14px 4px;border-radius:14px 14px 0 0}
  .s0 :is(.s193,.s198,.s202){font-size:14px}
  .s0 :is(.s194,.s199){font-size:15px}
  .s0 :is(.s204,.s212){font-size:14px;white-space:normal}
  .s0 .s236{gap:16px}
  .s0 .s241{flex:1 1 100%}

  .s0 .s261{flex-wrap:wrap;padding:24px 20px;gap:16px}
  .s0 .s262{width:auto;height:auto;flex-direction:column;align-items:flex-start;gap:4px}
  .s0 .s265{font-size:32px}
  .s0 :is(.s266,.s274){width:72px;height:72px}
  .s0 .s275{font-size:30px;line-height:1}
  .s0 :is(.s268,.s276){flex:1 1 100%}
  .s0 .s278{flex-wrap:wrap;gap:10px}

  .s0 :is(.s295,.s118){flex-direction:column;gap:20px}
  .s0 :is(.s296,.s306,.s310){flex:none;width:100%}
  .s0 .s316{padding:20px 48px}
  .s0 .s318{font-size:18px}
  .s0 .s320{padding:32px 16px}
  .s0 .s324{padding:20px 16px}
  .s0 .s330{width:100%}
  .s0 .s333{padding:16px 16px 20px}
  .s0 [data-node-id="117:799"] .s336{font-size:16px}
  .s0 [data-node-id="117:799"] .s340{font-size:15px}
}
