/* ==========================================================================
   AiGo 製品紹介サイト / ページスタイル
   Design Guide v1.2 準拠。
   - 色は aigo-design-system.css のトークンのみ。ページ固有色は定義しない。
   - 主要CTAは黒（Ink）。緑（Brand）は強調・状態・接続だけに使う。
   - 囲いは入力・操作・状態差がある場合のみ。説明は罫線で連続させる。
   - 角丸はボタン4px／入力6px／それ以外0px。影は使わない。
   ========================================================================== */

:root {
  /* コンテナ幅・左右余白は Tailwind（mx-auto max-w-6xl px-5 md:px-8）で指定する。
     この変数はモバイルメニューの左右余白を本文に揃えるためだけに使う。 */
  --site-gutter: 32px;
  --header-height: 64px;       /* Guide: ヘッダー高さ64px */

  /* 濃色面（ヒーロー）で使う緑。ご指示により追加。 */
  --ag-brand-on-dark: #41e83b;
}

body.ag-body {
  min-width: 320px;
  overflow-x: clip;            /* hidden だと sticky ヘッダーが追従しなくなる */
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--ag-brand);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  border-radius: var(--ag-radius-sm);
  padding: 10px 16px;
  background: var(--ag-ink);
  color: var(--ag-white);
  font-size: 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ヘッダーを包む div の高さがヘッダーと同じだと、sticky は親の箱から出られない。
   display: contents で包み箱をなくし、body を基準に追従させる。 */
[data-site-header] {
  display: contents;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--ag-paper);
}

.site-header.is-scrolled {
  border-bottom-color: var(--ag-line);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ロゴを小さくして上下の余白を確保する（ヘッダー高さはガイドの64pxを維持） */
.brand-lockup {
  display: flex;
  width: 100px;
  align-items: center;
}

.brand-lockup img {
  width: 100%;
  height: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  line-height: var(--ag-leading-meta);
}

.global-nav > a:not(.nav-cta) {
  position: relative;
  padding-block: 9px;
  color: var(--ag-ink-soft);
}

.global-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;                 /* Guide: アクティブ表示は緑の2px下線だけ */
  transform: scaleX(0);
  transform-origin: left;
  background: var(--ag-brand);
  content: "";
  transition: transform 180ms ease;
}

.global-nav > a:not(.nav-cta):hover::after,
.global-nav > a:not(.nav-cta):focus-visible::after,
.global-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 文字色は .ag-body a { color: inherit } に負けるため、詳細度を上げて指定する */
.ag-body .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: var(--ag-radius-sm);
  padding: 9px 20px;
  background: var(--ag-ink);
  color: var(--ag-white);
  font-weight: 500;
}

.ag-body .nav-cta:hover,
.ag-body .nav-cta:focus-visible {
  background: var(--ag-ink-soft);
  color: var(--ag-white);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ag-line-strong);
  border-radius: var(--ag-radius-sm);
  background: transparent;
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 1px;
  margin-inline: auto;
  background: var(--ag-ink);
  content: "";
  transition: transform 180ms ease;
}

.menu-button span::before {
  transform: translateY(-6px);
}

.menu-button span::after {
  transform: translateY(5px);
}

.menu-button[aria-expanded="true"] span {
  background: transparent;
}

.menu-button[aria-expanded="true"] span::before {
  transform: translateY(1px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   共通の見出しまわり
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  color: var(--ag-brand);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-meta);
}

.section {
  padding-block: var(--ag-space-24) var(--ag-space-32);
  /* border-bottom: 1px solid var(--ag-line); */
}

.section--white {
  background: var(--ag-white);
}

.section-head h2 {
  margin-top: var(--ag-space-4);
  font-size: 40px;                        /* Guide: SECTION H2 40 / 1.50 / 400 */
  font-weight: var(--ag-weight-display);
  letter-spacing: 0.015em;
  line-height: var(--ag-leading-section);
}

