@charset "utf-8";

/* =====================================================================
   生成AI受託開発サービス LP（/pro-lp/ai-02/）
   ---------------------------------------------------------------------
   ■ ブレークポイント
     SP  : 〜768px（基本のスタイル。ここに書くものはSP向け）
     PC  : 769px〜（@media (min-width: 769px) で上書き）
     ※スマホから先に書き、PCで上書きする「モバイルファースト」です。

   ■ 文字サイズ
     font-size はすべて rem で指定（1rem = 基準16px）。
     基準は「2. ベース」の html で画面幅に合わせて伸び縮みする。
     デザイン（.ai）の px から rem への換算：px ÷ 16
       例）17px → 1.0625rem ／ 24px → 1.5rem

   ■ クラス名の頭文字
     l- … レイアウト（ヘッダー・フッター・幅の枠など）
     c- … 使い回す部品（ボタン・見出しなど）
     p- … そのセクション専用
     u- … 表示切り替えなどの補助
   ===================================================================== */


/* =====================================================================
   1. デザイントークン（色・フォント・サイズ）
   ===================================================================== */
:root {
  /* --- 色 ------------------------------------------------------------ */
  --c-text: #21254b;          /* 本文・見出しの濃紺 */
  --c-navy: #22254e;          /* CTA帯・FAQのQバッジ */
  --c-purple: #534cb4;        /* FAQ背景・Aバッジ・英字ラベル */
  --c-lavender: #b7a5f7;      /* 濃い背景の上の英字ラベル */
  --c-orange: #f05a25;        /* チェックマークなどのアクセント */
  --c-gray-bg: #edf1f4;       /* 悩みリストなどの薄いグレー背景 */
  --c-border: #cccccc;        /* 区切り線 */
  --c-white: #ffffff;

  /* CTAボタンのグラデーション（左：オレンジ → 右：赤みのオレンジ） */
  --grad-cta: linear-gradient(90deg, #e68c34 0%, #e55135 100%);

  /* 追従ヘッダーの背景（下の内容がうっすら透ける白） */
  --c-header-bg: rgba(250, 250, 250, 0.92);

  /* --- フォント -------------------------------------------------------- */
  /* 日本語・本文 */
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;

  /* 英字ラベル（CURRENT CHALLENGES・SECURITY・SOURCE など）：DIN 2014
     （Adobe Fonts / 太さ 300・400・600・700） */
  --font-en: "din-2014", var(--font-ja);

  /* 番号（01〜03・Q1〜Q6・STEP 01〜04）：Dystopian
     （Adobe Fonts / 太さ 400 のみ） */
  --font-num: "dystopian", var(--font-ja);

  /* --- サイズ ---------------------------------------------------------- */
  --header-h: 100px;          /* SPの追従ヘッダーの高さ（2段構成） */
  --inner-w: 1000px;          /* コンテンツの最大幅 */
  --inner-w-wide: 1100px;     /* ヘッダーなど少し広い枠 */
  --inner-w-narrow: 1000px;   /* FAQなど */
  --gutter: 16px;             /* 画面端の余白 */
  --section-py: 64px;         /* セクションの上下余白 */
  --radius-card: 8px;
  --radius-pill: 999px;
}

@media (min-width: 769px) {
  :root {
    --header-h: 70px;         /* PCの追従ヘッダーの高さ（1段構成） */
    --gutter: 24px;
    --section-py: 100px;
  }
}


/* =====================================================================
   2. ベース
   ===================================================================== */
/* 文字サイズの基準（1rem）を、画面幅に合わせて伸び縮みさせる
   ・CSSの font-size はすべて rem（16px = 1rem）で指定
   ・基準の 1rem が下の計算で変わるので、サイト全体の文字が一緒に伸び縮みする
   ・文字以外（余白・幅など）は px のままなので、レイアウトは崩れにくい

   SP ：幅375pxで 16px。320px付近で14px、それより狭くても14px止まり
        幅を広げると最大17pxまで（タブレットで大きくなりすぎないように）
   PC ：幅1100px以上で 16px（デザインどおり）
        幅を狭めると縮み、最小13pxまで（1000px前後でも2列のレイアウトを保つ）

   min・max を % で書いているのは、ブラウザの文字サイズ設定（標準＝16px）を
   変えている利用者にも、その設定に比例した大きさで表示するため */
html {
  font-size: clamp(87.5%, 4.2667vw, 106.25%);
}

@media (min-width: 769px) {
  html {
    font-size: clamp(81.25%, 1.4545vw, 100%);
  }
}

html {
  /* ページ内リンク（#mail_form など）の着地点がヘッダーに隠れないように */
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  /* ヘッダーが position: fixed なので、その高さ分だけ中身を下げる */
  padding-top: var(--header-h);
  font-family: var(--font-ja);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;   /* 長いURLなどで横にはみ出さないように */
}


img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* キーボード操作時のフォーカス表示（マウス操作時は出ない） */
:focus-visible {
  outline: 3px solid var(--c-purple);
  outline-offset: 3px;
}

/* 動きを減らす設定の利用者には、スクロールやアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* =====================================================================
   3. レイアウト
   ===================================================================== */

/* --- 幅の枠 ----------------------------------------------------------- */
.l-inner {
  width: min(100% - var(--gutter) * 2, var(--inner-w));
  margin-inline: auto;
}
.l-inner--wide {
  width: min(84%, var(--inner-w-wide));   /* SP：画面幅の84%（PCは下の @media） */
}

@media (min-width: 769px) {
  .l-inner--wide {
    width: min(100% - var(--gutter) * 2, var(--inner-w-wide));
  }
}
.l-inner--narrow {
  width: min(100% - var(--gutter) * 2, var(--inner-w-narrow));
}

/* --- セクションの上下余白 ---------------------------------------------- */
/* .l-section の上下余白は削除（各セクションで個別に指定する） */

/* --- ヘッダー（追従） ---------------------------------------------------
   SP：上段＝ロゴ＋実績バッジ／下段＝ボタン2つ
   PC：1段（ロゴ＋バッジ … ボタン2つ）
   ---------------------------------------------------------------------- */
.l-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--c-header-bg);
  box-shadow: 0 2px 8px rgba(33, 37, 75, 0.08);
  /* 対応ブラウザでは背景を少しぼかして、透けた文字を読みにくくする */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.l-header__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
  width: min(100% - 24px, var(--inner-w-wide));
  margin-inline: auto;
}

.l-header__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.l-header__logo img {
  width: 100px;
}

/* 実績バッジ：テキストの左右に月桂樹
   画像は左側の1枚（laurel.png）だけ用意し、右側は左右反転して使う。
   ※CSS内のパスは「CSSファイルからの相対パス」なので、
     ローカルでも本番でも ../img/ のままで表示される */
.l-header__badge {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.l-header__badge::before,
.l-header__badge::after {
  content: "";
  flex: none;
  width: 12px;
  height: 30px;
  background: url("../img/laurel.png") no-repeat center / contain;
}

.l-header__badge::after {
  transform: scaleX(-1);   /* 左右反転 */
}

.l-header__nav {
  display: flex;
  gap: 8px;
}

/* ボタンの文言：1024px以上は長い文言、未満（SP・小さいPC）は短い文言 */
.l-header__btn-long {
  display: none;
}

@media (min-width: 1024px) {
  .l-header__btn-long {
    display: inline;
  }
  .l-header__btn-short {
    display: none;
  }
}

@media (min-width: 769px) {
  .l-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 48px, var(--inner-w-wide));
  }
  .l-header__brand {
    justify-content: flex-start;
    gap: 24px;
  }
  .l-header__logo img {
    width: 160px;
  }
  .l-header__badge {
    gap: 6px;
  }
  .l-header__badge::before,
  .l-header__badge::after {
    width: 17px;
    height: 42px;
  }
  .l-header__nav {
    gap: 14px;
  }
}

/* --- フッター ---------------------------------------------------------
   PC：ロゴとコピーライトを横並びで中央に／SP：ロゴの下にコピーライト
   ---------------------------------------------------------------------- */
/* フォームの下端〜ロゴ：SP 40px／PC 56px（デザインどおり） */
.l-footer {
  padding-block: 40px 28px;
}

.l-footer .l-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.l-footer__logo {
  display: block;
}

.l-footer__logo img {
  width: 120px;
}

.l-footer__copy {
  color: #333333;
}

/* reset の small { font-size: 80% } を打ち消す */
.l-footer__copy small {
  font-size: inherit;
}

.l-footer__copy a {
  text-decoration: none;
}

@media (min-width: 769px) {
  .l-footer {
    padding-block: 56px 60px;
  }
  .l-footer .l-inner {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  .l-footer__logo img {
    width: 150px;
  }
}


/* =====================================================================
   4. 部品
   ===================================================================== */

/* --- ボタン ------------------------------------------------------------ */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-white);
  text-align: center;
  text-decoration: none;
  background: var(--grad-cta);
  border-radius: var(--radius-pill);
  transition: filter 0.2s, transform 0.2s;
}

@media (hover: hover) {
  .c-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
  }
}

/* ヘッダーのボタン：SPは2つで横幅を半分ずつ */
.c-btn--header {
  flex: 1;
  height: 44px;
  padding-inline: 12px;
}

@media (min-width: 769px) {
  .c-btn--header {
    flex: none;
    height: 40px;
    padding-inline: 20px;
    min-width: 160px;
  }
}

@media (min-width: 1024px) {
  .c-btn--header {
    min-width: 250px;
  }
}

/* CTA帯のボタン */
.c-btn--cta {
  width: min(100%, 340px);
  height: 56px;
}

/* --- セクション下端の下向き三角 ----------------------------------------
   セクションに class="c-arrow-down" を付けると、下端の中央に三角が付き、
   次のセクションへ食い込む。色はセクションの背景色に合わせて --arrow-color で指定。
   形：幅150px × 高さ56px（SPは 90px × 34px）
   ---------------------------------------------------------------------- */
.c-arrow-down {
  position: relative;
  z-index: 1;               /* 三角を次のセクションより手前に出す */
}

/* 三角はセクションの中に1px重ねて置く。
   ちょうど境目に置くと、画面の拡大率によって小数点の誤差が出て、
   セクションと三角の間に白い線（下の背景）が見えることがあるため */
.c-arrow-down::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -33px;
  width: 90px;
  height: 34px;
  background: var(--arrow-color, var(--c-white));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

@media (min-width: 769px) {
  .c-arrow-down::after {
    bottom: -55px;
    width: 150px;
    height: 56px;
  }
}

/* --- セクション見出し（英字ラベル＋日本語見出し） -------------------------- */
.c-heading {
  margin-bottom: 32px;
  text-align: center;
}

.c-heading__en {
  color: var(--c-lavender);   /* .ai：白い背景の上でも薄紫（#B7A6F7） */
}

.c-heading__ja,
.c-heading__sub {
  /* 日本語を文節で改行（Chrome・Edge 119以降。未対応ブラウザは<br>で調整） */
  word-break: auto-phrase;
  text-wrap: balance;
}

.c-heading__ja {
  margin-top: 4px;
  line-height: 1.5;
}

