/*
  ai-guide 共通ヘッダー・下層ページ見出し・トップの「簡単3ステップ」と導線カード・フォントの統一
  Robo Sync のヘッダー（グローバルナビ＋CV ボタン、スクロールで上部固定、SP はハンバーガー）を参考にした ai-guide 独自の実装。
  全ページの <head> から読み込む。ヘッダーの HTML は各ページに複製されているため、変更時は全ページへ適用すること。
*/

/* ---------- フォント ----------
  Robo Sync・Cameleo と同じ Tazugane Gothic（fonts.net のキット）にそろえる。
  既定の CSS で外れている箇所（フッターの英字リンク、Marketo フォームの Helvetica 指定）も上書きする。 */
body,
footer a,
.mktoForm,
.mktoForm *,
.mktoForm .mktoButtonWrap .mktoButton {
  font-family: var(--font-tazugane) !important;
}

/* ---------- ヘッダー ---------- */
.ag-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f2f2f2;
  transition: box-shadow 0.3s;
}
.ag-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.ag-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 128rem;
  height: 7.2rem;
  margin: 0 auto;
  padding: 0 2.4rem;
  box-sizing: content-box;
}
.ag-header__logo {
  font-family: var(--font-tazugane);
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1.4;
  color: #000e4e;
  text-decoration: none;
  white-space: nowrap;
}
.ag-header__logo:hover {
  opacity: 0.8;
}
.ag-header__nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
}
.ag-header__menu {
  display: flex;
  gap: 3.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-header__menu a {
  font-family: var(--font-tazugane);
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.4;
  color: #000e4e;
  text-decoration: none;
  transition: color 0.2s;
}
.ag-header__menu a:hover,
.ag-header__menu a[aria-current="page"] {
  color: #0063cc;
}
.ag-header a:focus-visible,
.ag-header__toggle:focus-visible,
.ag-links__card:focus-visible {
  outline: 2px solid #0063cc;
  outline-offset: 2px;
  border-radius: 0.4rem;
}
.ag-header__actions {
  display: flex;
  gap: 1.6rem;
}
.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  padding: 0 2.4rem;
  border-radius: 2.4rem;
  font-family: var(--font-tazugane);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.ag-btn {
  transition: background-color 0.2s;
}
/* 色・線は Robo Sync のヘッダーの CV ボタン（お問い合わせ／資料ダウンロード）に合わせる */
.ag-btn--primary {
  border: 1px solid #000;
  background: #000e4e;
  color: #fff;
}
.ag-btn--primary:hover {
  background: #001a7a;
}
/* ライトブルー背景の文字は紺（白はコントラスト不足） */
.ag-btn--secondary {
  border: 1px solid #00b7f1;
  background: #00b7f1;
  color: #000e4e;
}
.ag-btn--secondary:hover {
  border-color: #0095c7;
  background: #0095c7;
}
.ag-header__toggle {
  display: none;
}

@media (max-width: 767px) {
  .ag-header__inner {
    justify-content: space-between;
    height: 5.6rem;
  }
  .ag-header__logo {
    font-size: 1.5rem;
  }
  .ag-header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    width: 4rem;
    height: 4rem;
    padding: 0 0.8rem;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .ag-header__toggle span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: #000e4e;
    transition: transform 0.2s, opacity 0.2s;
  }
  .ag-header.is-open .ag-header__toggle span:nth-child(1) {
    transform: translateY(calc(0.5rem + 2px)) rotate(45deg);
  }
  .ag-header.is-open .ag-header__toggle span:nth-child(2) {
    opacity: 0;
  }
  .ag-header.is-open .ag-header__toggle span:nth-child(3) {
    transform: translateY(calc(-0.5rem - 2px)) rotate(-45deg);
  }
  .ag-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2.4rem;
    max-height: calc(100vh - 5.6rem);
    padding: 0.8rem 2.4rem 3.2rem;
    overflow-y: auto;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .ag-header.is-open .ag-header__nav {
    display: flex;
  }
  .ag-header__menu {
    flex-direction: column;
    gap: 0;
  }
  .ag-header__menu a {
    display: block;
    padding: 1.6rem 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 1.5rem;
  }
  .ag-header__actions {
    flex-direction: column;
    gap: 1.2rem;
  }
  .ag-btn {
    height: 4.8rem;
  }
}

/* ---------- セクション見出し（Robo Sync と同じ 2 段: 英字ラベル＋日本語見出し） ----------
  英字は 8rem／SP 6rem で紺、日本語は 2rem／SP 1.6rem で Medium Blue（2026-11-10。「USE CASE 01」などのラベルと同じ色）。どちらも太字。フォントはファイル末尾の「Noto Sans JP」で上書きしている。
  <h2 class="ag-heading"><span class="ag-heading__en" lang="en">About</span><span class="ag-heading__ja">…</span></h2> */
.ag-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  margin: 0 0 6rem;
  text-align: center;
  color: #000e4e;
}
.ag-heading__en {
  font-family: var(--font-syntax);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
}
.ag-heading__ja {
  font-family: var(--font-tazugane);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.8;
  color: #0063cc;
}
/* 直後にリード文を置く見出し */
.ag-heading--lead {
  margin-bottom: 2.4rem;
}

