/* =========================================================
   Formula AI サービスサイト 共有スタイル v4
   方針: warp.dev の実サイトを忠実に写す（ライト×精密）
   - 極細・超大型のディスプレイ書体（Noto Sans JP 300）
   - ほぼモノクロ＋パステル1色（製品パネル）
   - ボタン・ラベル・ナビは等幅（JetBrains Mono）
   - 黒い角ばったボタン／下線テキストリンク／コードチップ
   ========================================================= */

:root {
  /* カラートークン */
  --ink: #0b0b0c;
  --text: #3c3f45;
  --muted: #6d7178;
  --faint: #9a9ea6;
  --line: #e5e5e8;
  --line-strong: #cfd0d5;
  --paper: #fafafa;          /* ページ背景（Warpのオフホワイト） */
  --paper-2: #f1f1f4;        /* コードチップ・交互面 */
  --panel: #dce4f5;          /* 製品パネル（Formulaブルー系の淡色） */
  --panel-soft: #eaf0fa;
  --accent: #0040d5;         /* リンク等、控えめに使用 */
  --success: #1e9e58;
  --danger: #c70036;

  /* タイポグラフィ */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* レイアウト */
  --container: 1200px;
  --radius-panel: 18px;
  --radius-window: 10px;
  --radius-btn: 5px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- リセット・基本 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* モバイル定番: タップ時の水色フラッシュ抑制・ダブルタップズーム誤発火防止（2026-07-11） */
a, button, .btn, .nav-toggle, summary, label, input { -webkit-tap-highlight-color: transparent; }
a, button, .btn, .nav-toggle, summary { touch-action: manipulation; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

img, svg { max-width: 100%; display: block; }
img { height: auto; } /* width/height属性とmax-widthの併用時の歪み防止（CLS対策で属性を必須化・2026-07-10） */

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

ul, ol { padding-left: 1.4em; }

::selection { background: rgba(0, 64, 213, 0.12); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  font-size: 13px;
}
.skip-link:focus { left: 0; }
.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  flex-wrap: nowrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 24px; height: 24px; }
.brand:hover { color: inherit; }

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  min-width: 0;
}

.global-nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: 10px; }

.global-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  text-decoration: none;
}
.global-nav a:hover { color: var(--ink); }
.global-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.header-cta { display: flex; gap: 18px; margin-left: auto; align-items: center; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-lines {
  width: 20px;
  height: 16px;
  position: relative;
  display: block;
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.18s var(--ease), top 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 7px; }
.nav-toggle-lines span:nth-child(3) { top: 14px; }

.site-header.is-menu-open .nav-toggle-lines span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.site-header.is-menu-open .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .nav-toggle-lines span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* ---------- ボタン（Warp流: 黒・角ばり・等幅） ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.15s var(--ease);
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: #2a2a2e; border-color: #2a2a2e; color: #fff; }

/* セカンダリ＝下線テキストリンク（Warpの Contact Sales 風） */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  padding-left: 4px !important;
  padding-right: 4px !important;
}
.btn-outline:hover { color: var(--accent); }

.btn-sm { font-size: 12px; padding: 10px 18px; }
.btn-lg { font-size: 13.5px; padding: 14px 26px; }
.btn-block { display: block; width: 100%; }

/* ---------- セクション共通 ---------- */
.section { padding: 104px 0; }
.section-gray, .section-tint { background: var(--paper); }

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.section-title {
  font-weight: 300;
  font-size: 46px;
  color: var(--ink);
  line-height: 1.42;
  letter-spacing: 0.005em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.section-lead {
  font-size: 15.5px;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 52px;
}

/* ---------- ヒーロー（Warp流: 左に巨大見出し／右上に説明） ---------- */
.hero { background: var(--paper); padding: 88px 0 0; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}
.hero-kicker img {
  width: 26px;
  height: 26px;
  display: inline-block;
}
.hero-kicker em {
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.hero h1 {
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 57px);
  color: var(--ink);
  line-height: 1.32;
  letter-spacing: 0.002em;
  text-wrap: balance;
}

.hero-sub {
  font-size: 15px;
  color: var(--text);
  max-width: 780px;
  margin-top: 26px;
}

.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 38px 0 64px; }

/* 製品パネル（ラベンダーの大きな面） */
.hero-shot { padding-bottom: 96px; }

.product-panel {
  background: transparent;
  padding: 0;
}