.c-heading__sub {
  margin-top: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* 濃い背景の上で使う見出し */
.c-heading--on-dark {
  color: var(--c-white);
}
.c-heading--on-dark .c-heading__en {
  color: var(--c-lavender);
}

@media (min-width: 769px) {
  .c-heading {
    margin-bottom: 48px;
  }
  .c-heading__sub {
    font-size: 1.125rem;
  }
}


/* =====================================================================
   5. セクション共通の背景など（中身は各セクションの実装時に追加）
   ===================================================================== */

/* --- FV（ファーストビュー） ---------------------------------------------
   背景：写真＋グラデーションの1枚画像（fv_bg_pc.jpg / fv_bg_sp.jpg）
         画像が届くまで・読み込み中は、近い色のグラデーションを表示
   PC：上に見出し。その下を2列（左：リード文＋認証／右：円形図）
   SP：見出し → 円形図 → リード文 → 認証 の縦積み
   ---------------------------------------------------------------------- */
.p-fv {
  padding-block: 32px 40px;
  color: var(--c-white);
  background:
    url("../img/fv_bg_sp.jpg") center top / cover no-repeat,
    linear-gradient(150deg, #36518f 0%, #6c66a6 32%, #865a8c 62%, #a87f80 100%);
}

.p-fv__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-fv__title {
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(33, 37, 75, 0.25);
}

/* 「で」「を」だけ一回り小さく */


.p-fv__diagram {
  width: min(100%, 340px);
  margin-top: 20px;
}

.p-fv__lead {
  margin-top: 20px;
  line-height: 1.9;
}

/* 認証：左にAIMSの枠、右にISMS・プライバシーマーク */
.p-fv__certs {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* AIMSの枠：本体は上辺なしの枠線。上辺はタイトル左右の線で描く */
.p-fv__aims {
  width: 220px;
}

.p-fv__aims-title {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.p-fv__aims-title::before,
.p-fv__aims-title::after {
  content: "";
  flex: 1;
  align-self: flex-end;
  height: 0.7em;          /* 文字の高さの半分：線が文字の中央の高さに来る */
  border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.p-fv__aims-title::before {
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-top-left-radius: 6px;
}

.p-fv__aims-title::after {
  border-right: 1px solid rgba(255, 255, 255, 0.8);
  border-top-right-radius: 6px;
}

.p-fv__aims-title-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.p-fv__aims-title-text svg {
  width: 1em;
  height: 1em;
}

.p-fv__aims-body {
  padding: 4px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.p-fv__aims-sub {
  white-space: nowrap;
}

.p-fv__aims-badge {
  width: 100%;
  margin: 8px auto 0;
}

.p-fv__aims-note {
  margin-top: 8px;
  line-height: 1.5;
  text-align: left;
}

.p-fv__marks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}

.p-fv__mark--isms img {
  width: 100px;
}

.p-fv__mark--pmark img {
  width: 64px;
}

@media (min-width: 769px) {
  .p-fv {
    padding-block: 48px 56px;
    background:
      url("../img/fv_bg_pc.jpg") center / cover no-repeat,
      linear-gradient(110deg, #36518f 0%, #6c66a6 35%, #865a8c 65%, #a87f80 100%);
  }

  /* 見出しを1行目、その下を左列（リード文・認証）と右列（円形図）に */
  .p-fv__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title   title"
      "lead    diagram"
      "certs   diagram";
    align-items: start;
    column-gap: 40px;
  }
  .p-fv__title {
    grid-area: title;
  }
  .p-fv__diagram {
    grid-area: diagram;
    width: 440px;
    margin-top: 24px;
  }
  .p-fv__lead {
    grid-area: lead;
    align-self: end;
    margin-top: 48px;
  }
  .p-fv__certs {
    grid-area: certs;
    gap: 20px;
    margin-top: 28px;
  }
  .p-fv__aims {
    width: 280px;
  }
  .p-fv__aims-body {
    padding: 4px 16px 14px;
  }
  .p-fv__aims-badge {
    width: 190px;
  }
  .p-fv__mark--isms img {
    width: 120px;
  }
  .p-fv__mark--pmark img {
    width: 76px;
  }
}

/* 1000px前後の画面では円形図を小さくして2列を保つ */
@media (min-width: 769px) and (max-width: 1099px) {
  .p-fv__diagram {
    width: 360px;
  }
}

/* --- CTA帯（3か所） ----------------------------------------------------
   CTA 1      ：中央揃え。リード文の左右に斜線（＼ ／）
   CTA 2・3   ：p-cta--split。PCは左にテキスト3行・右にボタン
                SPはテキストの下にボタン
   ---------------------------------------------------------------------- */
.p-cta {
  padding-block: 40px;
  text-align: center;
  color: var(--c-white);
  background: var(--c-navy);
}

/* CTAのボタン：左上のオレンジ → 右下の赤みのオレンジ（斜めのグラデーション） */
.p-cta .c-btn--cta {
  background: linear-gradient(120deg, #e19a48 0%, #d4583f 100%);
}

/* CTA 1：リード文と左右の斜線 */
.p-cta__lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;                 /* SP。PCは20px（下の @media） */
  margin-bottom: 20px;
  line-height: 1.6;
}

.p-cta__lead::before,
.p-cta__lead::after {
  content: "";
  flex: none;
  width: 1px;
  height: 48px;              /* SP：2行のリード文の高さに近い長さ（PCは30px） */
  background: currentColor;
}

.p-cta__lead::before {
  transform: rotate(-28deg);   /* ＼ */
}

.p-cta__lead::after {
  transform: rotate(28deg);    /* ／ */
}

/* CTA 2・3：テキスト＋ボタン */
.p-cta--split {
  text-align: left;
}

.p-cta__catch {
  line-height: 1.6;
}

.p-cta__text {
  margin-top: 4px;
  line-height: 1.6;
}

.p-cta__note {
  margin-top: 10px;
  line-height: 1.6;
}

/* SPで最終行に1〜2文字だけ残る改行を避ける（対応ブラウザのみ） */
.p-cta__text,
.p-cta__note {
  text-wrap: pretty;
}

.p-cta--split .c-btn--cta {
  width: 100%;
  margin-top: 24px;
}

@media (min-width: 769px) {
  .p-cta {
    padding-block: 48px 52px;
  }

  .p-cta__lead {
    gap: 20px;
    margin-bottom: 24px;
  }
  .p-cta__lead::before,
  .p-cta__lead::after {
    height: 30px;
  }

  .p-cta .c-btn--cta {
    width: 400px;
    height: 70px;
  }

  .p-cta--split {
    padding-block: 60px;
  }
  .p-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  .p-cta__text {
    margin-top: 6px;
  }
  .p-cta__note {
    margin-top: 14px;
  }
  .p-cta--split .c-btn--cta {
    flex: none;
    margin-top: 0;
  }
}

/* 1000px前後の画面ではボタンを少し小さくして、2列を保つ
   （文字は html の可変サイズで自動的に小さくなる） */
@media (min-width: 769px) and (max-width: 1099px) {
  .p-cta--split .c-btn--cta {
    width: 300px;
  }
}

/* --- 現場の悩み（CURRENT CHALLENGES） ------------------------------------
   上部：ピンク〜薄紫の横グラデーションが、下に向かって白に溶ける背景
   PC：グレーの箱の中で、左にチェックリスト／右にイラスト（箱からはみ出す）
   SP：チェックリストの下にイラスト
   ---------------------------------------------------------------------- */
.p-challenges {
  background-color: var(--c-white);
}

.p-challenges__lead {
  margin-bottom: 28px;
  padding-inline: 24px;      /* SPのみ左右に余白（PCは下の @media で0） */
}

/* 最終行に1〜2文字だけ残る改行を避ける（対応ブラウザのみ） */
.p-challenges__lead,
.p-challenges__message {
  text-wrap: pretty;
}

.p-challenges__box {
  position: relative;
  display: flow-root;        /* イラストの負のmarginが箱の外へ抜けて、箱が縮むのを防ぐ */
  padding: 24px 20px 0;
  background: var(--c-gray-bg);
  border-radius: 10px;
}

.p-challenges__list li {
  position: relative;
  padding: 14px 0 14px 34px;
  line-height: 1.7;
  border-bottom: 1px solid var(--c-border);
}

.p-challenges__list li:first-child {
  padding-top: 0;
}

.p-challenges__list li:last-child {
  border-bottom: none;
}

/* チェックマーク：薄いグレーの四角の上に、オレンジのチェックが少しはみ出す */
.p-challenges__list li::before,
.p-challenges__list li::after {
  content: "";
  position: absolute;
  left: 0;
}

.p-challenges__list li::before {
  top: calc(14px + 0.3em);
  width: 20px;
  height: 20px;
  background: #e1e1e3;
  border-radius: 2px;
}

.p-challenges__list li:first-child::before {
  top: 0.3em;
}

.p-challenges__list li::after {
  top: calc(14px + 0.3em);   /* 1つ目と同じ0.3em（PCは上の余白12pxに合わせて下の @media） */
  left: 2px;
  /* 形・色は「チェックマーク（共通）」で指定（img/icon_check.svg） */
}

.p-challenges__list li:first-child::after {
  top: 0.3em;                /* SP・PC共通 */
}

.p-challenges__list strong {
  font-weight: 700;
}

/* SP：イラストは箱の幅の約68%で中央。下端を箱の外へ32pxはみ出させる
   （はみ出した32pxは、下のメッセージの margin-top に足して間隔を保つ。「9. 余白」参照） */
.p-challenges__illust {
  position: relative;
  width: min(68%, 240px);
  margin: 16px auto -32px;
}

.p-challenges__message {
  margin-top: 40px;
  padding-inline: 12px;      /* SPのみ左右に余白（PCは下の @media で0） */
  line-height: 1.8;
}

/* SP：太字の一文も改行せず、前の文に続けて流す（PCは改行して2段） */
.p-challenges__message strong {
  font-weight: 700;
}


@media (min-width: 769px) {
  .p-challenges__lead {
    margin-bottom: 48px;
    padding-inline: 0;
    text-align: center;
  }

  /* 箱は900px幅。イラストは右下に配置し、箱の外へはみ出させる */
  .p-challenges__box {
    max-width: 900px;
    margin-inline: auto;
    padding: 56px 300px 56px 60px;   /* リスト幅は約540px */
    border-radius: 12px;
  }

  .p-challenges__list li {
    padding-block: 12px;
  }

  .p-challenges__list li:first-child {
    padding-top: 0;
  }

  .p-challenges__list li:last-child {
    padding-bottom: 0;
  }

  .p-challenges__list li::before {
    top: calc(12px + 0.35em);
  }

  .p-challenges__list li::after {
    top: calc(12px + 0.3em);   /* SPと同じ0.3em */
  }

  .p-challenges__list li:first-child::after {
    top: 0.3em;
  }

  .p-challenges__illust {
    position: absolute;
    right: -140px;
    bottom: -26px;
    width: 440px;
    margin: 0;
  }

  .p-challenges__message {
    margin-top: 72px;
    padding-inline: 0;
    text-align: center;
  }

  .p-challenges__message strong {
    display: block;
    margin-top: 4px;
  }

}

/* 1100px未満のPCでは、はみ出しを抑えて画面外に出ないようにする */
@media (min-width: 769px) and (max-width: 1199px) {
  .p-challenges__box {
    padding-right: 260px;
  }
  .p-challenges__illust {
    right: -20px;
    width: 320px;
  }
}

/* --- 3つのパッケージ（概要＋詳細×3）共通 ---------------------------------
   4つのセクションは同じグレー背景で1続きに見せる。
   パッケージごとの色は --pkg に入れ、カード・見出し・矢印などで使い回す。
   ---------------------------------------------------------------------- */
.p-packages,
.p-package {
  background: var(--c-gray-bg);
}

.p-packages__card--workflow,
.p-package--workflow {
  --pkg: #534cb4;   /* 紫 */
}
.p-packages__card--analysis,
.p-package--analysis {
  --pkg: #a63e95;   /* マゼンタ */
}
.p-packages__card--rag,
.p-package--rag {
  --pkg: #e2683a;   /* オレンジ */
}

/* --- パッケージ4セクションの背景：グレーの回路の線 -------------------------
   画像は左側用の1枚（bg_circuit.svg）だけ用意し、右側に置くときは左右反転する。
   PC：概要＝左／AIワークフロー＝右／データ分析AI＝左／RAG＝右
   SP：見出しの後ろに敷く。AIワークフローのみ右から（反転）
   大きさはSPが画面幅の100%、PCが50%
   ---------------------------------------------------------------------- */
.p-packages,
.p-package {
  position: relative;
  overflow: hidden;          /* 線が画面の外にはみ出してもスクロールが出ないように */
}

/* 大きさ：SPは画面幅の100%、PCは50%。
   縦横比は画像（990×540）に合わせ、画像全体を見切れずに表示 */
.p-packages::before,
.p-package::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  width: 136%;               /* SP：画面幅より大きく表示（はみ出しは overflow: hidden で隠れる）。PCは50% */
  aspect-ratio: 990 / 540;
  background: url("../img/bg_circuit.svg") no-repeat center / contain;
  pointer-events: none;
}

/* 中身を線より手前に */
.p-packages > .l-inner,
.p-package > .l-inner {
  position: relative;
  z-index: 1;
}

/* SPの位置：見出しの後ろ */
.p-packages::before {
  top: 6px;
}
.p-package::before {
  top: 70px;
}
.p-package--workflow::before {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}

@media (min-width: 769px) {
  .p-packages::before,
  .p-package::before {
    left: auto;
    width: 50%;
    transform: none;
  }

  /* 左側に置くもの */
  .p-packages::before {
    top: 0;
    left: 0;
  }
  .p-package--analysis::before {
    top: 60px;
    left: 0;
  }

  /* 右側に置くもの（左右反転） */
  .p-package--workflow::before {
    top: 120px;
    right: 0;
    transform: scaleX(-1);
  }
  .p-package--rag::before {
    top: 240px;
    right: 0;
    transform: scaleX(-1);
  }
}

/* --- 3つのパッケージ（概要） --------------------------------------------- */
.p-packages__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  text-align: center;
}

.p-packages__illust {
  width: min(80%, 280px);
}

.p-packages__title {
  line-height: 1.5;
}

.p-packages__lead {
  margin-top: 12px;
}

.p-packages__lead strong {
  font-weight: 700;
}

.p-packages__cards {
  display: grid;
  gap: 16px;
}

.p-packages__card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 24px 20px 20px;
  text-align: center;
  text-decoration: none;
  background: var(--c-white);
  border-radius: 12px;       /* SP。PCは6px（下の @media） */
  box-shadow: 0 4px 14px rgba(33, 37, 75, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .p-packages__card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 37, 75, 0.14);
  }
}

.p-packages__card-title {
  color: var(--pkg);
}

.p-packages__card-catch {
  margin-top: 6px;
  line-height: 1.6;
}

/* アイコン：縦横比を保ったまま、カードの幅に合わせて縮む
   （以前は高さを固定していたため、カードが狭いと横だけ縮んで潰れていた） */
.p-packages__card-icon {
  width: 100%;
  height: auto;
  margin-block: 12px;
  object-fit: contain;
}

/* 「こんな企業に」の帯は下にそろえる（カードの高さが違っても位置がずれない） */
.p-packages__card-label {
  width: 100%;
  margin-top: auto;
  padding: 8px 0;
  line-height: 1.5;
  color: var(--c-white);
  background: var(--pkg);
}

.p-packages__card-target {
  margin-top: 8px;
  color: var(--pkg);
}

@media (min-width: 769px) {
  /* 左にイラスト、右に見出しとリード文 */
  .p-packages__intro {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    margin-bottom: 56px;
  }
  .p-packages__illust {
    width: 400px;
  }
  .p-packages__lead {
    margin-top: 20px;
    line-height: 2;
  }

  .p-packages__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .p-packages__card-link {
    padding: 28px 24px 24px;
    border-radius: 6px;
  }
  .p-packages__card-icon {
    max-width: 325px;
    margin-block: 16px;
  }
}

/* --- パッケージ詳細（3つ共通） -------------------------------------------- */
.p-package {
  padding-top: 0;          /* 上のセクションの下余白とつなげる */
}

.p-package--rag {
  padding-bottom: calc(var(--section-py) + 16px);
}

/* 見出し：左右に線、中央に歯車アイコン */
.p-package__head {
  margin-bottom: 32px;
  padding-top: 26px;      /* 歯車の上半分がセクションの外にはみ出さないように */
  text-align: center;
}

.p-package__head::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: -26px;   /* 歯車の中心に線が通るように重ねる */
  background: var(--pkg); /* パッケージの色（歯車と同じ） */
}

