@charset "utf-8";

ol {
  list-style-type: decimal;
}

/* header */
.lp-layout-header-content {
  display: flex;
  align-items: center;
  max-width: 1960px;
  margin: 0 auto;
  padding: 22px 140px;
}
@media screen and (max-width: 1920px) {
  .lp-layout-header-content {
    padding: 22px calc(2rem + (1vw - 0.97rem) * (12.6315789474));
  }
}
@media screen and (max-width: 969px) {
  .lp-layout-header-content {
    justify-content: center;
    padding: 20px 20px 24px;
  }
}
.lp-layout-header-content > *:last-child {
  margin-bottom: 0;
}
.lp-layout-header-logo {
  margin-bottom: 0;
  line-height: 1;
}
.lp-layout-header-logo a {
  display: inline-block;
}
.lp-layout-header-logo img {
  width: 126px;
}
@media screen and (max-width: 969px) {
  .lp-layout-header-logo img {
    width: 104px;
  }
}
.lp-layout-header-utilityGroup {
  flex: 1;
  margin-left: 24px;
}
.lp-layout-header-utilityList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-top: -16px;
  margin-right: -16px;
}
.lp-layout-header-utilityList > li {
  margin-top: 16px;
  padding-right: 16px;
}
.lp-layout-header-utilityList > li > *:last-child {
  margin-bottom: 0;
}

.lp-textPhone {
  display: block;
  margin-bottom: 24px;
}
.lp-textPhone > *:last-child {
  margin-bottom: 0;
}
.lp-textPhone-body > *:last-child {
  margin-bottom: 0;
}
.lp-textPhone-number {
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1;
}
.lp-textPhone-numberGroup {
  display: flex;
  align-items: flex-start;
  margin-top: 0 !important;
  margin-bottom: 8px;
}
.lp-textPhone-note {
  display: block;
  margin-top: 0 !important;
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}
.lp-textPhone-icon {
  width: 36px;
  min-width: 36px;
  height: 20px;
  min-height: 20px;
  margin-top: 0.2rem;
  margin-right: 8px;
}
.lp-textPhone-icon .of-iconColor-primary {
  fill: #00a23f;
}
.lp-textPhone-icon .of-iconColor-secondary {
  fill: #fe8800;
}
.lp-textPhone-icon .of-iconColor-tertiary {
  fill: #0086b1;
}
.lp-textPhone-icon .of-iconColor-quaternary {
  fill: #838079;
}
.lp-textPhone-icon .of-iconColor-quinary {
  fill: #1e1c1c;
}
.lp-textPhone.of-center {
  text-align: center;
}
.lp-textPhone.of-center.lp-textPhone-numberGroup {
  justify-content: center;
}
.lp-textPhone-group {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}
@media only screen and (max-width: 1365px) {
  .lp-textPhone-group {
    flex-direction: column;
  }
}
@media only screen and (max-width: 1365px) {
  .lp-textPhone-group > * {
    width: 100%;
  }
}

a.lp-textPhone-body,
a:hover.lp-textPhone-body {
  display: inline-block;
  opacity: 1;
  color: #333;
  text-decoration: none;
  cursor: default;
}

a.lp-textPhone-body.of-textColor-primary,
a:hover.lp-textPhone-body.of-textColor-primary {
  color: #fff;
}