.hero-shot .shot-frame img {
  width: 100%;
  aspect-ratio: 2.55 / 1;
  min-height: 220px;
  object-fit: cover;
  object-position: top left;
}

.product-panel .shot-frame,
.hero-shot .shot-frame {
  background: #fff;
  border: 0;
  border-radius: var(--radius-window);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 16, 50, 0.18);
}

.hero-shot .note { text-align: left; }

/* ウィンドウのタイトルバー（mac風・ライト） */
.shot-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.shot-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }

/* ---------- 機能セクション（左固定ナビ＋パネル縦積み・Warp流） ---------- */
.feature-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.feature-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-decoration: none;
  padding: 11px 16px;
  border-radius: var(--radius-btn);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.feature-nav a:hover { color: var(--ink); background: var(--paper-2); }
.feature-nav a.active { background: var(--ink); color: #fff; }

.feature-stream { display: flex; flex-direction: column; gap: 96px; }

.feature-block { scroll-margin-top: 96px; }

.feature-visual {
  background: transparent;
  padding: 0;
  margin-bottom: 36px;
}

.feature-visual .shot-frame {
  background: #fff;
  border: 0;
  border-radius: var(--radius-window);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(20, 16, 50, 0.16);
}

.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.feature-head h3 {
  font-weight: 300;
  font-size: 30px;
  color: var(--ink);
  line-height: 1.5;
  max-width: 560px;
  text-wrap: balance;
}

.feature-block p { max-width: 560px; font-size: 14.5px; margin-top: 14px; }
.feature-block .note { max-width: 560px; }

/* ---------- スクリーンショット / プレースホルダ ---------- */
.shot { margin: 0; min-width: 0; max-width: 100%; }

.shot-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-window);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
  background: #fff;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  margin: 10px;
}
.shot-placeholder strong { color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; }

.shot-tall .shot-placeholder { min-height: 320px; }
.shot-short .shot-placeholder { min-height: 150px; }

.note {
  font-size: 12px;
  color: var(--faint);
  margin-top: 12px;
  line-height: 1.8;
}

/* ---------- カード ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 28px;
}

.card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.6;
}

.card p { font-size: 14px; color: var(--text); }

.card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--ink);
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ontology-card {
  min-height: 100%;
  border-radius: 10px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.security-card {
  grid-column: span 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px 26px;
  min-height: 245px;
}

.security-card:nth-child(n+5) { grid-column: span 4; }

.security-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.security-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.6;
}

.security-card p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
}

.card-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.card-num::before { content: "0"; }

kbd, .file-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 1px 7px 2px;
  text-transform: lowercase;
}

/* ---------- パイプライン工程 ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  counter-reset: step;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.pipeline-step { padding: 26px 20px 28px; border-left: 1px solid var(--line); }
.pipeline-step:first-child { border-left: 0; }

.pipeline-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.pipeline-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--ink);
  stroke: currentColor;
  stroke-width: 1.45;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pipeline-step h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.6;
}
.pipeline-step p { font-size: 12px; color: var(--muted); line-height: 1.75; }

/* ---------- アイコングリッド（成果物） ---------- */
.deliverable-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.deliverable {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.deliverable-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--success);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 6px;
  margin-top: 8px;
}

/* ---------- テーブル ---------- */
.table-wrap { overflow-x: auto; }

table.spec, table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