.p-package__icon {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  margin-inline: auto;
  padding-inline: 10px;
  box-sizing: content-box;
  color: var(--pkg);
  background: var(--c-gray-bg);   /* 線を歯車の後ろで隠す */
}

.p-package__title {
  margin-top: 16px;
  line-height: 1.4;
  color: var(--pkg);
}

.p-package__catch {
  margin-top: 8px;
}

/* 用語説明（RAGとは） */
.p-package__term {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  overflow: hidden;            /* 角丸の外に、オレンジの下地がはみ出さないように */
  background: var(--c-white);
  border-radius: 8px;
  font-size: 0.875rem;
}

.p-package__term dt {
  padding: 6px 16px;
  text-align: center;
  color: var(--c-white);
  background: var(--pkg);
}

.p-package__term dd {
  padding: 10px 16px;
  text-align: center;        /* SP。PCは左揃え（下の @media） */
}

/* こんな企業におすすめ */
.p-package__recommend {
  position: relative;
  margin-top: 24px;     /* 上にはみ出すラベルの分 */
  padding: 44px 20px 12px;
  color: var(--c-white);
  background: linear-gradient(135deg, #4a74c8 0%, #8c63b2 45%, #c0559f 78%, #eba27f 100%);
  border-radius: 6px;
}

.p-package__recommend-title {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  padding: 8px 28px;
  line-height: 1.4;
  background: var(--c-navy);
  border-radius: var(--radius-pill);
  transform: translate(-50%, -50%);
}

.p-package__recommend-list li {
  position: relative;
  padding: 16px 0 16px 38px;      /* 左：チェックの幅＋余白 */
  line-height: 1.7;
  text-wrap: pretty;              /* 最終行に1〜2文字だけ残る改行を避ける（対応ブラウザのみ） */
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.p-package__recommend-list li:last-child {
  border-bottom: none;
}

/* 白い四角＋オレンジのチェック */
/* チェック：白い四角（::before）の上に、オレンジのチェック（::after）を重ね、
   チェックの右上が四角からはみ出すデザイン（画像の書き出しは不要） */
.p-package__recommend-list li::before,
.p-package__recommend-list li::after {
  content: "";
  position: absolute;
  left: 0;
}

/* 四角の上下位置：1行目の文字の中心（上の余白16px＋行の高さの半分0.85em）から、
   デザインどおり少し下げる */
.p-package__recommend-list li::before {
  top: calc(16px + 0.85em - 7px);
  width: 24px;
  height: 24px;
  background: var(--c-white);
  border-radius: 2px;
}

.p-package__recommend-list li::after {
  top: calc(16px + 0.85em - 8px);   /* 四角より1px上から描き、右上にはみ出させる */
  left: 4px;
}

/* --- チェックマーク（共通） --------------------------------------------
   形は img/icon_check.svg（チェックの形だけ）。
   画像を「型抜き（mask）」として使い、色は background-color で塗る。
   → 同じSVG 1枚で、オレンジ（現場の悩み・パッケージ）と青（拡張オプション）を塗り分けられる。
   ※<img> や background-image で表示したSVGは、CSSの fill で色を変えられないため
   ---------------------------------------------------------------------- */
.p-challenges__list li::after,
.p-package__recommend-list li::after,
.p-option__recommend-list li::after {
  aspect-ratio: 34.63 / 27.14;      /* SVGの縦横比 */
  background-color: var(--check-color);
  -webkit-mask: url("../img/icon_check.svg") no-repeat center / contain;
  mask: url("../img/icon_check.svg") no-repeat center / contain;
}

/* チェックの大きさ */
.p-challenges__list li::after {
  width: 20px;                      /* SP。PCは22px（下の @media） */
}
.p-package__recommend-list li::after,
.p-option__recommend-list li::after {
  width: 25px;                      /* PCは36px（下の @media） */
}

.p-challenges__list        { --check-color: #f15a24; }   /* オレンジ */
.p-package__recommend-list { --check-color: #f15a24; }   /* オレンジ */
.p-option__recommend-list  { --check-color: var(--opt); } /* 青 */

@media (min-width: 769px) {
  .p-challenges__list li::after {
    width: 22px;
  }
  .p-package__recommend-list li::after,
  .p-option__recommend-list li::after {
    width: 36px;
  }
}

/* 3ステップのフロー
   SP：縦に積み、下向き矢印でつなぐ／PC：横に並べ、右向き矢印でつなぐ */
.p-package__flow {
  margin-top: 40px;
}

.p-package__steps {
  display: grid;
  gap: 30px;               /* 矢印を置くすき間 */
}

.p-package__step {
  position: relative;
  padding: 22px 20px 24px;
  text-align: center;
  background: var(--c-white);
  border: 3px solid transparent;   /* AIの箱と大きさをそろえるための透明な枠 */
  border-radius: 6px;
}

/* AIの箱：薄紫の背景＋グラデーションの枠線（青 → 紫 → ピンク）
   背景を2枚重ね、内側（padding-box）を薄紫、枠の部分（border-box）をグラデーションで塗る */
.p-package__step--ai {
  background:
    linear-gradient(#e6e5f6, #e6e5f6) padding-box,
    linear-gradient(160deg, #4a74c8 0%, #8c63b2 50%, #e0857a 100%) border-box;
}

/* ステップ間の矢印（SP：下向き）。次の箱に少し重なるように手前に出す */
.p-package__step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -27px;
  width: 26px;
  height: 20px;
  background: var(--pkg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

.p-package__step-title {
  line-height: 1.45;
  color: var(--pkg);
}

.p-package__step--ai .p-package__step-title {
  line-height: 1.2;
}

/* SP：見出しの <br> を無効にして1行で表示（PCは <br> のとおり2行） */
@media (max-width: 768px) {
  .p-package__step-title br {
    display: none;
  }
}

.p-package__step-text {
  margin-top: 14px;
  line-height: 1.85;
  text-align: left;
  text-wrap: pretty;              /* 「活／用。」のように最終行が1〜2文字になる改行を避ける */
}

.p-package__illust {
  width: min(80%, 300px);
  margin: 32px auto 0;
}

@media (min-width: 769px) {
  .p-package__head {
    margin-bottom: 48px;
    padding-top: 32px;
  }
  .p-package__head::before {
    max-width: 1100px;
    margin-inline: auto;
    margin-bottom: -32px;
  }
  .p-package__icon {
    width: 64px;
    height: 64px;
    padding-inline: 16px;
  }
  .p-package__title {
    margin-top: 20px;
  }

  /* 箱の横幅は中身（文字）に合わせる。説明文の右側に余計な空白を作らない */
  .p-package__term {
    flex-direction: row;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 56px;
    font-size: 0.9375rem;
  }
  .p-package__term dt {
    display: flex;
    flex: none;
    align-items: center;
    padding: 12px 30px;
    white-space: nowrap;         /* 「RAGとは」を折り返さない */
  }
  .p-package__term dd {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 12px 24px;
  }

  /* 左右の余白は40px（56pxだと「…任せられな／い。」のように1文字だけ次の行に落ちるため） */
  .p-package__recommend {
    max-width: 790px;
    margin: 30px auto 0;
    padding: 56px 40px 20px;
  }
  .p-package__recommend-title {
    padding: 10px 48px;
  }
  .p-package__recommend-list li {
    padding: 22px 0 22px 54px;
  }
  .p-package__recommend-list li::before {
    top: calc(22px + 0.85em - 9px);
    width: 34px;
    height: 34px;
  }
  .p-package__recommend-list li::after {
    top: calc(22px + 0.85em - 10px);
    left: calc(-2px + 0.85em - 10px);
  }

  /* フロー3枚＋右にイラスト */
  .p-package__flow {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 56px;
  }
  .p-package__steps {
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  /* 3枚の見出しの行の高さをそろえ、説明文の開始位置をそろえる（subgrid）
     見出しが1行の「AI」は、2行の見出しの高さの中で上下中央に置く */
  .p-package__steps {
    grid-template-rows: auto auto;
  }
  .p-package__step {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding: 26px 22px 30px;
  }
  .p-package__step-title {
    align-self: center;
  }
  /* PC：右向きの矢印を見出しの高さに置き、右の箱に少し重ねる */
  .p-package__step:not(:last-child)::after {
    top: 36px;
    left: auto;
    right: -27px;
    bottom: auto;
    width: 22px;
    height: 28px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: none;
  }
  .p-package__step-text {
    margin-top: 18px;
  }
  .p-package__illust {
    flex: none;
    width: 260px;
    margin: 0;
  }
}

/* 1000px前後の画面では、イラストを小さくしてフローの幅を確保 */
@media (min-width: 769px) and (max-width: 1099px) {
  .p-package__illust {
    width: 180px;
  }
}

/* --- 見出し：リード文（通常の太さの補足文） ------------------------------- */
.c-heading__lead {
  margin-top: 12px;
  line-height: 1.8;
}

@media (min-width: 769px) {
  .c-heading__lead {
    margin-top: 16px;
  }
}

/* --- 拡張オプション（RPA×AI データ収集連携） ------------------------------
   背景：上が水色、下に向かって白へ
   パネル：水色→白のグラデーションの大きな角丸の箱
   ---------------------------------------------------------------------- */
.p-option {
  --opt: #3f7fde;            /* このセクションの青 */
  background: linear-gradient(180deg, #b7daf0 0%, #eaf5fb 45%, var(--c-white) 100%);
}

.p-option__panel {
  padding: 32px 16px 28px;
  text-align: center;
  background: linear-gradient(180deg, #9ccbea 0%, #e2f0fb 45%, #f7fbff 100%);
  border-radius: 12px;
}

/* 上部：うっすら大きい英字＋3パッケージの丸＋「+α」 */
.p-option__head {
  position: relative;
}

/* SP：「EXTENSION／OPTION」の2行で、丸の上半分の後ろに重ねる。
   色は白の不透明度20%（SP・PC共通）。PCは下の @media で1行 */
.p-option__watermark {
  position: absolute;
  inset: -58px 0 auto;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.p-option__packages {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.p-option__package {
  display: grid;
  place-items: center;
  flex: 0 1 84px;        /* SP：最大84px。横幅が足りないときは画面幅に合わせて縮む */
  min-width: 0;
  aspect-ratio: 1;       /* 縮んでも正円を保つ（高さは幅に合わせて自動） */
  line-height: 1.3;
  background: var(--c-white);
  border: 1px solid currentColor;   /* パッケージの色の細い枠線 */
  border-radius: 50%;
}

.p-option__package--analysis { color: #a63e95; }
.p-option__package--workflow { color: #534cb4; }
.p-option__package--rag      { color: #e2683a; }

/* 「+α」：横並びのまま折り返さない。αの大きさはSPが「+」と同じ、PCが1.5倍
   丸の並び（.p-option__packages）の高さに対して、文字の見た目が上下中央に来るように置く。
   ※文字の箱ごと中央にしても、フォントの都合で「+」は少し、「α」は大きく下に寄って見えるため、
     実際の表示を測って位置を補正している（em指定なので文字サイズが変わっても比率は同じ） */
.p-option__plus {
  display: flex;
  align-items: center;
  align-self: center;
  margin-left: 6px;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-white);
  transform: translateY(-0.06em);   /* 「+」の下寄りを補正 */
}

.p-option__alpha {
  position: relative;
  top: -0.1em;                      /* 「α」の下寄りを補正（PCは下の @media） */
  font-size: 1em;
  line-height: 1;
}

.p-option__intro {
  margin-top: 12px;
  line-height: 1.45;
}

/* 文字の下半分にうっすら白いマーカー（2行になっても行ごとに付く） */
.p-option__intro-text {
  padding-inline: 6px;
  background: linear-gradient(transparent 58%, rgba(255, 255, 255, 0.55) 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.p-option__intro-text strong {
  font-weight: 700;
}

.p-option__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.p-option__label {
  padding: 6px 14px;
  color: var(--c-white);
  background: var(--opt);
  border-radius: 6px;
}

.p-option__title {
  line-height: 1.4;
}

.p-option__lead {
  margin-top: 12px;
  line-height: 1.8;
}

/* こんな企業におすすめ（青系のグラデーション・文字は紺） */
.p-option__recommend {
  position: relative;
  margin-top: 44px;
  padding: 40px 18px 8px;
  text-align: left;
  background: linear-gradient(135deg, #5ea6ef 0%, #b5d4fb 55%, #f5f9ff 100%);
  border-radius: 6px;
}

.p-option__recommend-title {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  padding: 8px 28px;
  line-height: 1.4;
  color: var(--c-white);
  background: var(--c-navy);
  border-radius: var(--radius-pill);
  transform: translate(-50%, -50%);
}

.p-option__recommend-list li {
  position: relative;
  text-wrap: pretty;              /* 最終行に1〜2文字だけ残る改行を避ける（対応ブラウザのみ） */
  padding: 14px 0 14px 38px;
  line-height: 1.7;
  border-bottom: 1px solid rgba(33, 37, 75, 0.15);
}

.p-option__recommend-list li:last-child {
  border-bottom: none;
}

/* 白い四角＋青のチェック */
/* 白い四角（::before）＋青いチェック（::after、右上が四角からはみ出す） */
.p-option__recommend-list li::before,
.p-option__recommend-list li::after {
  content: "";
  position: absolute;
  left: 0;
}

.p-option__recommend-list li::before {
  top: calc(14px + 0.85em - 7px);
  width: 24px;
  height: 24px;
  background: var(--c-white);
  border-radius: 2px;
}

/* 位置はオレンジのチェックと同じ計算（上の余白だけ、このリストの14pxに合わせる） */
.p-option__recommend-list li::after {
  top: calc(14px + 0.85em - 8px);
  left: 4px;
}

/* 4ステップ：SPは縦積み＋下向き矢印、PCは横並び＋右向き矢印 */
.p-option__steps {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.p-option__step {
  position: relative;
  padding: 28px 20px 30px;
  background: var(--c-white);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(33, 37, 75, 0.12);
}

.p-option__step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -26px;
  width: 30px;
  height: 22px;
  background: var(--opt);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

.p-option__step-title {
  line-height: 1.5;
}

.p-option__step-en {
  display: block;
  color: var(--opt);
}

.p-option__step-text {
  margin-top: 16px;
  line-height: 1.75;
  text-align: left;
  text-wrap: pretty;              /* 最終行が1〜2文字になる改行を避ける */
}

/* パネルの下：締めのコピー＋イラスト */
.p-option__closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}

.p-option__message {
  line-height: 1.7;
}

.p-option__illust {
  width: min(80%, 260px);
}

@media (min-width: 769px) {
  .p-option__panel {
    padding: 48px 40px 44px;
  }
  .p-option__watermark {
    inset: -34px 0 auto;      /* 丸の上半分の後ろに重なる位置 */
    line-height: 1;
  }
  .p-option__intro {
    line-height: 1.7;
  }
  .p-option__packages {
    gap: 12px;
  }
  .p-option__package {
    flex: 0 0 116px;      /* PC：116pxの固定（縮めない） */
  }
  .p-option__plus {
    margin-left: 18px;
  }
  .p-option__alpha {
    top: -0.12em;
    font-size: 1.5em;     /* PCはαを「+」の1.5倍に */
  }
  .p-option__title-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
  }
  .p-option__label {
    padding: 8px 28px;
  }
  .p-option__lead {
    margin-top: 16px;
  }
  /* 左右の余白は32px（56pxだと「…抽出した／い。」のように1文字だけ次の行に落ちるため） */
  .p-option__recommend {
    max-width: 790px;
    margin: 52px auto 0;
    padding: 52px 32px 16px;
  }
  .p-option__recommend-title {
    padding: 10px 48px;
  }
  .p-option__recommend-list li {
    padding: 20px 0 20px 54px;
  }
  .p-option__recommend-list li::before {
    top: calc(20px + 0.85em - 9px);
    width: 34px;
    height: 34px;
  }
  .p-option__recommend-list li::after {
    top: calc(20px + 0.85em - 10px);
    left: calc(-2px + 0.85em - 10px);
  }

  /* カードの間は狭く（12px）、大きめの矢印を両側のカードに重ねる */
  .p-option__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 48px;
  }
  .p-option__step {
    padding: 48px 20px 40px;
  }
  .p-option__step:not(:last-child)::after {
    top: 56px;
    left: auto;
    right: -21px;
    bottom: auto;
    width: 30px;
    height: 36px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: none;
  }
  .p-option__step-text {
    margin-top: 30px;
  }

  .p-option__closing {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
  }
  .p-option__illust {
    width: 220px;
  }
}

/* --- 選ばれる3つの理由 ＋ セキュリティ（共通のグラデーション背景） -------- */
/* 背景：グラデーションの上に、白いドットの波模様（bg_dots_reason.png）を重ねる
   模様は「選ばれる理由」の上部に横幅いっぱいで表示（SPは横に2倍に広げて表示）
   ※背景画像だけを半透明にはできないため、模様は ::before に分けて opacity で薄くする
     （不透明度20%＋覆い焼きカラー、SP・PC共通） */
.p-trust {
  position: relative;
  isolation: isolate;        /* ::before（z-index: -1）を、この要素のグラデーションより手前・中身より後ろに置く */
  color: var(--c-white);
  background: linear-gradient(160deg, #4780c3 0%, #7070b8 38%, #b35fa6 78%, #e8a08f 100%);
}

.p-trust::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 60px;                 /* SP。PCは0（下の @media） */
  z-index: -1;
  background: url("../img/bg_dots_reason.png") center top / 200% auto no-repeat;
  opacity: 0.2;
  mix-blend-mode: color-dodge;   /* 下のグラデーションを明るく抜く重ね方 */
  pointer-events: none;
}

@media (min-width: 769px) {
  .p-trust::before {
    top: 0;
    background-size: 100% auto;
  }
}

.p-trust .c-heading__lead {
  color: rgba(255, 255, 255, 0.9);
}

.p-reason {
  padding-bottom: 0;           /* 下のセキュリティと1続きに見せる */
}

/* 理由カード：フォルダーのように左上にタブが付いた白いカード */
.p-reason__cards {
  display: grid;
  gap: 48px;
  padding-top: 26px;           /* タブの高さ分 */
}

.p-reason__card {
  position: relative;
  padding: 16px 22px 26px;
  text-align: center;
  color: var(--c-text);
  background: var(--c-white);
  border-radius: 0 8px 8px 8px;
}

/* 左上のタブ（右端を斜めに切る） */
.p-reason__card::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 46%;
  height: 26px;
  background: var(--c-white);
  border-radius: 8px 0 0 0;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

.p-reason__num {
  position: absolute;
  top: -12px;                   /* タブの上端から少し下げる */
  left: 0;
  padding-inline: 24px;         /* タブの左端からの余白 */
  line-height: 1;
  color: var(--c-purple);       /* 紺 → 紫 */
}

.p-reason__en {
  margin-top: 28px;             /* 番号を下げた分、見出しも少し下げる */
  color: var(--c-purple);
}

.p-reason__icon {
  width: 56px;
  height: 56px;
  margin: 14px auto 0;
}

/* SPのみ：カードの中の並び
   英字見出し（横幅いっぱい）
   アイコン（左）｜見出し（右・左揃え）
   説明文（横幅いっぱい）
   ※PCはこれまでどおり、アイコン → 見出しを縦に並べて中央揃え */
@media (max-width: 768px) {
  .p-reason__card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "en    en"
      "icon  title"
      "text  text";
    column-gap: 24px;
    align-items: center;
    align-content: start;
  }

  .p-reason__en    { grid-area: en; }
  .p-reason__card {
    padding: 16px 28px 30px;
  }

  .p-reason__title { grid-area: title; text-align: left; }
  .p-reason__text  { grid-area: text; }

  .p-reason__icon {
    grid-area: icon;
    width: 140px;
    height: 100px;
    object-fit: contain;       /* 縦横比が違う枠でも、アイコンを潰さずに収める */
    margin: 16px 0 0;
  }
}

.p-reason__title {
  margin-top: 14px;
  line-height: 1.5;
}

/* PC：3枚のカードで説明文の開始位置をそろえる。
   見出しは最大3行なので、2行のカード（AI × システム開発力）も3行分の高さを確保する */
@media (min-width: 769px) {
  .p-reason__title {
    min-height: calc(1.5em * 3);
  }
}

.p-reason__text {
  margin-top: 24px;              /* SP。PCは14px（下の @media） */
  line-height: 1.8;
  text-align: left;
}

/* セキュリティ */
.p-security__grid {
  display: grid;
  gap: 16px;
}

.p-security__box {
  padding: 24px 20px;
  color: var(--c-text);
  background: var(--c-white);
  border-radius: 8px;
}

.p-security__title {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.p-security__title-icon {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--c-purple);
}

.p-security__list {
  margin-top: 12px;
}

.p-security__list li {
  position: relative;
  padding-left: 1.1em;
  font-weight: 500;
  line-height: 1.8;
}

/* 行頭の黒丸（•） */
.p-security__list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0.25em;
  width: 0.3em;
  height: 0.3em;
  background: currentColor;
  border-radius: 50%;
}

.p-security__text {
  margin-top: 12px;
  line-height: 1.8;
}

/* 認証マーク：薄紫のタイルに並べる */
.p-security__marks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.p-security__mark {
  display: grid;
  place-items: center;
  padding: 12px;
  background: #dcdaf5;          /* 少し濃い薄紫 */
  border-radius: 2px;
}

.p-security__mark img {
  width: auto;
  max-height: 72px;
}

/* 認証マークの大きさ（PCはデザインどおりの幅） */
.p-security__mark--aims img  { width: 180px; max-height: none; }
.p-security__mark--isms img  { width: 96px;  max-height: none; }
.p-security__mark--pmark img { width: 72px;  max-height: none; }

.p-security__mark--aims {
  grid-column: 1 / -1;          /* SPではAIMSのタイルを横幅いっぱいに */
}

.p-security__mark-note {
  margin-top: 6px;
  line-height: 1.5;
  text-align: left;
}

/* SP：取得認証の箱
   上段：見出し（左）｜リスト（右）を横並び、上下中央
   下段：認証マーク3つを横1列（AIMSのタイルを広めに） */
@media (max-width: 768px) {
  .p-security__cert-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .p-security__cert-body .p-security__title {
    flex: none;
  }
  .p-security__cert-body .p-security__list {
    margin-top: 0;
  }
  .p-security__box--cert {
    padding-inline: 16px;      /* 横並びにする分、左右の余白を少し詰める */
  }
  /* 全角の（）の左右の空きを詰め（palt）、字間を0にして、リストを1行に収める
     （375px以上で1行。それより狭い画面では折り返す） */
  .p-security__cert-body .p-security__list li {
    font-feature-settings: "palt";
    letter-spacing: 0;
  }
  .p-security__mark-note {
    font-feature-settings: "palt";
    white-space: nowrap;
  }

  .p-security__marks {
    grid-template-columns: 1.58fr 1fr 0.84fr;
    gap: 6px;
  }
  .p-security__mark {
    padding: 10px 8px;
  }
  .p-security__mark--aims {
    grid-column: auto;
    place-items: start;
    align-content: center;
  }
  .p-security__mark--aims img  { width: 100%; }
  .p-security__mark--isms img  { width: 100%; max-width: 72px; }
  .p-security__mark--pmark img { width: 100%; max-width: 60px; }
}

@media (min-width: 769px) {
  .p-reason__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 30px;
  }
  .p-reason__card {
    padding: 18px 24px 30px;
  }
  .p-reason__card::before {
    height: 30px;
  }
  .p-reason__num {
    top: -11px;
    padding-inline: 34px;
  }
  .p-reason__en {
    margin-top: 30px;
  }
  .p-reason__icon {
    width: 88px;
    height: 88px;
  }
  .p-reason__text {
    margin-top: 14px;
  }

  .p-security__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .p-security__box {
    padding: 36px 44px 40px;
  }
  .p-security__title-icon {
    width: 34px;
    height: 34px;
  }
  .p-security__list {
    margin-top: 16px;
  }
  /* 取得認証の箱は横幅いっぱい：左にリスト、右に認証マーク3つ
     リストは上下中央、左の余白を広めにとる */
  .p-security__box--cert {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 24px 80px;          /* 左右とも80px（右側にも余白をとる） */
  }
  .p-security__marks {
    flex: 1;
    grid-template-columns: 1.75fr 1fr 1fr;
    gap: 10px;
    margin-top: 0;
  }
  .p-security__mark {
    min-height: 166px;
  }
  .p-security__mark--aims img  { width: 197px; }
  .p-security__mark--isms img  { width: 113px; }
  .p-security__mark--pmark img { width: 88px; }
  .p-security__mark--aims {
    grid-column: auto;
  }
}

/* --- 開発実績（CASE STUDY） ---------------------------------------------- */
/* 背景：薄いグレーの上に、左上から広がる白いドットの波模様（bg_dots_case.png）
   PCは画面幅の約70%、SPは画面幅いっぱいより少し大きめに表示 */
/* 模様は ::before に置き、右と下の端をグラデーションのマスクでぼかして背景になじませる
   （画像の端がくっきり見えて「ずれている」ように見えるのを防ぐ） */
.p-case {
  position: relative;
  overflow: hidden;
  background: #f2f2f4;
}

.p-case::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: -115px;                 /* SP：左に115pxずらし、横幅の190%で表示 */
  width: 190%;
  aspect-ratio: 1380 / 775;
  background: url("../img/bg_dots_case.png") left top / 100% auto no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, #000 55%, transparent 100%),
    linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 55%, transparent 100%),
    linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}

.p-case > .l-inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .p-case::before {
    left: 0;                    /* PC：左端から、横幅の80%で表示 */
    width: 80%;
  }
}

.p-case__list {
  display: grid;
  gap: 20px;
}

.p-case__item {
  padding: 24px 20px;
  background: var(--c-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(33, 37, 75, 0.06);
}

.p-case__item--rag      { --case: #aa3095; }
.p-case__item--workflow { --case: #534cb4; }

.p-case__title {
  line-height: 1.6;
  text-align: center;        /* SP。PCは左揃え（下の @media） */
}

/* SP：お客様名は見出しの最後の行に続けて表示 */
.p-case__client {
  display: inline;
  margin-left: 4px;
}

.p-case__body {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

/* 左の色付きの四角：アイコン＋導入パッケージ名 */
.p-case__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 200px;
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 12px;
  text-align: center;
  color: var(--c-white);
  background: var(--case);
  border-radius: 16px;       /* SP。PCは14px（下の @media） */
}

.p-case__icon {
  width: 96px;
  height: 96px;
}

.p-case__package {
  line-height: 1.5;
}

.p-case__package span {
  display: block;
  font-weight: 400;
}

.p-case__text {
  line-height: 1.8;
}

.p-case__tech {
  margin-top: 14px;
  padding-top: 14px;
  line-height: 1.7;
  color: #55587a;
  border-top: 1px solid #dcdde6;
}

.p-case__tech span {
  font-weight: 700;
  color: var(--c-text);
}

@media (min-width: 769px) {
  .p-case__list {
    max-width: 1000px;
    margin-inline: auto;
    gap: 24px;
  }
  .p-case__item {
    padding: 32px 40px 36px;
  }
  .p-case__title {
    text-align: left;
  }
  .p-case__client {
    margin-left: 6px;
  }
  /* 左の色付きの四角：デザインどおり230px角（以前は150pxで、文字が4行に折り返していた） */
  .p-case__body {
    grid-template-columns: 230px 1fr;
    gap: 40px;
    margin-top: 24px;
  }
  .p-case__badge {
    width: 230px;
    margin: 0;
    gap: 14px;
    border-radius: 14px;
  }
  .p-case__icon {
    width: 100px;
    height: 100px;
  }
}

/* --- 開発費用の目安と導入までのステップ ---------------------------------
   背景：上が薄紫、下に向かって白へ
   ---------------------------------------------------------------------- */
.p-cost {
  background: linear-gradient(180deg, #aea7db 0%, #e1e0f0 40%, #f9f8fd 75%, var(--c-white) 100%);
}

.p-cost .c-heading__en {
  color: var(--c-white);
}

/* 見出しの下の短い線 */
.p-cost .c-heading__ja::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--c-navy);
}

.p-cost .c-heading {
  margin-bottom: 20px;
}

.p-cost__lead {
  line-height: 1.7;
  text-align: center;
}

/* 費用・期間：紫の丸2つ＋説明 */
.p-cost__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-inline: 24px;      /* SP。PCは0（下の @media） */
  margin-top: 28px;
}

.p-cost__figures {
  display: flex;
  gap: 12px;
}

.p-cost__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 136px;
  color: var(--c-white);
  background: var(--c-purple);
  border-radius: 50%;
}

.p-cost__figure dd {
  margin-top: 2px;
  line-height: 1.1;
}

/* 「50」「1」の数字だけ、まわりの文字（18px）の2倍の大きさに */
.p-cost__figure-num {
  font-size: 2em;
  line-height: 1;
  letter-spacing: 0;
}

.p-cost__summary-text {
  line-height: 1.7;
}

.p-cost__notes {
  margin-top: 8px;
  line-height: 1.7;
  color: #55587a;
}

/* 4ステップ */
.p-cost__steps-title {
  margin-top: 48px;
  text-align: center;
  color: var(--c-purple);
}

.p-cost__steps {
  display: grid;
  gap: 26px;
  margin-top: 20px;
}

.p-cost__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px;
  background: var(--c-white);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(33, 37, 75, 0.08);
}

/* ステップ間の矢印（SP：下向き） */
.p-cost__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 24px;                  /* 1.5倍（16px → 24px） */
  height: 18px;                 /* 1.5倍（12px → 18px） */
  background: #e8735a;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

.p-cost__step-icon {
  flex: none;
  width: 80px;
  height: 80px;
}

.p-cost__step-title {
  line-height: 1.4;
}

.p-cost__step-num {
  display: block;
  color: var(--c-purple);
}

.p-cost__step-text {
  margin-top: 6px;
  line-height: 1.7;
}

/* 初回ヒアリング */
.p-cost__hearing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.p-cost__hearing-illust {
  width: min(80%, 280px);
}

.p-cost__hearing-title {
  line-height: 1.6;
  text-align: center;
}

/* SP：見出しをイラストの上に出す
   本文の箱（.p-cost__hearing-body）を display: contents で外し、
   見出し・リスト・注記を直接の並びにして、見出しだけ先頭（order: -1）に置く */
@media (max-width: 768px) {
  .p-cost__hearing-body {
    display: contents;
  }
  .p-cost__hearing-title {
    order: -1;
  }
  .p-cost__hearing-list,
  .p-cost__hearing-note {
    width: 100%;
  }
  .p-cost__hearing .p-cost__hearing-list,
  .p-cost__hearing .p-cost__hearing-note {
    margin-top: 0;           /* 間隔は親の gap（24px）で取る */
  }
  .p-cost__hearing-list {
    padding-inline: 24px;
  }
}

.p-cost__hearing-list {
  margin-top: 14px;
}

.p-cost__hearing-note strong {
  font-weight: 700;
}

.p-cost__notes li,
.p-cost__hearing-list li {
  text-wrap: pretty;
}

.p-cost__hearing-list li {
  position: relative;
  padding-left: 1em;
  line-height: 1.8;
}

.p-cost__hearing-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.p-cost__hearing-note {
  margin-top: 18px;
  padding: 14px 16px;
  line-height: 1.7;
  text-align: center;
  background: #d9d4fb;
  border-radius: 8px;
}

@media (min-width: 769px) {
  .p-cost .c-heading {
    margin-bottom: 24px;
  }

  .p-cost__summary {
    padding-inline: 0;
    flex-direction: row;
    justify-content: center;
    gap: 28px;
    margin-top: 32px;
  }
  .p-cost__figures {
    gap: 14px;
  }
  .p-cost__figure {
    width: 150px;
    height: 150px;
  }

  .p-cost__steps-title {
    margin-top: 64px;
  }

  /* PC：4枚を横並び。カードの中は縦積み（STEP → タイトル → アイコン → 説明） */
  .p-cost__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 24px auto 0;
  }
  .p-cost__step {
    flex-direction: column;
    gap: 14px;
    padding: 32px 24px 44px;
    text-align: center;
  }
  .p-cost__step-body {
    display: contents;      /* 子要素をカード直下として並べ替える */
  }
  .p-cost__step-title {
    order: 1;
  }
  .p-cost__step-icon {
    order: 2;
    width: 100px;
    height: 100px;
  }
  .p-cost__step-text {
    order: 3;
    margin-top: 0;
    text-align: left;
  }
  .p-cost__step:not(:last-child)::after {
    top: 50%;
    left: auto;
    right: -21px;               /* カードの間（24px）の中央 */
    bottom: auto;
    width: 18px;                /* 1.5倍（12px → 18px） */
    height: 24px;               /* 1.5倍（16px → 24px） */
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: translateY(-50%);
  }

  .p-cost__hearing {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 56px auto 0;
  }
  .p-cost__hearing-illust {
    flex: none;
    width: 300px;
  }
  .p-cost__hearing-body {
    flex: 1;
    max-width: 640px;   /* 600pxだと見出しの「す」だけが2行目に落ちるため */
  }
  .p-cost__hearing-title {
    text-align: left;
  }
  .p-cost__hearing-note {
    margin-top: 24px;
    padding: 18px 20px;
  }
}

/* --- FAQ（アコーディオン） ----------------------------------------------
   閉じている：右に「＋」／開いている：右に「—」
   開閉のアニメーションは js/main.js で付けている
   ---------------------------------------------------------------------- */
.p-faq {
  --arrow-color: var(--c-purple);   /* 下端の三角を背景と同じ紫に */
  background: var(--c-purple);
}

.p-faq__list {
  display: grid;
  gap: 14px;
}

.p-faq__item {
  background: var(--c-white);
  border-radius: 6px;
}

/* 質問の行（ボタン全体がクリックできる） */
.p-faq__button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 16px;
  line-height: 1.6;
  text-align: left;
  color: var(--c-text);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.p-faq__q-text {
  flex: 1;
  text-wrap: pretty;   /* 「か？」だけが次の行に残る改行を避ける（対応ブラウザのみ） */
}

/* Q・Aの丸いバッジ */
.p-faq__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  line-height: 1;
  color: var(--c-white);
  border-radius: 50%;
}

.p-faq__badge--q {
  background: var(--c-navy);
}

.p-faq__badge--a {
  background: var(--c-purple);
}

/* ＋／— アイコン：横棒（::before）と縦棒（::after）を重ねて「＋」。
   開いたら縦棒を縮めて「—」にする */
.p-faq__toggle {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}

.p-faq__toggle::before,
.p-faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: var(--c-navy);
  transition: transform 0.3s ease;
}

.p-faq__toggle::after {
  transform: rotate(90deg);
}

.p-faq__button[aria-expanded="true"] .p-faq__toggle::after {
  transform: rotate(90deg) scaleX(0);
}

/* 回答 */
.p-faq__a {
  overflow: hidden;      /* 開閉アニメーション中に中身がはみ出さないように */
}

/* JSが動く環境では、開いていない回答を隠す
   （JSが動かない環境では .js が付かないので、すべて表示される） */
.js .p-faq__item:not(.is-open) .p-faq__a {
  display: none;
}

.p-faq__a-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 16px 22px;
}

.p-faq__a-text {
  flex: 1;
  padding-top: 4px;
  line-height: 1.8;
}

@media (hover: hover) {
  .p-faq__button:hover .p-faq__q-text {
    color: var(--c-purple);
  }
}

@media (min-width: 769px) {
  .p-faq__list {
    max-width: 1000px;
    margin-inline: auto;
    gap: 20px;
  }
  .p-faq__button {
    gap: 16px;
    padding: 22px 40px;
  }
  .p-faq__badge {
    width: 50px;
    height: 50px;
  }
  .p-faq__toggle {
    width: 30px;
    height: 30px;
  }
  .p-faq__a-inner {
    gap: 16px;
    padding: 4px 74px 34px 40px;
  }
  .p-faq__a-text {
    padding-top: 6px;
    line-height: 1.9;
  }
}

/* --- お問い合わせ -------------------------------------------------------- */
.p-contact__lead {
  text-align: center;
}


/* --- ページトップへ戻るボタン ---------------------------------------------
   ai-01 と同じ見た目（画面右下に固定・半透明・青）。
   ai-01 はアイコンに Font Awesome を使っていたが、ai-02 では読み込みを減らすため
   同じ形の二重の矢印をSVGで描いている。
   1024px以下（SP・タブレット）では、ai-01 と同じく表示しない。
   ---------------------------------------------------------------------- */
.c-pagetop {
  display: none;
}

@media (min-width: 1025px) {
  .c-pagetop {
    position: fixed;
    right: 0;
    bottom: 60px;
    z-index: 90;            /* ヘッダー（100）より下、本文より上 */
    display: block;
    width: 90px;
    height: 90px;
    opacity: 0.6;
    transition: opacity 0.2s;
  }

  .c-pagetop a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    color: #3f98ef;
    text-decoration: none;
  }

  .c-pagetop__icon {
    width: 28px;
    height: 28px;
  }

  .c-pagetop__text {
    font-size: 0.8125rem;   /* 13px相当 */
    line-height: 1;
    letter-spacing: 0.04em;
  }
}

@media (min-width: 1025px) and (hover: hover) {
  .c-pagetop:hover {
    opacity: 1;
  }
}


/* =====================================================================
   6. フェードイン
   ---------------------------------------------------------------------
   表示させたい要素に class="js-fade" を付けると、画面に入ったときに
   ふわっと表示されます（main.js が is-visible を付けます）。
   JSが動かない環境では html に .js が付かないので、最初から表示されます。
   ===================================================================== */
.js .js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .js-fade.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .js-fade {
    opacity: 1;
    transform: none;
  }
}


/* =====================================================================
   7. 補助（表示の出し分け）
   ===================================================================== */
@media (min-width: 769px) {
  .u-sp-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .u-pc-only {
    display: none !important;
  }
}

/* =====================================================================
   8. 文字の指定（.aiファイル準拠）
   ---------------------------------------------------------------------
   各要素のフォント・太さ・サイズ・字間を、ここ1か所にまとめて指定している。
   値はデザイン（.ai）の文字設定から取り出したもの。
     ・サイズ：PCは.aiの値そのまま、SPは.ai（横750pxのアートボード）の値 ÷ 2
     ・rem への換算：px ÷ 16（コメントに元のpxを記載）
     ・字間（letter-spacing）：.aiの「トラッキング」÷ 1000 em
         例）トラッキング50 → 0.05em
     ・フォント：日本語＝Noto Sans JP／英字ラベル＝DIN 2014／番号＝Dystopian
   文字の大きさを変えたいときは、このブロックだけを修正すればよい。
   ===================================================================== */

/* --- SP（基本） --- */
body {
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.05em;
}

.l-header__badge {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 0.625rem;    /* 10px */
  letter-spacing: 0.05em;
}

.c-btn--header {
  font-family: var(--font-ja);
  font-weight: 900;          /* Noto Sans JP の Black（index.html で 900 を読み込み） */
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0;
}

.p-fv__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 2.375rem;    /* 38px */
  letter-spacing: 0.1em;
}

.p-fv__lead {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.05em;
}

.p-fv__aims-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.125rem;    /* 18px */
  letter-spacing: 0.09em;
}