@media (max-width: 767px) {
  .ag-heading {
    margin-bottom: 4rem;
  }
  .ag-heading__en {
    font-size: 6rem;
  }
  .ag-heading__ja {
    font-size: 1.6rem;
  }
  .ag-heading--lead {
    margin-bottom: 1.6rem;
  }
}

/* ---------- 下層ページの見出し（パンくず＋ページ見出し） ---------- */
.ag-page-header {
  padding: 4rem 0 8rem;
  background: #fff;
}
.ag-page-header__inner {
  max-width: 105.6rem;
  margin: 0 auto;
  padding: 0 2.4rem;
  box-sizing: content-box;
}
.ag-page-header .ag-heading {
  margin: 8rem 0 0;
}

@media (max-width: 767px) {
  .ag-page-header {
    padding: 2.4rem 0 4.8rem;
  }
  .ag-page-header .ag-heading {
    margin-top: 4.8rem;
  }
}

/* ---------- トップの導線カード ---------- */
.ag-links {
  padding: 14rem 2.4rem;
  background: #fff;
}
.ag-links__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  max-width: 105.6rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ag-links__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 3.2rem;
  box-sizing: border-box;
  border: 2px solid #f2f2f2;
  border-radius: 0;
  background: #f2f2f2;
  color: #000e4e;
  text-decoration: none;
  transition: border-color 0.2s;
}
.ag-links__card:hover {
  border-color: #0063cc;
}
.ag-links__en {
  font-family: var(--font-tazugane);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #0063cc;
}
.ag-links__name {
  margin-top: 0.8rem;
  font-family: var(--font-tazugane);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
}
.ag-links__desc {
  flex: 1;
  margin: 1.2rem 0 0;
  font-size: 1.4rem;
  line-height: 1.8;
}
.ag-links__more {
  margin-top: 2.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0063cc;
}

@media (max-width: 767px) {
  .ag-links {
    padding: 10rem 3.2rem;
  }
  .ag-links__list {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .ag-links__card {
    padding: 2.4rem;
  }
}

/* ---------- トップの「簡単3ステップ」（簡単3ステップ.pptx の P.3 の体裁） ---------- */
/* 親が縦並びの flex のため、width を指定しないと中身の幅まで縮む */
.ag-flow {
  width: 100%;
  padding: 14rem 2.4rem;
  box-sizing: border-box;
  background: #f2f2f2;
}
.ag-flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4.8rem;
  max-width: 105.6rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ag-flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.4rem 1.6rem;
  border-radius: 0;
  background: #fff;
}
/* ステップ間の矢印（▲ を右に倒した紺の三角 ▶。幅 2.4rem・高さ 3.2rem。4rem 四方の枠の中央に描き、ステップ間の隙間の中央に置く） */
.ag-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4.4rem;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23000e4e' d='M8 4l24 16-24 16z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 番号（❶ のような紺の丸に白の数字）は枠の左寄せ、ステップ名は残りの幅の左右中央に置く */
.ag-flow__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 5.4rem;
}
.ag-flow__num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #000e4e;
  font-family: var(--font-tazugane);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.ag-flow__num + .ag-flow__name {
  flex: 1;
}
.ag-flow__name {
  margin: 0;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  color: #000e4e;
}
.ag-flow__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20rem;
  padding: 1.2rem;
  border-radius: 0;
  background: #fff;
}
.ag-flow__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ag-flow__desc {
  margin: 0;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #000e4e;
}
.ag-flow__related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-flow__related li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #000e4e;
}
/* 見出しの下のリード文（3ステップで…）とステップの間 */
.ag-flow .ag-sec__lead {
  margin-bottom: 6rem;
}
.ag-flow__related img {
  width: 100%;
  height: auto;
}

@media (max-width: 1023px) {
  .ag-flow__list {
    grid-template-columns: 1fr;
    max-width: 48rem;
    margin-right: auto;
    margin-left: auto;
  }
  .ag-flow__step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -4.4rem;
    transform: translateX(50%) rotate(90deg);
  }
}
@media (max-width: 767px) {
  .ag-flow {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }
  .ag-flow .ag-sec__lead {
    margin-bottom: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-header,
  .ag-header__toggle span,
  .ag-links__card {
    transition: none;
  }
}

/* ---------- 機能・特長ページ（機能_20261026.pptx をもとにした HTML のセクション） ---------- */
.ag-sec {
  padding: 14rem 2.4rem;
  background: #fff;
}
.ag-sec--gray {
  background: #f2f2f2;
}
.ag-sec__inner {
  max-width: 105.6rem;
  margin: 0 auto;
}
.ag-sec__title {
  margin: 0;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.8;
  color: #000e4e;
}
.ag-sec__lead {
  margin: 0;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
  color: #000e4e;
}
.ag-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}
/* 見出しの下の余白は見出し側（.ag-heading）で取る */
.ag-heading + .ag-cols {
  margin-top: 0;
}

/* 背景（要因 → 労働力不足が引き起こす 3 つの課題 → 解決策）
  セクションはライトグレー。要因・課題パネル・解決策は白、課題のカードはライトグレー、解決策は Medium Blue の枠。角は四角 */
