/* ═══════════════════════════════════════════════
   MORIMORIDA Inc. — ai-development.css
   AI駆動開発サービス詳細ページ専用。
   共通の .section / .wrap / .btn / .faq / .plan は style.css を使う。
   ここでは「工程図」「漏斗図」など、このページにしかない図だけを定義する。
═══════════════════════════════════════════════ */

/* ─── ヒーロー ─── */
.aidev-hero {
  padding: calc(var(--nav-h) + 76px) 0 84px;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.aidev-hero__grid {
  display: grid;
  /* 見出しの1行(「人がさわって確かめてから」=12文字)が折り返さない幅を左に確保する */
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 52px;
  align-items: center;
}
.aidev-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  margin-bottom: 20px;
}
.aidev-hero__title {
  /* 上限は「左カラム幅 ÷ 12文字」に収まる値。これを超えると日本語の行が割れる */
  font-size: clamp(28px, 3.9vw, 48px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 26px;
}
.aidev-hero__title em { font-style: normal; color: var(--accent); }
.aidev-hero__lead {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 2.05;
  color: var(--ink-sub);
  margin-bottom: 28px;
  max-width: 40em;
}
.aidev-hero__lead b { color: var(--navy); font-weight: 700; }

/* ヒーロー直下の一行バッジ。差別化を最初の画面で言い切る */
.aidev-hero__pledge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy);
}
.aidev-hero__pledge svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

.aidev-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.aidev-hero__note { font-size: 13px; line-height: 1.8; color: var(--ink-dim); }

.aidev-hero__visual { margin: 0; }

/* ─── ヒーローの図 ───
   文字が翻訳で伸びても崩れないよう、SVGではなくHTMLで組む。 */
.aidev-fig {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-lg);
}
.aidev-fig__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.aidev-fig__side { min-width: 0; }
.aidev-fig__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-bottom: 9px;
}
.aidev-fig__card {
  border-radius: 10px;
  padding: 16px 15px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  margin-bottom: 13px;
}
.aidev-fig__card i { display: block; height: 6px; border-radius: 3px; }
.aidev-fig__card--code { background: var(--navy); }
.aidev-fig__card--code i { background: #3d4d64; }
.aidev-fig__card--code i.is-accent { background: var(--accent); }
.aidev-fig__card--ui { background: #fff; border: 2px solid var(--line); }
.aidev-fig__card--ui i { background: var(--line); }
.aidev-fig__btn {
  display: block;
  width: 58%;
  height: 22px;
  border-radius: 11px;
  background: var(--accent-soft);
  margin-top: 2px;
}
.aidev-fig__finger {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(214, 58, 31, 0.16);
}
.aidev-fig__side b {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--navy);
  font-weight: 700;
}
.aidev-fig__arrow { width: 34px; height: 20px; color: var(--accent); margin-top: 62px; flex: none; }
.aidev-fig__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 700;
  color: var(--navy);
}
.aidev-fig__note svg { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 2px; }

/* ─── ページ内ナビ(追従) ─── */
.aidev-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.aidev-subnav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.aidev-subnav__inner::-webkit-scrollbar { display: none; }
.aidev-subnav a {
  flex: none;
  padding: 15px 14px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-sub);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.aidev-subnav a:hover { color: var(--accent-ink); }