.p-fv__aims-sub {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.66rem;    /* 約10.6px */
  letter-spacing: 0.01em;
}

.p-fv__aims-note {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.56rem;    /* 約9px */
  letter-spacing: 0.05em;
}

.p-cta__lead {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1rem;    /* 16px */
  letter-spacing: 0.05em;
}

.c-btn--cta {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.2rem;    /* 19.2px */
  letter-spacing: 0.05em;
}

.p-cta__catch {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.3rem;    /* 20.8px */
  letter-spacing: 0.1em;
}

.p-cta__text {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.02rem;    /* 約16.3px */
  letter-spacing: 0.05em;
}

.p-cta__note {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.75rem;    /* 12px */
  letter-spacing: 0.05em;
}

.c-heading__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.0625rem;    /* 17px */
  letter-spacing: 0.05em;
}

.c-heading__ja {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.9375rem;    /* 31px */
  letter-spacing: 0.05em;
}

.c-heading__lead {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.04rem;    /* 約16.6px */
  letter-spacing: 0.05em;
}

.p-challenges .c-heading__ja {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.8rem;    /* 28.8px */
  letter-spacing: 0.05em;
}

.p-case .c-heading__ja {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.8125rem;    /* 29px */
  letter-spacing: 0.05em;
}

.p-faq .c-heading__ja {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.5rem;    /* 24px */
  letter-spacing: 0.05em;
}