.l-headerGlobalSearch__segment+.l-headerGlobalSearch__segment {
  position: relative;
}
.l-headerGlobalSearch__segment+.l-headerGlobalSearch__segment::before {
  background: #d1d1d1;
  content: "";
  display: block;
  height: 100%;
  left: -13px;
  position: absolute;
  top: 0;
  width: 1px;
}
.l-headerGlobalSearch__segment>:last-child:not(.m-widget-dialog), body>:last-child:not(.m-widget-dialog), .l-footerCopyright__inner>:last-child:not(.m-widget-dialog), .l-footerDataSheet__inner>:last-child:not(.m-widget-dialog), .l-navigationTop__inner>:last-child:not(.m-widget-dialog), .l-footerNavigation__list>:last-child:not(.m-widget-dialog), .l-footerContact__inner>:last-child:not(.m-widget-dialog), .l-headerGlobalDataSheet__inner>:last-child:not(.m-widget-dialog), .l-headerGlobalSearch__inner>:last-child:not(.m-widget-dialog), .l-navigationGlobalLinkExplanation>:last-child:not(.m-widget-dialog), .l-navigationGlobalLink>:last-child:not(.m-widget-dialog), .l-navigationGlobalProduct__inner>:last-child:not(.m-widget-dialog), .l-headerGlobal__inner>:last-child:not(.m-widget-dialog) {
  margin-bottom: 0 !important;
}
.l-headerGlobalSearch__aiChat:any-link {
  text-decoration: none;
}
.l-headerGlobalSearch__segment>:first-child, body>:first-child, .l-footerCopyright__inner>:first-child, .l-footerDataSheet__inner>:first-child, .l-navigationTop__inner>:first-child, .l-footerNavigation__list>:first-child, .l-footerContact__inner>:first-child, .l-headerGlobalDataSheet__inner>:first-child, .l-headerGlobalSearch__inner>:first-child, .l-navigationGlobalLinkExplanation>:first-child, .l-navigationGlobalLink>:first-child, .l-navigationGlobalProduct__inner>:first-child, .l-headerGlobal__inner>:first-child {
  margin-top: 0 !important;
}
.l-headerGlobalSearch__aiChat {
  align-items: center;
  align-self: center;
  background-image: linear-gradient(102deg, #ff4c76 0%, #7266f8 51%, #2bdfe8 100%);
  border-radius: var(--BORDER_RADIUS_SMALL);
  color: var(--KEYENCE_COLOR_BASE_BLACK);
  display: inline-flex;
  flex-direction: row-reverse;
  font-size: 1.4rem;
  font-weight: 500;
  gap: 8px;
  height: 100%;
  justify-content: center;
  line-height: 1;
  padding: 11px 16px 11px 16px;
  position: relative;
}
.l-headerGlobalSearch__aiChat::before {
  background-color: var(--KEYENCE_COLOR_BASE_WHITE);
  border-radius: 2px;
  content: "";
  display: block;
  height: calc(100% - 4px);
  left: 2px;
  position: absolute;
  top: 2px;
  transition: opacity var(--TRANSITION);
  width: calc(100% - 4px);
}
.l-headerGlobalSearch__aiChatText {
  flex: 1;
  position: relative;
}
.l-headerGlobalSearch__aiChat::after {
  background-image: url(/img/common/icon_ai-chat.svg);
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  height: 20px;
  margin-left: auto;
  position: relative;
  width: 20px;
}

.prd-seriesHeader-navigationListWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--CONTENTS-WIDHT);
  margin-inline: auto;
}
.prd-seriesHeader.of-secondary .prd-seriesHeader-commonInner {
  padding: 1.6rem 0;

  @media screen and (max-width: 969px) {
    padding: 0;
  }
}
.prd-layout-container {
  max-width: 1120px;
  width: 100%;
  padding: 0;

  .prd-seriesHeader-commonInner {
    padding: 0;

    .prd-seriesHeader-navigationListWrapper {
      justify-content: space-between;
    }
  }
}