.aidev-subnav a.is-active { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ─── 共通の見出しブロック ─── */
.aidev-head { max-width: 780px; margin-bottom: 52px; }
.aidev-head .section__title { margin-bottom: 20px; }
.aidev-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ─── 悩みカード ─── */
.aidev-worry__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.aidev-worry__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.aidev-worry__card i {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.aidev-worry__card p { font-size: 16px; line-height: 1.85; font-weight: 700; color: var(--navy); }
.aidev-worry__close {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 2;
  color: var(--ink-sub);
  max-width: 46em;
}
.aidev-worry__close b { color: var(--navy); }

/* ─── 8割 / 2割 の帯 ─── */
.aidev-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 8px 0 22px;
  box-shadow: var(--shadow);
}
.aidev-split > div { padding: 26px 24px; min-height: 132px; }
.aidev-split__ai { background: #fff; }
.aidev-split__human { background: var(--accent); color: #fff; }
.aidev-split span {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.aidev-split__ai span { color: var(--ink-dim); }
.aidev-split b { display: block; font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
.aidev-split__ai b { color: var(--navy); }
.aidev-split small { display: block; font-size: 13px; line-height: 1.75; }
.aidev-split__ai small { color: var(--ink-sub); }
.aidev-split__human small { color: rgba(255, 255, 255, 0.92); }

/* ─── 出典つきの引用 ─── */
.aidev-cites { display: grid; gap: 14px; margin-top: 34px; }
.aidev-cites li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aidev-cites p { font-size: 15px; line-height: 1.85; color: var(--navy); }
.aidev-cites cite {
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
  text-align: right;
  white-space: nowrap;
}
.aidev-cites cite a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ─── 3つの約束 ─── */
.aidev-promise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 44px;
}
.aidev-promise__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.aidev-promise__card--key { border-color: var(--accent); border-top: 4px solid var(--accent); }
.aidev-promise__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 16px;
}
.aidev-promise__card h3 { font-size: 19px; line-height: 1.6; color: var(--navy); margin-bottom: 14px; }
.aidev-promise__card p { font-size: 14.5px; line-height: 1.95; color: var(--ink-sub); }
.aidev-promise__pull {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.95;
  font-weight: 700;
  color: var(--navy);
  max-width: 40em;
}

/* ─── 【核心】現場テスト ─── */
.aidev-test { background: var(--navy); color: #fff; }
.aidev-test .section__label span,
.aidev-test .section__label i { color: rgba(255, 255, 255, 0.6); }
.aidev-test .section__title { color: #fff; }
.aidev-test .section__title em { color: #ff8f74; font-style: normal; }
.aidev-test .section__lead { color: rgba(255, 255, 255, 0.78); }
.aidev-test__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.aidev-test__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.aidev-test__card h3 {
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.aidev-test__card h3 i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  color: #ff8f74;
  flex: none;
}
.aidev-test__card p { font-size: 14.5px; line-height: 1.95; color: rgba(255, 255, 255, 0.78); }
.aidev-test__card p + p { margin-top: 12px; }
.aidev-test__card ul { margin-top: 14px; display: grid; gap: 9px; }
.aidev-test__card li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}
.aidev-test__card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 11px;
  height: 6px;
  border-left: 2px solid #ff8f74;
  border-bottom: 2px solid #ff8f74;
  transform: rotate(-45deg);
}
.aidev-test__src { font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, 0.5); margin-top: 14px; }
.aidev-test__src a { color: rgba(255, 255, 255, 0.72); text-decoration: underline; text-underline-offset: 3px; }

/* 絞り込みの漏斗 */
.aidev-funnel { display: grid; gap: 10px; margin-top: 18px; }
.aidev-funnel div {
  padding: 15px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}
.aidev-funnel div b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 3px; }
.aidev-funnel div:nth-child(2) { width: 88%; }
.aidev-funnel div:nth-child(3) { width: 74%; background: rgba(255, 143, 116, 0.16); border-color: rgba(255, 143, 116, 0.4); }

/* ─── 2レーン工程図 ─── */
.aidev-lanes { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.aidev-lanes__inner { min-width: 880px; display: grid; gap: 12px; }
.aidev-lanes__row { display: grid; grid-template-columns: 128px repeat(5, 1fr); gap: 10px; align-items: stretch; }
.aidev-lanes__label {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-sub);
  padding-right: 8px;
}
.aidev-lanes__step {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.aidev-lanes__cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 15px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-sub);
}
.aidev-lanes__cell--key {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}
.aidev-lanes__cell--key b { display: block; font-size: 14px; margin-bottom: 5px; }
.aidev-lanes__hint { font-size: 12.5px; color: var(--ink-dim); margin-top: 14px; }

/* ─── 日程の階段 ─── */
.aidev-steps { display: grid; gap: 0; margin-top: 12px; counter-reset: aidevstep; }
.aidev-steps li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.aidev-steps li:last-child { border-bottom: 1px solid var(--line); }
.aidev-steps__when {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  padding-top: 3px;
}
.aidev-steps h3 { font-size: 17px; line-height: 1.65; color: var(--navy); margin-bottom: 8px; }
.aidev-steps p { font-size: 14.5px; line-height: 1.95; color: var(--ink-sub); }
.aidev-steps li.is-key { background: var(--bg-tint); padding-left: 22px; padding-right: 22px; border-radius: var(--radius); }
.aidev-steps li.is-key h3 { color: var(--accent-ink); }

/* ─── 対応範囲 ─── */
.aidev-scope__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(275px, 100%), 1fr)); gap: 18px; }
.aidev-scope__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.aidev-scope__card h3 { font-size: 17px; line-height: 1.6; color: var(--navy); margin-bottom: 10px; }
.aidev-scope__card p { font-size: 14px; line-height: 1.9; color: var(--ink-sub); }

