.automation-page{color:#334f68;background:#fff}
.automation-hero{position:relative;min-height:258px;overflow:hidden;background:#edf7fe}
.automation-hero__image{position:absolute;inset:0 0 0 calc(31.25% - 2px);border:0;outline:0}
.automation-hero__image::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40px;background:linear-gradient(90deg,#edf7fe 0%,rgba(237,247,254,.78) 42%,rgba(237,247,254,0) 100%);pointer-events:none}
.automation-hero__image img{width:100%;height:100%;object-fit:cover;object-position:center}
.automation-hero__content{position:relative;z-index:1;display:flex;min-height:258px;padding:var(--hero-content-padding-top) 0 28px;flex-direction:column;justify-content:flex-start;border:0;outline:0}
.automation-hero__eyebrow{margin:0 0 var(--hero-eyebrow-margin-bottom);color:#c75b12;font-size:clamp(13px,1.3vw,15.6px);font-weight:700;line-height:1.1;letter-spacing:.08em;white-space:nowrap}
.automation-hero h1{max-width:720px;margin:6px 0 3px;color:#174f7c;font-family:"UD Digi Kyokasho NK","UD デジタル 教科書体 NK","BIZ UDPGothic","Yu Gothic",Meiryo,sans-serif;font-size:clamp(20.3px,calc(3.4vw - 5.4px),43.3px);font-weight:700;line-height:1.35;letter-spacing:.02em}
.automation-hero__lead{max-width:800px;margin:var(--hero-lead-margin-top) 0 var(--hero-lead-margin-bottom);color:#222;font-size:14px;line-height:1.7}
.automation-content{padding:36px 0 78px}
.automation-layout{display:grid;grid-template-columns:calc(50% - 29px + 2em) calc(50% - 29px - 2em);gap:58px;align-items:start}
.automation-copy h2,.automation-flow h2{margin:0;color:#174f7c;font-weight:700;line-height:1.35}
.automation-copy h2{margin-bottom:24px;font-size:22px}
.automation-points{margin:0;padding:0}
.automation-point{margin:0 0 31px}
.automation-point:last-child{margin-bottom:0}
.automation-point h3{margin:0;color:#d97a35;font-size:15px;font-weight:700;line-height:1.35}
.automation-point p{margin:11px 0 0;color:#222;font-size:14px;line-height:1.7}
.automation-flow{width:82%;margin:48px auto 0;text-align:center}
.automation-flow h2{margin-bottom:18px;font-size:19.3px}
.automation-flow__body{width:100%;margin-inline:auto}
.automation-flow__box{display:flex;min-width:0;min-height:54px;padding:3px 15px;align-items:center;justify-content:center;flex-direction:column;color:#174f7c;background:#eaf4fc;border:1px solid #c5ddf0;border-radius:8px;text-align:center}
.automation-flow__box strong{font-size:14px;font-weight:700;line-height:1.35}
.automation-flow__box span{margin-top:2px;font-size:12px;line-height:1.2}
.automation-flow__box--source,.automation-flow__box--result{width:100%}
.automation-flow__box--automatic{color:#fff;background:#0075c9;border-color:#0075c9}
.automation-flow__source-route,.automation-flow__merge{--automatic-center:calc(31.132% - 10.896px);--human-center:calc(81.132% + 6.604px);position:relative;width:100%;color:#69adea}
.automation-flow__source-route{height:38px}
.automation-flow__source-trunk{position:absolute;top:0;left:50%;width:2px;height:50%;background:currentColor;transform:translateX(-50%)}
.automation-flow__source-branch{position:absolute;top:calc(50% - 1px);right:calc(100% - var(--human-center));left:var(--automatic-center);height:2px;background:currentColor}
.automation-flow__source-drop{position:absolute;top:50%;width:2px;height:calc(50% - 7px);background:currentColor;transform:translateX(-50%)}
.automation-flow__source-drop::after{content:"";position:absolute;top:100%;left:50%;width:0;height:0;border-top:7px solid currentColor;border-right:5px solid transparent;border-left:5px solid transparent;transform:translateX(-50%)}
.automation-flow__source-drop--automatic{left:var(--automatic-center)}
.automation-flow__source-drop--human{left:var(--human-center)}
.automation-flow__middle{--middle-gap:35px;position:relative;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:var(--middle-gap);align-items:stretch}
.automation-flow__middle::before{content:"";position:absolute;z-index:2;top:50%;left:calc(62.264% - 21.792px);width:var(--middle-gap);height:2px;background:#69adea;transform:translateY(-50%)}
.automation-flow__middle::after{content:"";position:absolute;z-index:3;top:50%;left:calc(62.264% + 6.208px);width:0;height:0;border-left:7px solid #69adea;border-top:5px solid transparent;border-bottom:5px solid transparent;transform:translateY(-50%)}
.automation-flow__merge{height:36px}
.automation-flow__merge-rise{position:absolute;top:0;width:2px;height:50%;background:currentColor;transform:translateX(-50%)}
.automation-flow__merge-rise--automatic{left:var(--automatic-center)}
.automation-flow__merge-rise--human{left:var(--human-center)}
.automation-flow__merge-branch{position:absolute;top:calc(50% - 1px);right:calc(100% - var(--human-center));left:var(--automatic-center);height:2px;background:currentColor}
.automation-flow__merge-trunk{position:absolute;top:50%;left:50%;width:2px;height:calc(50% - 7px);background:currentColor;transform:translateX(-50%)}
.automation-flow__merge-trunk::after{content:"";position:absolute;top:100%;left:50%;width:0;height:0;border-top:7px solid currentColor;border-right:5px solid transparent;border-left:5px solid transparent;transform:translateX(-50%)}
.automation-flow__box--result{position:relative}
@media(max-width:767px){
  .automation-hero{min-height:0}
  .automation-hero__image{position:relative;inset:auto;height:220px}
  .automation-hero__image::after{display:none}
  .automation-hero__image img{height:220px;object-position:68% center}
  .automation-hero__content{min-height:0;padding:var(--hero-content-padding-top) 0 29px}
  .automation-hero__eyebrow{margin-bottom:var(--hero-eyebrow-margin-bottom);font-size:10px}
  .automation-hero h1{margin-top:3px;font-size:20.3px}
  .automation-hero__lead{margin-top:var(--hero-lead-margin-top);font-size:14px}
  .automation-content{padding:28px 0 60px}
  .automation-layout{grid-template-columns:minmax(0,1fr);gap:48px}
  .automation-copy,.automation-point p{min-width:0}
  .automation-copy h2,.automation-point p{overflow-wrap:anywhere}
  .automation-copy h2{font-size:19px}
  .automation-point{margin-bottom:31px}
  .automation-point h3{font-size:15px}
  .automation-point p{font-size:14px;line-height:1.7}
  .automation-flow{width:100%}
  .automation-flow h2{font-size:16.3px}
  .automation-flow__box{min-height:41px;padding:3px 7px}
  .automation-flow__box strong{font-size:12px}
  .automation-flow__box span{font-size:10.5px}
  .automation-flow__source-route,.automation-flow__merge{--automatic-center:calc(31.132% - 6.226px);--human-center:calc(81.132% + 3.774px)}
  .automation-flow__source-route{height:30px}
  .automation-flow__middle{--middle-gap:20px}
  .automation-flow__middle::before{left:calc(62.264% - 12.453px)}
  .automation-flow__middle::after{left:calc(62.264% + .547px)}
  .automation-flow__merge{height:30px}
}
@media(max-width:380px){
  .automation-flow__middle{grid-template-columns:1fr;gap:15.5px}
  .automation-flow__source-branch,.automation-flow__source-drop--human,.automation-flow__middle::before,.automation-flow__middle::after,.automation-flow__merge-rise,.automation-flow__merge-branch{display:none}
  .automation-flow__source-trunk{height:calc(100% - 7px)}
  .automation-flow__source-trunk::after{content:"";position:absolute;top:100%;left:50%;width:0;height:0;border-top:7px solid #69adea;border-right:5px solid transparent;border-left:5px solid transparent;transform:translateX(-50%)}
  .automation-flow__source-drop--automatic{display:none}
  .automation-flow__box--automatic,.automation-flow__box--human{position:relative}
  .automation-flow__box--automatic::before,.automation-flow__box--human::after{content:"";position:absolute;top:100%;left:50%;width:2px;height:10px;background:#69adea;transform:translateX(-50%)}
  .automation-flow__box--human::after{top:auto;bottom:100%}
  .automation-flow__merge-trunk{top:0;height:calc(100% - 7px)}
}