.section-head > p {
  margin-top: var(--ag-space-5);
  color: var(--ag-text-2);
  font-size: 18px;                        /* Guide: PRIMARY BODY 18 */
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */

/* 背景写真は白い壁と天井が主体の明るい写真。トリミングは既定の center / cover、
   オーバーレイは締める目的の 10% のみ。文字は Ink とし、写真を暗くしない。 */
.home-hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--ag-space-20) var(--ag-space-24);
  color: var(--ag-ink);
}

.home-hero::before {                    /* 写真 */
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("../images/hero_bg.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  content: "";
}

.home-hero::after {                     /* オーバーレイ（締める目的だけの薄さ） */
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(18, 18, 18, 0.1);
  background: color-mix(in srgb, var(--ag-white) 24%, transparent);
  content: "";
}

.home-hero > .site-shell {
  position: relative;
}

.home-hero .eyebrow {
  color: var(--ag-brand);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin-top: var(--ag-space-5);
  font-size: 56px;                        /* Guide: DISPLAY H1 最大56px */
  font-weight: var(--ag-weight-display);
  letter-spacing: 0.015em;
  line-height: var(--ag-leading-display);
}

.hero-copy h1 em {
  color: var(--ag-brand);
  font-style: normal;
}

.hero-lead {
  margin-top: var(--ag-space-6);
  padding: var(--ag-space-3);
  color: var(--ag-ink);
  font-size: 18px;
  line-height: 1.9;
  background: color-mix(in srgb, var(--ag-paper) 72%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--ag-space-8);
}

/* 下層ページのヒーロー */
.page-hero {
  padding-block: var(--ag-space-12) var(--ag-space-20);
  border-bottom: 1px solid var(--ag-line-strong);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: var(--ag-space-10);
  color: var(--ag-text-3);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--ag-text-2);
  text-decoration: underline;
  text-decoration-color: var(--ag-line-strong);
  text-underline-offset: 4px;
}

.page-hero h1 {
  margin-top: var(--ag-space-4);
  font-size: 48px;                        /* Guide: PAGE H1 48 / 1.40 / 400 */
  font-weight: var(--ag-weight-display);
  letter-spacing: 0.015em;
  line-height: var(--ag-leading-page);
}

.page-hero > .site-shell > p {
  margin-top: var(--ag-space-6);
  color: var(--ag-ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   トップ：AiGoのコンセプト（資料p5）
   4つの提供内容が中央のAiGoを囲む一枚の図。ノード5・接続4でガイドの上限内。
   -------------------------------------------------------------------------- */

.concept-lead {
  margin-top: var(--ag-space-5);
  color: var(--ag-ink);
  font-size: 24px;
  font-weight: var(--ag-weight-heading);
  line-height: 1.75;
}

/* 2×2のカードの交点に、縦積みのAiGoロゴを重ねる。
   縦型なので横幅を取らず、カード同士を近づけられる。 */
.concept-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr 1fr;          /* 4枚の高さを揃える */
  column-gap: 140px;
  row-gap: 24px;
  align-items: stretch;
  margin-top: var(--ag-space-16);
}

.concept-mark {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  padding: 18px 20px;
  border: 8px solid var(--ag-brand);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);      /* SVGは背景が透けるため白面を敷く */
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.concept-mark img {
  display: block;
  width: 96px;
  height: auto;
}

.concept-item {
  border: 2px solid var(--ag-brand);
  background: var(--ag-paper);
}

/* ロゴが重なる内側に文字が入らないよう余白を確保する */
.concept-item.is-1,
.concept-item.is-3 { padding-right: 48px; }

.concept-item.is-2,
.concept-item.is-4 { padding-left: 48px; }

.concept-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--ag-brand);
}

.concept-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}

