/* Keep the approved visual language; make the first task and mobile controls clearer. */
.chat-work-scope{display:flex;flex-wrap:wrap;gap:6px 14px;margin:18px 0 10px;color:#39473f;font-size:13px;line-height:1.8}
.chat-work-scope>span{color:#61756c;font-size:11px;letter-spacing:.08em}
.chat-contact-policy-notice{padding:18px;border-left:3px solid #256d55;background:#f2f7f4;line-height:1.9}
.chat-contact-next{margin:20px 0 28px;padding:18px 0;border-block:1px solid #dce3dd}
.chat-contact-next h2{margin:0 0 10px;font-size:16px!important;line-height:1.8;font-weight:500!important}
.chat-contact-next ol{margin:0;padding-left:1.5em;font-size:13px;line-height:1.9;color:#45574c}
.chat-contact-next li+li{margin-top:8px}
.chat-home-work-caption .chat-home-work-scope{margin:8px 0 0;font-size:12px;line-height:1.8;color:#53675c;letter-spacing:0}
.chat-estimate-details .chat-estimate-conditions{display:block;margin:14px 0 0}
.chat-estimate-conditions>div+div{margin-top:10px}
@media(max-width:960px){
  button[class*="SubpageHeader-module__"][class$="__menuButton"]{top:12px;right:16px;bottom:auto;width:48px;height:48px}
  a[class*="SubpageShell-module__"][class$="__close"]{top:14px;right:78px;bottom:auto}
  body.chat-natural header[data-home="true"] button[class$="__menuButton"]{top:14px;right:116px;bottom:auto;width:48px;height:48px;box-shadow:none;border:1px solid #d7ddda}
  .chat-analysis-settings.chat-ui-settings{position:static;inset:auto;display:block;width:fit-content;max-width:100%;margin:20px 0 0;box-shadow:none}
}
@media(max-width:767px){
  [data-office12-home] [data-section="hero"] [class$="__heroMicro"],
  [data-office12-home] [data-section="hero"] [class$="__heroAside"]{display:none}
  [data-office12-home] [data-section="hero"] [class$="__heroLead"]{left:8%;right:30px;bottom:10%;width:auto}
  [data-office12-home] [data-section="hero"] [class$="__heroLead"]>p{font-size:11px;line-height:1.7;letter-spacing:.04em;margin-bottom:14px}
  [data-office12-home] [data-section="hero"] h1{font-size:clamp(32px,8.5vw,40px);line-height:1.3}
  [data-office12-home] [data-section="hero"] [class$="__heroActions"]{display:flex;gap:4px 16px;margin-top:14px;max-width:none}
  [data-office12-home] [data-section="hero"] [class$="__heroActions"] a{min-height:44px;font-size:11px;gap:16px;padding-right:4px}
  .chat-work-scope{font-size:12px;margin-top:14px}
}
@media(max-height:650px) and (max-width:767px){
  [data-office12-home] [data-section="hero"] [class$="__heroLead"]{bottom:14%}
  [data-office12-home] [data-section="hero"] h1{font-size:30px;line-height:1.2}
  [data-office12-home] [data-section="hero"] [class$="__heroLead"]>p{margin-bottom:8px}
  [data-office12-home] [data-section="hero"] [class$="__heroActions"]{margin-top:8px}
}
/* A short viewport needs a reading surface, while ordinary screens retain their composition. */
@media(max-height:480px){
  [data-office12-home] [data-active]:has(>[data-section="hero"]){overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
  [data-office12-home] [data-section="hero"]{height:auto!important;min-height:100%;overflow:visible!important;padding-bottom:60px}
  [data-office12-home] [data-section="hero"] [class$="__heroLead"]{position:relative;top:auto;bottom:auto;left:auto;right:auto;width:auto;max-width:900px;margin:0;padding:120px 8% 24px}
  [data-office12-home] [data-section="hero"] [class$="__heroMicro"],
  [data-office12-home] [data-section="hero"] [class$="__heroAside"]{display:none}
  [data-office12-home] [data-section="hero"] h1{overflow-wrap:anywhere}
  [data-office12-home] [data-section="hero"] :is(h1,[class$="__heroActions"] a,[class$="__heroLead"]>p){scroll-margin-block:110px 44px}
  [data-office12-home] [data-section="hero"] h1>span{white-space:normal}
  [data-office12-home] [data-section="hero"] [class$="__heroActions"]{flex-wrap:wrap}
  [data-office12-home] [data-section="hero"] [class$="__scrollCue"]{position:relative;left:auto;bottom:auto;margin:0 8%;min-height:44px}
  [data-office12-home] [aria-label="ページ内の現在位置"]{top:auto;bottom:0;right:0;left:0;transform:none;flex-direction:row;justify-content:center;background:#fff;color:#256d55}
  [data-office12-home] [aria-label="ページ内の現在位置"] button{width:34px;height:34px}
  [data-office12-home] [aria-label="ページ内の現在位置"] button:before{border-color:#256d55!important}
  [data-office12-home] [aria-label="ページ内の現在位置"] button[aria-current]:before{background:#256d55!important}
}