.ag-bg__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: #f2f2f2;
  color: #000e4e;
}
.ag-bg__icon svg {
  width: 2.2rem;
  height: 2.2rem;
}
.ag-bg__factors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-bg__factors li {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem 2.4rem;
  background: #fff;
  font-family: var(--font-tazugane);
  font-size: 2rem; /* 課題名（.ag-bg__issue-name）と同じ */
  font-weight: 700;
  line-height: 1.5;
  color: #000e4e;
}
.ag-bg__arrow {
  width: 0;
  height: 0;
  margin: 4rem auto;
  border-top: 2rem solid #000e4e;
  border-right: 3.2rem solid transparent;
  border-left: 3.2rem solid transparent;
}
.ag-bg__panel {
  padding: 4.8rem 4rem;
  background: #fff;
}
.ag-bg__panel-title {
  margin: 0 0 3.2rem;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
  color: #000e4e;
}
.ag-bg__panel-title strong {
  margin-right: 0.4rem;
  font-size: 3.2rem;
}
.ag-bg__issues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-bg__issues li {
  padding: 2.4rem;
  background: #f2f2f2;
}
/* アイコンの右に番号と課題名を並べ、説明文はその下に置く */
.ag-bg__issue-head {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.ag-bg__issues .ag-bg__icon {
  background: #fff;
}
.ag-bg__issue-num {
  margin: 0;
  font-family: var(--font-syntax);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
  color: #0063cc;
}
.ag-bg__issue-name {
  margin: 0;
  font-family: var(--font-tazugane);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #000e4e;
}
.ag-bg__issue-desc,
.ag-bg__sol-desc {
  margin: 0;
  font-family: var(--font-tazugane);
  font-size: 1.5rem;
  line-height: 1.8;
  color: #000e4e;
}
.ag-bg__solve {
  margin: 0 0 2.4rem;
  padding: 2rem 2.4rem;
  background: #000e4e;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}
.ag-bg__solve strong {
  margin-right: 0.4rem;
  font-size: 2.6rem;
}
.ag-bg__solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-bg__solutions li {
  padding: 2.8rem 2.4rem 3.2rem;
  border: 2px solid #0063cc;
  background: #fff;
}
.ag-bg__sol-head {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 6.4rem;
  margin-bottom: 1.6rem;
}
.ag-bg__solutions .ag-bg__icon {
  width: 5.6rem;
  height: 5.6rem;
  background: #0063cc;
  color: #fff;
}
.ag-bg__solutions .ag-bg__icon svg {
  width: 2.6rem;
  height: 2.6rem;
}
.ag-bg__sol-name {
  margin: 0;
  font-family: var(--font-tazugane);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0063cc;
}
.ag-bg__sol-desc a {
  color: #0063cc;
  text-decoration: underline;
}

/* 主な機能 */
.ag-func {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  height: 100%;
  padding: 3.2rem 2.4rem;
  box-sizing: border-box;
  border-radius: 0;
  background: #f2f2f2;
}
.ag-func__name {
  margin: 0;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #000e4e;
}
.ag-func__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40rem;
  object-fit: contain;
}
.ag-func__desc {
  margin: 0;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.8;
  color: #000e4e;
}

/* 想定ユースケース（Cameleo の AI定期巡回 LP の「解決する課題」と同じ形: 上段はグレーにユースケース名、下段は Medium Blue の枠の白い吹き出しに効果） */
.ag-usecase__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}
.ag-usecase__list > li {
  display: flex;
  flex-direction: column;
  background: #f2f2f2;
}
.ag-usecase__q {
  padding: 3.2rem 2.4rem 2.8rem;
  text-align: center;
}
.ag-usecase__num {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: #0063cc;
}
.ag-usecase__name {
  margin: 0;
  font-family: var(--font-tazugane);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #000e4e;
}
.ag-usecase__a {
  position: relative;
  flex: 1;
  padding: 2rem 2.4rem 2.4rem;
  border: 2px solid #0063cc;
  background: #fff;
}
/* 吹き出しの上向きの三角 */
.ag-usecase__a::before {
  content: "";
  position: absolute;
  top: -1.1rem;
  left: 50%;
  margin-left: -1rem;
  border-right: 1rem solid transparent;
  border-bottom: 1rem solid #0063cc;
  border-left: 1rem solid transparent;
}
.ag-usecase__a span {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.8rem;
  background: #0063cc;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}
.ag-usecase__a p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.8;
  color: #000e4e;
}
.ag-usecase__subtitle {
  margin: 8rem 0 0;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.6;
  color: #000e4e;
}
/* お問い合わせの多い業界・用途（イラスト＋業種＋用途のカード。イラストは 3:2 に切り抜く） */
.ag-industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}
.ag-industry {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  background: #fff;
}
.ag-industry__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #f2f2f2;
}
.ag-industry__body {
  padding: 2rem 2.4rem 2.4rem;
  border-top: 1px solid #ddd;
  text-align: center;
}
.ag-industry__name {
  display: block;
  font-family: var(--font-tazugane);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
  color: #0063cc;
}
.ag-industry__scene {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-tazugane);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
  color: #000e4e;
}
@media (max-width: 1023px) {
  .ag-usecase__list,
  .ag-industries {
    grid-template-columns: 1fr;
    max-width: 56rem;
    margin-right: auto;
    margin-left: auto;
  }
}