.concept-item h3 {
  margin-top: var(--ag-space-4);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.concept-item h3 .ag-badge {
  margin-left: 8px;
  vertical-align: 2px;
}

.concept-item p {
  margin-top: var(--ag-space-2);
  color: var(--ag-text-2);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

@media (max-width: 1100px) {
  .concept-grid {
    column-gap: 116px;
  }

  .concept-mark {
    width: 132px;
    height: 132px;
    padding: 16px 20px;
    border: 6px solid var(--ag-brand);
  }

  .concept-mark img {
    width: 64px;
  }
}

@media (max-width: 900px) {
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .concept-item.is-1,
  .concept-item.is-2,
  .concept-item.is-3,
  .concept-item.is-4 {
    grid-column: 1;
    grid-row: auto;
    padding-right: 26px;
    padding-left: 26px;
  }

  /* 縦積みでは重ねる位置がないため出さない */
  .concept-mark {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   トップ：AXとは
   -------------------------------------------------------------------------- */

/* AXが実現した状態の3点。後段「AiGoでどう変わるか」の3項目と対応させる */

/* 図版。デスクトップはSVG、モバイルは同じ内容を縦積みのHTMLで見せる */
.diagram {
  margin: var(--ag-space-12) 0 0;
}

.diagram__svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram__image {
  display: block;
  height: auto;
}

.diagram__stack {
  display: none;
}

.diagram figcaption {
  margin-top: var(--ag-space-6);
  color: var(--ag-brand);
  font-size: 16px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-compact);
}

.diagram .diagram__conclusion {
  max-width: 100%;
  margin-top: var(--ag-space-3);
  text-align: center;
  color: var(--ag-ink);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-section);
}

.diagram__conclusion strong {
  display: block;
  margin-top: var(--ag-space-3);
  color: var(--ag-brand);
  font-weight: var(--ag-weight-heading);
}

/* モバイル用の縦積み表現 */
.stack-group {
  border-top: 1px solid var(--ag-line-strong);
}

.stack-group > section {
  border-bottom: 1px solid var(--ag-line);
  padding-block: var(--ag-space-6);
}

.stack-group > section.is-core {
  background: var(--ag-ink);
  color: var(--ag-white);
  padding-inline: var(--ag-space-5);
}

.stack-group > section.is-before {
  border-left: 3px solid var(--ag-signal);
  padding-left: var(--ag-space-5);
}

.stack-group > section.is-after {
  border-left: 3px solid var(--ag-brand);
  background: var(--ag-sage-light);
  padding-left: var(--ag-space-5);
  padding-right: var(--ag-space-5);
}

.stack-group span {
  display: block;
  color: var(--ag-text-3);
  font-size: 14px;
  font-weight: 500;
}

.stack-group .is-core span {
  color: var(--ag-brand-tint);
}

.stack-group .is-before span {
  color: var(--ag-signal);
}

.stack-group .is-after span {
  color: var(--ag-brand);
}

.stack-group strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.stack-group ul {
  display: grid;
  gap: 8px;
  margin-top: var(--ag-space-3);
  list-style: none;
}

.stack-group li {
  position: relative;
  padding-left: 15px;
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

.stack-group li::before {
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 7px;
  height: 1.5px;
  background: var(--ag-brand);
  content: "";
}

.stack-group .is-core li::before {
  background: var(--ag-brand-tint);
}

.stack-group .is-before li::before {
  background: var(--ag-signal);
}

@media (max-width: 900px) {
  .diagram__svg {
    display: none;                 /* 縮小すると図中の文字が読めなくなるため */
  }

  .diagram__stack {
    display: block;
  }
}

/* AiGoでどう変わるか：3本の見出し＋図版 */
.change-block.is-first {
  margin-top: var(--ag-space-16);
}

.change-block + .change-block {
  margin-top: var(--ag-space-24);
}

.change-block > h3 {
  font-size: 24px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.change-block > p {
  margin-top: var(--ag-space-3);
  color: var(--ag-text-2);
  font-size: 16px;
  line-height: var(--ag-leading-body);
}

.change-block .diagram {
  margin-top: var(--ag-space-8);
}

/* AiGoでどう変わるか：導入前／導入後の比較を3本 */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ag-space-6);
  align-items: stretch;
}

.governance-panel {
  padding: var(--ag-space-8);
}

.governance-panel--before {
  background: var(--ag-white);
}

.governance-panel--after {
  background: var(--ag-brand-pale);
}

.governance-label {
  color: var(--ag-brand);
  font-size: 16px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-compact);
}

.governance-panel--before .governance-label {
  color: var(--ag-signal);
}

.governance-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--ag-space-4);
}

