/* Shared small-screen layout. Desktop presentation remains in the existing stylesheets. */
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:2px solid #718faa;outline-offset:4px}
@media(max-width:1100px){
 :root{--gutter:28px}
 .brand small{display:none}
 #workflow .workflow-tabs{overflow:visible}
 .workflow-hierarchy .workflow-tabs .wf-reference{width:100%;max-width:100%;padding:24px 0}
 .workflow-hierarchy .wf-comparison{grid-template-columns:1fr;gap:18px}
 .workflow-hierarchy .wf-transition{transform:rotate(90deg);width:28px;height:28px;justify-self:center;margin:0}
 .workflow-hierarchy .wf-after-body{grid-template-columns:48px minmax(0,1fr) 28%;column-gap:24px}
 .workflow-hierarchy .wf-ai ol{width:100%}
 .workflow-hierarchy .wf-output-arrow{left:calc(100% + 3px);width:18px;font-size:18px}
 .workflow-hierarchy .wf-step{grid-template-columns:72px minmax(0,1fr);padding:8px 10px}
 .workflow-hierarchy .wf-step img{width:72px;height:44px}
 .workflow-hierarchy .wf-step h5{font-size:14px}
 .workflow-hierarchy .wf-step p{font-size:12px}
 .workflow-hierarchy .wf-panel-header h4{white-space:normal}
 .workflow-hierarchy .wf-panel-header small{font-size:12px}
 #demo .demo-copy{width:52%;max-width:none}
}
@media(max-width:720px){
 :root{--gutter:20px;--body:16px;--title:28px;--group:24px}
 header{gap:12px;padding:12px 20px}
 .brand-lockup{gap:6px}.brand-lockup img{width:32px;height:auto}.brand-lockup>span{font-size:21px}
 .header-cta{font-size:12px;padding:10px 12px;min-height:44px;gap:8px}
 #hero{gap:24px;padding-top:24px;padding-bottom:28px}
 #hero .hero-copy{width:100%;min-width:0}
 #hero h1{font-size:clamp(26px,7.7vw,34px);line-height:1.5;text-indent:0}
 #hero #copy-01-02 h2{font-size:13px;white-space:normal;letter-spacing:0}
 #hero #copy-01-04 p{font-size:18px;line-height:1.65}
 #hero #copy-01-06 p,#hero #copy-01-07 p{font-size:14px;white-space:normal;line-height:1.8}
 #hero .copy-block{margin-bottom:20px}
 #hero .hero-support-copy .copy-block{margin-bottom:4px}
 #hero .button{font-size:16px;padding:16px 18px;min-height:56px;justify-content:center}
 #hero .hero-art{width:100%;margin:0;max-height:none}
 #hero .hub-visual{width:100%;max-width:400px;margin:auto}
 main>.section .section-title,#copy-02-02 h2,#demo .section-title{font-size:28px!important;line-height:1.5}
 #results .case-column{flex-basis:94%;grid-template-rows:140px auto}
 #results .case-column:last-child{margin-right:6%}
 #results .case-content .case-metric{gap:8px}
 #results .case-content .metric-number{gap:6px}
 #results .case-content .lp-description{font-size:14px}
 #results .case-controls{margin:16px 0 24px}
 #empathy .empathy-columns .work-diagram-grid li{min-height:90px;padding:14px 6px}
 #empathy .empathy-columns .work-diagram-grid strong{font-size:16px;white-space:normal}
 #empathy .empathy-columns .work-diagram-grid span{font-size:12px}
 #empathy .empathy-narrative .question-group h2{font-size:25px}
 #empathy .insight-group strong,#empathy .time-options>span{font-size:19px}
 .employee-flow{--flow-gap:16px;grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr);gap:16px;padding:12px 0;margin:24px 0}
 .employee-flow-core{width:76px;height:76px;font-size:16px}
 .employee-flow-inputs,.employee-flow-outputs{gap:12px}
 .employee-flow-inputs>div,.employee-flow-outputs>div{font-size:11px;padding:12px 2px}
 .employee-flow-inputs:after{right:-8px;top:22px;bottom:22px}
 .employee-flow-outputs:after{left:-8px;top:22px;bottom:22px}
 .employee-flow-inputs>div:after,.employee-flow-outputs>div:before,.employee-flow-core:before,.employee-flow-core:after{width:8px}
 .workflow-lead{padding:36px 0 24px}.workflow-lead p{font-size:15px}
 .workflow-demonstration{padding:20px 0 28px}
 .workflow-tab-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
 .workflow-tab{min-width:0;min-height:48px;padding:10px 4px;font-size:13px;white-space:nowrap}
 .workflow-hierarchy .wf-example-header h3{font-size:24px}
 .wf-impact{margin:10px 0 20px}.wf-impact-values{gap:12px;font-size:17px}
 .workflow-hierarchy .wf-impact-values strong{font-size:52px}.wf-impact-arrow{font-size:26px}
 .workflow-hierarchy .wf-before,.workflow-hierarchy .wf-after{padding:14px}
 .workflow-hierarchy .wf-after-body{grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto auto;gap:28px 10px}
 .workflow-hierarchy .wf-role-human{grid-column:1;grid-row:1}
 .workflow-hierarchy .wf-role-ai{grid-column:1;grid-row:2}
 .workflow-hierarchy .wf-role svg{width:22px;height:22px}
 .workflow-hierarchy .wf-role strong,.workflow-hierarchy .wf-role-ai strong{font-size:10px}
 .workflow-hierarchy .wf-role span{font-size:8px}
 .workflow-hierarchy .wf-request{grid-column:2;grid-row:1;min-height:126px;padding:10px}
 .workflow-hierarchy .wf-request>img{width:40%;height:76px;top:36px;right:8px}
 .workflow-hierarchy .wf-request p{font-size:11px;max-width:60%;padding:6px;line-height:1.65}
 .workflow-hierarchy .wf-request h5,.workflow-hierarchy .wf-confirm h5{font-size:16px}
 .workflow-hierarchy .wf-ai{grid-column:2;grid-row:2;padding:12px}
 .workflow-hierarchy .wf-ai ol{display:grid;grid-template-columns:1fr;gap:16px;width:100%}
 .workflow-hierarchy .wf-ai li{height:40px;flex-direction:row;gap:12px}
 .workflow-hierarchy .wf-ai li span{font-size:12px}
 .workflow-hierarchy .wf-ai li svg{width:22px;height:22px}
 .workflow-hierarchy .wf-ai li:not(:last-child)::after{left:50%;top:100%;right:auto;width:16px;height:16px;line-height:16px;transform:translateX(-50%) rotate(90deg);font-size:14px}
 .workflow-hierarchy .wf-down-arrow{bottom:-24px}
 .workflow-hierarchy .wf-output-arrow{top:100%;bottom:auto;left:50%;right:auto;width:24px;height:28px;line-height:28px;transform:translateX(-50%) rotate(90deg);font-size:22px}
 .workflow-hierarchy .wf-confirm{grid-column:2;grid-row:3;padding:12px}
 .workflow-hierarchy .wf-up-arrow{display:none}
 .workflow-hierarchy .wf-paper{width:100%;max-width:260px;margin:14px auto 0;padding:10px}
 .workflow-hierarchy .wf-paper-head strong{font-size:13px}
 .workflow-hierarchy .wf-paper-head span{font-size:6px}
 .workflow-hierarchy .wf-paper>b,.workflow-hierarchy .wf-paper>p,.workflow-hierarchy .wf-paper-total,.workflow-hierarchy .wf-paper table{font-size:8px}
 .workflow-hierarchy .wf-paper-total strong{font-size:12px}
 .workflow-hierarchy .wf-paper th,.workflow-hierarchy .wf-paper td{padding:4px 2px}
 .workflow-hierarchy .wf-paper footer{font-size:6px}
 .workflow-finale{padding:36px 0}.workflow-finale h2{font-size:21px}.workflow-finale h2 span{font-size:32px}
 #experience .request-pair-copy{padding-left:0}
 #experience .request-pair-copy h3{font-size:20px}
 #experience .result-image{width:100%;max-width:350px}
 #experience .execution-request-heading h3{font-size:clamp(17px,5.5vw,24px)}
 .execution-sheet{padding:8px}.execution-sheet table{font-size:10px}.execution-sheet th,.execution-sheet td{padding:4px 2px}
 #demo .demo-copy{width:100%;max-width:none}
 #demo .demo-screen-visual{width:100%;left:0;margin:24px 0 0}
 #demo .demo-layout{padding:36px 0 24px}
 #demo .demo-copy p{font-size:15px;line-height:1.8}
 #future .future-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
 #future .future-grid figcaption{font-size:17px}
 #future .role-comparison strong{font-size:17px}
 #future .closing-message h3{font-size:24px;line-height:1.6}
 #request{padding-block:36px}
 #request .request-intro-copy,#request .request-form-panel{min-width:0}
 #request .request-answer{font-size:28px;line-height:1.5}
 #request .request-intro-grid .book-art{width:160px;margin:0 auto}
 #request .request-intro-grid{margin-bottom:24px}
 #request .document-contents h3{font-size:24px}
 #request .request-form-panel{padding:20px 16px}
 #apply-form input,#apply-form select,#apply-form textarea{font-size:16px;min-height:46px;max-width:100%}
 #apply-form .submit,#form-back{min-height:48px}
 #apply-form .form-step-actions{gap:8px}
 footer{overflow-wrap:anywhere}
}
@media(max-width:360px){
 :root{--gutter:16px}header{padding-inline:16px}
 .brand-lockup>span{font-size:18px}.header-cta{padding:10px;font-size:11px}
 .wf-impact-values{font-size:15px;gap:8px}.workflow-hierarchy .wf-impact-values strong{font-size:46px}
 .employee-flow{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)}.employee-flow-core{width:64px;height:64px;font-size:14px}
 #empathy .empathy-columns .work-diagram-grid strong{font-size:14px}
}