.p-contact .c-heading__ja {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.5625rem;    /* 25px */
  letter-spacing: 0.05em;
}

.p-case .c-heading__lead {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1rem;    /* 16px */
  letter-spacing: 0.05em;
}

.p-challenges__lead {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.2rem;    /* 19.2px */
  letter-spacing: 0.05em;
}

.p-challenges__list li {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.05em;
}

.p-challenges__message {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.1rem;    /* 17.6px */
  letter-spacing: 0.05em;
}

.p-packages__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.6875rem;    /* 27px */
  letter-spacing: 0.05em;
}

.p-packages__lead {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1rem;    /* 16px */
  letter-spacing: 0.05em;
}

.p-packages__card-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.8rem;    /* 28.8px */
  letter-spacing: 0.05em;
}

.p-packages__card-catch {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.4rem;    /* 22.4px */
  letter-spacing: 0.05em;
}

.p-packages__card-label {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.4rem;    /* 22.4px */
  letter-spacing: 0.05em;
}

.p-packages__card-target {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.4rem;    /* 22.4px */
  letter-spacing: 0.05em;
}

.p-package__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 2.3125rem;    /* 37px */
  letter-spacing: 0;
}

.p-package__catch {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.3125rem;    /* 21px */
  letter-spacing: 0.05em;
}