.governance-list {
  display: grid;
  gap: var(--ag-space-3);
  margin-top: var(--ag-space-6)!important;
  list-style: none;
}

.governance-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ag-ink-soft);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

.governance-panel--after .governance-list li {
  font-weight: var(--ag-weight-heading);
}

.governance-list li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--ag-brand);
  content: "";
}

.governance-panel--before .governance-list li::before {
  background: var(--ag-signal);
}

@media (max-width: 900px) {
  .governance-grid {
    grid-template-columns: 1fr;
  }

  .governance-panel {
    padding: var(--ag-space-6) var(--ag-space-5);
  }

}

/* AI格差の解消：導入前から、AIエージェントを業務へ組み込むまで */
.ai-gap-layout {
  display: grid;
  gap: var(--ag-space-8);
}

.ai-gap-stage {
  padding: var(--ag-space-6);
}

.ai-gap-stage--before {
  padding: var(--ag-space-8);
  /* background: var(--ag-sage-light); */
}

.ai-gap-group-label {
  font-size: 18px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-heading);
}

.ai-gap-group-label--problem {
  color: var(--ag-signal);
}

.ai-gap-group-label--solution {
  color: var(--ag-brand);
}

.ai-gap-before__content {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: var(--ag-space-10);
  align-items: center;
  margin-top: var(--ag-space-6);
}

.ai-gap-before__content .ai-gap-image {
  margin-top: 0;
}

.ai-gap-stage__copy h4 {
  margin-top: 0;
}

.ai-gap-stage__copy p {
  margin-top: var(--ag-space-3);
  color: var(--ag-text-2);
  font-size: 15px;
  line-height: var(--ag-leading-body);
}

.ai-gap-solution {
  padding: var(--ag-space-8);
  background: var(--ag-brand-pale);
}

.ai-gap-solution__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ag-space-6);
  align-items: stretch;
  margin-top: var(--ag-space-6);
}

.ai-gap-stage--agents {
  /* background: var(--ag-white); */
}

.ai-gap-stage--workflow {
  background: var(--ag-brand);
  color: var(--ag-white);
}

.ai-gap-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--ag-space-5);
}

.ai-gap-stage--agents .ai-gap-image,
.ai-gap-stage--workflow .ai-gap-image {
  margin-top: 0;
}

.ai-gap-stage h4 {
  margin-top: var(--ag-space-5);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.ai-gap-stage--agents > p,
.ai-gap-stage--workflow > p {
  margin-top: var(--ag-space-3);
  color: var(--ag-text-1);
  font-size: 15px;
  line-height: var(--ag-leading-body);
}

.ai-gap-stage--workflow > p {
  color: var(--ag-line-strong);
}

@media (max-width: 900px) {
  .ai-gap-before__content,
  .ai-gap-solution__steps {
    grid-template-columns: 1fr;
  }

  .ai-gap-stage,
  .ai-gap-solution {
    padding: var(--ag-space-5);
  }
}

/* 費用対効果：画像ではなく、算定根拠を文字の階層で見せる */
.roi-panel {
  min-width: 0;
}

.roi-panel__title {
  margin-top: var(--ag-space-4);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.roi-list {
  margin-top: var(--ag-space-6) !important;
}

.roi-factors {
  margin-top: var(--ag-space-6);
}

.roi-factor {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--ag-space-4);
  align-items: baseline;
  border-bottom: 1px solid var(--ag-line-strong);
  padding-block: var(--ag-space-4);
}

.roi-factor:first-child {
  border-top: 1px solid var(--ag-line-strong);
}

.roi-factor span {
  color: var(--ag-text-2);
  font-size: 14px;
  font-weight: var(--ag-weight-heading);
}

.roi-factor strong {
  color: var(--ag-ink);
  font-size: 16px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-compact);
}