@media(max-width:720px){
 #experience .request-pair-copy::before{position:static;display:block;border:0;padding:0;margin-bottom:8px;font-size:18px;line-height:1}
 #experience .request-pair:not(.execution-row){gap:16px;padding:24px 0}
 #hero #copy-01-04 p{font-size:17px}
 #hero #copy-01-04 strong{font-weight:650}
 #results .case-columns{align-items:start}
 #results .case-content .case-metric{flex-wrap:wrap}
}

@media(min-width:721px) and (max-width:1100px){
 #hero #copy-01-06 p,#hero #copy-01-07 p{white-space:normal;font-size:14px;line-height:1.8}
 #hero #copy-01-02 h2{white-space:normal;font-size:14px}
}
@media(min-width:721px) and (max-width:1100px){
 #demo .demo-layout{display:block;min-height:0;padding:40px 0 28px}
 #demo .demo-copy{width:100%;max-width:660px}
 #demo .demo-screen-visual{position:relative;left:0;bottom:auto;width:85%;max-width:640px;margin:24px 0 0 auto}
 #demo .section-title{font-size:34px!important}
}

/* Portrait backgrounds: mobile art direction, desktop imagery stays unchanged. */
@media(max-width:720px){
 #hero::before{inset:0;background:url('assets/coded/mobile-backgrounds/hero-town-illustration-q70.webp') center center/cover no-repeat;filter:none;opacity:.28;mask-image:none}
 #results::before{inset:0;width:100%;height:auto;background:url('assets/coded/mobile-backgrounds/town-mobile.webp') center top/100% auto no-repeat;opacity:.24;mask-image:none}
 #empathy{background:#0b202a}
 #empathy::before{background:linear-gradient(#0b202a,transparent 38%),url('assets/coded/mobile-backgrounds/office-mobile.webp');background-color:#0b202a;background-position:center bottom;background-size:100% calc(100vw * 1.5),100% auto;background-repeat:no-repeat;background-attachment:scroll}
 #empathy::after{background:linear-gradient(to bottom,rgba(5,18,24,.12),rgba(5,18,24,.32))}
 #demo{background:#0b202a;background-image:linear-gradient(rgba(5,18,24,.15),rgba(5,18,24,.32)),url('assets/coded/mobile-backgrounds/office-mobile.webp');background-position:center,center bottom;background-size:100% 100%,100% auto;background-repeat:no-repeat}
 #future::before{inset:0;height:auto;background:url('assets/coded/mobile-backgrounds/town-mobile.webp') center bottom/100% auto no-repeat;opacity:.38;mix-blend-mode:multiply;mask-image:none}
 #experience::before{inset:0;width:100%;height:auto;background:url('assets/coded/mobile-backgrounds/plans-mobile.webp') center top/100% auto no-repeat;filter:none;opacity:.3;mask-image:none}
 #experience::after{content:none}
}