/* 特長（3 つの“しやすさ”） */
.ag-merit {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #f2f2f2;
}
.ag-merit__head {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 1.6rem 2.4rem;
  background: #000e4e;
  font-family: var(--font-tazugane);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.ag-merit__num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: #fff;
  font-size: 2.4rem;
  color: #000e4e;
}
.ag-merit__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  padding: 3.2rem 2.4rem;
  text-align: center;
  color: #000e4e;
}
.ag-merit__lead {
  margin: 0;
  font-family: var(--font-tazugane);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
}
.ag-merit__sub {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.5rem;
}
.ag-merit__img {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22rem;
}
.ag-merit__img img {
  max-width: 100%;
  max-height: 22rem;
  width: auto;
  height: auto;
}
.ag-merit__note {
  margin: auto 0 0;
  font-family: var(--font-tazugane);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .ag-bg__factors,
  .ag-bg__issues,
  .ag-bg__solutions {
    grid-template-columns: 1fr;
    max-width: 56rem;
    margin-right: auto;
    margin-left: auto;
  }
  .ag-cols {
    grid-template-columns: 1fr;
    max-width: 56rem;
    margin-right: auto;
    margin-left: auto;
  }
}
@media (max-width: 767px) {
  .ag-sec {
    padding: 10rem 2.4rem;
  }
  .ag-sec__title {
    font-size: 2.2rem;
  }
  .ag-sec__lead {
    font-size: 1.6rem;
  }
  .ag-heading + .ag-cols {
    margin-top: 0;
  }
  .ag-cols {
    margin-top: 3.2rem;
  }
  .ag-bg__factors {
    gap: 1.2rem;
  }
  .ag-bg__factors li {
    padding: 1.6rem 2rem;
    font-size: 1.8rem;
  }
  .ag-bg__arrow {
    margin: 3.2rem auto;
  }
  .ag-bg__panel {
    padding: 3.2rem 2rem;
  }
  .ag-bg__panel-title {
    margin-bottom: 2.4rem;
    font-size: 1.6rem;
  }
  .ag-bg__panel-title strong {
    display: block;
    margin-right: 0;
    font-size: 2.6rem;
  }
  .ag-bg__issues,
  .ag-bg__solutions {
    gap: 1.6rem;
  }
  .ag-bg__issues li {
    padding: 2rem;
  }
  .ag-bg__issue-name {
    font-size: 1.8rem;
  }
  .ag-bg__solve {
    font-size: 1.6rem;
  }
  .ag-bg__solve strong {
    display: block;
    margin-right: 0;
    font-size: 2rem;
  }
  .ag-bg__sol-name {
    font-size: 2rem;
  }
  .ag-func__img {
    height: 32rem;
  }
  .ag-usecase__list,
  .ag-industries {
    gap: 2.4rem;
    margin-top: 3.2rem;
  }
  .ag-usecase__q {
    padding: 2.4rem 2rem 2rem;
  }
  .ag-usecase__name {
    font-size: 2rem;
  }
  .ag-usecase__a {
    padding: 1.6rem 2rem 2rem;
  }
  .ag-usecase__a p {
    font-size: 1.4rem;
  }
  .ag-usecase__subtitle {
    margin-top: 6rem;
    font-size: 2rem;
  }
  .ag-industry__scene {
    font-size: 1.8rem;
  }
  .ag-merit__head {
    font-size: 2rem;
  }
  .ag-merit__num {
    width: 4.8rem;
    height: 4.8rem;
    font-size: 2rem;
  }
}

/* ---------- トライアルページ「トライアルのご利用の流れ」（旧 trial-flow.png を HTML 化） ---------- */
.ag-trial-flow__list {
  display: flex;
  flex-direction: column;
  gap: 5.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-trial-flow__step {
  position: relative;
  padding: 2.4rem 4.8rem;
  border-radius: 0;
  background: #f2f2f2;
  color: #000e4e;
}
/* ステップ間の下向き矢印 */
.ag-trial-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -4.4rem;
  left: 50%;
  width: 5.6rem;
  height: 3.2rem;
  transform: translateX(-50%);
  background: #999;
  clip-path: polygon(25% 0, 75% 0, 75% 45%, 100% 45%, 50% 100%, 0 45%, 25% 45%);
}
.ag-trial-flow__name {
  display: flex;
  gap: 0.8rem;
  margin: 0;
  font-family: var(--font-tazugane);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
}
.ag-trial-flow__desc {
  margin: 0.4rem 0 0 2rem;
  font-size: 1.8rem;
  line-height: 1.6;
}
.ag-trial-flow__notes {
  margin: 0.8rem 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 1.4rem;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .ag-trial-flow__list {
    gap: 4.8rem;
  }
  .ag-trial-flow__step {
    padding: 2rem 2rem;
  }
  .ag-trial-flow__step:not(:last-child)::after {
    bottom: -4rem;
    width: 4.8rem;
    height: 2.8rem;
  }
  .ag-trial-flow__name {
    font-size: 1.7rem;
  }
  .ag-trial-flow__desc,
  .ag-trial-flow__notes {
    margin-left: 0;
  }
  .ag-trial-flow__desc {
    font-size: 1.5rem;
  }
  .ag-trial-flow__notes {
    font-size: 1.3rem;
  }
}

/* SP の左右の余白は、本文の既存セクション（sp:px-[3.2rem]）にそろえる */
@media (max-width: 767px) {
  .ag-page-header__inner,
  .ag-flow {
    max-width: none;
    padding-right: 3.2rem;
    padding-left: 3.2rem;
  }
  .ag-sec,
  .ag-links {
    padding-right: 3.2rem;
    padding-left: 3.2rem;
  }
}

