/* CloudMatrix コーポレートサイト
   名刺・会社案内と同じ識別：黒の明朝ロゴ＋赤い「M」、格子（Matrix）のモチーフ。
   レイアウト：左寄せの見出しと広い余白、区切りに格子と細い罫線を使う。 */
:root {
  --ink: #16181d;
  --ink-2: #2a2e36;
  --paper: #ffffff;
  --red: #d8261c;
  --red-dark: #b81f16;
  --steel: #5d6470;
  --rule: #d9dce1;
  --mist: #f2f3f5;
  --on-ink: #c3c7ce;
  --serif: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
  --wrap: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.45; text-wrap: balance; letter-spacing: .03em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.skip { position: absolute; left: -9999px; }
br.sp { display: none; }
@media (max-width: 860px) { br.sp { display: inline; } }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 100; }

/* ---------- ロゴ ---------- */
.wordmark { font-family: var(--serif); font-weight: 800; line-height: 1; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; }
.wordmark b { color: var(--red); font-weight: 800; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgb(255 255 255 / .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }

/* ヘッダーのロゴ：格子マーク＋社名＋一言 */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; flex: none; }
.brand-mark i { width: 12px; height: 12px; background: var(--ink); transition: background-color .3s; }
.brand-mark i:nth-child(2) { background: var(--red); }
.brand:hover .brand-mark i:nth-child(2) { background: var(--ink); }
.brand:hover .brand-mark i:nth-child(3) { background: var(--red); }
.brand .wordmark { font-size: 30px; }
.brand-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--steel); white-space: nowrap;
  padding-left: 14px; border-left: 1px solid var(--rule); line-height: 1.6;
}
@media (max-width: 1180px) { .brand-tag { display: none; } }
@media (max-width: 860px) {
  .site-header .wrap { min-height: 68px; }
  .brand { gap: 10px; }
  .brand-mark { grid-template-columns: repeat(2, 10px); gap: 2px; }
  .brand-mark i { width: 10px; height: 10px; }
  .brand .wordmark { font-size: 25px; }
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 14px; color: var(--ink); }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .nav-cta { background: var(--ink); color: var(--paper); margin-left: 10px; padding: 10px 20px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--red); color: var(--paper); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--rule); padding: 8px 12px;
    font: inherit; font-size: 13px; cursor: pointer; color: var(--ink);
  }
  .nav-toggle i { display: grid; grid-template-columns: 6px 6px; gap: 2px; }
  .nav-toggle i::before, .nav-toggle i::after { content: ""; width: 6px; height: 6px; background: var(--ink); box-shadow: 0 8px 0 var(--red); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter-r) 20px var(--gutter);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--rule); font-size: 15px; }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- 共通パーツ ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--red); }
.section { padding-block: 96px; }
.section.tight { padding-block: 60px; }
.section.mist { background: var(--mist); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(23px, 2.7vw, 32px); }
.section-head p { color: var(--steel); font-size: 16.5px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 16px 28px; border: 1.5px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.btn::after { content: "→"; font-weight: 400; transition: transform .2s; }
.btn:hover::after { transform: translateX(4px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--red); color: var(--red); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.text-link { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 2px; }
.text-link:hover { color: var(--red); }

/* 格子モチーフ */
.matrix { display: grid; gap: 6px; }
.matrix i { aspect-ratio: 1; background: var(--mist); }
.matrix i.k { background: var(--ink); }
.matrix i.g { background: #c9cdd3; }
.matrix i.r { background: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .matrix.live i { transition: background-color .9s ease; }
}

/* ---------- ページ見出し（下層） ---------- */
.page-hero { padding-block: 88px 64px; border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.page-hero p { color: var(--steel); margin-top: 18px; max-width: 640px; }
/* 右側の図：画面の端ではなく、本文の右端（ロゴ・メニューの端）にそろえる */
.page-hero .matrix { position: absolute; right: max(var(--gutter-r), calc((100% - var(--wrap)) / 2 + var(--gutter-r))); bottom: 76px; width: 200px; grid-template-columns: repeat(10, 1fr); gap: 3px; }
@media (max-width: 860px) { .page-hero .matrix { display: none; } }
.breadcrumb { font-size: 12px; color: var(--steel); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }

/* ---------- トップ：ヒーロー（黒い舞台） ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(ellipse 55% 65% at 78% 50%, rgb(216 38 28 / .07), transparent 70%),
    linear-gradient(rgb(22 24 29 / .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(22 24 29 / .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, #fbfcfd 0%, #f1f3f6 100%);
  padding-block: 88px 0;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--red); }
.hero .eyebrow::before { background: var(--red); }
.hero h1 { font-size: clamp(24px, 2.75vw, 34px); line-height: 1.6; margin-top: 24px; letter-spacing: .01em; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .sub { margin-top: 26px; color: var(--steel); font-size: 16.5px; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn.hero-primary { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn.hero-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.hero-ghost { background: rgb(255 255 255 / .7); border-color: var(--ink); color: var(--ink); }
.btn.hero-ghost:hover { border-color: var(--red); color: var(--red); }
.hero-visual { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; margin-right: -24px; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .wrap + .wrap { display: block; }
/* 下部：4工程と AI駆動の帯 */
.hero-foot { margin-top: 56px; border-top: 1px solid var(--rule); }
.hero-tags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 14.5px; font-weight: 700; }
.hero-tags li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 12px 18px 0; border-top: 2px solid transparent; margin-top: -1px; color: #8a909a;
  transition: color .5s, border-color .5s;
}
.hero-tags li span { font-family: var(--serif); font-size: 13px; color: #b0b5bd; transition: color .5s; font-variant-numeric: tabular-nums; }
.hero-tags li.on { color: var(--ink); border-top-color: var(--red); }
.hero-tags li.on span { color: var(--red); }
.hero-ai {
  display: flex; align-items: center; gap: 16px;
  background: var(--red); color: var(--paper); padding: 12px 18px; font-size: 14px; font-weight: 500;
}
.hero-ai b { font-weight: 700; letter-spacing: .12em; padding-right: 16px; border-right: 1px solid rgb(255 255 255 / .45); white-space: nowrap; }
@media (max-width: 860px) {
  .hero { padding-block: 24px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { aspect-ratio: 1 / 1; order: -1; max-width: 420px; justify-self: center; margin-right: 0; }
  .hero-foot { margin-top: 36px; }
  .hero-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 13.5px; }
  .hero-tags li { padding: 14px 8px 14px 0; }
  .hero-ai { align-items: flex-start; font-size: 13px; padding: 10px 14px; gap: 12px; }
  .hero-ai b { padding-right: 12px; }
}
/* ---------- 強み ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.strength { border-top: 2px solid var(--ink); padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.strength .tag { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--red); }
.strength h3 { font-size: 20px; }
.strength .num { font-family: var(--serif); font-weight: 800; font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.strength .num small { font-size: 18px; margin-left: 4px; }
.strength ul { border-top: 1px solid var(--rule); padding-top: 12px; color: var(--steel); font-size: 14px; }
.strength li { padding-left: 16px; position: relative; }
.strength li::before { content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 1px; background: var(--steel); }
@media (max-width: 860px) { .strengths { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- 2つの柱（AWS / AI駆動開発） ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pillar {
  display: flex; flex-direction: column; gap: 16px;
  padding: 40px 40px 34px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule);
  position: relative; overflow: hidden;
  transition: transform .25s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(22 24 29 / .08); }
.pillar.aws { border-top: 4px solid var(--ink); }
.pillar.ai { border-top: 4px solid var(--red); }
.pillar::before {
  content: ""; position: absolute; right: 28px; top: 28px; width: 64px; height: 64px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 30px 30px no-repeat,
    linear-gradient(currentColor 0 0) 34px 34px / 30px 30px no-repeat;
  opacity: .14;
}
.pillar .tag { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; color: var(--red); }
.pillar h3 { font-size: clamp(26px, 2.9vw, 34px); }
.pillar .lead-in { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.7; }
.pillar p { color: var(--steel); }
.pillar ul { border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 4px; font-size: 15px; }
.pillar li { padding-left: 18px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 8px; background: var(--red); }
.pillar.aws li::before { background: var(--ink); }
.pillar.aws::before { color: var(--ink); opacity: .08; }
.pillar.ai::before { color: var(--red); opacity: .12; }
.pillar .lead-in { color: var(--ink); }
.pillar .more { color: var(--ink); margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 15px; display: inline-flex; gap: 10px; }
.pillar .more::after { content: "→"; font-weight: 400; transition: transform .2s; }
.pillar:hover .more::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .pillar, .pillar:hover { transform: none; } }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 32px 24px 28px; }
}

/* ---------- 提供サービス（4工程） ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--rule); }
.svc { padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; }
.svc:not(:nth-child(3n+1)) { border-left: 1px solid var(--rule); }
.svc:nth-child(n+4) { border-top: 1px solid var(--rule); }
/* 同じ行の次の工程へ向かう矢印 */
.svc:not(:nth-child(3n+1))::before {
  content: ""; position: absolute; left: -7px; top: 40px; width: 12px; height: 12px;
  background: var(--paper); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); transform: rotate(45deg);
}
.svc .no { font-family: var(--serif); font-weight: 800; font-size: 36px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.svc h3 { font-size: 17.5px; line-height: 1.5; }
.svc p { color: var(--steel); font-size: 15px; }
.svc .out { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 12px; }
.svc .out span { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--steel); }
.svc .out ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.svc .out li { font-size: 13px; background: var(--mist); padding: 2px 10px; }
.svc-extra { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-extra .label { grid-column: 1 / -1; }
.extra {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 30px 28px 26px; border: 1.5px solid var(--ink); background: var(--paper);
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s;
}
.extra:hover { border-color: var(--red); transform: translateY(-2px); }
.extra .tag { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--red); display: flex; align-items: center; gap: 10px; }
.extra .paid { background: var(--red); color: var(--paper); font-size: 12px; letter-spacing: .08em; padding: 1px 10px; font-weight: 700; }
.extra h3 { font-size: 20px; }
.extra p { color: var(--steel); font-size: 14.5px; }
.extra ul { display: flex; flex-wrap: wrap; gap: 6px; }
.extra li { font-size: 13px; background: var(--mist); padding: 2px 10px; }
.extra .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14.5px; display: inline-flex; gap: 10px; }
.extra .more::after { content: "→"; font-weight: 400; transition: transform .2s; }
.extra:hover .more::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .extra:hover { transform: none; } }
@media (max-width: 860px) { .svc-extra { grid-template-columns: 1fr; } .extra { padding: 26px 22px; } }
/* 事業内容ページ：分類の見出しとページ内リンク */
.group-nav { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.group-nav a { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 700; border: 1.5px solid var(--ink); padding: 10px 22px; }
.group-nav a span { font-family: var(--serif); color: var(--red); }
.group-nav a:hover { background: var(--ink); color: var(--paper); }
.svc-group-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 88px; padding-bottom: 28px; scroll-margin-top: 80px; }
.group-nav + .svc-group-head { padding-top: 56px; }
.svc-group-head .no { font-family: var(--serif); font-weight: 800; font-size: 48px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.svc-group-head h2 { font-size: clamp(23px, 2.7vw, 30px); margin-top: 6px; }
.svc-group-head p { color: var(--steel); margin-top: 8px; }
.svc-group-head + .service-detail { border-top: 1.5px solid var(--ink); }
.svc-group-head + .service-detail.feature { border-top: 0; }
@media (max-width: 860px) { .svc-group-head { padding-top: 64px; } .svc-group-head .no { font-size: 40px; } }

/* 提供サービスの分類（インフラ系・アプリ系・その他） */
.svc-group { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; padding-block: 40px; border-top: 1px solid var(--rule); }
.section-head + .svc-group { border-top: 1.5px solid var(--ink); }
.svc-group-label { display: grid; gap: 8px; align-content: start; }
.svc-group-label span { font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.svc-group-label h3 { font-size: 21px; }
.svc-group-label p { color: var(--steel); font-size: 14.5px; }
.svc .flag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--red); border: 1px solid var(--red); padding: 1px 10px; }
@media (max-width: 1000px) { .svc-group { grid-template-columns: 1fr; gap: 20px; padding-block: 32px; } }
.svc-note { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; color: var(--steel); font-size: 14.5px; }
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc:not(:nth-child(3n+1)) { border-left: 0; }
  .svc:nth-child(even) { border-left: 1px solid var(--rule); }
  .svc:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .svc:nth-child(n)::before { display: none; }
  .svc:nth-child(even)::before { display: block; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc:nth-child(n) { border-left: 0; }
  .svc + .svc { border-top: 1px solid var(--rule); }
  .svc:nth-child(n)::before { display: none; }
  .svc { padding: 26px 20px; }
}