.roi-result {
  margin-top: var(--ag-space-6);
  padding: var(--ag-space-5) var(--ag-space-6);
  background: var(--ag-brand);
  color: var(--ag-white);
}

.roi-result__label {
  display: block;
  color: var(--ag-brand-tint);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
}

.roi-result strong {
  display: block;
  margin-top: var(--ag-space-2);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

@media (max-width: 520px) {
  .roi-factor {
    grid-template-columns: 1fr;
    gap: var(--ag-space-1);
  }
}

/* --------------------------------------------------------------------------
   トップ：AXプラットフォームの概要
   -------------------------------------------------------------------------- */

.is-core li {
  color: var(--ag-line-strong);
}

.is-core li::before {
  background: var(--ag-brand-tint);
}

/* --------------------------------------------------------------------------
   トップ：AiGoでどう変わるか（導入前→AiGo→導入後）
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   トップ：エージェンテックの強み（濃色面）
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   トップ：導入までの流れ
   -------------------------------------------------------------------------- */

.implementation-process {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: var(--ag-space-12);
}

@media (max-width: 960px) {
  .implementation-process {
    grid-template-columns: 1fr;
  }
}

.start-note {
  margin-top: var(--ag-space-6);
  color: var(--ag-text-2);
  font-size: 16px;
  line-height: var(--ag-leading-body);
}

/* --------------------------------------------------------------------------
   機能ページ
   -------------------------------------------------------------------------- */

.feature-rows {
  margin-top: var(--ag-space-12);
  border-top: 1px solid var(--ag-line-strong);
}

.feature-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--ag-space-10);
  align-items: start;
  border-bottom: 1px solid var(--ag-line);
  padding-block: var(--ag-space-8);
}

.feature-row h3 {
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.feature-row p {
  color: var(--ag-ink-soft);
  font-size: 16px;
  line-height: var(--ag-leading-body);
}

.feature-row dl {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--ag-space-4);
  margin-top: var(--ag-space-4);
  border-top: 1px solid var(--ag-line);
  padding-top: var(--ag-space-4);
}

.feature-row dt {
  color: var(--ag-text-3);
  font-size: 14px;
  font-weight: 500;
}

.feature-row dd {
  margin: 0;
  color: var(--ag-ink-soft);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

/* 製品キャプチャのプレースホルダー */
.product-shot {
  margin: var(--ag-space-12) 0 0;
}

.product-shot__frame {
  overflow: hidden;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-xl);
  background: var(--ag-white);
}

.product-shot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  border-bottom: 1px solid var(--ag-line);
  padding-inline: 14px;
  color: var(--ag-text-3);
  font-family: var(--ag-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.product-shot__body {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: var(--ag-space-8);
  background: var(--ag-paper);
}

.product-shot__body strong {
  display: block;
  max-width: 380px;
  border: 1px dashed var(--ag-line-strong);
  border-radius: var(--ag-radius-md);
  padding: 22px 26px;
  color: var(--ag-text-2);
  font-size: 16px;
  font-weight: 500;
  line-height: var(--ag-leading-compact);
  text-align: center;
}

.product-shot figcaption {
  margin-top: var(--ag-space-3);
  color: var(--ag-text-3);
  font-size: 14px;
}

.review-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--ag-space-12);
  border-block: 1px solid var(--ag-line-strong);
  list-style: none;
}

.review-steps li {
  position: relative;
  padding: var(--ag-space-6) var(--ag-space-6) var(--ag-space-8) 0;
}

.review-steps li + li {
  border-left: 1px solid var(--ag-line-strong);
  padding-left: var(--ag-space-6);
}

.review-steps li::after {
  position: absolute;
  top: calc(var(--ag-space-6) + 7px);
  right: calc(var(--ag-space-6) * -1 - 5px);
  color: var(--ag-brand);
  font-size: 14px;
  content: "→";
}

.review-steps li:last-child::after {
  content: none;
}