/* ---------- 価格ページの料金表（価格_20261026.pptx をもとにした HTML の表） ---------- */
.ag-price {
  max-width: 105.6rem;
  margin: 0 auto;
}
.ag-price__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ag-price__scroll:focus-visible {
  outline: 2px solid #0063cc;
  outline-offset: 2px;
}
.ag-price__hint {
  display: none;
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  color: #000e4e;
}
.ag-price-table {
  width: 100%;
  min-width: 96rem;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #000e4e;
}
.ag-price-table .ag-col-group {
  width: 4.4rem;
}
.ag-price-table .ag-col-item {
  width: 15rem;
}
.ag-price-table .ag-col-sub {
  width: 9.6rem;
}
.ag-price-table .ag-col-free {
  width: 13.6rem;
}
.ag-price-table__yen {
  white-space: nowrap;
}
.ag-price-table th,
.ag-price-table td {
  padding: 1rem 0.8rem;
  border: 1px solid #999;
  background: #fff;
  vertical-align: middle;
}
.ag-price-table thead th {
  background: #000e4e;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.ag-price-table thead th small {
  display: block;
  font-size: 1.2rem;
}
.ag-price-table .ag-price-table__group {
  width: 4rem;
  padding: 1rem 0.4rem;
  background: #000e4e;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  writing-mode: vertical-rl;
}
.ag-price-table tbody th {
  background: #f2f2f2;
  text-align: left;
  font-weight: 700;
}
.ag-price-table tbody th small {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
}
.ag-price-table td {
  text-align: center;
}
.ag-price-table td.is-price {
  text-align: right;
}
/* 同じプランの月次契約／年間契約の区切り */
.ag-price-table .is-annual {
  border-left-style: dotted;
}
.ag-price-table .is-merged-top {
  border-bottom-style: dotted;
}
.ag-price-table .is-merged-bottom {
  border-top-style: dotted;
}
.ag-price-table__contract {
  display: block;
  font-family: var(--font-tazugane);
  font-weight: 700;
}
.ag-price-table small.ag-price-table__term {
  display: block;
  font-size: 1.2rem;
}
.ag-price-table sup,
.ag-price-table .ag-note-ref {
  margin-left: 0.2rem;
  font-size: 1.1rem;
  vertical-align: super;
}
.ag-price__notes {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #000e4e;
}
.ag-price__notes li {
  padding-left: 3.6rem;
  text-indent: -3.6rem;
}

/* 申込先の案内 */
.ag-price-cta {
  margin: 6.4rem 0 0;
  padding: 4rem;
  border-radius: 0;
  background: #f2f2f2;
  text-align: center;
  color: #000e4e;
}
.ag-price-cta__title {
  margin: 0;
  font-family: var(--font-tazugane);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.5;
}
.ag-price-cta__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  margin: 3.2rem 0 0;
  padding: 0;
  list-style: none;
}
.ag-price-cta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 3.2rem 2.4rem;
  border-radius: 0;
  background: #fff;
}
.ag-price-cta__text {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.7;
}
.ag-price-cta__item .ag-btn {
  min-width: 24rem;
  height: 4.8rem;
  font-size: 1.5rem;
}