/* ---------- AIが書き、エンジニアが確かめる ---------- */
.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.split .col { background: var(--mist); padding: 28px 26px 30px; border-top: 3px solid var(--ink); display: grid; gap: 12px; align-content: start; min-width: 0; }
.split .col.benefit { border-top-color: var(--red); background: var(--paper); outline: 1px solid var(--rule); outline-offset: -1px; }
.split .who { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--steel); }
.split .benefit .who { color: var(--red); }
.split h3 { font-size: 18px; }
.split ul { display: grid; gap: 2px; }
.split li { padding: 8px 0 8px 18px; border-bottom: 1px solid var(--rule); position: relative; font-size: 15px; }
.split li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; background: var(--ink); }
.split .benefit li::before { background: var(--red); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.section.mist .split .col { background: var(--paper); }
.section.mist .split .col.benefit { outline: 2px solid var(--red); outline-offset: -2px; border-top-color: var(--red); }

.facts-band { border-top: 1px solid var(--rule); }

/* ---------- 基盤とアプリ、両方わかる強み ---------- */
.both { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.stack { margin: 0; display: grid; gap: 6px; border-left: 3px solid var(--red); padding-left: 22px; position: relative; }
.stack figcaption { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--red); margin-bottom: 6px; }
.layer { padding: 20px 22px; display: grid; gap: 2px; }
.layer span { font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.layer b { font-family: var(--serif); font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.layer small { font-size: 13px; }
.layer.app { background: var(--red); color: var(--paper); }
.layer.app span, .layer.app small { color: rgb(255 255 255 / .82); }
.layer.mid { background: var(--paper); border: 1.5px solid var(--ink); }
.layer.mid span, .layer.mid small { color: var(--steel); }
.layer.base { background: var(--ink); color: var(--paper); }
.layer.base span, .layer.base small { color: var(--on-ink); }
.both-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.both-points li { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; }
.both-points strong { font-family: var(--serif); font-weight: 800; font-size: 17px; line-height: 1.5; }
.both-points span { color: var(--steel); font-size: 14.5px; }
@media (max-width: 860px) {
  .both { grid-template-columns: 1fr; gap: 40px; }
  .both-points { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- 工程フロー ---------- */
.flow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.flow-steps li {
  background: var(--ink); color: var(--paper);
  padding: 20px 18px 20px 28px; font-weight: 700; font-size: 17px; line-height: 1.4;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  display: flex; flex-direction: column; gap: 4px;
}
.flow-steps li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 20px; }
.flow-steps li span { font-size: 11px; font-weight: 400; color: #b9bec6; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.flow-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; }
.flow-bars div { padding: 10px 16px; }
.bar-consult { grid-column: 1 / -1; border: 1.5px solid var(--red); color: var(--red); background: var(--paper); }
.bar-ai { grid-column: 1 / -1; background: var(--red); color: var(--paper); }
.svc-ai { margin: 0 0 8px; }
.section.mist .bar-ai { border-color: #c9cdd3; }
@media (max-width: 860px) {
  .flow-steps, .flow-bars { grid-template-columns: 1fr; }
  .flow-steps li, .flow-steps li:first-child { clip-path: none; padding-left: 20px; }
  .bar-consult, .bar-ai { grid-column: auto; }
}

/* ---------- 事業一覧（トップ） ---------- */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.service-list a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 4px 20px; align-items: start;
  padding: 28px 24px 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background .2s;
}
.service-list a:nth-child(odd) { border-right: 1px solid var(--rule); }
.service-list a:nth-child(even) { padding-left: 24px; }
.service-list a:hover h3 { color: var(--red); }
.service-list a::after { content: "→"; grid-column: 3; grid-row: 1; color: var(--steel); }
.service-list a.wide { grid-column: 1 / -1; border-right: 0; background: var(--mist); padding-left: 24px; }
.service-list h3 { font-size: 20px; transition: color .2s; }
.service-list p { grid-column: 2; color: var(--steel); font-size: 14.5px; }
.service-list .en { font-size: 12px; letter-spacing: .16em; color: var(--steel); text-transform: uppercase; }
.mk { width: 40px; height: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; grid-row: 1 / span 3; }
.mk i { background: var(--mist); }
.mk i.on { background: var(--ink); }
.mk i.r { background: var(--red); }
.service-list a.wide .mk i:not(.on):not(.r) { background: #dfe2e6; }
@media (max-width: 860px) {
  .service-list { grid-template-columns: 1fr; }
  .service-list a, .service-list a:nth-child(even) { padding-left: 0; border-right: 0; }
  .service-list a.wide { padding-left: 16px; padding-right: 16px; }
}

/* ---------- 代表メッセージ（抜粋） ---------- */
.message-teaser { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.message-teaser .msg-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.message-teaser .body { max-width: 720px; }
.message-teaser .body blockquote { margin-bottom: 28px; }
.message-teaser .body blockquote + p { margin-top: 0; }
.message-teaser .more-link { margin-top: 24px; }
@media (max-width: 860px) { .message-teaser .msg-row { grid-template-columns: 1fr; gap: 36px; } }

/* 事業内容：全サービス共通のAI駆動 */
.flag-common { justify-self: start; background: var(--red); color: var(--paper); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 2px 12px; }

/* 会社概要：事業内容の分類 */
.table .biz-list { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 6px 12px; }
.table .biz-list dt, .table .biz-list dd { padding: 0; border: 0; }
.table .biz-list dt { font-weight: 700; color: var(--ink); font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.table .biz-list dt::before { content: ""; width: 7px; height: 7px; background: var(--red); flex: none; transform: translateY(-2px); }
.biz-items { display: grid; gap: 2px; }
.biz-items li { padding-left: 16px; position: relative; }
.biz-items li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 1px; background: var(--steel); }
.table .biz-list { row-gap: 12px; }
.biz-note { margin-top: 10px; font-size: 13.5px; color: var(--steel); }
@media (max-width: 600px) { .table .biz-list { grid-template-columns: 1fr; gap: 0; } .table .biz-list dd { margin-bottom: 8px; } }
.message-teaser blockquote { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.7; }
.message-teaser .body p + p { margin-top: 18px; }
.message-teaser .sign { margin-top: 26px; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.message-teaser .sign span { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--steel); margin-right: 14px; }

/* ---------- 数字 ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 14px; }
.facts strong { display: block; font-family: var(--serif); font-weight: 800; font-size: 38px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.facts strong small { font-size: 17px; margin-left: 3px; }
.facts span { font-size: 14px; color: var(--steel); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }

/* ---------- CTA帯 ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding-block: 88px; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cta-band h2 { font-size: clamp(21px, 2.5vw, 29px); }
.cta-band p { color: var(--on-ink); margin-top: 12px; }
.cta-band .tel { font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: .04em; margin-top: 18px; font-variant-numeric: tabular-nums; }
.cta-band .tel small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--on-ink); margin-left: 12px; letter-spacing: .02em; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- 本文系（下層ページ） ---------- */
.prose { max-width: 720px; }
.prose p + p { margin-top: 20px; }
.two-col { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.two-col > h2 { font-size: 23px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* 企業情報：代表メッセージ横の代表者カード（写真の代わり） */
.msg-side { display: grid; gap: 28px; align-content: start; align-self: start; position: sticky; top: 104px; }
.msg-side h2 { font-size: 23px; }
.ceo-card { background: var(--ink); color: var(--paper); padding: 22px 22px 24px; display: grid; gap: 16px; }
.ceo-card .matrix { gap: 3px; }
.ceo-card .matrix i { background: #22262e; }
.ceo-card .matrix i.g { background: #3a3f48; }
.ceo-card .matrix i.k { background: #c3c7ce; }
.ceo-card .matrix i.r { background: var(--red); }
.ceo-name { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-2); }
.ceo-name .role { font-size: 12px; color: var(--on-ink); }
.ceo-name .name { font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: .24em; line-height: 1.4; }
.ceo-name .kana { font-size: 11.5px; letter-spacing: .22em; color: #9aa0a9; }
.ceo-facts { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 10px; font-size: 13px; line-height: 1.6; }
.ceo-facts dt { font-family: var(--serif); font-weight: 700; color: #ff5a4e; font-variant-numeric: tabular-nums; }
.ceo-facts dd { color: var(--on-ink); }
.ceo-cloud { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--ink-2); padding-top: 14px; }
.ceo-cloud b { font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1; color: #ff5a4e; white-space: nowrap; }
.ceo-cloud b small { font-size: 13px; margin-left: 2px; }
.ceo-cloud span { font-size: 12.5px; color: var(--on-ink); line-height: 1.5; }
/* 代表者カード：専門領域（数字ではなく、領域で実力を示す） */
.ceo-areas { display: grid; gap: 7px; font-size: 13px; color: var(--paper); font-weight: 500; }
.ceo-areas li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ceo-areas li::before { content: ""; width: 6px; height: 6px; background: #ff5a4e; flex: none; }
.ceo-quals { display: flex; flex-wrap: wrap; gap: 6px; }
.ceo-quals li { font-size: 12px; font-weight: 700; border: 1px solid #4a505a; padding: 2px 10px; color: var(--paper); }
.ceo-link { color: var(--paper); font-weight: 700; font-size: 13.5px; text-decoration: none; display: inline-flex; gap: 8px; border-bottom: 1.5px solid var(--red); justify-self: start; padding-bottom: 2px; }
.ceo-link::after { content: "↓"; font-weight: 400; }
.ceo-link:hover { color: #ff5a4e; }
@media (max-width: 860px) {
  .msg-side { position: static; }
  .ceo-card { max-width: 420px; grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
  .ceo-card .ceo-photo { grid-row: span 2; }
  .ceo-card .ceo-facts, .ceo-card .ceo-areas, .ceo-card .ceo-quals, .ceo-card .ceo-link { grid-column: 1 / -1; }
  .ceo-card .ceo-name { align-self: center; }
}

/* 企業情報：経営理念 */
.philo-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.philo-head h2 { font-size: 23px; margin-top: 10px; }
.philo-matrix { margin-top: 32px; width: 156px; gap: 5px; }
.philo .matrix i { background: #e2e5e9; }
.philo .matrix i.g { background: #c9cdd3; }
.philo .matrix i.k { background: var(--ink); }
.philo .matrix i.r { background: var(--red); }
br.pc { display: inline; }
@media (max-width: 860px) { br.pc { display: none; } }
.philo-main { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(20px, 2.3vw, 27px); line-height: 1.8; letter-spacing: .03em; max-width: 820px; }
.philo-main .q { display: block; font-size: 72px; line-height: 1; height: 40px; color: var(--red); font-family: var(--serif); }
.philo-main em { font-style: normal; background: linear-gradient(transparent 64%, rgb(216 38 28 / .2) 64%); }
.philo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.philo-card { background: var(--paper); padding: 26px 28px 22px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.philo-card .tag, .philo-value .tag { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--red); }
.philo-card h3 { font-size: 19px; }
.philo-card .stmt { font-family: var(--serif); font-weight: 700; font-size: 16.5px; line-height: 1.8; color: var(--ink); }
.philo-card .promise { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); font-weight: 700; font-size: 15px; display: flex; align-items: baseline; gap: 12px; }
.philo-card .promise b { font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--red); font-variant-numeric: tabular-nums; }
.philo-value { margin-top: 20px; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 24px; background: var(--ink); color: var(--paper); padding: 22px 28px; }
.philo-value .tag { color: #ff5a4e; }
.philo-value strong { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: .14em; white-space: nowrap; }
.philo-value p { color: var(--on-ink); font-size: 14.5px; border-left: 1px solid var(--ink-2); padding-left: 24px; }
@media (max-width: 860px) {
  .philo-grid { grid-template-columns: 1fr; gap: 28px; }
  .philo-matrix { display: none; }
  .philo-cards { grid-template-columns: 1fr; margin-top: 32px; }
  .philo-value { grid-template-columns: 1fr; gap: 6px; padding: 20px 22px; }
  .philo-value p { border-left: 0; padding-left: 0; }
}

.philosophy { display: grid; gap: 28px; }
.philosophy .main { font-family: var(--serif); font-weight: 800; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.7; }
.philosophy .sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.philosophy .sub div { background: var(--paper); padding: 24px; border-top: 2px solid var(--ink); }
.philosophy .sub h3 { font-size: 13px; font-family: var(--sans); letter-spacing: .16em; color: var(--steel); font-weight: 700; }
.philosophy .sub p { font-family: var(--serif); font-weight: 700; font-size: 18px; margin-top: 8px; line-height: 1.7; }
.promise { display: flex; flex-wrap: wrap; gap: 12px; }
.promise li { border: 1.5px solid var(--ink); padding: 10px 20px; font-weight: 700; background: var(--paper); }
.promise li b { color: var(--red); margin-right: 8px; }
@media (max-width: 860px) { .philosophy .sub { grid-template-columns: 1fr; } }

.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
.person .role { font-size: 14px; color: var(--steel); }
.person .name { font-family: var(--serif); font-weight: 800; font-size: 34px; letter-spacing: .3em; line-height: 1.3; margin-top: 4px; }
.person .kana { font-size: 12px; color: var(--steel); letter-spacing: .24em; }
.person .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.person .stats strong { font-size: 28px; }
.person .stats strong small { font-size: 12px; }
.person .stats span { font-size: 12px; line-height: 1.5; display: block; margin-top: 4px; white-space: nowrap; letter-spacing: 0; }
.person .stats .hl, .facts .hl { border-top-color: var(--red); }
.person .stats .hl strong, .facts .hl strong { color: var(--red); }
.person .stats div { border-top: 2px solid var(--ink); padding-top: 8px; }
.person .stats strong { font-family: var(--serif); font-weight: 800; font-size: 34px; line-height: 1.1; display: block; font-variant-numeric: tabular-nums; }
.person .stats strong small { font-size: 14px; margin-left: 2px; }
.person .stats span { font-size: 13px; color: var(--steel); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--steel); }
/* 代表プロフィール：専門領域 */
.person .areas { margin-top: 28px; }
.person .areas ul { margin-top: 8px; border-top: 1.5px solid var(--ink); }
.person .areas li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.person .areas li b { font-size: 11.5px; letter-spacing: .14em; color: var(--red); text-transform: uppercase; }
.person .areas li span { font-size: 15px; font-weight: 700; }
.quals { margin-top: 32px; }
.quals ul { margin-top: 8px; border-top: 1px solid var(--rule); }
.quals li { font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.timeline ol { margin-top: 12px; border-left: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 0 0 26px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--ink); }
.timeline li.now::before { background: var(--red); }
.timeline time { font-family: var(--serif); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.timeline strong { display: block; font-size: 16px; }
.timeline span { display: block; color: var(--steel); font-size: 14.5px; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; gap: 48px; } }

.table { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 1.5px solid var(--ink); }
.table dt, .table dd { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.table dt { color: var(--steel); font-size: 15px; }
.table dd { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .table { grid-template-columns: 1fr; }
  .table dt { border-bottom: 0; padding-bottom: 0; font-size: 13px; }
  .table dd { padding-top: 4px; }
}

/* 事業内容 詳細 */
.service-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding-block: 64px; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.service-detail:first-of-type { border-top: 1.5px solid var(--ink); }
.service-detail .head { display: grid; gap: 14px; align-content: start; }
.service-detail .head .mk { grid-row: auto; }
.service-detail h2 { font-size: 23px; }
.service-detail .en { font-size: 12px; letter-spacing: .16em; color: var(--steel); text-transform: uppercase; }
.service-detail .body p + p { margin-top: 16px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-top: 28px; }
.points li { border-top: 1px solid var(--rule); padding-top: 12px; }
.points li strong { display: block; font-size: 15.5px; }
.points li span { display: block; color: var(--steel); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { font-size: 13px; border: 1px solid var(--rule); padding: 3px 12px; color: var(--steel); }
.service-detail.feature { background: var(--mist); padding-left: 40px; padding-right: 40px; border-top: 0; }
@media (max-width: 860px) {
  .service-detail { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .service-detail.feature { padding-left: 20px; padding-right: 20px; }
  .points { grid-template-columns: 1fr; }
}

/* 採用 */
.recruit-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.recruit-intro .lead { font-family: var(--serif); font-weight: 800; font-size: clamp(20px, 2.3vw, 25px); line-height: 1.7; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.roles li { background: var(--ink); color: var(--paper); padding: 22px 20px; font-weight: 700; font-size: 17px; line-height: 1.5; }
.roles li span { display: block; font-size: 11px; letter-spacing: .14em; color: #b9bec6; font-weight: 400; }
@media (max-width: 860px) { .recruit-intro { grid-template-columns: 1fr; } .roles { grid-template-columns: 1fr; } }

/* お問い合わせ */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { border-top: 2px solid var(--ink); padding-top: 16px; }
.contact-card .v { font-family: var(--serif); font-weight: 800; font-size: 23px; letter-spacing: .03em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-card .v a { text-decoration: none; }
.contact-card .v a:hover { color: var(--red); }
.contact-card small { display: block; color: var(--steel); font-size: 13.5px; }
.form { display: grid; gap: 22px; background: var(--mist); padding: 40px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field label .req { color: var(--red); font-size: 12px; margin-left: 8px; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #c9cdd3; background: var(--paper); padding: 12px 14px; width: 100%;
  border-radius: 0;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.field .err { color: var(--red-dark); font-size: 13px; min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--ink); }
.form button { justify-self: start; cursor: pointer; font-family: inherit; }
.form .note { font-size: 13px; color: var(--steel); }
.form-result { background: var(--paper); border-left: 3px solid var(--ink); padding: 16px 18px; font-size: 14.5px; }
.form-result.error { border-left-color: var(--red); color: var(--red-dark); }
.form-sent { background: var(--paper); padding: 40px 32px; display: grid; gap: 14px; }
.form-sent h2 { font-size: 24px; }
.form button[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } .form { padding: 28px 20px; } }

/* プライバシー */
.policy { display: grid; gap: 64px; max-width: 820px; }
.policy section { scroll-margin-top: 90px; }
.policy h2 { font-size: 23px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.policy ol { counter-reset: p; margin-top: 8px; }
.policy ol li { counter-increment: p; padding: 18px 0 18px 48px; border-bottom: 1px solid var(--rule); position: relative; }
.policy ol li::before { content: counter(p); position: absolute; left: 0; top: 16px; font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--red); font-variant-numeric: tabular-nums; }
.policy ol li strong { display: block; }
.policy p { margin-top: 18px; }
.policy .toc { display: flex; flex-wrap: wrap; gap: 10px; }
.policy .toc a { text-decoration: none; border: 1px solid var(--rule); padding: 6px 16px; font-size: 14px; }
.policy .toc a:hover { border-color: var(--red); color: var(--red); }

/* アクセス */
.access { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; border-top: 1.5px solid var(--ink); padding-top: 24px; }
.access .addr { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.7; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding-block: 72px 32px; font-size: 14px; }
.cta-band + .site-footer { border-top: 1px solid var(--ink-2); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
.site-footer .wordmark { font-size: 28px; color: var(--paper); }
.site-footer .wordmark b { color: #ff4a3d; }
.site-footer address { font-style: normal; margin-top: 18px; line-height: 1.9; }
.site-footer h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: #9aa0a9; font-weight: 700; margin-bottom: 12px; }
.site-footer ul a { text-decoration: none; color: var(--paper); display: inline-block; padding: 4px 0; }
.site-footer ul a:hover { color: #ff4a3d; }
.site-footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #9aa0a9; }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr; gap: 36px; } }

/* ==========================================================
   トップページだけの「やわらかさ」：曲線・円弧・角丸
   ========================================================== */
/* ヒーロー：背景の大きな円弧と、下端のなだらかな曲線 */
.home .hero { padding-bottom: 136px; }
.home .hero > .wrap { position: relative; z-index: 1; }
/* 見た瞬間に伝わる大きな見出し：横幅を広げ、文字を大きく（2行のまま） */
.home .hero { padding-top: clamp(64px, 7vw, 104px); }
.home .hero > .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
@media (min-width: 1240px) { .home .hero-visual { width: calc(100% + 48px); max-width: 580px; margin-right: -48px; } }
@media (max-width: 1239px) { .home .hero-visual { margin-right: 0; } }
.home .hero h1 { font-size: clamp(25px, 2.95vw, 38px); line-height: 1.5; letter-spacing: 0; margin-top: 28px; }
.home .hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.home .hero h1 .ln > span { display: inline-block; }
/* 「AI駆動開発」に引く赤いマーカー */
.home .hero h1 em {
  background: linear-gradient(transparent 72%, rgb(216 38 28 / .16) 72%, rgb(216 38 28 / .16) 94%, transparent 94%) no-repeat 0 0 / 100% 100%;
}
.home .hero .sub { font-size: 16px; max-width: 540px; }
.home .hero .eyebrow { letter-spacing: .22em; }

/* アクセント①：アニメーションの背後のリング。赤い弧と点がゆっくり周回する */
.hero-ring { position: absolute; inset: 3%; width: 94%; height: 94%; pointer-events: none; overflow: visible; }
.hero-ring circle { fill: none; }
.hero-ring .r1 { stroke: rgb(22 24 29 / .12); stroke-width: 1; }
.hero-ring .r2 { stroke: rgb(22 24 29 / .22); stroke-width: 1; stroke-dasharray: 1.5 7; }
.hero-ring .r3 { stroke: rgb(22 24 29 / .06); stroke-width: 1; }
.hero-ring .arc { stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 220 986; }
.hero-ring .arc2 { stroke: rgb(216 38 28 / .45); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 70 985; }
.hero-ring .dot { fill: var(--red); stroke: #fff; stroke-width: 3; }
.hero-ring .spin { transform-origin: 200px 200px; transform: rotate(-60deg); }

/* ヒーロー下端中央の「SCROLL」表示：細い線の中を赤い線が下へ流れる */
.hero-scroll {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
}
.hero-scroll span { font-size: 10.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--steel); padding-left: .3em; }
.hero-scroll i { position: relative; width: 1px; height: 54px; background: var(--rule); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: var(--red); transform: translateY(-24px); }
@keyframes hero-drop { 0% { transform: translateY(-24px); } 70%, 100% { transform: translateY(56px); } }
@keyframes hero-spin { to { transform: rotate(300deg); } }
@keyframes hero-spin-rev { from { transform: rotate(-60deg); } to { transform: rotate(-420deg); } }
/* 読み込み時の演出：見出しが下から一行ずつせり上がり、続いて本文・ボタン・アニメが現れる */
@media (prefers-reduced-motion: no-preference) {
  .home .hero h1 .ln > span { animation: hero-rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .home .hero h1 .ln:nth-child(1) > span { animation-delay: .15s; }
  .home .hero h1 .ln:nth-child(2) > span { animation-delay: .32s; }
  .home .hero h1 em { animation: hero-mark .9s cubic-bezier(.6, 0, .2, 1) 1.1s both; }
  .home .hero .eyebrow { animation: hero-fade .9s ease both; }
  .home .hero .sub { animation: hero-fade 1s ease .7s both; }
  .home .hero .actions { animation: hero-fade 1s ease .85s both; }
  .home .hero-visual { animation: hero-zoom 1.6s cubic-bezier(.2, .8, .2, 1) .3s both; }
  .hero-ring .spin { animation: hero-spin 28s linear infinite; }
  .hero-ring .spin.rev { animation: hero-spin-rev 46s linear infinite; }
  .hero-scroll i::after { animation: hero-drop 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }
  .home .hero-foot { animation: hero-fade 1s ease 1s both; }
}
@keyframes hero-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hero-mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }


.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; z-index: 0; }
.hero-wave path { fill: var(--paper); }
.home .hero-ai { border-radius: 12px; }

/* ボタン：丸みのある形 */
.home .btn { border-radius: 999px; padding-inline: 30px; }

/* グレー背景のセクションとお問い合わせ欄：大きな角丸で、やわらかく区切る */
.home .section.mist { border-radius: 56px; margin-inline: clamp(0px, 1.5vw, 20px); }
.home .cta-band { border-radius: 56px 56px 0 0; }

/* カード類：控えめな角丸 */
.home .pillar { border-radius: 20px; }
.home .layer { border-radius: 12px; }
.home .stack { border-left: 0; padding-left: 0; }
.home .stack figcaption { padding-left: 2px; }
.home .svc-grid { border-radius: 18px; overflow: hidden; }
.home .extra { border-radius: 18px; }
.home .split .col { border-radius: 16px; }
.home .split .col.benefit { outline: 0; border: 1px solid var(--rule); border-top-width: 3px; }
.home .ceo-card { border-radius: 18px; }
.home .ceo-card .matrix i { border-radius: 3px; }
.home .svc .out li, .home .extra li { border-radius: 999px; padding-inline: 12px; }
.home .flag, .home .svc .flag, .home .paid { border-radius: 999px; }
.home .facts div { border-top-left-radius: 0; }

@media (max-width: 860px) {
  .home .hero { padding-bottom: 64px; }
  .hero-wave { height: 40px; }
  .home .hero { padding-top: 24px; }
  .home .hero > .wrap { grid-template-columns: 1fr; gap: 20px; }
  .home .hero h1 { font-size: clamp(26px, 7.4vw, 34px); margin-top: 20px; }
  .home .hero-visual { width: 100%; max-width: 420px; margin-right: 0; }
  .hero-scroll { display: none; }
  .home .section.mist { border-radius: 32px; margin-inline: 0; }
  .home .cta-band { border-radius: 32px 32px 0 0; }
}

/* ==========================================================
   代表者カード・代表プロフィール：白を基調に、やわらかくスマートに
   ========================================================== */
/* 代表者カード（TOP・企業情報 共通） */
.ceo-card {
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--ink);
  border: 1px solid #e4e7eb; border-radius: 20px;
  padding: 16px 16px 22px; gap: 16px;
  box-shadow: 0 1px 2px rgb(22 24 29 / .04), 0 22px 44px -28px rgb(22 24 29 / .28);
}
.ceo-card .ceo-photo {
  background: linear-gradient(140deg, #f3f5f7 0%, #e6e9ee 100%);
  border-radius: 14px; padding: 16px; gap: 4px;
}
.ceo-card .matrix i { background: #d9dee4; border-radius: 3px; }
.ceo-card .matrix i.g { background: #aeb5bf; }
.ceo-card .matrix i.k { background: var(--ink-2); }
.ceo-card .matrix i.r { background: var(--red); }
.ceo-card > :not(.ceo-photo) { margin-inline: 6px; }
.ceo-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0 34%, var(--ink) 34% 100%); }
.ceo-name { border-bottom-color: #d5d9df; }
.ceo-name .role { color: var(--steel); }
.ceo-name .kana { color: #a0a6af; }
.ceo-areas { color: var(--ink); font-weight: 700; }
.ceo-areas li::before { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.ceo-quals li { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 2px 12px; font-weight: 700; }
.ceo-link { color: var(--ink); border-bottom-width: 1px; }
.ceo-link:hover { color: var(--red); }

/* 代表プロフィール：左は淡いグレーのカード、右は白いカードの経歴 */
#profile .profile { grid-template-columns: 370px minmax(0, 1fr); gap: 24px; align-items: stretch; }
#profile .profile-side { display: grid; gap: 24px; align-content: start; }
#profile .person {
  background: linear-gradient(170deg, #f8f9fb 0%, #f0f2f5 100%);
  border-radius: 24px; padding: 34px 28px 30px; position: relative; overflow: hidden;
}
#profile .person::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgb(216 38 28 / .10), transparent 70%); pointer-events: none;
}
#profile .person .name { font-size: 32px; margin-top: 6px; }
#profile .person .kana { color: #9aa0a9; }
#profile .label { font-size: 11.5px; letter-spacing: .24em; color: #8a909a; }
#profile .person .areas ul { border-top: 0; display: grid; gap: 8px; margin-top: 12px; }
#profile .person .areas li {
  background: var(--paper); border: 0; border-radius: 12px; padding: 11px 14px;
  grid-template-columns: 62px minmax(0, 1fr); box-shadow: 0 1px 2px rgb(22 24 29 / .05);
}
#profile .person .areas li b { font-size: 10.5px; }
#profile .person .areas li span { font-size: 14.5px; }
#profile .quals {
  margin-top: 0; background: linear-gradient(170deg, #f8f9fb 0%, #f0f2f5 100%);
  border-radius: 24px; padding: 26px 34px 28px;
}
#profile .quals ul { border-top: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#profile .quals li {
  border: 0; border-radius: 999px; padding: 6px 16px; font-size: 13.5px; font-weight: 500;
  background: var(--paper); color: var(--ink-2); box-shadow: 0 1px 2px rgb(22 24 29 / .06);
}#profile .timeline {
  background: var(--paper); border: 1px solid #e6e9ed; border-radius: 24px; padding: 32px 34px 14px;
  box-shadow: 0 22px 44px -32px rgb(22 24 29 / .25);
}
#profile .timeline ol { margin-top: 20px; border-left: 0; position: relative; }
#profile .timeline ol::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 30px; width: 1px; background: linear-gradient(#dfe3e8, #f0c4c1); }
#profile .timeline li { padding: 0 0 30px 34px; }
#profile .timeline li::before {
  left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid #c9ced5; box-sizing: border-box;
}
#profile .timeline li.now::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px rgb(216 38 28 / .12); }
#profile .timeline li.now strong { color: var(--ink); }
#profile .timeline strong { font-size: 16.5px; }
#profile .timeline span { font-size: 14px; margin-top: 2px; }
@media (max-width: 860px) {
  #profile .profile { grid-template-columns: 1fr; gap: 20px; }
  #profile .person { padding: 26px 20px 24px; border-radius: 20px; }
  #profile .timeline { padding: 26px 20px 8px; border-radius: 20px; }
  #profile .profile-side { gap: 20px; }
  #profile .quals { padding: 22px 20px 24px; border-radius: 20px; }
  #profile .quals li { border-radius: 12px; }
  #profile .person .name { font-size: 28px; }
}

/* ==========================================================
   採用情報：白と淡いグレーの角丸カードで、軽やかに
   ========================================================== */
.rc-hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5; }
.rc-hero p { max-width: 640px; }
.rc-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rc-hero-tags span {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper);
}
.rc-hero-tags span:first-child { background: var(--ink); color: var(--paper); }

/* 働く魅力 */
.rc-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rc-why article {
  position: relative; overflow: hidden; border-radius: 20px; padding: 30px 28px 32px;
  background: linear-gradient(170deg, #f8f9fb 0%, #f0f2f5 100%);
}
.rc-why .no { font-family: var(--serif); font-weight: 800; font-size: 15px; color: var(--red); letter-spacing: .08em; }
.rc-why .no::after { content: ""; display: block; width: 28px; height: 2px; background: var(--red); margin-top: 10px; }
.rc-why h3 { font-size: 19px; margin-top: 18px; }
.rc-why p { color: var(--steel); font-size: 14.5px; margin-top: 10px; }

/* 募集職種 */
.rc-jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rc-job {
  background: var(--paper); border: 1px solid #e4e7eb; border-radius: 24px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(22 24 29 / .04), 0 24px 48px -32px rgb(22 24 29 / .3);
  display: flex; flex-direction: column;
}
.rc-job-head { position: relative; padding: 30px 32px 24px; border-bottom: 1px solid #eceef1; }
.rc-job-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0 30%, var(--ink) 30% 100%); }
.rc-job-head .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; color: var(--red); }
.rc-job-head h3 { font-size: clamp(21px, 2.1vw, 25px); line-height: 1.45; margin-top: 8px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.rc-chips li { font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: #f1f3f6; color: var(--ink-2); }
.rc-chips li:first-child { background: var(--ink); color: var(--paper); }
.rc-job-body { padding: 24px 32px 30px; display: grid; gap: 10px; align-content: start; }
.rc-job-body .label + .rc-list { margin-bottom: 14px; }
.rc-list { display: grid; gap: 6px; font-size: 15px; }
.rc-list li { position: relative; padding-left: 18px; }
.rc-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.rc-list.sub { font-size: 14px; color: var(--steel); }
.rc-list.sub li::before { background: #b9bfc8; }
.rc-note { margin-top: 24px; font-size: 14.5px; color: var(--steel); }

/* 求める人物像 */
.rc-persona { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rc-persona li {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid #e4e7eb; border-radius: 16px; font-weight: 700; font-size: 15px; line-height: 1.6;
}
.rc-persona b {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #f1f3f6; color: var(--ink); font-family: var(--serif); font-size: 15px;
}
.rc-persona li:nth-child(3) b { background: var(--red); color: var(--paper); }

/* 選考の流れ */
.rc-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.rc-flow li {
  position: relative; background: var(--paper); border-radius: 18px; padding: 24px 22px 26px;
  display: grid; gap: 6px; align-content: start; box-shadow: 0 1px 2px rgb(22 24 29 / .05);
}
.rc-flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 8px; z-index: 1;
  border-top: 1.5px solid var(--red); border-right: 1.5px solid var(--red); transform: translateY(-50%) rotate(45deg);
}
.rc-flow .no { font-family: var(--serif); font-weight: 800; font-size: 13px; color: var(--red); letter-spacing: .1em; }
.rc-flow b { font-size: 18px; font-family: var(--serif); font-weight: 800; }
.rc-flow li > span:last-child { font-size: 13.5px; color: var(--steel); line-height: 1.7; }

/* 応募方法 */
.rc-apply {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center;
  background: linear-gradient(160deg, #f8f9fb 0%, #eef0f4 100%); border-radius: 28px; padding: 48px 48px;
}
.rc-apply h2 { font-size: clamp(23px, 2.5vw, 30px); margin-top: 12px; }
.rc-apply p { color: var(--steel); margin-top: 14px; font-size: 15px; }
.rc-apply-card {
  background: var(--paper); border-radius: 20px; padding: 28px 28px 30px; display: grid; gap: 6px;
  box-shadow: 0 24px 48px -30px rgb(22 24 29 / .3);
}
.rc-apply-card small { color: var(--steel); font-size: 13px; }
.rc-apply-card .v { font-family: var(--serif); font-weight: 800; font-size: 22px; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.rc-apply-card .v:hover { color: var(--red); }
.rc-btn { margin-top: 14px; justify-content: center; border-radius: 999px; background: var(--red); border-color: var(--red); color: var(--paper); }
.rc-btn:hover { background: var(--ink); border-color: var(--ink); }
.rc-privacy { margin-top: 20px; font-size: 13.5px; color: var(--steel); }

@media (max-width: 1000px) {
  .rc-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-flow li:nth-child(2)::after { display: none; }
  .rc-apply { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .rc-why, .rc-jobs, .rc-persona { grid-template-columns: 1fr; }
  .rc-why { gap: 14px; }
  .rc-why article { padding: 24px 22px 26px; }
  .rc-job-head { padding: 26px 22px 20px; }
  .rc-job-body { padding: 20px 22px 26px; }
  .rc-flow { grid-template-columns: 1fr; gap: 12px; }
  .rc-flow li::after { display: none; }
  .rc-apply { padding: 32px 22px; border-radius: 22px; }
  .rc-apply-card { padding: 22px 20px 24px; }
}

/* ==========================================================
   企業情報：会社概要を中心に、代表・経営理念をコンパクトに
   ========================================================== */
.ab-msg { max-width: 720px; }
.ab-msg p + p { margin-top: 16px; }
.ab-lead { font-family: var(--serif); font-weight: 800; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.7; margin-bottom: 20px; }
.ab-sign { margin-top: 24px; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.ab-sign span { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--steel); margin-right: 14px; }
/* 経営理念（要点のみ） */
.ab-philo .philo-main { font-size: clamp(18px, 2vw, 23px); }
.ab-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.ab-values li { border-radius: 16px; background: var(--mist); padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.ab-values b { font-family: var(--serif); font-weight: 800; font-size: 17px; }
.ab-values span { color: var(--steel); font-size: 14px; line-height: 1.75; }
.ab-values li.hl { background: var(--ink-2); color: var(--paper); }
.ab-values li.hl b { color: #ff8a80; }
.ab-values li.hl span { color: #c9ced5; }
@media (max-width: 860px) {
  .ab-values { grid-template-columns: 1fr; }
}

/* ==========================================================
   TOPの色合い：サイトの基本色（墨・赤）と、アニメーションの色（青）を分ける
   ========================================================== */
.home { --anim: #1f6fe5; --anim-hi: #4c9bff; }
/* ヒーローの背景：アニメーションの背後だけ、ほのかな青の光 */
.home .hero {
  background:
    radial-gradient(ellipse 50% 60% at 80% 48%, rgb(31 111 229 / .08), transparent 70%),
    linear-gradient(rgb(22 24 29 / .04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(22 24 29 / .04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, #fbfcfd 0%, #f2f4f7 100%);
}
/* アニメーション背後のリングも、アニメーションと同じ青に */
.home .hero-ring .r1 { stroke: rgb(31 111 229 / .14); }
.home .hero-ring .r2 { stroke: rgb(31 111 229 / .26); }
.home .hero-ring .r3 { stroke: rgb(31 111 229 / .07); }
.home .hero-ring .arc { stroke: var(--anim); }
.home .hero-ring .arc2 { stroke: rgb(76 155 255 / .55); }
.home .hero-ring .dot { fill: var(--anim); }

/* 「基盤とアプリ」の3層：赤と黒の塗りを減らし、土台だけを濃く */
.home .layer { border-radius: 14px; }
.home .layer.app { background: var(--paper); color: var(--ink); border: 1.5px solid var(--red); }
.home .layer.app span { color: var(--red); }
.home .layer.app small { color: var(--steel); }
.home .layer.mid { border-width: 1px; border-color: #c9ced5; }

/* お問い合わせの帯：黒をやめ、明るいグレーの面に赤いボタン（下の黒いフッターと分ける） */
.home .cta-band {
  background:
    radial-gradient(ellipse 50% 90% at 92% 10%, rgb(216 38 28 / .08), transparent 70%),
    linear-gradient(160deg, #f7f8fa 0%, #eceff3 100%);
  color: var(--ink);
}
.home .cta-band p, .home .cta-band .tel small { color: var(--steel); }
.home .cta-band .btn.light { background: var(--red); border-color: var(--red); color: var(--paper); }
.home .cta-band .btn.light:hover { background: var(--ink); border-color: var(--ink); }
.home .cta-band + .site-footer { border-top: 0; }

/* ヒーローの背景：色の光はなくし、白と方眼だけに（アニメーションは墨色の画面の中で光る） */
.home .hero {
  background:
    linear-gradient(rgb(22 24 29 / .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(22 24 29 / .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
}
.home .hero-ring .r1 { stroke: rgb(22 24 29 / .10); }
.home .hero-ring .r2 { stroke: rgb(22 24 29 / .20); }
.home .hero-ring .r3 { stroke: rgb(22 24 29 / .05); }
.home .hero-ring .arc { stroke: url(#ring-grad); stroke-width: 3.5; stroke-dasharray: 300 906; }
.home .hero-ring .arc2 { stroke: url(#ring-grad); opacity: .55; }
.home .hero-ring .dot { fill: var(--ring-dot, #fbbf24); filter: drop-shadow(0 0 6px rgb(var(--aura2, 35 47 62) / .6)); }

/* アニメーション全体をガラスボールに：以前の回るリングは使わない（ガラス球は hero.js で描く） */
.home .hero-ring { display: none; }

/* ==========================================================
   TOPの配色：墨（黒）を中心に、赤は要所のアクセントだけ
   赤を残すのは、見出しの「AI駆動開発」・セクションの小見出し・ロゴ・進行中の工程・リンクの下線
   ========================================================== */
/* ボタン：墨。触れたときだけ赤 */
.home .btn.hero-primary, .home .cta-band .btn.light { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.home .btn.hero-primary:hover, .home .cta-band .btn.light:hover { background: var(--red); border-color: var(--red); }
/* 「AI駆動」の帯：アニメーションと同じ墨色。ラベルだけ淡い赤 */
.home .hero-ai { background: #16181d; color: #e9ecf0; }
.home .hero-ai b { color: #ff6a5f; border-right-color: rgb(255 255 255 / .18); }
/* 2つの柱：アプリ開発のカードも墨の上辺に。小さなラベルと印はグレー・墨 */
.home .pillar.ai { border-top-color: var(--ink); }
.home .pillar .tag { color: var(--steel); }
.home .pillar li::before { background: var(--ink); }
/* 基盤とアプリの3層の図 */
.home .layer.app { border-color: var(--ink); }
.home .layer.app span, .home .stack figcaption { color: var(--steel); }
/* 提供サービス：番号・タグ・研修カード */
.home .svc .no, .home .svc-group-label span { color: var(--ink); }
.home .svc .flag { color: var(--ink); border-color: var(--ink); }
.home .extra .tag { color: var(--steel); }
.home .extra .paid { background: var(--ink); }
.home .extra:hover { border-color: var(--ink); }
/* AIが書き、エンジニアが確かめる：「お客さまのメリット」も赤枠をやめ、墨の上辺に */
.home .split .col.benefit, .home .section.mist .split .col.benefit { outline: 0; border: 1px solid var(--rule); border-top: 3px solid var(--ink); }
.home .split .benefit .who { color: var(--steel); }
.home .split .benefit li::before { background: var(--ink); }
/* 実績欄の「AI」 */
.home .facts .hl { border-top-color: var(--ink); }
.home .facts .hl strong { color: var(--ink); }

/* 見出し：赤は「AI」の2文字だけ。マーカーの下線と、その演出は使わない */
.home .hero h1 em { background: none; animation: none; }

/* 事業内容：構成はそのままに、余白を少しだけ詰める */
.service-detail { padding-block: 44px; gap: 48px; }
.svc-group-head { padding-top: 64px; padding-bottom: 20px; }
.group-nav + .svc-group-head { padding-top: 40px; }
.points { gap: 12px 28px; margin-top: 20px; }
.points li { padding-top: 10px; }
.chips { margin-top: 18px; }
@media (max-width: 860px) {
  .service-detail { padding-block: 34px; gap: 18px; }
  .svc-group-head { padding-top: 48px; }
}

/* ==========================================================
   TOP全体の精緻化：墨・白・赤の3色に整え、余白と線の強さをそろえる
   ========================================================== */
/* ヒーロー：上の余白を少し詰め、見出しとアニメーションの上端をそろえる */
.home .hero { padding-top: clamp(48px, 5.5vw, 84px); }
.home .hero > .wrap { align-items: center; }
.home .hero .sub { color: #4e5560; }
/* 工程タグ：区切り線を細く、進行中だけ墨の太線と赤い番号に */
.home .hero-foot { margin-top: 44px; }
.home .hero-tags li.on { border-top-color: var(--ink); }
/* 2つの柱：右上の四角模様をどちらも墨の淡い色に（ピンクに見えていたのを解消） */
.home .pillar.ai::before { color: var(--ink); opacity: .08; }
.home .pillar.aws, .home .pillar.ai { border-top-width: 3px; }
.home .pillar:hover { box-shadow: 0 18px 36px -18px rgb(22 24 29 / .22); }
/* カード類の枠線を、すべて同じ細さ・同じ色に */
.home .pillar, .home .svc-grid, .home .extra, .home .split .col, .home .ceo-card { border-color: #e2e5e9; }
/* セクションの小見出し（TWO PILLARS など）：赤の四角はそのまま、文字を少し落ち着かせる */
.home .section .eyebrow { letter-spacing: .26em; }
/* 実績欄：線を細く、数字を少し大きく */
.home .facts div { border-top-width: 1.5px; }
.home .facts strong { font-size: 40px; letter-spacing: .01em; }
/* SCROLL の線：赤い流れを少し細く短く */
.home .hero-scroll i::after { height: 16px; }
@media (max-width: 860px) {
  .home .hero { padding-top: 20px; }
  .home .facts strong { font-size: 32px; }
}

/* ==========================================================
   TOPの墨を減らす：墨の大きな面はアニメーションの画面だけにし、ほかは白・淡いグレーに
   ========================================================== */
/* 「AI駆動」の帯（2本）：墨の帯 → 淡いグレーの帯に墨の文字。ラベルは赤 */
.home .hero-ai { background: #f1f3f6; color: var(--ink); border: 1px solid #e2e5e9; }
.home .hero-ai b { color: var(--red); border-right-color: #d3d7dd; }
/* ボタン：主ボタンは墨の枠線＋白地に。触れたときだけ墨で塗る */
.home .btn.hero-primary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.home .btn.hero-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.home .btn.hero-ghost { border-color: #c9ced5; }
/* 基盤とアプリの3層の図：土台のクラウド基盤も、墨の塗り → 淡いグレーに墨の枠 */
.home .layer.base { background: #eef0f3; color: var(--ink); border: 1.5px solid var(--ink); }
.home .layer.base span, .home .layer.base small { color: var(--steel); }
/* 2つの柱・カード：上辺の太い墨線を、細いグレーに */
.home .pillar.aws, .home .pillar.ai { border-top: 1px solid #e2e5e9; }
.home .split .col, .home .split .col.benefit, .home .section.mist .split .col.benefit { border-top: 1px solid #e2e5e9; }
/* 研修の「有料」ラベル・サービスのタグ：墨の塗り → 枠線のみ */
.home .extra .paid { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
/* 実績欄の上線を細いグレーに */
.home .facts div { border-top: 1px solid #d3d7dd; }
/* お問い合わせ欄のボタン：白地に墨の枠 */
.home .cta-band .btn.light { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.home .cta-band .btn.light:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================
   TOPのメリハリ：赤と墨は増やさず、淡い色の面と左の細いアクセント線で変化をつける
   色の段階：赤み（アプリ・お客さま）→ 白（データ・AI）→ グレー（基盤・エンジニア）
   ========================================================== */
/* 基盤とアプリの3層：上から 淡い赤 → 白 → 淡いグレー。左に色の異なる縦線 */
.home .layer { border: 0; box-shadow: inset 4px 0 0 var(--c, #c9ced5), 0 1px 2px rgb(22 24 29 / .05); padding-left: 26px; }
.home .layer.app { --c: var(--red); background: #fdf0ee; border: 0; }
.home .layer.app span { color: var(--red); }
.home .layer.mid { --c: #b9bec6; background: var(--paper); border: 0; }
.home .layer.base { --c: var(--ink); background: #e7eaee; border: 0; }
.home .layer.base span { color: var(--ink-2); }
.home .stack { gap: 8px; }

/* 2つの柱：クラウド基盤は淡いグレー、アプリ開発は淡い赤の、上から薄れるグラデーション */
.home .pillar.aws { background: linear-gradient(180deg, #eef0f3 0, #ffffff 180px); }
.home .pillar.ai { background: linear-gradient(180deg, #fcefed 0, #ffffff 180px); }
.home .pillar.aws .tag { color: var(--ink-2); }
.home .pillar.ai .tag { color: var(--red); }
.home .pillar.ai li::before { background: var(--red); }

/* AIが書き、エンジニアが確かめる：3枚の上辺を 墨・グレー・赤 に、お客さまのメリットは淡い赤の面 */
.home .split .col { border-top: 3px solid #b9bec6; }
.home .split .col:first-child { border-top-color: var(--ink); }
.home .split .col.benefit, .home .section.mist .split .col.benefit { border-top: 3px solid var(--red); background: #fdf3f2; }
.home .split .benefit .who { color: var(--red); }
.home .split .benefit li::before { background: var(--red); }

/* 提供サービス：分類ごとに番号の色を変える（インフラ系は墨、アプリ系は赤、その他はグレー） */
.home .g-infra .svc-group-label span { color: var(--ink); }
.home .g-app .svc-group-label span { color: var(--red); }
.home .g-other .svc-group-label span { color: #9aa0a9; }
.home .extra { background: linear-gradient(135deg, #f7f8fa 0%, #ffffff 60%); }

/* 実績欄：「AI」だけ赤の上線と文字 */
.home .facts .hl { border-top: 2px solid var(--red); }
.home .facts .hl strong { color: var(--red); }

/* ==========================================================
   TOPのアクセント追加：各セクションの「顔」になる部分に、小さな色の変化を
   ========================================================== */
/* セクション見出しの下に、赤と墨の短い2色ライン */
.home .section-head h2::after {
  content: ""; display: block; width: 48px; height: 3px; margin-top: 16px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 40%, var(--ink) 40% 100%);
}
/* 2つの柱：ラベルを色つきの小さなピルに */
.home .pillar .tag { justify-self: start; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; }
.home .pillar.aws .tag { background: #e3e6ea; color: var(--ink-2); }
.home .pillar.ai .tag { background: #fbe1de; color: var(--red); }
.home .pillar .more { color: var(--ink); }
.home .pillar.ai .more { color: var(--red); }
/* 提供サービス：分類ごとに、カードの上辺に色の線（インフラ系＝墨、アプリ系＝赤） */
.home .g-infra .svc { box-shadow: inset 0 3px 0 var(--ink-2); }
.home .g-app .svc { box-shadow: inset 0 3px 0 var(--red); }
.home .g-app .svc-grid { background: linear-gradient(180deg, #fdf5f4 0, #ffffff 120px); }
.home .extra { box-shadow: inset 0 3px 0 #9aa0a9; }
/* 代表メッセージ：一言に赤い縦線と、大きな引用符 */
.home .message-teaser blockquote { position: relative; padding-left: 22px; border-left: 3px solid var(--red); }
.home .message-teaser blockquote::before { display: none;
  content: "“"; position: absolute; left: -6px; top: -54px; font-family: var(--serif); font-size: 80px; line-height: 1; color: rgb(216 38 28 / .18);
}
/* 実績欄：4つを淡い面のカードに。「AI」は淡い赤 */
.home .facts div { background: #f5f6f8; border-radius: 14px; padding: 18px 20px 20px; border-top: 0; }
.home .facts .hl { background: #fdf0ee; border-top: 0; box-shadow: inset 0 3px 0 var(--red); }
.home .facts strong { font-size: 34px; }
/* お問い合わせ欄：見出しの左に赤い縦線、電話番号に小さな赤い印 */
.home .cta-band h2 { padding-left: 20px; border-left: 4px solid var(--red); }
.home .cta-band .tel { padding-left: 24px; }
.home .cta-band .tel::before { content: "TEL"; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--red); margin-right: 10px; vertical-align: middle; }
@media (max-width: 860px) {
  .home .facts strong { font-size: 28px; }
  .home .message-teaser blockquote::before { display: none; font-size: 60px; top: -40px; }
}

/* ==========================================================
   企業情報ページ：TOPと同じルール（淡い赤・白・淡いグレー＋要所の赤）でアクセントを
   ========================================================== */
/* 左の見出し（会社概要・代表メッセージ・経営理念）の下に、赤と墨の2色ライン */
.about .two-col > h2::after, .about .msg-side > h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 40%, var(--ink) 40% 100%);
}
/* 会社概要：表の上辺を2色の線に、項目名の列を淡いグレーの面に */
.about #outline .table { border-top: 0; position: relative; border-radius: 4px; }
.about #outline .table::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--red) 0 120px, var(--ink) 120px 100%);
}
.about #outline .table > dt { background: #f5f6f8; padding-left: 16px; color: #4e5560; font-weight: 700; font-size: 14px; }
.about #outline .table > dd { padding-left: 24px; }
.about #outline .table > dt:first-of-type + dd { font-weight: 700; }
/* 事業内容の3分類：インフラ系＝墨、アプリ系＝赤、その他＝グレー（TOPの提供サービスと同じ） */
.about .table .biz-list dt.b-infra::before { background: var(--ink); }
.about .table .biz-list dt.b-app::before { background: var(--red); }
.about .table .biz-list dt.b-other::before { background: #9aa0a9; }
/* 代表メッセージ：一言に赤い縦線 */
.about .ab-lead { padding-left: 20px; border-left: 3px solid var(--red); }
/* 経営理念：3枚を 淡い赤・淡いグレー・白（赤い枠）に。墨の塗りはやめる */
.about .ab-values li:nth-child(1) { background: #fdf0ee; box-shadow: inset 0 3px 0 var(--red); }
.about .ab-values li:nth-child(2) { background: #f1f3f6; box-shadow: inset 0 3px 0 #9aa0a9; }
.about .ab-values li.hl { background: var(--paper); color: var(--ink); border: 1.5px solid var(--red); box-shadow: none; }
.about .ab-values li.hl b { color: var(--red); }
.about .ab-values li.hl span { color: var(--steel); }
/* お問い合わせ欄：TOPと同じ、明るいグレーの面・赤い縦線・白地のボタン */
.about .cta-band {
  background: radial-gradient(ellipse 50% 90% at 92% 10%, rgb(216 38 28 / .08), transparent 70%), linear-gradient(160deg, #f7f8fa 0%, #eceff3 100%);
  color: var(--ink); border-radius: 56px 56px 0 0;
}
.about .cta-band h2 { padding-left: 20px; border-left: 4px solid var(--red); }
.about .cta-band p, .about .cta-band .tel small { color: var(--steel); }
.about .cta-band .tel { color: var(--ink); padding-left: 24px; }
.about .cta-band .tel::before { content: "TEL"; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--red); margin-right: 10px; vertical-align: middle; }
.about .cta-band .btn.light { background: var(--paper); color: var(--ink); border-color: var(--ink); border-radius: 999px; }
.about .cta-band .btn.light:hover { background: var(--ink); color: var(--paper); }
.about .cta-band + .site-footer { border-top: 0; }
@media (max-width: 860px) {
  .about .cta-band { border-radius: 32px 32px 0 0; }
  .about #outline .table > dt { padding: 12px 14px 4px; }
  .about #outline .table > dd { padding-left: 14px; }
}

/* ==========================================================
   サイト全体の統一（全ページ共通）
   色：白・淡いグレーが基調／墨は文字と要所／赤はアクセントだけ
   形：角丸と丸いボタンにそろえる／見出しの下に赤と墨の2色ライン
   ========================================================== */
:root { --line: #e2e5e9; --tint-red: #fdf0ee; --tint-gray: #f1f3f6; }

/* 文字：本文を少し読みやすく、見出しの字間をそろえる */
body { letter-spacing: .02em; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: .04em; }
.page-hero p { font-size: 15.5px; color: #4e5560; }
.section-head p { font-size: 15.5px; color: #4e5560; }
.breadcrumb { font-size: 12.5px; }

/* 見出しの下の2色ライン（各ページの見出し・左見出し・規程の見出し） */
.section-head h2::after, .two-col > h2::after, .msg-side > h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 40%, var(--ink) 40% 100%);
}
.policy h2 { border-bottom: 0; position: relative; }
.policy h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--red) 0 64px, var(--line) 64px 100%); }

/* ボタン・ラベル：すべて丸い形に。主ボタンは墨、ほかは枠線 */
.btn { border-radius: 999px; padding-inline: 30px; }
.nav .nav-cta { border-radius: 999px; padding-inline: 22px; }
.nav .nav-cta[aria-current="page"] { background: var(--ink); }
.nav-toggle { border-radius: 999px; }
.chips li, .svc .out li, .extra li, .svc .flag, .flag, .paid { border-radius: 999px; }
.group-nav a { border-radius: 999px; border-width: 1px; border-color: #c9ced5; padding: 9px 22px; }
.group-nav a:hover { background: var(--ink); border-color: var(--ink); }
.policy .toc a { border-radius: 999px; padding: 7px 18px; border-color: var(--line); }

/* 面：グレーの面とカード類は角丸に */
.section.mist { border-radius: 56px; margin-inline: clamp(0px, 1.5vw, 20px); }
.service-detail.feature { border-radius: 24px; }
.form { border-radius: 24px; }
.field input, .field select, .field textarea { border-radius: 10px; }
.form-sent { border-radius: 20px; }

/* お問い合わせの帯（全ページ）：明るいグレーの面、赤い縦線、白地のボタン */
.cta-band {
  background: radial-gradient(ellipse 50% 90% at 92% 10%, rgb(216 38 28 / .08), transparent 70%), linear-gradient(160deg, #f7f8fa 0%, #eceff3 100%);
  color: var(--ink); border-radius: 56px 56px 0 0; padding-block: 76px;
}
.cta-band h2 { padding-left: 20px; border-left: 4px solid var(--red); }
.cta-band p, .cta-band .tel small { color: var(--steel); }
.cta-band .btn.light { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.cta-band .btn.light:hover { background: var(--ink); color: var(--paper); }
.cta-band + .site-footer { border-top: 0; }

/* ---------- 事業内容 ---------- */
/* 工程の矢印：黒の塗り → 淡いグレー。最後の「運用保守」だけ墨 */
.flow-steps li { background: #e9ecf0; color: var(--ink); }
.flow-steps li span { color: var(--red); font-weight: 700; }
.flow-steps li:last-child { background: var(--ink-2); color: var(--paper); }
.flow-steps li:last-child span { color: #ff8a80; }
.flow-bars div { border-radius: 10px; }
.bar-consult { border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.bar-ai { background: var(--tint-gray); color: var(--ink); border: 1px solid var(--line); }
/* AI駆動開発の囲み：赤い「全サービス共通」を、赤い枠線のピルに */
.flag-common { background: var(--paper); color: var(--red); border: 1px solid var(--red); border-radius: 999px; }
.service-detail.feature { background: linear-gradient(160deg, #fdf3f2 0%, #f3f4f6 70%); }
/* 分類の大きな番号：インフラ系＝墨、アプリ系＝赤、その他＝グレー（TOPと同じ） */
#infra .no { color: var(--ink); }
#app .no { color: var(--red); }
#other .no { color: #9aa0a9; }
.svc-group-head + .service-detail { border-top: 1px solid var(--line); }
.service-detail { border-top-color: var(--line); }

/* ---------- 採用情報 ---------- */
.rc-btn { background: var(--ink); border-color: var(--ink); }
.rc-btn:hover { background: var(--red); border-color: var(--red); }
.rc-why article:nth-child(2) { background: linear-gradient(170deg, #fdf1ef 0%, #f6f2f2 100%); }

/* ---------- お問い合わせ ---------- */
.contact-card { border-top: 0; position: relative; padding-top: 18px; }
.contact-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--red) 0 40px, var(--ink) 40px 100%); }
.form { background: var(--tint-gray); }
.field input, .field select, .field textarea { border-color: #d9dce1; }
.form button { border-radius: 999px; }

@media (max-width: 860px) {
  .section.mist { border-radius: 32px; margin-inline: 0; }
  .cta-band { border-radius: 32px 32px 0 0; padding-block: 56px; }
  .form { border-radius: 20px; }
}

/* ヒーローの左右のバランス：左の文字のまとまりを、右のアニメ（上の「STEP」から方眼の下端まで）と同じ高さにそろえる */
@media (min-width: 861px) {
  .home .hero > .wrap:first-of-type { align-items: start; }
  .home .hero-copy { padding-top: 22px; }
  .home .hero h1 { line-height: 1.62; margin-top: 30px; }
  .home .hero .sub { margin-top: 32px; line-height: 2; }
  .home .hero .actions { margin-top: 48px; }
}

/* 中くらいの画面ではアニメが小さくなるため、左の余白も少し詰めてそろえる */
@media (min-width: 861px) and (max-width: 1239px) {
  .home .hero-copy { padding-top: 12px; }
  .home .hero h1 { margin-top: 22px; }
  .home .hero .sub { margin-top: 22px; line-height: 1.85; }
  .home .hero .actions { margin-top: 32px; }
}

/* AI駆動開発ページへの案内（事業内容の工程図の下・TOP） */
a.bar-ai { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; text-decoration: none; transition: border-color .2s; padding: 10px 16px; border-radius: 10px; background: var(--tint-red, #fdf0ee); border: 1px solid #f3d4d0; color: var(--ink); }
a.bar-ai span { color: var(--red); font-weight: 700; white-space: nowrap; }
a.bar-ai:hover { border-color: var(--red); }
.ai-more { margin-top: 28px; text-align: right; }
/* AI駆動開発ページ：工程ごとの活用カードのラベルは英字のため字間を広めに */
.rc-why .no { letter-spacing: .14em; }

/* TOPの代表メッセージ：スマホでは簡潔な1段落だけを表示 */
.message-teaser .sp-only { display: none; }
@media (max-width: 860px) {
  .message-teaser .pc-only { display: none; }
  .message-teaser .sp-only { display: block; margin-top: 0; }
}