table.spec th, table.spec td,
table.compare th, table.compare td {
  border: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

table.spec th {
  background: var(--paper-2);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  width: 172px;
}

table.compare thead th {
  background: var(--paper-2);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

table.compare tbody th {
  background: var(--paper-2);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

table.compare td { text-align: left; font-size: 13.5px; }

table.compare .col-formula {
  background: #fff;
  font-weight: 500;
}

/* ---------- ステップ（導入の流れ） ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: flow;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.step { padding: 26px 22px 30px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }

.step::before {
  counter-increment: flow;
  content: "STEP 0" counter(flow);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.step h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 12.5px; color: var(--muted); line-height: 1.85; }

/* ---------- 中間CTA・最終CTA ---------- */
.cta-band {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band p { font-size: 16px; font-weight: 700; color: var(--ink); }

.final-cta { text-align: center; padding-bottom: 128px; }
.final-cta .section-title { margin-bottom: 40px; }
.final-cta-buttons { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ---------- ニュース ---------- */
.news-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  margin-bottom: 44px;
}

.news-head .section-title {
  margin-bottom: 0;
}

.news-head p {
  max-width: 560px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

.news-list {
  border-top: 1px solid var(--line-strong);
}

.news-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.news-item-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  margin: 0 0 8px;
}

.news-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.news-meta time {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.news-meta span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.5;
  background: var(--paper);
}

.news-body h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-body p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
  max-width: 740px;
}

/* ---------- フォーム ---------- */
.btn[disabled] {
  background: var(--paper-2);
  border-color: var(--line-strong);
  color: var(--faint);
  cursor: not-allowed;
}
.btn[disabled]:active { transform: none; }

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 44px 42px;
}


/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 72px 0 40px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-brand img { display: block; flex: none; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-legal a + a { margin-left: 22px; }

/* ---------- ページヒーロー（下層） ---------- */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 76px 0 56px;
}

.page-hero h1 {
  font-weight: 300;
  font-size: 48px;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 20px;
  text-wrap: balance;
}

.page-hero p { font-size: 15.5px; color: var(--text); max-width: 760px; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- ユーティリティ ---------- */
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; }

.lead-strong {
  font-weight: 300;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.8;
}

.pillar-quote {
  border-left: 2px solid var(--ink);
  padding-left: 18px;
  color: var(--text);
  font-size: 14.5px;
}

/* ---------- スクロール表示 ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { padding-top: 0; justify-self: start; }
  .feature-layout { grid-template-columns: 1fr; gap: 32px; }
  .feature-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .security-card,
  .security-card:nth-child(n+5) { grid-column: auto; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline-step:nth-child(4) { border-left: 0; }
  .pipeline-step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section-title { font-size: 32px; }
  .news-head,
  .news-item {
    grid-template-columns: 1fr;
  }
  .news-item {
    gap: 16px;
  }
}

@media (max-width: 960px) { /* ハンバーガー境界。ドロップダウン非表示境界・site.jsの960px判定と揃える（2026-07-11） */
  .global-nav .nav-dd { display: block; } /* モバイル縦積みで「ソリューション」行を他の行と同じ全幅にする */
  .header-inner { gap: 12px; min-height: 56px; position: relative; padding-top: 7px; padding-bottom: 7px; }
  .brand-name { font-size: 17px; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { display: inline-flex; }
  .site-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    max-height: calc(100vh - 86px); /* dvh非対応ブラウザ用フォールバック */
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 22px 60px rgba(24, 27, 34, 0.14);
    -webkit-overflow-scrolling: touch;
  }
  .site-header.is-menu-open .site-menu { display: flex; }
  .global-nav {
    width: 100%;
    margin-left: 0;
    gap: 0;
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .global-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 10px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .global-nav a[aria-current="page"] {
    background: var(--paper);
    padding-left: 12px;
    border-radius: 6px;
  }
  .header-cta {
    width: 100%;
    margin-left: 0;
    padding-top: 12px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .header-cta .btn-sm { width: 100%; font-size: 12px; padding: 11px 12px; }
  .header-cta .btn-outline { display: block; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline-step { border-left: 1px solid var(--line); }
  .pipeline-step:nth-child(odd) { border-left: 0; }
  .pipeline-step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 0; }
  .hero h1 { font-size: 30px; }
  .form-panel { padding: 30px 22px; }
  .news-head { margin-bottom: 32px; }
  .news-item { padding: 24px 0; }
  .news-item-feature { padding: 24px; }
  .news-body h3 { font-size: 17px; }
}

/* ---------- ヒーロー二重ウィンドウ ---------- */
.product-panel { position: relative; }
.hero-shot-secondary {
  position: absolute;
  right: -3%;
  bottom: -10%;
  width: 44%;
  filter: drop-shadow(0 18px 40px rgba(20, 16, 50, 0.25));
}
.hero-shot { padding-bottom: 120px; }
@media (max-width: 640px) {
  .hero-shot-secondary { display: none; }
  .hero-shot { padding-bottom: 56px; }
}

/* ---------- オントロジー可視化 ---------- */
.ontology-canvas {
  background: #fff;
  border-radius: var(--radius-window);
  box-shadow: 0 20px 48px rgba(20, 16, 50, 0.16);
  padding: clamp(12px, 2vw, 28px);
  overflow-x: auto;
}
.ontology-canvas svg { min-width: 760px; width: 100%; height: auto; display: block; }

.oedge {
  fill: none;
  stroke: #d3dcef;
  stroke-width: 1.3;
  transition: stroke 0.2s var(--ease), stroke-width 0.2s var(--ease), opacity 0.2s var(--ease);
}
.oedge.flow { stroke-dasharray: 4 7; animation: odash 4s linear infinite; }
@keyframes odash { to { stroke-dashoffset: -66; } }

.onode { cursor: default; }
.onode rect {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: stroke 0.2s var(--ease), fill 0.2s var(--ease);
}
.onode text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  fill: var(--text);
  text-anchor: middle;
  letter-spacing: 0.02em;
}
.onode-ssot rect { stroke: #7d9be8; stroke-width: 1.4; }

.olabel {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--faint);
  text-anchor: middle;
  letter-spacing: 0.16em;
}

/* ホバー時: 関係するノード・エッジだけ残す */
svg.o-focus .oedge { opacity: 0.18; }
svg.o-focus .onode { opacity: 0.3; }
svg.o-focus .oedge.lit { opacity: 1; stroke: #0040d5; stroke-width: 1.8; animation: none; }
svg.o-focus .onode.lit { opacity: 1; }
svg.o-focus .onode.lit rect { stroke: #0040d5; }

@media (prefers-reduced-motion: reduce) {
  .oedge.flow { animation: none; }
}

/* ---------- ヒーロー微調整（2026-07-07 FB対応） ---------- */
/* キッカー: ヘッダーと同じ書体に統一（等幅をやめる） */
.hero-kicker {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.02em;
  gap: 10px;
}
.hero-kicker strong { font-weight: 700; color: var(--ink); }
.hero-kicker em { font-style: normal; font-weight: 400; color: var(--muted); }


/* 機能セクションの前置き行 */
.section-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}



/* ---------- オントロジー3Dビジュアル ---------- */
.twin-wrap { position: relative; }
#twin-canvas {
  width: 100%;
  height: 500px;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}
#twin-canvas:active { cursor: grabbing; }

.twin-legend {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  pointer-events: none;
}
.twin-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-impl { background: #3c3f45; }
.dot-src { background: #9a9ea6; }

@media (max-width: 640px) {
  #twin-canvas { height: 340px; }
  .twin-legend { flex-wrap: wrap; gap: 10px; }
}

/* ---------- キッカー強調（案A: サイズ階層／kicker-variants.html参照） ---------- */
.hero-kicker { align-items: baseline; gap: 14px; }
.hero-kicker strong { font-size: 25px; line-height: 1.2; letter-spacing: 0.01em; }
.hero-kicker em { font-size: 14px; }

@media (max-width: 640px) {
  .hero-kicker strong { font-size: 21px; }
}

/* ---------- 対象領域カード（Stack AI型・アイコンの代わりに淡い等幅ナンバー） ---------- */
.domain-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  min-height: 190px;
  padding-bottom: 44px;
}
.domain-card h3 { font-size: 17px; }
.domain-card p { font-size: 13.5px; color: var(--muted); }
.domain-num {
  position: absolute;
  right: 14px;
  bottom: -14px;
  font-family: var(--font-mono);
  font-size: 88px;
  font-weight: 500;
  line-height: 1;
  color: rgba(11, 11, 12, 0.05);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

/* ---------- 成果物チップのアイコン化 ---------- */
.deliverable {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
}
.dicon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.deliverable .deliverable-tag { margin-left: auto; margin-top: 0; }

/* ---------- Deploy Anywhere（Stack AI型・ハーフトーン質感） ---------- */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.deploy-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 14px 22px;
  text-align: center;
  background-color: #fff;
  background-image: radial-gradient(rgba(11, 11, 12, 0.06) 1px, transparent 1px);
  background-size: 7px 7px;
}
.deploy-ico {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(11, 11, 12, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.deploy-ico .dicon { width: 22px; height: 22px; stroke: var(--ink); }
.deploy-ico img { width: 26px; height: 26px; object-fit: contain; }
.deploy-card strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.deploy-card em {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-top: 6px;
}

@media (max-width: 960px) { .deploy-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .deploy-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 比較表 v2（スタイリッシュ化・Formula列を主役に） ---------- */
table.compare { border-collapse: separate; border-spacing: 0; background: transparent; }
table.compare th, table.compare td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
  background: transparent;
}
table.compare thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}
table.compare tbody th {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
}
table.compare td { font-size: 13.5px; color: var(--muted); }

table.compare .col-formula {
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
table.compare thead .col-formula {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  border-radius: 10px 10px 0 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}
.compare-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.compare-brand img {
  width: 18px;
  height: 18px;
}
table.compare tbody tr:last-child .col-formula { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; }
table.compare tbody .col-formula::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* ---------- 工程×役割マトリクス（product.html） ---------- */
table.matrix {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
table.matrix th, table.matrix td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: center;
  font-size: 13px;
}
table.matrix thead th {
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}
table.matrix tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
table.matrix td.m-lead { color: var(--accent); font-weight: 700; }
table.matrix td.m-part { color: var(--text); }
table.matrix td.m-verify { color: var(--success); font-weight: 700; }
table.matrix td.m-none { color: var(--faint); }
.matrix-legend {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ---------- twin v2 ツールチップ ---------- */
.twin-tip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(11, 11, 12, 0.12);
  white-space: nowrap;
}
.twin-tip b { font-weight: 700; }
.twin-tip span {
  color: var(--faint);
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
}

/* ---------- 製品ページの概念図 ---------- */
.harness-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.harness-copy {
  max-width: 520px;
}

@media (max-width: 960px) {
  .harness-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .harness-copy { max-width: 720px; }
  .ssot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- C1レビュー対応 ---------- */
.twin-tip[hidden] { display: none; }
table.compare thead th { background: transparent; }
.link-row a + a { margin-left: 24px; }
.group-heading { font-size: 20px; font-weight: 700; color: var(--ink); }
@media (max-width: 960px) {
  .page-hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  .deliverable-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 30px; }
  .page-hero { padding: 56px 0 40px; }
}

/* ---------- ヒーロー動画 ---------- */
.hero-video { display: block; width: 100%; height: auto; }

/* ---------- C2レビュー対応 ---------- */
table.compare { min-width: 760px; }
table.matrix { min-width: 640px; }
.table-wrap { -webkit-overflow-scrolling: touch; }
.u-seg { display: inline-block; }
.note { color: var(--muted); font-size: 12.5px; }
.hero h1, .page-hero h1, .section-title, .feature-head h3, .group-heading, h3 { word-break: auto-phrase; line-break: strict; }
#process-deliverables { scroll-margin-top: 96px; }
@media (max-width: 640px) {
  .hero-kicker { flex-wrap: wrap; }
  .hero-kicker strong, .hero-kicker em { white-space: nowrap; }
}

/* ---------- C4レビュー対応: モバイル表の行見出し固定とヒント ---------- */
.table-scroll-hint { display: none; }
@media (max-width: 640px) {
  table.matrix { overflow: visible; }
  table.compare tbody th, table.compare thead th:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; }
  table.matrix tbody th { position: sticky; left: 0; background: #fff; z-index: 1; }
  table.matrix thead th:first-child { position: sticky; left: 0; background: var(--paper-2); z-index: 1; }
  .table-scroll-hint { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-bottom: 10px; }
}

/* ---------- 資料表紙（タイポグラフィ表紙・画像が入るまでの正式版） ---------- */
.doc-cover {
  aspect-ratio: 3 / 4;
  max-height: 300px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-cover-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.doc-cover-brand {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.doc-cover strong {
  margin-top: auto;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.doc-cover p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- 2026-07-08 石田さん指摘対応 ---------- */
/* 比較表: ヘッダー列名を中央・上下センターに */
table.compare thead th { text-align: center; vertical-align: middle; }
/* ---------- エージェントカードのアイコン（細線・高級感維持） ---------- */
.agent-icon { display: block; width: 26px; height: 26px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }

/* ---------- 検証ゲート記号（マトリクス行頭で使用・2026-07-10） ---------- */
.skill-gate {
  display: inline-block;
  width: 11px; height: 11px;
  border: 1.6px solid var(--success);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- 工程×スキル マトリクス v2（記号をCSS描画に・2026-07-10） ---------- */
table.matrix tbody th { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
table.matrix tbody th .skill-gate { width: 8px; height: 8px; margin-right: 10px; }
table.matrix tbody td { text-align: center; }
table.matrix tbody tr:hover td, table.matrix tbody tr:hover th { background: #f8f8f9; }
tr.row-verify th, tr.row-verify td { border-top: 1px solid var(--line-strong) !important; }
.mk { display: inline-block; vertical-align: middle; }
.mk-lead { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mk-part { width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid var(--faint); background: #fff; }
.mk-verify { width: 9px; height: 9px; border: 1.6px solid var(--success); transform: rotate(45deg); }
.mk-none { width: 12px; height: 1px; background: var(--line-strong); }
.matrix-legend .mk { margin-right: 6px; }

/* ---------- ソリューション ドロップダウン（H4型・hover展開・2026-07-11） ---------- */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 5px; }
.ndd-caret { display: block; transition: transform 0.18s var(--ease); }
.nav-dd.open .ndd-caret { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  width: 720px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(11, 11, 12, 0.08);
  padding: 18px 18px 12px; display: none; z-index: 80; text-align: left;
}
.nav-dd.open .nav-dd-panel { display: block; }
.nav-dd-panel::before { /* hover移動時の橋（パネルとの隙間で閉じない） */
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.ndd-cols { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0 22px; }
.ndd-div { background: var(--line); }
.ndd-head {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--faint); margin: 2px 8px 8px;
}
.ndd-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 8px; border-radius: 8px; text-decoration: none;
  transition: background-color 0.15s var(--ease);
}
.ndd-item:hover { background: #f1f1f4; color: inherit; }
.ndd-ico {
  flex: none; width: 30px; height: 30px; border: 1px solid var(--line);
  border-radius: 7px; background: #fafafa;
  display: inline-flex; align-items: center; justify-content: center;
}
.ndd-ico svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ndd-title { display: block; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.ndd-desc { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; margin-top: 2px; }
.ndd-foot {
  border-top: 1px solid var(--line); margin-top: 12px; padding: 11px 8px 4px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ndd-foot-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--faint); }
.ndd-case { font-size: 12.5px; color: var(--text); text-decoration: none; }
.ndd-case b { color: var(--ink); font-weight: 700; }
.ndd-case:hover b { color: var(--accent); }
.ndd-all { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); text-decoration: none; }
.ndd-all:hover { color: var(--accent); }
@media (max-width: 960px) {
  .nav-dd-panel { display: none !important; } /* モバイルは通常リンクとしてハブへ */
  .ndd-caret { display: none; }
}

/* ---------- ソリューション切替スイッチャー（P4型・個別ページのヒーロー・2026-07-11） ---------- */
.sol-switch { position: relative; display: inline-block; margin-bottom: 26px; }
.sol-switch-btn {
  display: inline-flex; align-items: stretch; cursor: pointer;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 0; font: inherit; overflow: hidden;
}
.ss-for {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--muted); background: var(--paper-2); padding: 9px 12px;
  border-right: 1px solid var(--line-strong); display: inline-flex; align-items: center;
}
.ss-cur {
  font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 9px 12px;
  display: inline-flex; align-items: center; gap: 7px;
}
.ss-cur svg { transition: transform 0.18s var(--ease); }
.sol-switch.open .ss-cur svg { transform: rotate(180deg); }
.sol-switch-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(11, 11, 12, 0.08); padding: 10px 8px;
  display: none; z-index: 70;
}
.sol-switch.open .sol-switch-panel { display: block; }
.ss-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--faint); margin: 6px 10px 6px; }
.sol-switch-panel a {
  display: block; font-size: 13px; color: var(--text); text-decoration: none;
  padding: 8px 10px; border-radius: 7px;
}
.sol-switch-panel a:hover { background: #f1f1f4; color: var(--ink); }
.sol-switch-panel a.is-current { color: var(--ink); font-weight: 700; background: #fafafa; }
.sol-switch-panel .ss-all { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); }
.ndd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; }

/* ---------- 開閉モーション（emil-design-eng監査対応・2026-07-11） ----------
   方針: 出現のみ160-200msの強いease-out（--ease）で「根元から生える」。
   閉じは即時のまま（応答は素早く・非対称が正）。reduced-motionでは移動を落とし
   フェードのみ残す（ゼロにはしない）。 */
@keyframes panel-in-center { from { opacity: 0; transform: translateX(-50%) scale(0.98); } }
@keyframes panel-in-left { from { opacity: 0; transform: scale(0.98); } }
@keyframes panel-fade { from { opacity: 0; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

.nav-dd.open .nav-dd-panel {
  transform-origin: top center; /* トリガーの根元から */
  animation: panel-in-center 160ms var(--ease);
}
.sol-switch.open .sol-switch-panel {
  transform-origin: top left; /* ボタンの根元から */
  animation: panel-in-left 160ms var(--ease);
}
@media (max-width: 960px) {
  .site-header.is-menu-open .site-menu { animation: menu-in 200ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dd.open .nav-dd-panel,
  .sol-switch.open .sol-switch-panel,
  .site-header.is-menu-open .site-menu { animation: panel-fade 120ms ease-out; }
  .ndd-caret, .ss-cur svg { transition: none; } /* ▾の回転も即時切替に */
}

/* ---------- ソリューション共通部品（P1・2026-07-11） ----------
   新IA（スイッチャー型ハブ・詳細ページ）用の部品群。マークアップ契約:
   アイコン: <svg class="si" aria-hidden="true"><use href="#si-xxx"/></svg>（スプライトは全ページに挿入済み）
   スイッチャー: .sol-switcher > .ssw-idx（.ssw-group見出し＋.ssw-link[href=#sol-NN]）＋ .ssw-panels > .ssw-panel[id=sol-NN]
   JSなし: 全パネルが縦積みで表示される。site.jsが .ssw-ready を付けたときだけ切替表示になる */
.si { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; display: block; }

.sol-switcher { display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start; }
.ssw-idx { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.ssw-group { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: var(--muted); margin: 18px 0 6px 12px; }
.ssw-group:first-child { margin-top: 0; }
.ssw-link { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; line-height: 1.5; }
.ssw-no { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.ssw-link:hover { background: var(--paper-2); color: var(--text); }
.ssw-link.on { background: var(--ink); color: #fff; font-weight: 700; }
.ssw-link.on .ssw-no { color: rgba(255, 255, 255, 0.6); }
.ssw-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 34px 36px 30px; }
.ssw-panel + .ssw-panel { margin-top: 18px; }
.ssw-title { font-weight: 300; font-size: 27px; color: var(--ink); line-height: 1.45; margin-bottom: 8px; text-wrap: balance; }
.ssw-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; max-width: 640px; }
.ssw-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; color: var(--faint); margin: 26px 0 12px; }
.ssw-sub + .ssw-label { margin-top: 0; }
.sol-switcher.ssw-ready .ssw-panel { display: none; margin-top: 0; } /* 切替モードは1枚表示なので兄弟間余白を消す */
.sol-switcher.ssw-ready .ssw-panel.on { display: block; transform-origin: top left; animation: panel-in-left 160ms var(--ease); }

/* アイコン付き行（よくある課題／解き方） */
.qa-rows { display: flex; flex-direction: column; gap: 10px; }
.qa-row { display: flex; align-items: flex-start; gap: 13px; }
.qa-ico { flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.qa-row p { font-size: 13.5px; padding-top: 2px; margin: 0; }
.qa-row p b, .qa-row p strong { color: var(--ink); }
.qa-rows--solve .qa-ico { background: #fff; border-color: var(--line-strong); }

/* 取り組みミニカード */
.tcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcard { border: 1px solid var(--line); border-radius: 9px; padding: 15px 17px; background: var(--paper); display: flex; flex-direction: column; }
.tcard h4 { font-size: 13.5px; font-weight: 700; color: var(--ink); margin: 0 0 1px; line-height: 1.6; }
.tcard-ind { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-bottom: 7px; }
.tcard p { font-size: 12px; line-height: 1.8; margin: 0; }
.tcard-link { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tcard-link:hover { color: var(--accent); }

/* 要目（ファクトカード） */
.factcard { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 20px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 20px; }
.factcard > div { font-size: 12.5px; color: var(--text); }
.factcard-k { font-family: var(--font-mono); font-size: 10px; color: var(--muted); display: block; letter-spacing: 0.06em; }

/* 進め方ステップ（縦フロー） */
.stepflow { display: flex; flex-direction: column; }
.stepflow-item { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.stepflow-item::before { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 0; width: 1px; background: var(--line); }
.stepflow-item:last-child { padding-bottom: 0; }
.stepflow-item:last-child::before { display: none; }
.stepflow-ico { flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); position: relative; z-index: 1; }
.stepflow-item p { font-size: 13.5px; padding-top: 4px; margin: 0; }
.stepflow-item p b, .stepflow-item p strong { color: var(--ink); }

/* 3つの問いの型（どこ／なぜ／そもそも） */
.q3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.q3-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 20px 22px; }
.q3-word { font-weight: 300; font-size: 24px; color: var(--ink); line-height: 1.4; margin-bottom: 6px; }
.q3-ex { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; min-height: 3em; }
.q3-need { font-family: var(--font-mono); font-size: 10.5px; color: var(--text); border-top: 1px solid var(--line); padding-top: 10px; line-height: 1.7; }

/* ガイドリンク（GUIDE チップ付き） */
.guide-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-link { display: flex; align-items: center; gap: 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 16px; text-decoration: none; }
.guide-tag { flex: none; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; background: #fff; }
.guide-title { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.guide-arrow { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.guide-link:hover { border-color: var(--line-strong); }

/* 導入後の姿（いま→導入後の対比行） */
.ba-rows { display: flex; flex-direction: column; gap: 8px; }
.ba-row { display: grid; grid-template-columns: 1fr 30px 1.1fr; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 13px 18px; }
.ba-now { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin: 0; }
.ba-arrow { font-family: var(--font-mono); font-size: 13px; color: var(--faint); text-align: center; }
.ba-after { font-size: 13.5px; color: var(--ink); line-height: 1.75; margin: 0; }
.ba-after b { font-weight: 700; }
.ba-k { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 3px; }

/* パネル内の図版（線画SVGを白パネルに） */
.ssw-fig { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 26px 20px; margin: 0; }
.ssw-fig img { width: 100%; height: auto; display: block; }

/* パネル内の控えめなテキストリンク */
.ssw-more-row { margin-top: 14px; }
.ssw-more { font-family: var(--font-mono); font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ssw-more:hover { color: var(--accent); }

/* 触れるオントロジー図（球体canvas＋拡大SVG） */
.ssw-duo { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin-top: 30px; }
.ssw-duo-l { flex: 0 1 320px; min-width: 250px; }
.ssw-duo-r { flex: 1 1 300px; min-width: 270px; }
.onto-sphere { width: 100%; height: auto; display: block; touch-action: pan-y; cursor: grab; border-radius: 10px; }
.onto-sphere.grabbing { cursor: grabbing; }
.onto-hint { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--faint); text-align: center; margin: 6px 0 0; }
.onto-caption { font-size: 13px; color: var(--ink); text-align: center; margin: 18px 0 0; }
.onto-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.onto-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.onto-detail { width: 100%; height: auto; display: block; }
.onto-detail [data-id], .onto-detail [data-e] { transition: opacity 0.18s var(--ease); }
.modn-flow { width: 100%; height: auto; display: block; margin-top: 30px; }
.ssw-svg { width: 100%; height: auto; display: block; margin-top: 30px; }

/* 業務パネルの画面イメージ（.shot-frameを縦積み・各画面にmonoキッカー） */
.scr-stack { display: flex; flex-direction: column; gap: 28px; margin-top: 34px; }
.scr-item { display: flex; flex-direction: column; gap: 9px; }
.scr-kicker { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; color: var(--faint); margin: 0; }
.scr-hero { margin-top: 20px; margin-bottom: 6px; }

/* トップ対象領域カード（リンク化＋画面サムネイル） */
a.domain-card { display: block; text-decoration: none; color: inherit; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease); }
a.domain-card:hover { border-color: var(--line-strong); box-shadow: 0 12px 30px rgba(11, 11, 12, 0.06); color: inherit; }
.domain-thumb { position: relative; z-index: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0 0 16px; aspect-ratio: 16 / 10; background: #fff; }
.domain-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

@media (max-width: 960px) {
  .sol-switcher { grid-template-columns: 1fr; }
  .ssw-idx { position: static; }
  .q3-grid { grid-template-columns: 1fr; }
  .factcard { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ssw-panel { padding: 24px 20px; }
  .tcard-grid, .guide-row { grid-template-columns: 1fr; }
  .factcard { grid-template-columns: 1fr; }
  .ba-row { grid-template-columns: 1fr; }
  .ba-arrow { display: none; }
  .ba-after { border-top: 1px dashed var(--line); padding-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-switcher.ssw-ready .ssw-panel.on { animation: panel-fade 120ms ease-out; }
}


/* ---------- モバイル対応まとめ（WP-2 タップ44px / WP-3c 表 / 2026-07-11） ---------- */
@media (max-width: 640px) {
  /* タップ領域を44px基準へ（デザインは不変・ヒット領域のみ拡張） */
  .news-filter { min-height: 44px; }
  .site-footer .footer-grid a { display: inline-block; padding: 7px 0; }
  .guide-toc a { display: inline-block; padding: 8px 4px; }
  .breadcrumb a, .hub-breadcrumb a { display: inline-block; padding: 6px 2px; }
  .link-row a, .article-topback, .article-back a { display: inline-block; padding: 8px 0; }
  .header-cta .btn-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .sol-switch-panel a { min-height: 44px; display: flex; align-items: center; }
  /* spec表: ラベル列を縮め値列を広げ、横溢れを解消 */
  table.spec th { width: 110px; white-space: normal; }
}