@media (max-width: 767px) {
  .ag-price__hint {
    display: block;
  }
  .ag-price-cta {
    padding: 2.4rem;
  }
  .ag-price-cta__title {
    font-size: 1.8rem;
  }
  .ag-price-cta__list {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .ag-price-cta__item {
    padding: 2.4rem 1.6rem;
  }
  .ag-price-cta__text {
    font-size: 1.5rem;
  }
}

/* 機能・特長「活用イメージ例」の中の小見出し */
.ag-sec__title--sub {
  font-size: 2.2rem;
}

/* 料金表: フリートライアル列の強調（ライトブルーの見出し＋枠）と Standard の「推奨」 */
.ag-price-table .ag-col-item {
  width: 14rem;
}
.ag-price-table .ag-col-sub {
  width: 9rem;
}
.ag-price-table .ag-col-free,
.ag-price-table .ag-col-ent {
  width: 14.4rem;
}
.ag-price-table thead th.is-free {
  border-color: #00b7f1;
  background: #00b7f1;
  color: #000e4e;
}
.ag-price-table td.is-free {
  border-right: 3px solid #00b7f1;
  border-left: 3px solid #00b7f1;
  font-weight: 700;
}
.ag-price-table tbody tr:last-child td.is-free {
  border-bottom: 3px solid #00b7f1;
}
.ag-price-table__badge {
  display: block;
  width: fit-content;
  margin: 0 auto 0.4rem;
  padding: 0.1rem 1.2rem;
  border-radius: 1.2rem;
  background: #ff6a00;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #000e4e;
}
.ag-price-table td .ag-note-ref {
  white-space: nowrap;
}

/* 料金表の本文は一回り小さくして、金額と注記の番号を 1 行に収める */
.ag-price-table tbody th,
.ag-price-table tbody td {
  font-size: 1.3rem;
}
.ag-price-table .ag-note-ref {
  font-size: 1rem;
}

/* ---------- 料金表のトンマナ調整（サイトのほかのカード・表現にそろえる） ----------
  - 値はすべて中央寄せ（金額だけ右寄せにしない）
  - 見出し 1.5rem／本文 1.4rem／補足（small）1.2rem／注記 1.4rem に統一
  - 罫線は 1px の Medium Grey、強調の枠は 2px、外枠は角丸 0.8rem */
.ag-price__scroll {
  border: 1px solid #999;
  border-radius: 0.8rem;
}
.ag-price-table {
  border-style: hidden;
}
.ag-price-table thead th,
.ag-price-table .ag-price-table__group {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.ag-price-table .ag-price-table__group {
  letter-spacing: 0.2em;
}
.ag-price-table tbody th,
.ag-price-table tbody td {
  padding: 1.2rem 0.6rem;
  font-size: 1.4rem;
}
.ag-price-table tbody th {
  padding-left: 1.2rem;
}
.ag-price-table td.is-price {
  text-align: center;
}
.ag-price-table thead th small,
.ag-price-table tbody th small,
.ag-price-table small.ag-price-table__term {
  font-size: 1.2rem;
}
.ag-price-table td.is-free {
  border-right-width: 2px;
  border-left-width: 2px;
}
.ag-price-table tbody tr:last-child td.is-free {
  border-bottom-width: 2px;
}
.ag-price__notes {
  margin-top: 2.4rem;
  font-size: 1.4rem;
}
.ag-price__notes li {
  padding-left: 4rem;
  text-indent: -4rem;
}
.ag-price__notes li + li {
  margin-top: 0.4rem;
}
.ag-price-table .ag-col-item {
  width: 15.6rem;
}
.ag-price-table .ag-col-sub {
  width: 10rem;
}
.ag-price-table .ag-col-free,
.ag-price-table .ag-col-ent {
  width: 13.6rem;
}
/* 金額と注記の番号（※4）を 1 行に収める */
.ag-price-table td.is-price {
  padding-right: 0.4rem;
  padding-left: 0.4rem;
  white-space: nowrap;
}
/* 番号なしの注記（※ のみ）はぶら下げを浅くする */
.ag-price__notes li.is-plain {
  padding-left: 1.4rem;
  text-indent: -1.4rem;
}

/* ---------- トップの「AI動画ガイド作成サービスについて」の画面イメージ ---------- */
.ag-about__img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6rem;
}

@media (max-width: 767px) {
  .ag-about__img {
    margin-top: 4rem;
  }
}

/* ---------- お知らせ（Robo Sync のお知らせ一覧・トップの新着と同じ構成） ---------- */
.ag-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ag-news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-tazugane);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: #f2f2f2;
  color: #0063cc;
}

/* トップの新着（日付・カテゴリ・タイトルの行） */
.ag-news {
  padding: 14rem 2.4rem;
  background: #f2f2f2;
}
.ag-news__list {
  max-width: 105.8rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ag-news__item {
  border-bottom: 1px solid #999;
}
.ag-news__item:first-child {
  border-top: 1px solid #999;
}
/* 日付・種別・タイトルをそれぞれセルにし（セルの罫線は引かない）、各セルの文字を左寄せにして、左に同じ幅の余白（1.6rem）を取る。
   カーソルを載せると行の背景をライトグレーにする（Robo Sync・Cameleo のお知らせの行と同じ動き。色はブランドガイドラインのライトグレー） */
.ag-news__link {
  display: grid;
  grid-template-columns: 15.2rem 14.4rem 1fr;
  color: #000e4e;
  text-decoration: none;
  transition: background-color 0.2s;
}
.ag-news__meta {
  display: contents;
}
.ag-news__date,
.ag-news__cat,
.ag-news__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2.4rem 1.6rem;
}
.ag-news__date {
  font-family: var(--font-tazugane);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}
.ag-news__item .ag-news-tag {
  background: #fff;
  color: #000e4e;
  font-size: 1.2rem;
}
.ag-news__title {
  flex: 1;
  font-size: 1.6rem;
  line-height: 2;
  transition: color 0.2s;
}
.ag-news__link:hover {
  background: #f2f2f2;
}
.ag-news__link:hover .ag-news__title {
  color: #0063cc;
}
/* 行がグレーになるので、種別のタグは白にする */
.ag-news__link:hover .ag-news-tag {
  background: #fff;
}
.ag-news__link:focus-visible {
  outline: 2px solid #0063cc;
  outline-offset: 2px;
}
.ag-news__more {
  margin-top: 6rem;
  text-align: center;
}
/* 「お知らせをもっと見る」（Robo Sync と同じ白地・ライトブルーの枠） */
.ag-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-width: 22rem;
  min-height: 6rem;
  padding: 0.8rem 2.4rem 0.8rem 3.2rem;
  box-sizing: border-box;
  border: 1px solid #00b7f1;
  border-radius: 3rem;
  background: #fff;
  font-family: var(--font-tazugane);
  font-size: 1.4rem;
  font-weight: 750;
  line-height: 1.8;
  color: #000e4e;
  text-decoration: none;
  transition: background-color 0.2s;
}
.ag-btn-more::after {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4.26 1.26a.87.87 0 0 0 0 1.23l4.33 4.33-4.33 4.33a.87.87 0 0 0 1.24 1.24l4.94-4.95a.87.87 0 0 0 0-1.24L5.5 1.26a.87.87 0 0 0-1.24 0Z' fill='%23000e4e'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ag-btn-more:hover {
  background: #f2f2f2;
}
.ag-btn-more:focus-visible {
  outline: 2px solid #0063cc;
  outline-offset: 2px;
}