.review-steps span {
  display: block;
  color: var(--ag-text-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.review-steps strong {
  display: block;
  margin-top: var(--ag-space-3);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.review-steps p {
  margin-top: var(--ag-space-3);
  color: var(--ag-text-2);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

/* --------------------------------------------------------------------------
   エージェントページ
   -------------------------------------------------------------------------- */

.catalog {
  margin-top: var(--ag-space-12);
  border-top: 1px solid var(--ag-line-strong);
}

.catalog-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--ag-space-10);
  align-items: baseline;
  border-bottom: 1px solid var(--ag-line);
  padding-block: var(--ag-space-6);
}

.catalog-row h3 {
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.catalog-row p {
  color: var(--ag-text-2);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

.agent-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--ag-space-12);
  border-block: 1px solid var(--ag-line-strong);
}

.agent-choice section {
  padding: var(--ag-space-8) var(--ag-space-8) var(--ag-space-10) 0;
}

.agent-choice section + section {
  border-left: 1px solid var(--ag-line-strong);
  padding-left: var(--ag-space-8);
}

.agent-choice span {
  display: block;
  color: var(--ag-brand);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
}

.agent-choice h3 {
  margin-top: var(--ag-space-3);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.agent-choice p {
  margin-top: var(--ag-space-3);
  color: var(--ag-text-2);
  font-size: 16px;
  line-height: var(--ag-leading-body);
}

/* --------------------------------------------------------------------------
   ユースケースページ
   -------------------------------------------------------------------------- */

.case {
  padding-block: var(--ag-space-20) var(--ag-space-24);
  border-bottom: 1px solid var(--ag-line);
}

.case:nth-of-type(even) {
  background: var(--ag-white);
}

.case-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--ag-space-10);
  align-items: start;
}

.case-head > span {
  color: var(--ag-brand);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-meta);
  padding-top: 8px;
}

.case-head h2 {
  font-size: 32px;
  font-weight: var(--ag-weight-display);
  letter-spacing: 0.015em;
  line-height: var(--ag-leading-section);
}

.case-head p {
  margin-top: var(--ag-space-4);
  color: var(--ag-text-2);
  font-size: 18px;
  line-height: 1.85;
}

.case-process {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  align-items: stretch;
  margin-top: var(--ag-space-10);
  border-block: 1px solid var(--ag-line-strong);
}

.case-process section {
  padding: var(--ag-space-8) var(--ag-space-6) var(--ag-space-8) 0;
}

.case-process section.is-agent {
  border-top: 3px solid var(--ag-brand);
  padding-inline: var(--ag-space-6);
}

.case-process section.is-output {
  border-top: 3px solid var(--ag-brand);
  background: var(--ag-sage-light);
  padding-inline: var(--ag-space-6);
}

.case-process span {
  display: block;
  color: var(--ag-text-3);
  font-size: 14px;
  font-weight: 500;
}

.case-process .is-agent span,
.case-process .is-output span {
  color: var(--ag-brand);
}

.case-process strong {
  display: block;
  margin-top: var(--ag-space-2);
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.case-process p {
  margin-top: var(--ag-space-2);
  color: var(--ag-text-2);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

.case-arrow {
  display: grid;
  place-items: center;
  padding-inline: var(--ag-space-3);
  color: var(--ag-brand);
}

.case-gains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--ag-line-strong);
}

.case-gains div {
  padding: var(--ag-space-6) var(--ag-space-6) var(--ag-space-6) 0;
}

.case-gains div + div {
  border-left: 1px solid var(--ag-line);
  padding-left: var(--ag-space-6);
}

.case-gains dt {
  color: var(--ag-text-3);
  font-size: 14px;
  font-weight: 500;
}

.case-gains dd {
  margin: var(--ag-space-2) 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: var(--ag-leading-compact);
}

.case-note {
  display: grid;
  gap: 4px;
  margin-top: var(--ag-space-5);
  border-left: 3px solid var(--ag-signal);
  padding: 4px 0 4px 18px;
  color: var(--ag-ink-soft);
  font-size: 14px;
  line-height: var(--ag-leading-compact);
}

.case-note b {
  color: var(--ag-signal);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
}