.prd-seriesHeader.of-primary .prd-seriesHeader-navigationLink, .prd-seriesHeader.of-secondary .prd-seriesHeader-navigationLink {
  font-weight: 700;
  opacity: 1;
  position: relative;
  padding-bottom: .4rem;

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: .1rem;
    background-color: var(--KEYENCE_COLOR_RED);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.3s ease-out;
  }

  &[href]:hover {
    color: var(--KEYENCE_COLOR_RED);
    text-decoration: none;

    &::after {
      transform: scaleX(1);
    }
  }

  .prd-seriesHeader-navigationLinkLabel {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* footer */
.lp-layout-footer {
  background: var(--KEYENCE_COLOR_FOREGROUND_BLACK);
  color: var(--KEYENCE_COLOR_BASE_WHITE);
  font-size: 1.3rem;
  line-height: 1.53;
}
.lp-layout-footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1960px;
  margin: 0 auto;
  padding: 12px 20px;
}
@media screen and (max-width: 969px) {
  .lp-layout-footer-content {
    flex-direction: column;
    padding: 16px 20px;
  }
}
.lp-layout-footer-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: -8px;
  text-align: center;
}
.lp-layout-footer-list > li {
  position: relative;
  margin-top: 8px;
  margin-left: 36px;
  line-height: 1.2;
}
.lp-layout-footer-list > li::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: -18px;
  width: 1px;
  height: 19px;
  transform: translateY(-50%);
  background: var(--KEYENCE_COLOR_BASE_WHITE);
}
.lp-layout-footer-list > li a {
  color: var(--KEYENCE_COLOR_BASE_WHITE);
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
}
.lp-layout-footer-list > li:first-child::before {
  content: none;
}
@media screen and (max-width: 969px) {
  .lp-layout-footer-list > li.lp-layout-footer-copyright {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}
@media screen and (max-width: 969px) {
  .lp-layout-footer-list > li.lp-layout-footer-copyright::before {
    content: none;
  }
}

/* =====================================================================
   SR-X300 プロの設定ガイド（案）
   テイスト：HR-X500 スタートアップガイドに統一（KEYENCE Design System 準拠）
   Brand red #E4002B / Base 70% white / Point 5% red / font: myriad-pro, helvetica, Arial, meiryo
   ===================================================================== */
:root{
  --keyence-red:#E4002B; --keyence-red-dark:#BE0024;
  --fg1:#1A1A1A; --fg2:#4A4D4F; --fg3:#767A7C;
  --bg1:#FFFFFF; --bg2:#F5F6F7; --bg3:#ECEEEF; --bg-ink:#1A1A1A;
  --border-1:#D9DCDD; --border-2:#C2C6C8;
  --ok:#41A62A; --focus-ring:#0A6CFF;
  --font-sans:"myriad-pro","Helvetica Neue",Helvetica,Arial,"Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN",Meiryo,"メイリオ",sans-serif;
  --font-mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  --shadow-1:0 1px 2px rgba(26,26,26,.06),0 1px 3px rgba(26,26,26,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--fg1);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:var(--keyence-red);font-weight:600;text-decoration:none}
a:hover{color:var(--keyence-red-dark);text-decoration:underline}
*:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.two>*,.cards2>*,.ch-head>*,.ch-title>*,.hero>*,.calc>*,.closing>*,.ai .wrap>*,.gloss>*,.sup>*,.points>*,.clues>*,.br>*{min-width:0}
html,body{overflow-x:hidden}
section[id]{scroll-margin-top:124px}

/* ---- header ---- */
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid var(--border-1)}
.topbar .row1{height:64px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:16px}
.brand img{height:20px;width:auto;margin:22px 0}
.brand span{font-size:13px;font-weight:600;color:var(--fg2);padding-left:16px;border-left:1px solid var(--border-1)}
.tel{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--fg2)}
.tel b{color:var(--fg1)}
.subnav{border-top:1px solid var(--border-1);background:var(--bg2);position:relative}
.subnav .wrap{display:flex;gap:4px;height:46px;align-items:stretch;font-size:13px;font-weight:600;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.subnav .wrap::-webkit-scrollbar{display:none}
.subnav a{color:var(--fg1);display:flex;align-items:center;gap:6px;padding:0 10px;border-bottom:2px solid transparent;transition:color .12s,border-color .12s}
.subnav a b{font-size:11px;color:var(--fg3);font-weight:600;letter-spacing:.04em}
.subnav a:hover{color:var(--keyence-red);text-decoration:none}
.subnav a.on{color:var(--keyence-red);border-bottom-color:var(--keyence-red)}
.subnav a.on b{color:var(--keyence-red)}
.subnav .sep{align-self:center;width:1px;height:16px;background:var(--border-2);margin:0 8px}
.progress{position:absolute;left:0;bottom:-1px;height:2px;background:var(--keyence-red);width:0;transition:width .1s linear}

/* ---- common type ---- */
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--keyence-red)}
h1{margin:16px 0 0;font-size:44px;line-height:1.18;font-weight:600;letter-spacing:-.01em}
h2{margin:12px 0 0;font-size:30px;line-height:1.3;font-weight:600}
h3{margin:0;font-size:21px;line-height:1.4;font-weight:600}
h4{margin:0;font-size:17px;line-height:1.45;font-weight:600}
.lead{margin:16px 0 0;font-size:16px;color:var(--fg2);max-width:62em}
.redrule{width:64px;height:3px;background:var(--keyence-red);margin:28px 0}
.band{padding:72px 0;border-top:1px solid var(--border-1)}
.cap{margin:10px 0 0;font-size:13px;color:var(--fg2)}
.muted{color:var(--fg2)}
.mono{font-family:var(--font-mono)}