/* お知らせ一覧（カードの 3 カラム） */
.ag-news-index {
  padding: 14rem 2.4rem;
  background: #f2f2f2;
}
.ag-news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6.4rem;
  max-width: 128rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ag-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  color: #000e4e;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ag-news-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.4rem);
}
.ag-news-card:focus-visible {
  outline: 2px solid #0063cc;
  outline-offset: 2px;
}
.ag-news-card__img {
  display: block;
  width: 100%;
  height: 21.6rem;
  object-fit: contain;
}
.ag-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding: 2.4rem 2.4rem 4rem;
}
.ag-news-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}
.ag-news-card__date {
  font-size: 1.2rem;
  line-height: 2;
  color: #666;
}
.ag-news-card__title {
  margin: 0;
  font-family: var(--font-tazugane);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.8;
}
/* 右下の矢印（Medium Blue の丸に白の矢印） */
.ag-news-card__arrow {
  align-self: flex-end;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #0063cc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4.26 1.26a.87.87 0 0 0 0 1.23l4.33 4.33-4.33 4.33a.87.87 0 0 0 1.24 1.24l4.94-4.95a.87.87 0 0 0 0-1.24L5.5 1.26a.87.87 0 0 0-1.24 0Z' fill='%23fff'/%3E%3C/svg%3E") center / 1.6rem no-repeat;
  transition: background-color 0.2s;
}
.ag-news-card:hover .ag-news-card__arrow {
  background-color: #000e4e;
}

@media (max-width: 1023px) {
  .ag-news-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}