/* --------------------------------------------------------------------------
   お問い合わせ
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--ag-space-16);
  align-items: start;
}

.contact-guide {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.contact-guide h2 {
  margin-top: var(--ag-space-4);
  font-size: 24px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.contact-guide > p {
  margin-top: var(--ag-space-4);
  color: var(--ag-text-2);
  font-size: 16px;
  line-height: var(--ag-leading-body);
}

.contact-guide dl {
  margin-top: var(--ag-space-8);
  border-top: 1px solid var(--ag-line-strong);
}

.contact-guide dl > div {
  border-bottom: 1px solid var(--ag-line);
  padding-block: var(--ag-space-4);
}

.contact-guide dt {
  color: var(--ag-text-3);
  font-size: 14px;
  font-weight: 500;
}

.contact-guide dd {
  margin: 4px 0 0;
  color: var(--ag-ink-soft);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

.contact-form {
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: var(--ag-space-6);
  border-top: 1px solid var(--ag-line);
  padding-top: var(--ag-space-6);
  color: var(--ag-ink-soft);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  flex: 0 0 18px;
  accent-color: var(--ag-brand);
}

.form-consent a {
  color: var(--ag-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ag-space-5);
  align-items: center;
  margin-top: var(--ag-space-8);
}

.form-submit p {
  color: var(--ag-text-3);
  font-size: 14px;
  line-height: var(--ag-leading-compact);
}

/* 送信完了 */
.thanks-main {
  display: grid;
  min-height: calc(100vh - var(--header-height) - 120px);
  place-items: center;
  padding-block: var(--ag-space-24);
  text-align: center;
}

.thanks-content {
  max-width: 660px;
}

.thanks-status {
  color: var(--ag-brand);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
}

.thanks-content h1 {
  margin-top: var(--ag-space-4);
  font-size: 48px;
  font-weight: var(--ag-weight-display);
  letter-spacing: 0.015em;
  line-height: var(--ag-leading-page);
}

.thanks-content p {
  margin-top: var(--ag-space-6);
  color: var(--ag-text-2);
  font-size: 18px;
  line-height: 1.9;
}

.thanks-content .ag-button-row {
  justify-content: center;
  margin-top: var(--ag-space-10);
}

/* --------------------------------------------------------------------------
   共通CTA・フッター
   -------------------------------------------------------------------------- */

.site-cta {
  padding-block: var(--ag-space-20);
  background: var(--ag-ink);            /* Guide: 問い合わせ誘導は濃色CTA面 */
  color: var(--ag-white);
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--ag-space-12);
  align-items: end;
  border-left: 4px solid var(--ag-brand);
  padding-left: var(--ag-space-8);
}

.cta-inner h2 {
  font-size: 28px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-section);
}

.cta-inner p {
  margin-top: var(--ag-space-3);
  color: var(--ag-line-strong);
  font-size: 16px;
  line-height: var(--ag-leading-body);
}

.site-footer {
  padding-block: var(--ag-space-10);
  border-top: 1px solid var(--ag-line-strong);
  background: var(--ag-paper);
}

.footer-inner {
  display: flex;
  gap: var(--ag-space-10);
  align-items: flex-end;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  max-width: 720px;
}

.footer-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 0;
  padding: 0;
  color: var(--ag-ink-soft);
  font-size: 14px;
  line-height: var(--ag-leading-compact);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ag-brand);
}

.footer-social-links {
  display: flex;
  gap: var(--ag-space-2);
  align-items: center;
  min-height: 40px;
}

.footer-links .footer-social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  min-height: 40px;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.footer-social-link i {
  display: block;
}

.footer-copyright {
  flex: 0 0 auto;
  color: var(--ag-text-3);
  font-size: 12px;
  line-height: var(--ag-leading-meta);
  text-align: right;
}