/* ---- hero ---- */
.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;padding:72px 0 64px}
.hero p.intro{margin:0;font-size:17px;line-height:1.8;color:var(--fg2);max-width:34em}
.hero .forwho{margin-top:28px;display:inline-flex;align-items:center;gap:10px;background:var(--bg2);padding:12px 16px;font-size:14px;color:var(--fg1)}
.hero .forwho i{font-style:normal;font-size:11px;font-weight:600;letter-spacing:.1em;color:#fff;background:var(--fg1);padding:3px 8px}
.hero .escape{margin-top:14px;font-size:14px;color:var(--fg2)}
.hero-visual{position:relative;background:#1c2226;aspect-ratio:900/1160;max-height:540px;margin-left:auto;overflow:hidden}
.hero-visual img{width:100%;height:100%;object-fit:cover}
.hero-visual .tag{position:absolute;left:0;bottom:0;right:0;padding:18px 20px;background:linear-gradient(0deg,rgba(0,0,0,.72),rgba(0,0,0,0));color:#fff;font-size:12px;letter-spacing:.08em;font-weight:600}
.hero-visual .tag b{display:block;font-size:20px;letter-spacing:0;margin-top:2px}
.meta{display:flex;flex-wrap:wrap;gap:0;margin-top:32px;border-top:1px solid var(--border-1);border-bottom:1px solid var(--border-1)}
.meta div{padding:14px 28px 14px 0;margin-right:28px;border-right:1px solid var(--border-1)}
.meta div:last-child{border-right:none;margin-right:0}
.meta dt{font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--fg3)}
.meta dd{margin:2px 0 0;font-size:15px;font-weight:600}

/* ---- goal (pass line) ---- */
.goal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:40px;border:1px solid var(--border-1)}
.goal-tile{padding:28px 24px 24px;border-right:1px solid var(--border-1);border-top:3px solid var(--keyence-red);display:flex;flex-direction:column;gap:6px}
.goal-tile:last-child{border-right:none}
.goal-tile .k{font-size:13px;font-weight:600;color:var(--fg2)}
.goal-tile .v{font-size:40px;line-height:1.1;font-weight:600;color:var(--fg1);letter-spacing:-.01em}
.goal-tile .v small{font-size:17px;font-weight:600;margin-left:2px}
.goal-tile .d{font-size:14px;color:var(--fg2);line-height:1.6}
.goal-tile .where{margin-top:auto;padding-top:12px;font-size:12px;font-weight:600;color:var(--keyence-red);letter-spacing:.04em}

/* ---- points ---- */
.points{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px}
.point{border:1px solid var(--border-1);border-top:3px solid var(--keyence-red);padding:28px 24px 26px;display:flex;flex-direction:column;gap:12px}
.point .n{font-size:13px;font-weight:600;color:var(--keyence-red);letter-spacing:.08em}
.point .t{font-size:20px;line-height:1.45;font-weight:600}
.point .b{font-size:15px;line-height:1.7;color:var(--fg2)}

/* ---- flow (timeline) ---- */
.flow{margin-top:44px;display:grid;grid-template-columns:repeat(8,1fr);column-gap:0}
.flow .ph{grid-row:1;font-size:12px;font-weight:600;letter-spacing:.06em;padding:0 12px 10px 0;margin-right:14px;border-bottom:2px solid var(--fg1);color:var(--fg1)}
.flow .ph.run,.flow .ph.help{color:var(--fg2);border-bottom-color:var(--border-2)}
.flow .ph.help{margin-right:0}
.flow .ph small{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:var(--fg3);margin-top:2px}
.flow .st{grid-row:2;position:relative;padding:22px 14px 0 0;color:var(--fg1);display:block}
.flow .st:hover{text-decoration:none}
.flow .st:hover .ft{color:var(--keyence-red)}
.flow .st::before{content:"";position:absolute;left:44px;right:0;top:43px;height:1px;background:var(--border-2)}
.flow .st:last-child::before{display:none}
.flow .dotn{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--keyence-red);color:#fff;font-size:14px;font-weight:600;letter-spacing:.02em}
.flow .st.r .dotn{background:#fff;color:var(--keyence-red);border:2px solid var(--keyence-red)}
.flow .st.h .dotn{background:var(--fg1)}
.flow .ft{display:block;margin-top:14px;font-size:14.5px;font-weight:600;line-height:1.5;transition:color .12s}
.flow .fd{display:block;margin-top:6px;font-size:12.5px;color:var(--fg2);line-height:1.6;font-weight:400}

/* ---- chapter ---- */
.ch-head{display:grid;grid-template-columns:1fr 380px;gap:48px;align-items:end}
.ch-title{display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:start}
.ch-no{font-size:72px;line-height:.86;font-weight:700;color:var(--keyence-red);letter-spacing:-.03em;padding-top:4px;min-width:96px}
.ch-no span{display:block;font-size:11px;line-height:1;letter-spacing:.14em;color:var(--fg2);font-weight:600;margin-bottom:10px}
.ch-title h2{margin-top:8px}
.ch-title h2 .sub2{display:block;font-size:19px;color:var(--fg2);margin-top:6px;font-weight:600}
.band.chapter{padding-top:80px}
.benefit{background:var(--bg2);padding:20px 22px;border-left:3px solid var(--keyence-red)}
.benefit .bh{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--keyence-red)}
.benefit p{margin:8px 0 0;font-size:15px;line-height:1.7}
.only{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-size:13px;color:var(--fg1);font-weight:600}
.only::before{content:"SR-X ならでは";flex:none;white-space:nowrap;font-size:11px;letter-spacing:.06em;color:#fff;background:var(--keyence-red);padding:3px 8px;font-weight:600}
.only{align-items:flex-start;line-height:1.6}
.sub{margin-top:56px}
.sub > h3 .sn{color:var(--keyence-red);margin-right:10px;font-size:15px;letter-spacing:.06em}
.sub > p.lead2{margin:10px 0 0;font-size:15px;color:var(--fg2);max-width:60em;line-height:1.7}
.two{display:grid;grid-template-columns:.95fr 1.05fr;gap:48px;margin-top:28px;align-items:start}
.two.even{grid-template-columns:1fr 1fr}
.steps{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;counter-reset:st}
.steps li{display:flex;gap:18px;padding:16px 0;border-top:1px solid var(--border-1);font-size:16px;line-height:1.65;counter-increment:st}
.steps li:last-child{border-bottom:1px solid var(--border-1)}
.steps li::before{content:counter(st);flex:none;width:28px;height:28px;background:var(--keyence-red);color:#fff;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:1px}
.steps li small{display:block;font-size:14px;color:var(--fg2);margin-top:4px;line-height:1.6}
.ui{display:inline-block;font-size:.92em;font-weight:600;background:var(--bg2);border:1px solid var(--border-1);padding:0 6px;border-radius:2px;white-space:nowrap}
.fig{border:1px solid var(--border-1);box-shadow:var(--shadow-1);background:#fff}
.fig.pad{padding:16px}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:24px}
.gallery figure{margin:0}
.gallery figcaption{font-size:12px;color:var(--fg2);margin-top:8px;line-height:1.5}
.gallery .num{display:inline-block;width:18px;height:18px;background:var(--fg1);color:#fff;font-size:11px;text-align:center;line-height:18px;margin-right:6px}
.pass{margin-top:28px;border:1px solid var(--border-1);display:grid;grid-template-columns:auto 1fr;align-items:stretch}
.pass .ph{background:var(--fg1);color:#fff;font-size:12px;font-weight:600;letter-spacing:.08em;padding:16px 18px;display:flex;align-items:center}
.pass ul{margin:0;padding:14px 20px;list-style:none;display:flex;flex-wrap:wrap;gap:8px 28px;font-size:15px;font-weight:600}
.pass li::before{content:"";display:inline-block;width:14px;height:8px;border-left:2.5px solid var(--ok);border-bottom:2.5px solid var(--ok);transform:rotate(-45deg) translateY(-3px);margin-right:10px}
.tip{margin-top:20px;background:var(--bg2);padding:18px 22px;font-size:15px;line-height:1.7}
.tip b.th{display:inline-block;font-size:12px;letter-spacing:.08em;color:var(--fg1);margin-right:10px}
.cards2{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
.card{border:1px solid var(--border-1);padding:24px}
.card .ct{font-size:12px;font-weight:600;color:var(--fg2);letter-spacing:.06em}
.card h4{margin-top:6px}
.card .accent{margin-top:8px;font-size:16px;color:var(--keyence-red);font-weight:600}
.card .ok,.card .ng{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;margin-bottom:8px}
.card .ok{background:#EAF5E6;color:#2C7A19}
.card .ng{background:#FDE7EB;color:var(--keyence-red-dark)}
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}
.cmp figure{margin:0;border:1px solid var(--border-1);background:#fff;padding:10px 10px 8px}
.cmp figure img{margin:0 auto}
.cmp figcaption{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;margin-top:6px}
.cmp .g{color:#2C7A19}.cmp .b{color:var(--keyence-red-dark)}
.mk{display:inline-flex;width:18px;height:18px;border-radius:50%;align-items:center;justify-content:center;font-size:11px;color:#fff;flex:none}
.mk.g{background:var(--ok);color:#fff}.mk.b{background:var(--keyence-red);color:#fff}
.log{font-size:14px;line-height:1.7;background:var(--bg2);padding:14px 16px;margin-top:12px;white-space:pre;overflow-x:auto}
.log b{color:var(--fg1)}
table.spec{width:100%;border-collapse:collapse;font-size:15px;margin-top:20px}
table.spec th,table.spec td{border:1px solid var(--border-1);padding:12px 14px;text-align:left;vertical-align:top;line-height:1.6}
table.spec thead th{background:var(--bg2);font-size:13px;color:var(--fg2);font-weight:600}
table.spec td.num{text-align:right;font-weight:600;white-space:nowrap}
table.spec th[scope=row]{background:#fff;font-weight:600;white-space:nowrap}

/* ---- calculator ---- */
.calc{margin-top:28px;border:1px solid var(--border-1);display:grid;grid-template-columns:1.2fr .8fr}
.calc .in{padding:24px}
.calc .out{background:var(--bg2);padding:24px;display:flex;flex-direction:column;justify-content:center;gap:8px}
.calc .ch{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--keyence-red)}
.calc label{font-size:14px;font-weight:600}
.calc .row{display:grid;grid-template-columns:80px 150px 1fr;gap:16px;align-items:center;padding:9px 0;border-top:1px solid var(--border-1);font-size:14px}
.calc .row.head{border-top:none;font-size:12px;color:var(--fg2);font-weight:600;padding-bottom:6px}
.calc .row .ms{font-size:12px;color:var(--fg3);margin-left:8px}
.calc input[type=number]{width:84px;font:inherit;font-size:15px;font-weight:600;padding:6px 8px;border:1px solid var(--border-2);border-radius:2px;text-align:right}
.calc input[type=checkbox]{accent-color:var(--keyence-red);width:16px;height:16px;vertical-align:-3px;margin-right:6px}
.calc .trig{display:flex;align-items:center;gap:12px;margin:14px 0 18px;padding-bottom:16px;border-bottom:2px solid var(--fg1)}
.calc .trig input{width:110px}
.calc .big{font-size:64px;font-weight:600;line-height:1;letter-spacing:-.02em}
.calc .big small{font-size:18px;margin-left:6px;letter-spacing:0}
.gauge{position:relative;height:10px;background:#fff;border:1px solid var(--border-1);margin:14px 0 22px}
.gauge .fill{position:absolute;left:0;top:0;bottom:0;background:var(--ok);width:0;transition:width .2s}
.gauge.bad .fill{background:var(--keyence-red)}
.gauge .th{position:absolute;top:-6px;bottom:-6px;width:2px;background:var(--fg1)}
.gauge .th::after{content:"2周（理想）";position:absolute;top:20px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:600;color:var(--fg1);white-space:nowrap}
.calc .verdict{font-size:15px;font-weight:600}
.calc .verdict.good{color:#2C7A19}
.calc .verdict.bad{color:var(--keyence-red-dark)}

/* ---- matrix (predictive) ---- */
table.matrix{width:100%;border-collapse:collapse;margin-top:24px;font-size:15px}
table.matrix th,table.matrix td{border:1px solid var(--border-1);padding:16px 18px;vertical-align:top;text-align:left;line-height:1.65}
table.matrix thead th{background:var(--bg2);font-size:14px}
table.matrix thead th span{display:block;font-size:12px;color:var(--fg2);font-weight:400;margin-top:2px}
table.matrix tbody th{width:22%;background:#fff}
table.matrix tbody th .mt{display:block;font-size:12px;color:var(--keyence-red);letter-spacing:.06em;margin-bottom:4px}
table.matrix ol{margin:0;padding-left:1.2em}
table.matrix ol li{margin:2px 0}
.clues{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:24px;border:1px solid var(--border-1)}
.clue{padding:22px 22px 24px;border-right:1px solid var(--border-1)}
.clue:last-child{border-right:none}
.clue .idx{font-size:13px;font-weight:600;color:var(--fg2)}
.clue h4{margin-top:6px}
.clue .act{margin-top:10px;font-size:15px;color:var(--fg1);line-height:1.6}
.clue .act::before{content:"→ ";color:var(--keyence-red);font-weight:600}

/* ---- tree (troubleshoot) ---- */
.tree{margin-top:36px}
.tree .top{display:grid;grid-template-columns:200px 1fr 200px;gap:32px;align-items:center}
.tree .top .fig{padding:10px}
.tree .top .fig img{max-height:170px;margin:0 auto}
.tree .top .note{font-size:13px;color:var(--fg2);line-height:1.7}
.tree .root{background:var(--fg1);color:#fff;padding:18px 24px;font-weight:600;font-size:17px;text-align:center}
.tree .root small{display:block;font-size:13px;font-weight:400;color:rgba(255,255,255,.72);margin-top:4px}
.tree .q{position:relative;text-align:center;font-size:14px;line-height:20px;color:var(--fg1);font-weight:600;height:78px;padding-top:22px}
.tree .q span{position:relative;z-index:1;background:#fff;padding:0 14px}
.tree .q::before{content:"";position:absolute;left:50%;top:0;height:20px;width:1px;background:var(--border-2)}
.tree .q::after{content:"";position:absolute;left:25%;right:25%;top:52px;height:26px;border:1px solid var(--border-2);border-bottom:none}
.tree .q span{display:inline-block;position:relative}
.tree .q span::after{content:"";position:absolute;left:50%;top:22px;height:8px;width:1px;background:var(--border-2)}
.tree .br{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.tree .lamp{border:1px solid var(--border-1);border-top-width:4px;padding:20px 22px}
.tree .lamp.green{border-top-color:var(--ok)}
.tree .lamp.red{border-top-color:var(--keyence-red)}
.tree .lamp .lh{display:flex;align-items:center;gap:10px;font-weight:600;font-size:17px}
.tree .dot{width:14px;height:14px;border-radius:50%}
.tree .green .dot{background:var(--ok)}
.tree .red .dot{background:var(--keyence-red)}
.tree .lamp .meaning{margin-top:6px;font-size:14px;color:var(--fg2)}
.tree .lamp ul{margin:14px 0 0;padding:0;list-style:none}
.tree .lamp li{padding:12px 0;border-top:1px solid var(--border-1);font-size:15px;line-height:1.65}
.tree .lamp li b{display:block;font-size:14px}
.tree .lamp li .go{font-size:13px;font-weight:600;color:var(--keyence-red)}

/* ---- principle / glossary ---- */
#principle{background:var(--bg2);box-shadow:0 0 0 100vmax var(--bg2);clip-path:inset(0 -100vmax);border-top:none}
#principle .gl{background:#fff;border-color:#E3E6E7}
.terms{margin:12px 0 0;display:grid;grid-template-columns:auto 1fr;gap:8px 14px;font-size:14.5px;line-height:1.6}
.terms dt{font-weight:700;color:var(--fg1)}
.terms dd{margin:0;color:var(--fg2)}
.gloss{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:40px}
.gl{border:1px solid var(--border-1);padding:24px 26px}
.gl .gt{font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--fg2)}
.gl h4{margin-top:4px;font-size:19px}
.gl p{margin:10px 0 0;font-size:15px;line-height:1.75;color:var(--fg2)}
.gl .fig{margin-top:16px}

/* ---- FAQ ---- */
.faq{margin-top:32px;border-top:1px solid var(--border-1)}
.faq .qa{display:grid;grid-template-columns:40px 1fr;gap:6px 16px;padding:22px 0;border-bottom:1px solid var(--border-1)}
.faq .qm,.faq .am{font-weight:600;font-size:18px}
.faq .qm{color:var(--keyence-red)}
.faq .qt{font-weight:600;font-size:17px}
.faq .at{font-size:15px;line-height:1.75;color:var(--fg2)}

/* ---- AI band / support / closing ---- */
.ai{background:var(--bg-ink);color:#fff;margin-top:24px}
.ai .wrap{padding-top:72px;padding-bottom:72px;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.ai h2{margin:0;color:#fff;font-size:28px}
.ai p{margin:20px 0 0;font-size:16px;line-height:1.8;color:rgba(255,255,255,.72)}
.btn{display:inline-block;background:var(--keyence-red);color:#fff;font-size:15px;font-weight:600;padding:14px 28px;border-radius:2px;margin-top:28px}
.btn:hover{background:var(--keyence-red-dark);color:#fff;text-decoration:none}
.ai .ex-h{font-size:12px;font-weight:600;letter-spacing:.12em;color:rgba(255,255,255,.5)}
.ai .ex{border:1px solid rgba(255,255,255,.18);padding:16px 18px;font-size:15px;margin-top:12px}
.sup{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px}
.sup > div{border:1px solid var(--border-1);padding:28px;display:flex;flex-direction:column;gap:12px;min-height:200px}
.sup .st{font-size:19px;font-weight:600}
.sup .sd{font-size:15px;color:var(--fg2)}
.sup .sl{margin-top:auto}
.sup .tn{font-size:22px;font-weight:600;color:var(--keyence-red)}
.closing{padding:72px 0 96px;border-top:1px solid var(--border-1);display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.closing .box{background:var(--bg2);padding:32px}
footer{background:var(--bg2);border-top:1px solid var(--border-1)}
footer .wrap{padding-top:28px;padding-bottom:28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px}
footer img{height:18px;width:auto}
footer .fl{display:flex;flex-wrap:wrap;gap:24px;font-size:12px;color:var(--fg2)}
footer .fl a{font-size:12px;color:var(--fg2)}


/* ---- responsive ---- */
@media (max-width:960px){
  h1{font-size:34px} h2{font-size:25px}
  .hero,.two,.two.even,.ch-head,.ai .wrap,.closing,.calc{grid-template-columns:1fr;gap:28px}
  .hero-visual{max-height:360px;width:100%;aspect-ratio:auto}
  .goal-grid{grid-template-columns:1fr}
  .goal-tile{border-right:none;border-bottom:1px solid var(--border-1)}
  .goal-tile:last-child{border-bottom:none}
  .points,.sup,.clues,.gloss,.cards2{grid-template-columns:1fr}
  .clue{border-right:none;border-bottom:1px solid var(--border-1)}
  .flow{grid-template-columns:1fr;row-gap:0}
  .flow .ph{display:none}
  .flow .st{grid-row:auto;grid-column:auto!important;display:grid;grid-template-columns:44px 1fr;column-gap:16px;padding:0 0 22px}
  .flow .ft br,.flow .fd br{display:none}
  .flow .ft{grid-column:2;grid-row:1;margin-top:0;align-self:center}
  .flow .fd{grid-row:2;margin-top:2px}
  .flow .dotn{grid-row:1/3}
  .flow .st::before{left:21px;right:auto;top:44px;bottom:0;width:1px;height:auto}
  .flow .fd{grid-column:2}
  .ch-title{grid-template-columns:1fr;gap:10px}
  .ch-no{font-size:52px}
  .tree .top{grid-template-columns:1fr}
  .tree .q::after{left:25%;right:25%}
  .calc .row{grid-template-columns:64px 1fr auto}
  .gallery{grid-template-columns:1fr 1fr}
  .tree .br{grid-template-columns:1fr}
  .tel span{display:none}
  .meta div{padding-right:18px;margin-right:18px}
}
@media (max-width:560px){
  .wrap{padding:0 18px}
  .log{font-size:12px;white-space:pre-wrap}
  .band{padding:56px 0}
  .ch-head{gap:20px}
  .benefit{padding:16px 18px}
  .calc .row{grid-template-columns:56px 1fr auto;gap:10px}
  .calc .big{font-size:52px}
  .tree .q::after{left:25%;right:25%}
  .meta{flex-direction:column}
  .meta div{border-right:none;border-bottom:1px solid var(--border-1);margin-right:0;padding:10px 0}
  .meta div:last-child{border-bottom:none}
  .totop{right:12px;bottom:12px}
  h1{font-size:30px}
  .goal-grid{grid-template-columns:1fr}
  .goal-tile{border-right:none;border-bottom:1px solid var(--border-1)}
  .cmp{grid-template-columns:1fr 1fr}
  .brand span{display:none}
  table.matrix,table.matrix thead,table.matrix tbody,table.matrix tr,table.matrix th,table.matrix td{display:block;width:100%}
  table.matrix thead{display:none}
  table.matrix td::before{display:block;font-size:12px;font-weight:600;color:var(--fg2);margin-bottom:6px}
  table.matrix td:nth-child(2)::before{content:"パターンA：本体で判定して、I/Oで知らせる"}
  table.matrix td:nth-child(3)::before{content:"パターンB：データに付けて、PLCで判定する"}
}
.totop{position:fixed;right:20px;bottom:20px;z-index:60;width:40px;height:40px;background:#fff;border:1px solid var(--border-2);display:flex;align-items:center;justify-content:center;color:var(--fg1);box-shadow:var(--shadow-1);opacity:0;pointer-events:none;transition:opacity .2s}
.totop.show{opacity:1;pointer-events:auto}
.totop:hover{text-decoration:none;border-color:var(--keyence-red);color:var(--keyence-red)}
@media print{
  .topbar,.totop{display:none!important}
  .band{break-inside:auto}
  .card,.fig,.gl,.tree .lamp,.goal-tile,.point,table{break-inside:avoid}
  .ai{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* utility */
@media screen and (max-width: 969px) {
  .lp-smallScreen-hide {
    display: none;
  }

  .prd-utility-heading-2 {
    font-size: 2.4rem;
  }

  .prd-utility-heading-4 {
    font-size: 1.6rem;
  }

  .u-small-text-align-center {
    text-align: center;
  }
}

.u-color-white {
  color: var(--KEYENCE_COLOR_BASE_WHITE);
}

.u-background-gray {
  background: var(--KEYENCE_COLOR_BACKGROUND_EX_LIGHTGRAY);
}

.u-background-black {
  background: var(--KEYENCE_COLOR_BASE_BLACK);
}

.u-background-white {
  background: var(--KEYENCE_COLOR_BASE_WHITE);
}

.u-border-radius {
  border-radius: 8px;
}

.u-align-items-center {
  align-items: center;
}

.u-align-self-center {
  align-self: center;
}

.u-heading-3 {
  font-size: 3rem;

  @media screen and (max-width: 969px) {
    font-size: 1.6rem;
  }
}

.u-heading-4 {
  font-size: 2rem;

  @media screen and (max-width: 969px) {
    font-size: 1.6rem;
  }
}

.u-text-align-center {
  text-align: center;
}

.u-font-bold {
  font-weight: 700;
}

/* ---- extracted from inline styles ---- */
.flow-ph-setup {
  grid-column:1/6;
}
.flow-ph-run {
  grid-column:6/8;
}
.flow-ph-help {
  grid-column:8/9;
}
.flow-col-1 {
  grid-column:1;
}
.flow-col-2 {
  grid-column:2;
}
.flow-col-3 {
  grid-column:3;
}
.flow-col-4 {
  grid-column:4;
}
.flow-col-5 {
  grid-column:5;
}
.flow-col-6 {
  grid-column:6;
}
.flow-col-7 {
  grid-column:7;
}
.flow-col-8 {
  grid-column:8;
}
.u-color-fg1 {
  color:var(--fg1);
}
.u-color-fg2 {
  color:var(--fg2);
}
.u-color-keyence-red {
  color:var(--keyence-red);
}
.u-text-muted-card {
  font-size:15px;
  line-height:1.7;
  margin:10px 0 16px;
}
.u-text-muted-card-sm {
  font-size:15px;
  line-height:1.7;
  margin:8px 0 16px;
}
.u-text-muted-sm {
  font-size:14px;
  margin:6px 0 0;
}
.u-text-13-bold {
  font-size:13px;
  font-weight:600;
}
.u-text-13-normal {
  font-weight:400;
  font-size:13px;
}
.u-text-13 {
  font-size:13px;
}
.u-text-13-mt4 {
  font-size:13px;
  margin-top:4px;
}
.u-w-20 {
  width:20%;
}
.u-w-26 {
  width:26%;
}
.u-table-compact {
  margin-top:16px;
  max-width:640px;
}
.u-lead-emphasis {
  margin:0;
  font-size:17px;
  font-weight:600;
  line-height:1.6;
}
.u-lead-body {
  margin:0;
  font-size:16px;
  line-height:1.75;
}
.u-mt-18 {
  margin-top:18px;
}
.u-closing-lead {
  margin:0;
  font-size:16px;
  line-height:1.8;
  color:var(--fg2);
}
.u-text-18-bold {
  font-size:18px;
  font-weight:600;
}
.u-closing-desc {
  margin:12px 0 0;
  font-size:15px;
  line-height:1.7;
  color:var(--fg2);
}
.u-mt-20 {
  margin-top:20px;
}
.u-pad-0 {
  padding:0;
}
.u-grid-media-row {
  display:grid;
  grid-template-columns:150px 1fr;
  align-items:stretch;
}
.u-media-dark {
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}
.u-w-120 {
  width:120px;
}
.u-pad-20-22 {
  padding:20px 22px;
}
.u-pad-steps-inset {
  padding:0 22px 8px;
}
.u-fig-sm {
  margin-top:14px;
  max-width:320px;
}
.u-section-pad {
  padding:72px 0;
}