.p-package__term dt {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.05em;
}

.p-package__term dd {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1rem;    /* 16px */
  letter-spacing: 0.05em;
}

.p-package__recommend-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.25rem;    /* 20px */
  letter-spacing: 0.11em;
}

.p-package__recommend-list li {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.05em;
}

.p-package__step-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.375rem;    /* 22px */
  letter-spacing: 0.05em;
}

.p-package__step--ai .p-package__step-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.875rem;    /* 30px */
  letter-spacing: 0.05em;
}

.p-package__step-text {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.05rem;    /* 16.8px */
  letter-spacing: 0.05em;
}

.p-option__watermark {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 3.875rem;    /* 62px */
  letter-spacing: 0.02em;
}

.p-option__package {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.75rem;    /* 12px（デザイン画像に合わせて調整） */
  letter-spacing: 0.05em;
}

.p-option__plus {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 5rem;    /* 80px（SP・PC共通） */
  letter-spacing: 0;
}

.p-option__intro {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.412rem;    /* 約22.6px */
  letter-spacing: 0.05em;
}

.p-option__label {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.3rem;    /* 20.8px */
  letter-spacing: 0.05em;
}

.p-option__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.6875rem;    /* 27px（1行に収まる大きさ） */
  letter-spacing: 0.02em;
}