@media (max-width: 767px) {
  .ag-news,
  .ag-news-index {
    padding: 10rem 3.2rem;
  }
  /* SP は 1 段目に日付・種別、2 段目にタイトル */
  .ag-news__link {
    grid-template-columns: auto 1fr;
  }
  .ag-news__date,
  .ag-news__cat,
  .ag-news__title {
    padding: 1.6rem 1.2rem;
  }
  .ag-news__title {
    grid-column: 1 / -1;
    padding-top: 0;
    font-size: 1.3rem;
  }
  .ag-news-cards {
    grid-template-columns: 1fr;
    gap: 4.8rem;
  }
  .ag-news-card__img {
    height: auto;
  }
  .ag-news-card__arrow {
    background-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-news-card,
  .ag-btn-more {
    transition: none;
  }
  .ag-news-card:hover {
    transform: none;
  }
}

/* ---------- 価格ページ: 価格体系のリード文・料金表の列幅とプラン名 ---------- */
.ag-price__lead {
  margin: 0;
  text-align: center;
  font-family: var(--font-tazugane);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.8;
  color: #000e4e;
}
/* Light・Standard・Enterprise の列幅をそろえる（Light・Standard は月次／年間の 2 列ずつ。ag-col-plan 1 列＝プランの半分） */
.ag-price-table .ag-col-free {
  width: 10.4rem;
}
.ag-price-table .ag-col-plan {
  width: 10.8rem;
}
.ag-price-table .ag-col-ent {
  width: 21.6rem;
}
/* フリートライアルは「フリー」「トライアル」を 1 行ずつ */
.ag-price-table__free {
  display: block;
  line-height: 1.4;
}
.ag-price-table__plan {
  display: block;
  font-family: var(--font-syntax);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.ag-price-table__badge {
  margin-bottom: 0.6rem;
  padding: 0.2rem 1.4rem;
  border-radius: 1.6rem;
  font-size: 1.4rem;
}

@media (max-width: 767px) {
  .ag-price__lead {
    text-align: left;
    font-size: 1.5rem;
  }
}

/* ヘッダーの CV ボタン（お問い合わせ／無料トライアル）は同じ幅にする */
.ag-header__actions .ag-btn {
  width: 15.2rem;
  padding: 0 1.6rem;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .ag-header__actions .ag-btn {
    width: auto;
  }
}

/* トップのヒーローの丸ボタン（お問い合わせ／無料トライアル）: 枠線の代わりに白い光彩を付ける */
.ag-hero-cv a {
  box-shadow: 0 0 1.2rem 0.2rem rgba(255, 255, 255, 0.7);
}

/* ---------- 価格ページ: プランの列を広げ、「おすすめ」を表の上端に重ねる ---------- */
/* Light・Standard・Enterprise の列（月次／年間の各列）を同じ幅のまま広げる */
.ag-price {
  max-width: 117.2rem;
}
/* 価格のセクションは左右に 19.2rem の余白があるため（中身は 105.6rem）、PC では表の部分だけ左右に 5.8rem はみ出させる */
@media (min-width: 768px) {
  .ag-price {
    margin-right: -5.8rem;
    margin-left: -5.8rem;
  }
}
/* SP では横スクロールで表示する（PC では表をコンテナの幅に収める） */
@media (max-width: 767px) {
  .ag-price-table {
    min-width: 117.2rem;
  }
}
@media (min-width: 768px) {
  .ag-price-table {
    min-width: 0;
  }
  /* PC では表が収まるので、外枠の線で 1px のスクロールが出ないようにする */
  .ag-price__scroll {
    overflow-x: visible;
  }
}
.ag-price-table .ag-col-plan {
  width: 12.8rem;
}
.ag-price-table .ag-col-ent {
  width: 25.6rem;
}
/* 「おすすめ」を表の上端の線に上下中央で重ねるため、外枠は表に付け、上に重なる分の余白を取る。
   角はサイトのほかの要素にそろえて四角にする */
.ag-price__scroll {
  padding-top: 1.6rem;
  border: 0;
  border-radius: 0;
}
.ag-price-table {
  border: 1px solid #999;
}
.ag-price-table thead th.is-recommended {
  position: relative;
}
.ag-price-table__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  margin: 0;
  background: #ffbf00;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* ---------- フォントをすべて Noto Sans JP にする（Google Fonts。各ページの <head> で読み込む） ----------
  ビルド済み CSS・このファイルのフォント指定はすべて変数経由なので、変数を Noto Sans JP に差し替える */
:root {
  --font-noto: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-tazugane: var(--font-noto);
  --font-syntax: var(--font-noto);
  --font-sans: var(--font-noto);
  --font-sans-jp: var(--font-noto);
  --font-sans-en: var(--font-noto);
  --font-serif-jp: var(--font-noto);
  --font-serif-en: var(--font-noto);
  --default-font-family: var(--font-noto);
}
html,
.campaign-card-ft a.campaign-text-link {
  font-family: var(--font-noto);
}

/* 料金表の「おすすめ」を一回り大きくする（表の上に重なる分の余白も広げる） */
.ag-price-table__badge {
  padding: 0.3rem 1.8rem;
  border-radius: 2rem;
  font-size: 1.7rem;
}
.ag-price__scroll {
  padding-top: 2rem;
}

/* 料金表の金額: 数字を大きく・太くし、単位（万円/月 など）は本文の大きさのままにする */
.ag-price-table__num {
  margin-right: 0.2rem;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* 「おすすめ」の文字をマークの上下中央に置く。行の高さを 1 にしたうえで、Noto Sans JP は文字が
   行の中で 0.15rem ほど下に寄るため、上の余白をその分減らし、下の余白を増やす */
.ag-price-table__badge {
  padding: 0.45rem 1.8rem 0.75rem;
  line-height: 1;
}

/* 料金表の「自動継続／都度追加」の列を削除したので、その分（10rem）を項目の列に足す */
.ag-price-table .ag-col-item {
  width: 25.6rem;
}

/* 料金表「アップロード時間の増量」の都度追加の行: 四角の枠で囲んだラベル → 金額※2 */
.ag-price-table__spot-label {
  display: inline-block;
  margin-right: 1.6rem;
  padding: 0.3rem 1rem;
  border: 1px solid #000e4e;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}

/* 料金表の本文の行は、いちばん高い行（2 行の項目名・契約形態）に合わせて高さをそろえる */
.ag-price-table tbody tr {
  height: 6.8rem;
}

/* フリートライアル列の本文は太字にせず、ほかのプランの列と同じ文字の太さにする（強調はライトブルーの枠と見出しで行う） */
.ag-price-table td.is-free {
  font-weight: 400;
}

/* ---------- 2026-11 調整 ---------- */
/* グローバルナビは右寄せ（CV ボタンの隣に並べる） */
.ag-header__nav {
  justify-content: flex-end;
  gap: 4rem;
}
/* 料金表: フリートライアル列を月次／年間の 1 列（Light の半分）と同じ幅にする。増えた分は項目列から差し引く */
.ag-price-table .ag-col-free {
  width: 12.8rem;
}
.ag-price-table .ag-col-item {
  width: 23rem; /* 罫線の 1px 分で横スクロールが出ないよう 2px 細くする */
}

/* トップに置いた Issue（白の背景）。How It Works（グレー）の後に続くため、背景を白・グレー交互に保つよう
   Issue は白、Contents はグレー、News は白にし、中のカード・パネルの白とグレーを入れ替える */
.ag-bg--top .ag-bg__factors li,
.ag-bg--top .ag-bg__panel,
.ag-bg--top .ag-bg__issues .ag-bg__icon {
  background: #f2f2f2;
}
.ag-bg--top .ag-bg__issues li {
  background: #fff;
}
/* 要因（少子高齢化など）のアイコンは紺の丸に白の線（グレーのカードの上で白の丸だと見えにくいため） */
.ag-bg--top .ag-bg__factors .ag-bg__icon {
  background: #000e4e;
  color: #fff;
}
.ag-links {
  background: #f2f2f2;
}
.ag-links__card {
  border-color: #fff;
  background: #fff;
}
.ag-news {
  background: #fff;
}
.ag-news__item .ag-news-tag {
  background: #f2f2f2;
}

/* 機能・特長: 主な機能（旧 Function）はページ見出し（Features／機能・特長）の直下に置き、見出しを付けない */
.ag-sec--after-header {
  padding-top: 0;
  margin-top: -6rem; /* ページ見出しの下の余白（8rem）と合わせて、見出しと中身の間を他のセクションと同じ 6rem にする */
}
@media (max-width: 767px) {
  .ag-sec--after-header {
    margin-top: -4rem; /* SP も見出しと中身の間を他のセクションと同じ 4rem にそろえる */
  }
}

/* 機能・特長: 背景を白（ページ見出し＋主な機能）→ グレー（Use Case）→ 白（Values）と交互にする。
   グレーの Use Case では、想定ユースケースのカードの上段を白にする（下段は Medium Blue の枠で区別できる） */
.ag-sec--gray .ag-usecase__list > li {
  background: #fff;
}
.ag-sec--gray .ag-industry {
  border-color: #fff;
}