/* --------------------------------------------------------------------------
   レスポンシブ：縮小ではなく読み順の変換
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --site-gutter: 24px;
  }

  .global-nav {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--ag-space-12);
  }

  .hero-copy{
    max-width: 720px;
  }

  .contact-layout {
    gap: var(--ag-space-12);
  }
}

@media (max-width: 820px) {
  body.menu-open {
    overflow: hidden;
  }

  .menu-button {
    display: block;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    border-bottom: 1px solid var(--ag-line-strong);
    padding: var(--ag-space-6) var(--site-gutter) var(--ag-space-8);
    background: var(--ag-paper);
  }

  .global-nav.is-open {
    display: grid;
    gap: 0;
  }

  .global-nav > a:not(.nav-cta) {
    border-bottom: 1px solid var(--ag-line);
    padding-block: var(--ag-space-4);
    font-size: 16px;
  }

  .global-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: var(--ag-space-6);
    justify-content: center;
  }

  .home-hero {
    padding-block: var(--ag-space-12) var(--ag-space-16);
  }

  .page-hero {
    padding-block: var(--ag-space-8) var(--ag-space-12);
  }

  .breadcrumbs {
    margin-bottom: var(--ag-space-6);
  }

  .section {
    padding-block: var(--ag-space-16) var(--ag-space-20);
  }

  

  .case {
    padding-block: var(--ag-space-16) var(--ag-space-20);
  }

  /* 2列・3列は意味の順序を保ったまま縦積みへ */
  
  .review-steps,
  .agent-choice,
  .case-gains,
  .contact-layout,
  .feature-row,
  .catalog-row,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .case-process {
    grid-template-columns: 1fr;
  }

  .case-arrow {
    padding-block: var(--ag-space-2);
  }

  .case-arrow svg {
    transform: rotate(90deg);
  }

  /* 縦積みでは左右の内側余白をなくし、site-shell の余白へ揃える */
  
  .review-steps li,
  .agent-choice section,
  .case-gains div,
  .case-process section {
    padding-inline: 0;
  }

  /* 面の色が変わるブロックだけ、内側余白を残す */
  
  .case-process section.is-output{
    padding-inline: var(--ag-space-5);
  }

  
  .review-steps li + li,
  .agent-choice section + section,
  .case-gains div + div,
  .case-process section + section {
    border-top: 1px solid var(--ag-line-strong);
    border-left: 0;
  }
  

  /* 縦積みでは順序が罫線とラベルで伝わるため、横向きの矢印は出さない */
  .review-steps li::after {
    content: none;
  }

  
  .case-head {
    grid-template-columns: 1fr;
    gap: var(--ag-space-3);
  }

  
  .case-head > span {
    padding-top: 0;
  }

  .feature-row,
  .catalog-row {
    gap: var(--ag-space-3);
  }

  .contact-guide {
    position: static;
  }

  .contact-form {
    border-top: 1px solid var(--ag-line-strong);
    padding-top: var(--ag-space-10);
  }

  .cta-inner {
    align-items: start;
    gap: var(--ag-space-8);
  }

  .footer-inner {
    display: grid;
    gap: var(--ag-space-8);
  }

  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --site-gutter: 20px;               /* Guide: モバイル左右20px */
    --header-height: 60px;
  }

  .hero-copy h1 {
    font-size: 40px;                   /* Guide: Display H1 モバイル40px */
  }

  .page-hero h1,
  .thanks-content h1 {
    font-size: 36px;                   /* Guide: Page H1 モバイル36px */
  }

  .section-head h2 {
    font-size: 32px;
  }

  .diagram .diagram__conclusion {
    margin-top: var(--ag-space-8);
    padding-top: var(--ag-space-6);
    font-size: 18px;
    line-height: var(--ag-leading-heading);
  }

  .case-head h2 {
    font-size: 28px;
  }

  .feature-row dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero-actions,
  .form-submit,
  .site-cta .ag-button-row {
    display: grid;
    width: 100%;
  }

  .hero-actions .ag-button,
  .site-cta .ag-button,
  .form-submit .ag-button {
    width: 100%;
    justify-content: center;
  }

  .cta-inner {
    border-left-width: 3px;
    padding-left: var(--ag-space-5);
  }

  .footer-copyright {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
