*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }

:root {
  --red:     #E60012;
  --blue:    #0099DF;
  --yellow:  #FFE600;
  --navy:    #1E293B;
  --body:    #1F2937;
  --sub:     #4B5563;
  --border:  #D9D9D9;
  --bg:      #EDEDED;
  --white:   #FFFFFF;

  /* Service colors */
  --c1: #FA0000;   /* Webアプリ = 赤 */
  --c2: #0099DF;   /* 自治体    = 青 */
  --c3: #FFE600;   /* 業務システム = 黄 */
  --c4: #111827;   /* 保守サービス = 黒 */
}

html { scroll-behavior:smooth; }
body { font-family:'Noto Sans JP',sans-serif; color:var(--body); line-height:var(--lh-body); overflow-x:hidden; background:#fff; }

/* ── Hero ────────────────────────────── */
.hero {
  margin-top:var(--header-height);
  min-height:clamp(940px, calc(100vh + 280px), 1240px);
  background:#fff;
  position:relative; overflow:hidden;
  display:flex; align-items:center;
}
/* 斜めのコード写真ブロック（決定稿準拠） */
.hero-slash {
  position:absolute; right:0; top:0; bottom:0; width:52%;
  background:var(--navy) url('../img/hero-poster-default.avif') center/cover no-repeat;
  clip-path:polygon(14% 0,100% 0,100% 100%,0% 100%);
  z-index:1;
}
.hero .services-hero-video {
  inset:0 0 0 auto;
  width:52%;
  clip-path:polygon(14% 0,100% 0,100% 100%,0% 100%);
  z-index:2;
}
.hero .services-hero-video::after { background:transparent; }
.hero-inner {
  max-width:1200px; margin:0 auto; width:100%;
  padding:150px 40px 170px;
  position:relative; z-index:5;
  display:grid; grid-template-columns:1fr 1fr; gap:0; align-items:center;
}
.breadcrumb { display:flex; gap:8px; margin-bottom:36px; }
.breadcrumb a { font-size:var(--font-caption); color:var(--sub); text-decoration:none; }
.breadcrumb span { font-size:var(--font-caption); color:var(--sub); }
.breadcrumb .cur { color:var(--red); }
.hero-en {
  font-family:'Outfit',sans-serif; font-size:.72rem; font-weight:var(--weight-bold);
  letter-spacing:.25em; color:var(--red); margin-bottom:16px;
  display:flex; align-items:center; gap:12px;
}
.hero-h1 {
  font-family:'Zen Kaku Gothic New',sans-serif;
  font-size:clamp(2.6rem,5vw,4.6rem);
  font-weight:var(--weight-black); color:var(--navy);
  line-height:1.1; letter-spacing:var(--tracking-none); margin-bottom:24px;
}
.hero-h1 .accent { color:var(--red); background:none; padding:0; }
.hero-desc { font-size:var(--font-lead); color:var(--sub); line-height:1.95; max-width:480px; }

/* 右側：決定稿ではコード写真のみ。索引リストは非表示 */
.hero-index { display:none; }
.hero-index-legacy { padding-left:60px; }
.hero-index-list { list-style:none; }
.hero-index-item {
  display:flex; align-items:center; gap:20px;
  padding:20px 0; border-bottom:1px solid rgba(255,255,255,.08);
  cursor:pointer; transition:transform .2s;
  text-decoration:none;
}
.hero-index-item:last-child { border-bottom:none; }
.hero-index-item:hover { transform:translateX(6px); }
.idx-num {
  font-family:'Outfit',sans-serif; font-size:.72rem; font-weight:var(--weight-bold);
  color:rgba(255,255,255,.35); letter-spacing:.1em; width:28px; flex-shrink:0;
}
.idx-bar { width:3px; height:36px; border-radius:2px; flex-shrink:0; }
.idx-text {}
.idx-en { font-family:'Outfit',sans-serif; font-size:.65rem; font-weight:var(--weight-bold); letter-spacing:var(--tracking-label); opacity:.5; margin-bottom:3px; color:#fff; }
.idx-ja { font-family:'Zen Kaku Gothic New',sans-serif; font-size:var(--font-card-title-sm); font-weight:var(--weight-bold); color:#fff; }

/* ── Layout commons ──────────────────── */
.wrap { max-width:1200px; margin:0 auto; padding:0 40px; }
.sec-en {
  font-family:'Outfit',sans-serif; font-size:var(--font-label); font-weight:var(--weight-bold);
  letter-spacing:.22em; text-transform:uppercase;
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
}
.sec-en::before { content:''; display:block; width:28px; height:2px; }
.sec-ttl {
  font-family:'Zen Kaku Gothic New',sans-serif;
  font-size:var(--font-section-title);
  font-weight:var(--weight-black); color:var(--navy); line-height:var(--lh-heading); letter-spacing:var(--tracking-none);
}
.sec-lead { font-size:.97rem; color:var(--sub); line-height:var(--lh-lead); max-width:620px; margin-top:16px; }

/* ── Section nav ─────────────────────── */
.sec-nav {
  background:#fff; border-bottom:2px solid var(--border);
  position:sticky; top:var(--header-height); z-index:100;
}
.sec-nav-inner {
  max-width:1200px; margin:0 auto; padding:0 40px;
  display:flex; overflow-x:auto;
}
.sec-nav a {
  display:flex; align-items:center; gap:10px;
  padding:16px 28px; font-size:var(--font-ui-sm); font-weight:var(--weight-semibold);
  color:var(--sub); text-decoration:none; white-space:nowrap;
  border-bottom:3px solid transparent; margin-bottom:-2px;
  transition:all .2s;
}
.sec-nav a:hover { color:var(--navy); }
.sec-nav a.on { font-weight:var(--weight-bold); border-bottom-color:currentColor; }
.sec-nav a.c1, .sec-nav a.c2, .sec-nav a.c3, .sec-nav a.c4 { color:var(--navy); }
.nav-dot { width:4px; height:22px; border-radius:2px; flex-shrink:0; }

/* ── Service section base ────────────── */
.service-section { padding:220px 0 250px; }
.service-section.alt { background:var(--bg); }
#web { padding-top:180px; padding-bottom:320px; }
#gov { padding-top:230px; padding-bottom:260px; }
#biz { padding-top:220px; padding-bottom:250px; }
#maintenance { padding-top:220px; padding-bottom:300px; }

.service-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start;
}
.service-grid.reverse { direction:rtl; }
.service-grid.reverse > * { direction:ltr; }

/* Service header */
.svc-num {
  font-family:'Outfit',sans-serif; font-size:.68rem; font-weight:var(--weight-bold);
  letter-spacing:var(--tracking-label-wide); opacity:.45; margin-bottom:8px;
}
.svc-tag {
  display:inline-block; font-size:.72rem; font-weight:var(--weight-bold);
  padding:0 0 0 14px; border-radius:0; border-left:4px solid currentColor;
  background:transparent !important; letter-spacing:.08em; margin-bottom:24px;
}
.svc-ttl {
  font-family:'Zen Kaku Gothic New',sans-serif;
  font-size:clamp(2rem,4vw,3.2rem);
  font-weight:var(--weight-black); color:var(--navy); line-height:1.15; letter-spacing:var(--tracking-none);
  margin-bottom:24px;
}
.svc-lead { font-size:var(--font-lead); color:var(--sub); line-height:var(--lh-long); margin-bottom:36px; }

/* Strength list */
.strength-list { list-style:none; margin-bottom:40px; }
.strength-list li {
  display:flex; align-items:flex-start; gap:14px;
  padding:14px 0; border-bottom:1px solid var(--border);
  font-size:var(--font-ui); color:var(--body); line-height:1.7;
}
.strength-list li:first-child { border-top:1px solid var(--border); }
.str-icon {
  width:28px; height:28px; border-radius:6px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:.75rem; font-weight:var(--weight-bold); color:#fff; margin-top:2px;
}

/* Tech stack pills */
.tech-stack { display:flex; flex-wrap:wrap; gap:8px; }
.tech-pill {
  background:var(--bg); color:var(--sub); border:1px solid var(--border);
  font-size:.75rem; font-weight:var(--weight-medium); padding:5px 12px; border-radius:99px;
  font-family:'Outfit',sans-serif; letter-spacing:.04em;
}

/* Visual block */
.svc-visual {
  position:relative;
}
#biz .str-icon { color:var(--navy) !important; }
.svc-visual-main {
  border-radius:8px; overflow:hidden;
  aspect-ratio:1.52;
  display:flex; align-items:center; justify-content:center;
  font-size:4rem; position:relative;
  box-shadow:0 8px 24px rgba(17,24,39,.08);
}
.svc-visual-main::after {
  content:none;
}
.svc-caption {
  position:absolute; bottom:20px; left:20px;
  font-size:var(--font-caption); color:#fff; font-weight:var(--weight-semibold);
  z-index:1; letter-spacing:.04em;
  display:none;
}
.svc-float {
  position:absolute; bottom:-28px; right:-20px;
  background:#fff; border-radius:14px; padding:20px 28px;
  box-shadow:0 12px 40px rgba(0,0,0,.12); min-width:180px;
}
.svc-float .label { font-size:var(--font-label); font-weight:var(--weight-bold); letter-spacing:.12em; text-transform:uppercase; margin-bottom:6px; }
.svc-float .val { font-family:'Outfit',sans-serif; font-size:2rem; font-weight:var(--weight-black); color:var(--navy); line-height:var(--lh-tight); }
.svc-float .unit { font-size:var(--font-body-xs); color:var(--sub); }

/* Use cases */
.usecase-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:48px; }
.usecase-card {
  background:#fff; border:1px solid var(--border); border-radius:6px; padding:24px 24px 26px;
  transition:transform .25s, box-shadow .25s;
}
.usecase-card:hover { transform:translateY(-4px); box-shadow:0 10px 32px rgba(0,0,0,.07); }
.usecase-card h4 { font-size:.9rem; font-weight:var(--weight-bold); color:var(--navy); margin-bottom:6px; }
.usecase-card p { font-size:var(--font-body-xs); color:var(--sub); line-height:1.7; }
.usecase-num { font-family:'Outfit',sans-serif; font-size:.68rem; font-weight:var(--weight-bold); letter-spacing:.1em; margin-bottom:10px; }

/* Process flow */
.process-flow {
  display:grid; grid-template-columns:repeat(5,1fr); gap:0;
  margin-top:48px; position:relative;
  background:#fff; border:1px solid var(--border); border-radius:6px; overflow:hidden;
}
.process-step {
  padding:28px 20px; text-align:center;
  border-right:1px solid var(--border); position:relative;
}
.process-step:last-child { border-right:none; }
.process-step::after {
  content:'→'; position:absolute; right:-14px; top:50%; transform:translateY(-50%);
  font-size:1.2rem; color:var(--border); z-index:1;
}
.process-step:last-child::after { display:none; }
.p-num { font-family:'Outfit',sans-serif; font-size:.65rem; font-weight:var(--weight-bold); letter-spacing:var(--tracking-label); margin-bottom:10px; }
.p-step-ttl { font-size:var(--font-body-sm); font-weight:var(--weight-bold); color:var(--navy); margin-bottom:6px; }
.p-step-desc { font-size:.75rem; color:var(--sub); line-height:1.6; }

/* Service visual photos */
.bg1 { background:url('../img/service-web-app.avif') center/cover no-repeat !important; }
.bg2 { background:url('../img/service-government.avif') center/cover no-repeat !important; }
.bg3 { background:url('../img/service-business-system.avif') center/cover no-repeat !important; }
.bg4 { background:url('../img/service-maintenance.avif') center/cover no-repeat !important; }
.svc-visual-main.bg1, .svc-visual-main.bg2, .svc-visual-main.bg3, .svc-visual-main.bg4 { background-size:cover; background-position:center; }

/* ── CTA banner ──────────────────────── */
.cta-banner {
  background:var(--blue); padding:126px 0; position:relative; overflow:hidden;
}
.cta-banner::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 70% 100% at 100% 50%, rgba(255,255,255,.12) 0%,transparent 60%),
             radial-gradient(ellipse 50% 90% at 0% 50%, rgba(0,0,0,.08) 0%,transparent 55%);
}
.cta-inner { position:relative; z-index:1; text-align:center; }
.cta-inner h2 { font-family:'Zen Kaku Gothic New',sans-serif; font-size:clamp(1.8rem,4vw,3rem); font-weight:var(--weight-black); color:#fff; margin-bottom:16px; }
.cta-inner p { font-size:var(--font-lead); color:rgba(255,255,255,.65); margin-bottom:48px; }
.cta-btns { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.btn-red { display:inline-flex; align-items:center; gap:10px; background:var(--red); color:#fff; font-weight:var(--weight-bold); font-size:.95rem; padding:18px 44px; border-radius:4px; text-decoration:none; transition:all .25s; box-shadow:0 4px 20px rgba(230,0,18,.3); }
.btn-red:hover { background:#c0000f; transform:translateY(-2px); }
.btn-gold { display:inline-flex; align-items:center; gap:10px; background:var(--yellow); color:var(--navy); font-weight:800; font-size:.95rem; padding:18px 44px; border-radius:4px; text-decoration:none; transition:all .25s; box-shadow:0 4px 20px rgba(0,0,0,.18); }
.btn-gold:hover { background:#FFDB00; transform:translateY(-2px); }
.btn-border { display:inline-flex; align-items:center; gap:10px; border:2px solid rgba(255,255,255,.35); color:#fff; font-weight:var(--weight-semibold); font-size:.9rem; padding:16px 36px; border-radius:4px; text-decoration:none; transition:all .25s; }
.btn-border:hover { border-color:#fff; background:rgba(255,255,255,.08); }

/* ── Footer ──────────────────────────── */
footer:not(.ast-footer) { background:var(--navy); padding:64px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr; gap:48px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.07); }
.footer-logo { font-family:'Outfit',sans-serif; font-size:1.4rem; font-weight:var(--weight-black); color:#fff; display:block; margin-bottom:14px; text-decoration:none; letter-spacing:.05em; }
.footer-brand p { font-size:var(--font-ui-sm); color:rgba(255,255,255,.38); line-height:1.8; max-width:240px; }
.footer-nav h4 { font-size:var(--font-label); font-weight:var(--weight-bold); letter-spacing:var(--tracking-label); color:rgba(255,255,255,.4); text-transform:uppercase; margin-bottom:14px; font-family:'Outfit',sans-serif; }
.footer-nav ul { list-style:none; }
.footer-nav li { margin-bottom:9px; }
.footer-nav a { font-size:var(--font-ui-sm); color:rgba(255,255,255,.46); text-decoration:none; transition:color .2s; }
.footer-nav a:hover { color:#fff; }
.footer-btm { padding:20px 0; display:flex; justify-content:space-between; align-items:center; }
.footer-btm p { font-size:.74rem; color:rgba(255,255,255,.24); }
.footer-btm-links { display:flex; gap:24px; }
.footer-btm-links a { font-size:.74rem; color:rgba(255,255,255,.28); text-decoration:none; }

/* ---- モバイル対応（追加） ---- */
@media (max-width: 768px) {
  .hero { margin-top: 0; min-height: 100svh; }
  .hero-inner { grid-template-columns: 1fr; padding: 90px 20px 70px; }
  .hero-slash {
    display: block;
    width: 100%;
    clip-path: none;
    opacity: .12;
  }
  .hero .services-hero-video {
    inset: 0;
    width: 100%;
    clip-path: none;
    opacity: .18;
  }
  .hero .services-hero-video::after { background: transparent; }
  .hero-index { display: none; }
  .hero-h1 { font-size: clamp(2.2rem, 9.4vw, 2.6rem); }
  .service-section, #web, #gov, #biz, #maintenance { padding: 96px 0 112px; }
  .service-grid, .usecase-grid, .process-flow, .cta-banner { grid-template-columns: 1fr !important; gap: 24px; }
  .service-grid.reverse { direction: ltr; }
  .service-grid.reverse .svc-visual { order: 2; }
  .service-grid.reverse > div:not(.svc-visual) { order: 1; }
  .usecase-grid, .process-flow { margin-top: 32px; }
  .svc-visual-main { aspect-ratio: 1.45; }
  .svc-float { position:static; margin:16px auto 0; right:auto; bottom:auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .cta-banner { padding: 86px 0; }
}

/* ===== ボタン幅トンマナ統一（主要ボタン300px固定／TOP中途・新卒エントリーは360維持） ===== */
.cta-btns { flex-wrap: wrap; }
.cta-btns a { width: 300px; box-sizing: border-box; justify-content: center; text-align: center; }

/* ===== 決定稿追補 0.5.7：本文密度・余白をAST_services_02へ寄せる ===== */
.page-template-page-services .hero-h1 { font-size: clamp(2.8rem, 4.75vw, 4.35rem); }
.page-template-page-services .hero-desc { color: #1F2937; font-weight: var(--weight-semibold); }
.page-template-page-services .service-grid { gap: 88px; }
.page-template-page-services .service-section { padding-top: 245px; padding-bottom: 285px; }
.page-template-page-services #web { padding-top: 190px; padding-bottom: 355px; }
.page-template-page-services #gov { padding-top: 260px; padding-bottom: 300px; }
.page-template-page-services #biz { padding-top: 255px; padding-bottom: 292px; }
.page-template-page-services #maintenance { padding-top: 250px; padding-bottom: 335px; }
.page-template-page-services .svc-ttl { font-size: clamp(2.15rem, 3.75vw, 3.1rem); margin-bottom: 30px; }
.page-template-page-services .svc-lead { font-size: 1.08rem; line-height: 2.05; margin-bottom: 46px; color: #111827; font-weight: var(--weight-semibold); }
.page-template-page-services .strength-list { margin-bottom: 52px; }
.page-template-page-services .strength-list li { padding: 19px 0; font-size: var(--font-body); line-height: 1.85; }
.page-template-page-services .tech-stack { gap: 10px; }
.page-template-page-services .tech-pill { font-size: var(--font-ui-sm); padding: 6px 14px; }
.page-template-page-services .usecase-grid { gap: 20px; margin-top: 62px; }
.page-template-page-services .usecase-card { min-height: 168px; padding: 31px 30px 33px; }
.page-template-page-services .usecase-card h4 { font-size: var(--font-body); margin-bottom: 10px; }
.page-template-page-services .usecase-card p { font-size: var(--font-body-sm); line-height: 1.78; color: #1F2937; }
.page-template-page-services .process-flow { margin-top: 64px; }
.page-template-page-services .process-step { min-height: 154px; padding: 34px 22px; }
.page-template-page-services .cta-banner { padding: 142px 0; }

/* 0.5.7微調整：過伸長した縦寸法を決定稿換算9129px付近へ戻す */
.page-template-page-services .service-section { padding-top: 210px; padding-bottom: 220px; }
.page-template-page-services #web { padding-top: 165px; padding-bottom: 250px; }
.page-template-page-services #gov { padding-top: 220px; padding-bottom: 230px; }
.page-template-page-services #biz { padding-top: 210px; padding-bottom: 225px; }
.page-template-page-services #maintenance { padding-top: 210px; padding-bottom: 240px; }
.page-template-page-services .svc-lead { margin-bottom: 38px; }
.page-template-page-services .strength-list { margin-bottom: 42px; }
.page-template-page-services .strength-list li { padding: 15px 0; line-height: 1.78; }
.page-template-page-services .usecase-grid { margin-top: 52px; }
.page-template-page-services .usecase-card { min-height: 150px; padding: 26px 28px 28px; }
.page-template-page-services .process-flow { margin-top: 54px; }
.page-template-page-services .process-step { min-height: 140px; padding: 30px 20px; }
.page-template-page-services .cta-banner { padding: 136px 0; }
.page-template-page-services .cta-banner .btn-border { border-color: #FFE600; color: #FFE600; }

/* 青CTA帯の深さを決定稿寄りにし、直前セクション余白で相殺 */
.page-template-page-services #maintenance { padding-bottom: 132px; }
.page-template-page-services .cta-banner { padding: 190px 0; }

/* ===== 決定稿追補 0.5.12：共通フッター拡張後のServices縦位置再補正 ===== */
@media (min-width: 769px) {
  .page-template-page-services #web { padding-top: 150px; padding-bottom: 220px; }
  .page-template-page-services #gov { padding-top: 200px; padding-bottom: 205px; }
  .page-template-page-services #biz { padding-top: 190px; padding-bottom: 200px; }
  .page-template-page-services #maintenance { padding-top: 185px; padding-bottom: 77px; }
  .page-template-page-services .cta-banner { padding: 216px 0; }
}

/* ===== 決定稿追補 0.5.13：Services横組み・斜線・ボタン幅を決定稿へ再補正 ===== */
@media (min-width: 769px) {
  .page-template-page-services .hero-slash,
  .page-template-page-services .hero .services-hero-video {
    width: 50%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-template-page-services .hero-inner {
    max-width: none;
    padding: 90px 68px 205px;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  }

  .page-template-page-services .hero-h1 {
    font-size: clamp(2.55rem, 4.28vw, 3.78rem);
    line-height: 1.12;
  }

  .page-template-page-services .hero-desc {
    max-width: 560px;
  }

  .page-template-page-services .sec-nav-inner {
    width: 700px;
    max-width: calc(100% - 80px);
    padding: 0;
    justify-content: space-between;
  }

  .page-template-page-services .sec-nav a {
    padding-left: 0;
    padding-right: 0;
  }

  .page-template-page-services .wrap {
    max-width: 1276px;
  }

  .page-template-page-services .service-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: 90px;
  }

  .page-template-page-services .svc-visual-main {
    aspect-ratio: 1.42;
  }

  .page-template-page-services .cta-btns a {
    width: 384px;
    min-height: 67px;
  }

  .page-template-page-services #maintenance {
    padding-bottom: 155px;
  }
}

/* ===== 0.5.27：HEROを斜め分割なしの全面動画背景へ変更 ===== */
@media (min-width: 769px) {
  .page-template-page-services .hero {
    background:#dfe3e8;
  }
  .page-template-page-services .hero::before {
    content:'';
    position:absolute;
    inset:0;
    background:none;
    z-index:1;
    pointer-events:none;
  }
  .page-template-page-services .hero-slash {
    display:none;
  }
  .page-template-page-services .hero .services-hero-video {
    inset:0;
    width:100%;
    height:100%;
    clip-path:none;
    z-index:0;
  }
  .page-template-page-services .hero .services-hero-video::after {
    content:'';
    background:transparent;
  }
  .page-template-page-services .hero-inner {
    position:relative;
    z-index:2;
  }
}

/* ===== 0.5.44：HEROをヘッダー＋インページメニュー込みで100vhに補正 ===== */
@media (min-width: 769px) {
  .page-template-page-services {
    --services-sec-nav-height: 58px;
  }

  .page-template-page-services .hero {
    height: calc(100vh - var(--header-height) - var(--services-sec-nav-height));
    height: calc(100svh - var(--header-height) - var(--services-sec-nav-height));
    min-height: calc(100vh - var(--header-height) - var(--services-sec-nav-height));
  }

  .page-template-page-services .hero-inner {
    height: 100%;
    padding: 90px 68px;
    align-items: center;
  }

  .page-template-page-services .sec-nav {
    height: var(--services-sec-nav-height);
  }

  .page-template-page-services .sec-nav-inner {
    height: 100%;
    align-items: stretch;
  }

  .page-template-page-services .sec-nav a {
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* ===== 0.5.58：HERO文言位置をAbout基準へ統一 ===== */
@media (min-width: 769px) {
  .page-template-page-services .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    grid-template-columns: none;
    gap: 0;
    padding: 90px 68px;
  }

  .page-template-page-services .hero-inner > div:first-child {
    max-width: 620px;
  }

  .page-template-page-services .breadcrumb { margin-bottom: 32px; }
  .page-template-page-services .hero-en { margin-bottom: 16px; }
  .page-template-page-services .hero-desc { max-width: 620px; }
}

@media (max-width: 768px) {
  .page-template-page-services .hero {
    margin-top: 0;
    height: auto;
    min-height: 0;
    padding: calc(var(--header-height) + 90px) 20px 50px;
    display: block;
  }

  .page-template-page-services .hero-inner {
    display: block;
    width: 100%;
    padding: 0;
  }

  .page-template-page-services .breadcrumb { margin-bottom: 18px; }
  .page-template-page-services .hero-en { margin-bottom: 16px; }
}

/* ===== 0.5.60：モバイル指摘反映 ===== */
@media (max-width: 768px) {
  .page-template-page-services .service-section,
  .page-template-page-services #web,
  .page-template-page-services #gov,
  .page-template-page-services #biz,
  .page-template-page-services #maintenance {
    padding-top: 74px;
    padding-bottom: 82px;
  }

  .page-template-page-services #maintenance {
    padding-bottom: 72px;
  }

  .page-template-page-services .service-grid {
    gap: 34px;
  }

  .page-template-page-services .process-flow {
    gap: 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .page-template-page-services .process-step {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    overflow: visible;
  }

  .page-template-page-services .process-step:last-child {
    border: 1px solid var(--border);
  }

  .page-template-page-services .process-step::after {
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -28px;
    transform: translateX(-50%);
    color: var(--sub);
    font-size: 1.3rem;
  }

  .page-template-page-services .process-step:last-child::after {
    display: none;
  }

  .page-template-page-services .ses-stats {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-top: 30px !important;
    padding: 28px 26px !important;
  }

  .page-template-page-services .ses-stats > div {
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 18px 0;
    border-top: 1px solid var(--border);
  }

  .page-template-page-services .ses-stats > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .page-template-page-services .ses-stats > div:nth-child(2) {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .page-template-page-services .ses-stats > div:last-child {
    padding-bottom: 0;
  }
}

/* ===== 0.5.61：モバイルHEROを下メニュー込み100svhへ統一 ===== */
@media (max-width: 768px) {
  .page-template-page-services {
    --services-sec-nav-height: 58px;
  }

  .page-template-page-services .hero {
    height: calc(100vh - var(--services-sec-nav-height));
    height: calc(100svh - var(--services-sec-nav-height));
    min-height: calc(100vh - var(--services-sec-nav-height));
    min-height: calc(100svh - var(--services-sec-nav-height));
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 42px) 20px 42px;
    background-color: #dfe3e8;
  }

  .page-template-page-services .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    z-index: 1;
    pointer-events: none;
  }

  .page-template-page-services .hero .services-hero-video {
    opacity: 1;
    z-index: 0;
  }

  .page-template-page-services .hero .services-hero-video::after {
    background: transparent;
  }

  .page-template-page-services .hero-slash {
    display: none;
  }

  .page-template-page-services .hero-inner {
    position: relative;
    z-index: 2;
  }

  .page-template-page-services .breadcrumb a,
  .page-template-page-services .breadcrumb span {
    color: var(--sub);
  }

  .page-template-page-services .breadcrumb .cur {
    color: var(--red);
  }

  .page-template-page-services .sec-nav {
    height: var(--services-sec-nav-height);
  }

  .page-template-page-services .sec-nav-inner {
    height: 100%;
    align-items: stretch;
  }

  .page-template-page-services .sec-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* HERO動画の白フェードを解除。共通の黒フェードは維持する。 */
.page-template-page-services .hero::before {
  background: none;
}
.page-template-page-services .hero .services-hero-video::after {
  background: transparent;
}

/* 0.5.154: Mobile HERO typography and bottom alignment. */
@media (max-width: 768px) {
  .page-template-page-services .hero {
    align-items: flex-end !important;
    padding-bottom: 24px !important;
  }

  .page-template-page-services .hero-h1 {
    font-size: 26px !important;
  }
}