.hero-mobile-break{display:none}
@media(max-width:720px){.hero-mobile-break{display:block}}

/* Mobile hero artwork sits behind the copy, anchored at the upper right. */
@media(max-width:720px){
 #hero .hero-copy{position:relative;z-index:2}
 #hero .hub-visual{position:absolute;top:24px;right:-18px;bottom:auto;left:auto;width:82%;max-width:380px;margin:0;z-index:1;opacity:.13;pointer-events:none}
 #hero .hero-art{display:block;width:100%;height:auto;max-height:none;margin:0}

}

/* Horizontal case carousel: equal-height cards, no inner vertical scrolling. */
#results .case-columns{align-items:stretch;height:auto;overflow-x:auto;overflow-y:hidden}
#results .case-column{height:auto;align-self:stretch}
#results .case-content .case-metric{margin-top:auto}
#results .case-content .copy-block:has(.lp-description){margin-bottom:14px}

/* Mobile section titles share one size; hero and desktop stay unchanged. */
@media(max-width:720px){
 :root{--mobile-section-title-size:42px}
 section:not(#hero) .section-title,
 #results .section-intro h2,
 #workflow .workflow-lead h2,
 #request .request-answer{font-size:var(--mobile-section-title-size)!important}
}

.results-mobile-break{display:none}
@media(max-width:720px){
 #results .section-intro{container-type:inline-size;--results-heading-base:4.65cqw}
 #results #copy-02-01 h2{font-size:var(--results-heading-base)!important;white-space:nowrap;letter-spacing:0;line-height:1.5}
 #results #copy-02-02 h2{font-size:calc(var(--results-heading-base) * 1.85)!important;letter-spacing:0;line-height:1.5}
 .results-mobile-break{display:block}
}

.workflow-mobile-break{display:none}
@media(max-width:720px){.workflow-mobile-break{display:block}}

/* Shared mobile execution layout, aligned with the approved design comps. */
.followup-down,.followup-process,.followup-arrow,.followup-output-title{display:none}
@media(max-width:720px){
 #experience .request-pair.mobile-execution{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:16px 6px;align-items:center;padding:28px 0;margin:0;background:transparent;border-top:1px solid #bfc5c8;border-bottom:0}
 #experience .mobile-execution .execution-request,#experience .mobile-execution .request-pair-copy{grid-column:1/-1;grid-row:1;width:100%;padding:0;text-align:center;overflow:visible}
 #experience .mobile-execution .request-pair-copy::before,
 #experience .mobile-execution .followup-description,
 #experience .mobile-execution .execution-process>p,
 #experience .mobile-execution .execution-eyebrow{display:none}
 #experience .mobile-execution .copy-block{margin:0;padding:0}
 #experience .mobile-execution .execution-request-heading h3,
 #experience .mobile-execution .request-pair-copy h3{font-size:20px;line-height:1.5;letter-spacing:0;white-space:normal;font-weight:750;margin:0;color:#19364f}
 #experience .mobile-execution .execution-request+.execution-arrow,
 #experience .mobile-execution .followup-down{display:block;grid-column:1/-1;grid-row:2;text-align:center;justify-self:center;font-size:26px;line-height:1;height:26px;color:#19364f}
 #experience .mobile-execution .execution-request+.execution-arrow{transform:rotate(90deg)}
 #experience .mobile-execution .execution-process,
 #experience .mobile-execution .followup-process,
 #experience .mobile-execution .execution-output,
 #experience .mobile-execution .result-image{display:grid;grid-template-rows:48px minmax(110px,1fr);gap:8px;align-self:stretch;box-sizing:border-box;min-width:0;width:100%;max-width:none;min-height:176px;padding:12px 8px;margin:0;background:none;border:1px solid #aeb8be;border-radius:3px;color:#19364f}
 #experience .mobile-execution .execution-process,#experience .mobile-execution .followup-process{grid-column:1;grid-row:3}
 #experience .mobile-execution .execution-output,#experience .mobile-execution .result-image{grid-column:3;grid-row:3}
 #experience .mobile-execution .execution-process+.execution-arrow,
 #experience .mobile-execution .followup-arrow{display:block;grid-column:2;grid-row:3;transform:none;justify-self:center;align-self:center;font-size:22px;line-height:1;text-align:center;color:#19364f}
 #experience .mobile-execution h4{display:flex;align-items:center;justify-content:center;text-align:center;font-size:16px;line-height:1.5;font-weight:750;margin:-12px -8px 0;padding:8px 6px;color:#19364f;background:transparent;border-bottom:0;align-self:stretch}
 #experience .mobile-execution h4::after{display:none}
 #experience .mobile-execution .execution-steps,
 #experience .mobile-execution .followup-process ul{display:block;list-style:none;margin:0;padding:0;align-self:center}
 #experience .mobile-execution li{position:relative;padding:0 0 0 10px;margin:0 0 6px;font-size:14px;line-height:1.55;font-weight:500}
 #experience .mobile-execution li:last-child{margin-bottom:0}
 #experience .mobile-execution li::before,#experience .mobile-execution li+li::before{content:'・';display:block;position:absolute;left:0;top:0;transform:none;font-size:14px;line-height:1.55;color:inherit}
 #experience .mobile-execution .execution-steps h5{font-size:14px;line-height:1.55;font-weight:500;white-space:normal;margin:0}
 #experience .mobile-execution .execution-sheet{width:100%;max-width:none;box-sizing:border-box;padding:3px;margin:0;align-self:center;border-radius:0;box-shadow:none}
 #experience .mobile-execution .execution-sheet h5{font-size:9px;line-height:1.3;margin:0 0 5px;padding-left:3px}
 #experience .mobile-execution .execution-sheet table{table-layout:auto;font-size:5.5px;line-height:1.35;width:100%}
 #experience .mobile-execution .execution-sheet th,#experience .mobile-execution .execution-sheet td{padding:2px 1px;white-space:nowrap;overflow-wrap:normal}
 #experience .mobile-execution .result-image img{display:block;width:100%;max-width:100%;height:auto;max-height:130px;object-fit:contain;margin:0;align-self:center}
}

.execution-comp-break{display:none}
@media(max-width:720px){.execution-comp-break{display:block}}
@media(max-width:360px){
 #experience .mobile-execution .execution-sheet table{font-size:4.3px}
 #experience .mobile-execution .execution-sheet th,#experience .mobile-execution .execution-sheet td{padding:2px .5px}
}

/* Give the converging mobile connections enough travel to be visible. */
@media(max-width:720px){
 .employee-flow{--flow-gap:28px;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);gap:28px}
 .employee-flow-core{width:64px;height:64px;font-size:16px}
 .employee-flow-inputs>div,.employee-flow-outputs>div{font-size:14px;line-height:1.5;padding:10px 2px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}
 .employee-flow-inputs:after{right:-14px;top:22px;bottom:22px}
 .employee-flow-outputs:after{left:-14px;top:22px;bottom:22px}
 .employee-flow-inputs>div:after,.employee-flow-outputs>div:before,.employee-flow-core:before,.employee-flow-core:after{width:14px}
}

/* 2026-10-21 画像軽量化: FV画像を<picture>で画面幅ごとに出し分け。picture自体は配置に関与させない */
.hero-mobile-visual picture,.hub-visual picture{display:contents}