.p-option__lead {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1rem;    /* 16px（デザイン画像に合わせて調整） */
  letter-spacing: 0.05em;
}

.p-option__recommend-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.25rem;    /* 20px */
  letter-spacing: 0.11em;
}

.p-option__recommend-list li {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.025em;
}

.p-option__step-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.9375rem;    /* 15px（デザイン画像に合わせて調整） */
  letter-spacing: 0.05em;
}

.p-option__step-en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.5rem;    /* 24px（デザイン画像に合わせて調整） */
  letter-spacing: 0.05em;
}

.p-option__step-text {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 0.9375rem;    /* 15px（デザイン画像に合わせて調整） */
  letter-spacing: 0.05em;
}

.p-option__message {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.5rem;    /* 24px */
  letter-spacing: 0.025em;
}

.p-reason__num {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 3rem;    /* 48px */
  letter-spacing: 0.01em;
}

.p-reason__en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.6rem;    /* 25.6px */
  letter-spacing: 0.05em;
}

.p-reason__title {
  font-family: var(--font-ja);
  font-weight: 900;    /* SP。PCは700（下の @media） */
  font-size: 1.1875rem;    /* 19px */
  letter-spacing: 0.05em;
}

.p-reason__text {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 1.02rem;    /* 約16.3px */
  letter-spacing: 0.05em;
}

.p-security__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.125rem;    /* 18px */
  letter-spacing: 0.05em;
}

.p-security__list li {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.05rem;    /* 16.8px */
  letter-spacing: 0.025em;
}

.p-security__text {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.05rem;    /* 16.8px */
  letter-spacing: 0.05em;
}

.p-security__mark-note {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.4375rem;    /* 7px */
  letter-spacing: 0.05em;
}

.p-case__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.1875rem;    /* 19px */
  letter-spacing: 0.05em;
}

.p-case__client {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.75rem;    /* 12px */
  letter-spacing: 0.05em;
}

.p-case__package {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.96rem;    /* 約15.4px */
  letter-spacing: 0.05em;
}

.p-case__text {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.8125rem;    /* 13px */
  letter-spacing: 0.025em;
}

.p-case__tech {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.625rem;    /* 10px */
  letter-spacing: 0.05em;
}

.p-cost__lead {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.25rem;    /* 20px */
  letter-spacing: 0.05em;
}

.p-cost__figure dt {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.75rem;    /* 12px（丸の中に収まるよう調整） */
  letter-spacing: 0.05em;
}

.p-cost__figure dd {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.125rem;    /* 18px（数字以外の文字。数字は2倍の36px） */
  letter-spacing: 0.02em;
}

.p-cost__summary-text {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.125rem;    /* 18px */
  letter-spacing: 0.05em;
}

.p-cost__notes {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.75rem;    /* 12px */
  letter-spacing: 0.025em;
}

.p-cost__steps-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.26rem;    /* 約20px */
  letter-spacing: 0.05em;
}

.p-cost__step-num {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 1.3125rem;    /* 21px */
  letter-spacing: 0.05em;
}

.p-cost__step-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.05em;
}

.p-cost__step-text {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.8125rem;    /* 13px */
  letter-spacing: 0.05em;
}

.p-cost__hearing-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 1.5rem;    /* 24px */
  letter-spacing: 0.05em;
}

.p-cost__hearing-list li {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1rem;    /* 16px */
  letter-spacing: 0.05em;
}

.p-cost__hearing-note {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.86rem;    /* 約13.8px */
  letter-spacing: 0.02em;
}

.p-faq__button {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.05em;
}

.p-faq__badge {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 0.9375rem;    /* 15px */
  letter-spacing: 0.05em;
}

.p-faq__a-text {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.875rem;    /* 14px */
  letter-spacing: 0.05em;
}

.p-contact__lead {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 1.0625rem;    /* 17px */
  letter-spacing: 0.05em;
}

.l-footer__copy {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.6875rem;    /* 11px */
  letter-spacing: 0.05em;
}