/* ─── 使う道具 ─── */
.aidev-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.aidev-tools li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.aidev-tools b { display: block; font-family: var(--font-mono); font-size: 14.5px; color: var(--navy); margin-bottom: 7px; }
.aidev-tools span { font-size: 13.5px; line-height: 1.85; color: var(--ink-sub); }

/* ─── 納品物・情報の取り扱い(2カラム) ─── */
.aidev-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.aidev-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.aidev-panel h3 { font-size: 20px; line-height: 1.55; color: var(--navy); margin-bottom: 10px; }
.aidev-panel > p { font-size: 14px; line-height: 1.9; color: var(--ink-sub); margin-bottom: 20px; }
.aidev-panel ul { display: grid; gap: 12px; }
.aidev-panel li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-sub);
}
.aidev-panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.aidev-panel li b { color: var(--navy); }

/* ─── 料金の補足 ─── */
.aidev-plan-notes {
  margin-top: 34px;
  display: grid;
  gap: 12px;
  padding: 30px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aidev-plan-notes li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-sub);
}
.aidev-plan-notes li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.aidev-plan-notes li b { color: var(--navy); }

/* ─── 正直な自己紹介 ─── */
.aidev-honest {
  background: var(--bg-tint);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 46px 44px;
}
.aidev-honest h2 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.55; color: var(--navy); margin-bottom: 20px; }
.aidev-honest h2 em { font-style: normal; color: var(--accent); }
.aidev-honest p { font-size: 15px; line-height: 2.05; color: var(--ink-sub); max-width: 44em; }
.aidev-honest p + p { margin-top: 14px; }
.aidev-honest b { color: var(--navy); }

/* ─── 関連リンク ─── */
.aidev-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.aidev-related a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.aidev-related a:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.aidev-related b { display: block; font-size: 16px; line-height: 1.55; color: var(--navy); margin-bottom: 8px; }
.aidev-related span { font-size: 13.5px; line-height: 1.85; color: var(--ink-sub); }

/* ═══ レスポンシブ ═══ */
@media (max-width: 1000px) {
  .aidev-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aidev-hero { padding: calc(var(--nav-h) + 52px) 0 64px; }
  .aidev-split { grid-template-columns: 3fr 2fr; }
}

@media (max-width: 760px) {
  .aidev-subnav { top: 0; }
  .aidev-head { margin-bottom: 38px; }
  .aidev-cites li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .aidev-cites cite { text-align: left; white-space: normal; }
  .aidev-split { grid-template-columns: minmax(0, 1fr); }
  .aidev-split > div { min-height: 0; }
  .aidev-steps li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .aidev-steps li.is-key { padding: 22px; }
  .aidev-panel { padding: 30px 24px; }
  .aidev-honest { padding: 34px 26px; }
  .aidev-funnel div:nth-child(2),
  .aidev-funnel div:nth-child(3) { width: 100%; }
}

@media (max-width: 560px) {
  .aidev-fig { padding: 22px 18px 20px; }
  .aidev-fig__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .aidev-fig__arrow { margin: 0 auto; transform: rotate(90deg); }
  .aidev-hero__pledge { align-items: flex-start; padding: 14px 16px; font-size: 14px; }
  .aidev-hero__actions .btn { width: 100%; justify-content: center; }
  .aidev-worry__card { padding: 24px 20px; }
  .aidev-promise__card { padding: 28px 22px; }
  .aidev-test__card { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .aidev-related a { transition: none; }
  .aidev-related a:hover { transform: none; }
}