/* --- PC（769px以上）：SPと違う値だけ上書き --- */
@media (min-width: 769px) {
  body {
    font-size: 1.0625rem;    /* 17px */
  }

  .l-header__badge {
    font-size: 0.9688rem;    /* 15.5px */
  }

  .p-fv__title {
    font-size: 3.4375rem;    /* 55px */
    letter-spacing: 0.05em;
  }

  .p-fv__lead {
    font-size: 1.25rem;    /* 20px（23px → 各行を1行に収めるため縮小） */
  }

  .p-fv__aims-title {
    font-size: 1.5938rem;    /* 25.5px */
  }

  .p-fv__aims-sub {
    font-size: 0.8313rem;    /* 13.3px */
  }

  .p-fv__aims-note {
    font-size: 0.75rem;    /* 12px */
  }

  .p-cta__lead {
    font-size: 1.5625rem;    /* 25px */
  }

  .c-btn--cta {
    font-size: 1.5rem;    /* 24px */
  }

  .p-cta__catch {
    font-size: 1.5625rem;    /* 25px */
    letter-spacing: 0.05em;
  }

  .p-cta__text {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-cta__note {
    font-size: 1.0625rem;    /* 17px */
  }

  .c-heading__en {
    font-size: 1.25rem;    /* 20px */
  }

  .c-heading__ja {
    font-size: 2.0625rem;    /* 33px */
  }

  .c-heading__lead {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-challenges .c-heading__ja {
    font-size: 2.0625rem;    /* 33px */
  }

  .p-case .c-heading__ja {
    font-size: 2.0625rem;    /* 33px */
  }

  .p-faq .c-heading__ja {
    font-size: 2.0625rem;    /* 33px */
  }

  .p-contact .c-heading__ja {
    font-size: 2.0625rem;    /* 33px */
  }

  .p-case .c-heading__lead {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-challenges__lead {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-challenges__list li {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-challenges__message {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-packages__title {
    font-size: 2.8125rem;    /* 45px */
  }

  .p-packages__lead {
    font-size: 1.375rem;    /* 22px */
  }

  .p-packages__card-title {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-packages__card-catch {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-packages__card-label {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-packages__card-target {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-package__title {
    font-size: 2.8125rem;    /* 45px */
    letter-spacing: 0.05em;
  }

  .p-package__catch {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-package__term dt {
    font-size: 1.375rem;    /* 22px */
  }

  .p-package__term dd {
    font-size: 1.375rem;    /* 22px */
    letter-spacing: 0.02em;  /* 1行に収めるため少し詰める */
  }

  .p-package__recommend-title {
    font-size: 2.1875rem;    /* 35px */
  }

  .p-package__recommend-list li {
    font-size: 1.375rem;    /* 22px */
  }

  .p-package__step-title {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-package__step--ai .p-package__step-title {
    font-size: 2.8125rem;    /* 45px */
  }

  .p-package__step-text {
    font-size: 1rem;    /* 16px */
    letter-spacing: 0.03em;  /* .aiは0.05em。カード幅が狭く「活／用。」「データベー／ス化。」と
                                単語の途中で改行されるため、少し詰めて1行の文字数を増やす */
  }

  .p-option__watermark {
    font-size: 5.75rem;    /* 92px */
    letter-spacing: 0.01em;
  }

  .p-option__package {
    font-size: 1rem;    /* 16px（デザイン画像に合わせて調整） */
  }

  .p-option__intro {
    font-size: 1.5rem;    /* 24px（デザイン画像に合わせて調整） */
  }

  .p-option__label {
    font-size: 1.625rem;    /* 26px */
  }

  .p-option__title {
    font-size: 2.56rem;    /* 約41px */
    letter-spacing: 0.05em;
  }

  .p-option__lead {
    font-size: 1.5rem;    /* 24px */
  }

  .p-option__recommend-title {
    font-size: 2.1875rem;    /* 35px */
  }

  .p-option__recommend-list li {
    font-size: 1.375rem;    /* 22px */
    letter-spacing: 0.05em;
  }

  .p-option__step-title {
    font-size: 0.9375rem;    /* 15px（デザイン画像に合わせて調整） */
  }

  .p-option__step-en {
    font-size: 1.625rem;    /* 26px（デザイン画像に合わせて調整） */
  }

  .p-option__step-text {
    font-size: 0.9375rem;    /* 15px（デザイン画像に合わせて調整） */
  }

  .p-option__message {
    font-size: 1.5625rem;    /* 25px */
    letter-spacing: 0.05em;
  }

  .p-reason__num {
    font-size: 3.3125rem;    /* 53px */
  }

  .p-reason__en {
    font-size: 1.875rem;    /* 30px */
  }

  .p-reason__title {
    font-weight: 700;
    font-size: 1.5625rem;    /* 25px */
  }

  .p-reason__text {
    font-weight: 400;
    font-size: 1rem;    /* 16px */
  }

  .p-security__title {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-security__list li {
    font-size: 1.0625rem;    /* 17px */
    letter-spacing: 0.05em;
  }

  .p-security__text {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-security__mark-note {
    font-size: 0.6875rem;    /* 11px（タイルの中で折り返さないよう調整） */
    letter-spacing: 0;
  }

  .p-case__title {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-case__client {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-case__package {
    font-size: 1.125rem;    /* 18px（.aiは20px。四角の中で折り返さないよう少し縮小） */
  }

  .p-case__text {
    font-size: 1.0625rem;    /* 17px */
    letter-spacing: 0.05em;
  }

  .p-case__tech {
    font-size: 0.875rem;    /* 14px */
  }

  .p-cost__lead {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-cost__figure dt {
    font-size: 0.875rem;    /* 14px（丸の中に収まるよう調整） */
  }

  .p-cost__figure dd {
    font-size: 1.125rem;    /* 18px（数字以外の文字。数字は2倍の36px） */
  }

  .p-cost__summary-text {
    font-size: 1.3125rem;    /* 21px */
  }

  .p-cost__notes {
    font-size: 0.875rem;    /* 14px */
    letter-spacing: 0.05em;
  }

  .p-cost__steps-title {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-cost__step-num {
    font-size: 2.1875rem;    /* 35px */
  }

  .p-cost__step-title {
    font-size: 1.3125rem;    /* 21px */
  }

  .p-cost__step-text {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-cost__hearing-title {
    font-size: 1.5625rem;    /* 25px */
  }

  .p-cost__hearing-list li {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-cost__hearing-note {
    font-size: 1.0625rem;    /* 17px */
  }

  .p-faq__button {
    font-size: 1.3125rem;    /* 21px */
  }

  .p-faq__badge {
    font-size: 1.4375rem;    /* 23px */
  }

  .p-faq__a-text {
    font-size: 1.0625rem;    /* 17px */
  }

  .l-footer__copy {
    font-size: 1.0625rem;    /* 17px */
  }
}

/* 「で」「を」は見出しより一回り小さく（.ai：SP 31px／38px、PC 45px／55px） */
.p-fv__title-small {
  font-size: 0.82em;
}



/* =====================================================================
   9. 余白（.aiファイル準拠）
   ---------------------------------------------------------------------
   セクションの上下余白と、セクション内の主な間隔をここにまとめて指定する。
   値はデザイン（.ai と書き出し画像）の「要素の上端〜次の要素の上端」を
   実測し、文字の行の高さ（line-height）の分を差し引いて調整したもの。
     ・PC：.aiの値そのまま／SP：.ai（横750px）の値 ÷ 2
   セクションの間隔を変えたいときは、このブロックだけを修正すればよい。
   ===================================================================== */

/* --- SP（基本） ------------------------------------------------------- */

/* セクションの上下余白 */
.p-fv            { padding-block: 30px 30px; }
.p-cta           { padding-block: 40px 40px; }
.p-cta--split    { padding-block: 46px 46px; }
.p-challenges    { padding-block: 56px 64px; }
.p-packages      { padding-block: 60px 60px; }
.p-package       { padding-block: 0 62px; }
.p-package--rag  { padding-block: 0 70px; }
.p-option        { padding-block: 40px 60px; }
.p-reason        { padding-block: 80px 0; }
.p-security      { padding-block: 72px 64px; }
.p-case          { padding-block: 80px 80px; }
.p-cost          { padding-block: 80px 72px; }
.p-faq           { padding-block: 64px 48px; }
.p-contact       { padding-block: 80px 0; }     /* 上はFAQの三角（34px）の分を含む。下はフッターの余白で取る */

/* セクション見出し（英字ラベル → 見出し → リード文 → 中身） */
.c-heading            { margin-bottom: 32px; }
.c-heading__ja        { margin-top: 8px; }
.c-heading__lead      { margin-top: 16px; }

/* 現場の悩み */
.p-challenges__lead    { margin-bottom: 28px; }
.p-challenges__message { margin-top: calc(40px + 32px); }  /* イラストの下端から40px（はみ出し32px分を足す） */

/* 3つのパッケージ（概要） */
.p-packages__intro     { margin-bottom: 40px; gap: 24px; }
.p-packages__cards     { gap: 24px; }
.p-packages__card-link { padding: 28px 28px 28px; }
.p-packages__card-catch{ margin-top: 8px; }
.p-packages__card-icon { margin-block: 16px 20px; }
.p-packages__card-target { margin-top: 10px; }

/* パッケージ詳細：歯車 → 見出し → キャッチ → おすすめ → フロー */
.p-package__title      { margin-top: 40px; }
.p-package__catch      { margin-top: 16px; }
.p-package__head       { margin-bottom: 68px; }  /* キャッチ→ラベル上端46px＋ラベルの半分22px */
.p-package__term       { margin-bottom: 68px; }
.p-package__recommend  { margin-top: 0; }
.p-package__flow       { margin-top: 50px; }
.p-package__illust     { margin-top: 56px; }

/* 拡張オプション */
.p-option__panel           { padding: 72px 16px 40px; }
.p-option__intro           { margin-top: 20px; }
.p-option__title-wrap      { margin-top: 40px; gap: 18px; }
.p-option__lead            { margin-top: 20px; }
.p-option__recommend       { margin-top: 82px; }  /* リード文→ラベル上端60px＋ラベルの半分22px */
.p-option__steps           { margin-top: 48px; }
.p-option__closing         { margin-top: 56px; }

/* 選ばれる理由・セキュリティ */
.p-reason .c-heading   { margin-bottom: 24px; }
.p-security .c-heading { margin-bottom: 40px; }

/* 開発実績 */
.p-case .c-heading     { margin-bottom: 48px; }
.p-case__list          { gap: 24px; }

/* 費用と導入ステップ */
.p-cost .c-heading     { margin-bottom: 24px; }
.p-cost__summary       { margin-top: 24px; }
.p-cost__steps-title   { margin-top: 48px; }
.p-cost__steps         { margin-top: 24px; }
.p-cost__hearing       { margin-top: 56px; }

/* FAQ：カードの内側（質問の行・回答） */
.p-faq .c-heading      { margin-bottom: 32px; }
.p-faq__list           { gap: 14px; }
.p-faq__button         { padding: 20px 16px; }
.p-faq__a-inner        { padding: 4px 16px 24px; }

/* お問い合わせ */
.p-contact .c-heading  { margin-bottom: 20px; }
.p-contact__lead       { margin-bottom: 40px; }


/* --- PC（769px以上） --------------------------------------------------- */
@media (min-width: 769px) {
  .p-fv            { padding-block: 60px 70px; }
  .p-cta           { padding-block: 44px 48px; }
  .p-cta--split    { padding-block: 64px 68px; }
  .p-challenges    { padding-block: 86px 92px; }
  .p-packages      { padding-block: 60px 92px; }
  .p-package       { padding-block: 0 74px; }
  .p-package--rag  { padding-block: 0 78px; }
  .p-option        { padding-block: 84px 66px; }
  .p-reason        { padding-block: 100px 0; }
  .p-security      { padding-block: 86px 94px; }
  .p-case          { padding-block: 90px 145px; }
  .p-cost          { padding-block: 100px 92px; }
  .p-faq           { padding-block: 86px 100px; }
  .p-contact       { padding-block: 110px 0; }    /* 上はFAQの三角（56px）の分を含む。下はフッターの余白で取る */

  .c-heading            { margin-bottom: 48px; }
  .c-heading__ja        { margin-top: 12px; }
  .c-heading__lead      { margin-top: 18px; }

  /* 現場の悩み */
  .p-challenges__lead    { margin-bottom: 48px; }
  .p-challenges__message { margin-top: 70px; }

  /* 3つのパッケージ（概要） */
  .p-fv__diagram         { width: 500px; }
  .p-packages__intro     { margin-bottom: 46px; gap: 48px; }
  .p-packages__cards     { gap: 20px; }
  .p-packages__card-link { padding: 28px 20px 30px; }
  .p-packages__card-icon { margin-block: 14px 24px; }
  .p-packages__card-target { margin-top: 12px; }

  /* パッケージ詳細 */
  .p-package__title      { margin-top: 34px; }
  .p-package__catch      { margin-top: 10px; }
  .p-package__head       { margin-bottom: 91px; }  /* キャッチ→ラベル上端56px＋ラベルの半分35px */
  .p-package__term       { margin-bottom: 103px; } /* 用語説明→ラベル上端68px＋ラベルの半分35px */
  .p-package__recommend  { margin-top: 0; }
  .p-package__flow       { margin-top: 61px; }
  .p-package__illust     { margin-top: 0; }

  /* 拡張オプション */
  .p-option__panel           { padding: 100px 40px 56px; }
  .p-option__intro           { margin-top: 25px; }
  .p-option__title-wrap      { margin-top: 56px; }
  .p-option__lead            { margin-top: 22px; }
  .p-option__recommend       { margin-top: 103px; } /* リード文→ラベル上端68px＋ラベルの半分35px */
  .p-option__steps           { margin-top: 64px; }
  .p-option__closing         { margin-top: 48px; }

  /* 選ばれる理由・セキュリティ */
  .p-reason .c-heading   { margin-bottom: 32px; }
  .p-security .c-heading { margin-bottom: 56px; }

  /* 開発実績 */
  .p-case .c-heading     { margin-bottom: 64px; }
  .p-case__list          { gap: 30px; }

  /* 費用と導入ステップ */
  .p-cost .c-heading     { margin-bottom: 30px; }
  .p-cost__summary       { margin-top: 25px; }
  .p-cost__steps-title   { margin-top: 80px; }
  .p-cost__steps         { margin-top: 40px; }
  .p-cost__hearing       { margin-top: 70px; }

  /* FAQ */
  .p-faq .c-heading      { margin-bottom: 47px; }
  .p-faq__list           { gap: 20px; }
  .p-faq__button         { padding: 23px 40px; }
  .p-faq__a-inner        { padding: 5px 74px 40px 40px; }

  /* お問い合わせ */
  .p-contact .c-heading  { margin-bottom: 30px; }
  .p-contact__lead       { margin-bottom: 60px; }
}


/* =====================================================================
   10. サンクスページ（thanks.html）
   ---------------------------------------------------------------------
   ヘッダーはロゴと実績バッジだけ（ボタンなし）なので、SPでも1段になり、
   高さをLPより低くする（--header-h を上書き）。
   ===================================================================== */
.page-thanks {
  --header-h: 64px;
}

@media (min-width: 769px) {
  .page-thanks {
    --header-h: 70px;
  }
}

.p-thanks {
  padding-block: 48px 64px;
  background: linear-gradient(180deg, #e1e0f0 0%, #f9f8fd 60%, var(--c-white) 100%);
}

.p-thanks__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin-inline: auto;
  padding: 40px 20px 44px;
  text-align: center;
  background: var(--c-white);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(33, 37, 75, 0.08);
}

.p-thanks__illust {
  width: min(80%, 260px);
}

.p-thanks__title {
  margin-top: 24px;
  font-size: 1.25rem;       /* 20px */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--c-purple);
}

.p-thanks__text {
  margin-top: 20px;
  font-size: 0.875rem;      /* 14px */
  line-height: 1.9;
  letter-spacing: 0.03em;
  text-align: left;         /* SPは左揃えで読みやすく */
}

/* 日本語を文節で改行（Chrome・Edge 119以降） */
.p-thanks__title,
.p-thanks__text,
.p-thanks__note p {
  word-break: auto-phrase;
  text-wrap: pretty;
}

.p-thanks__note {
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  text-align: left;
  font-size: 0.8125rem;     /* 13px */
  line-height: 1.8;
  letter-spacing: 0.03em;
  background: #f2f1fb;
  border-radius: 8px;
}

.p-thanks__tel {
  margin-top: 8px;
}

/* 電話番号と受付時間は途中で折り返さない */
.p-thanks__tel-num {
  white-space: nowrap;
}

.p-thanks__tel a {
  font-weight: 700;
  color: var(--c-purple);
  text-decoration: none;
}

.p-thanks__button {
  margin-top: 32px;
}

@media (min-width: 769px) {
  .p-thanks {
    padding-block: 80px 100px;
  }
  .p-thanks__box {
    padding: 56px 64px 60px;
  }
  .p-thanks__illust {
    width: 320px;
  }
  .p-thanks__title {
    margin-top: 32px;
    font-size: 2.0625rem;   /* 33px（LPのセクション見出しと同じ） */
  }
  .p-thanks__text {
    margin-top: 24px;
    font-size: 1.0625rem;   /* 17px（LPの本文と同じ） */
    text-align: center;
  }
  .p-thanks__note {
    margin-top: 32px;
    padding: 20px 28px;
    text-align: center;
    font-size: 0.9375rem;   /* 15px */
  }
  .p-thanks__button {
    width: 400px;
    height: 70px;
    margin-top: 40px;
    font-size: 1.5rem;      /* 24px（LPのCTAボタンと同じ） */
  }
}
