@charset "UTF-8";
/* ============================================================
  AIデジタルスタッフ 導入事例一覧（/case）
  /cms/css/usr/case.css（/cms/css/common.css の後に読み込む）
  PC: Figma 事例一覧_PC（1440px） / SP: Figma 事例一覧_SP（375px）〜767px
  値は Figma の座標・寸法から算出（コメントの数値は Figma 上の位置）
============================================================ */

/* ============================================================
  タブ（企業・EC / 自治体）
  case.js が body[data-active-tab] を ec / gov にする。一致しない data-tab 要素を隠す
============================================================ */
body[data-active-tab="ec"]  [data-tab="gov"],
body[data-active-tab="gov"] [data-tab="ec"] { display: none !important; }

/* ============================================================
  HEADER（TOP と同じ見た目。top.css は読まないので必要な分だけ持つ。自治体への切替ボタンは無し）
============================================================ */
.l-header__logo img[data-tab="gov"] { height: 49px; margin-left: -14px; }
.l-header__sp-btn { display: none !important; }
.gnav { display: flex; align-items: center; gap: 50px; }
.gnav__list { display: flex; gap: 48px; font-size: 16px; font-weight: 500; line-height: 33.935px; letter-spacing: .3284px; color: var(--text); }
.gnav__list a:hover { color: var(--pink); }
.gnav__btns { display: flex; gap: 20px; }
.gnav__btns .btn--line { background: #fffcfc; }
.hamburger { display: none; }

/* ============================================================
  導入事例一覧（パンくず・見出し・タブ・カード・もっと見る）
============================================================ */
.case-list { position: relative; padding-top: 10px; }                     /* パンくず y94（ヘッダー下 10px） */
/* バブル背景（不透明度50%）。画像の上端は y-145 → この箱の上端から -229px。
   カードを「もっと見る」で増やしても途切れないよう縦に繰り返す（2枚目は 1枚目の下端 y1775 から） */
.case-list::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("/cms/img/usr/top/ec/bg_bubble.jpg") repeat-y center -229px / 1441px 1920px;
  opacity: .5; pointer-events: none;
}
.case-list > * { position: relative; z-index: 1; }

/* パンくず 13px（x60） */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; padding: 0 60px; font-size: 13px; line-height: 19px; color: #8c8c8c; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb li + li::before {
  content: ""; display: inline-block; width: 0; height: 0; margin: 0 6px 0 13px; vertical-align: 1px;
  border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent var(--text);
}
.breadcrumb li:last-child { font-weight: 500; color: var(--text); }

.case-list__inner { width: min(var(--inner), 100% - 40px); margin-inline: auto; }
/* 見出し 42px（y166） */
.case-list__ttl { margin-top: 53px; font-size: 42px; font-weight: 700; line-height: 32px; letter-spacing: -2px; color: var(--navy); }

/* タブ（デザインの「業界・業種・課題」の絞り込みの位置 y244） */
.case-tabs { display: flex; gap: 20px; margin-top: 46px; }
.case-tabs__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 280px; height: 52px; border: 1px solid var(--navy); border-radius: 26px;
  background: #fff; color: var(--navy); font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .3px;
  transition: background-color .2s, color .2s;
}
.case-tabs__btn::before { content: ""; flex: none; width: 32px; height: 32px; background: no-repeat center / contain; }
.case-tabs__btn--ec::before  { background-image: url("/cms/img/usr/top/common/tab_ec_on.png"); }   /* 紺のアイコン */
.case-tabs__btn--gov::before { background-image: url("/cms/img/usr/top/common/tab_gov_on.png"); }
.case-tabs__btn:hover { background: #f3f4f9; }
.case-tabs__btn.is-active { background: var(--navy); color: #fff; cursor: default; }
.case-tabs__btn--ec.is-active::before  { background-image: url("/cms/img/usr/top/common/tab_ec_off.png"); }   /* 白のアイコン */
.case-tabs__btn--gov.is-active::before { background-image: url("/cms/img/usr/top/common/tab_gov_off.png"); }

/* 業界の絞り込み（Figma 事例一覧_PC の「業界」：ラベル 15px ＋ 290x50 のセレクト・角丸10・線 #d2d2d2・紺の▼） */
.case-filter { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.case-filter[hidden] { display: none; }
.case-filter__label { flex: none; font-size: 15px; font-weight: 500; line-height: 27px; color: var(--text); }
.case-filter__select { position: relative; display: block; width: 290px; }
.case-filter__select::after {   /* ▼ 13x12 */
  content: ""; position: absolute; right: 18px; top: 50%; width: 13px; height: 12px; margin-top: -6px;
  background: var(--navy); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none;
}
.case-filter__select select {
  display: block; width: 100%; height: 50px; padding: 0 44px 0 20px;
  border: 1px solid #d2d2d2; border-radius: 10px; background: #fff;
  font: inherit; font-size: 15px; line-height: 27px; color: var(--text);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.case-filter__select select:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.case-filter:not([hidden]) + .case-cards { margin-top: 40px; }

/* カード 350x429（x170 / 545 / 920・y356 / 809 / 1262）角丸20・線 #dcdcdc */
.case-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 25px; margin-top: 60px; }
.case-card[hidden] { display: none; }
.case-card__link {
  display: block; height: 100%; min-height: 429px; padding: 26px 29px 30px;
  border: 1px solid #dcdcdc; border-radius: 20px; background: #fff;
  transition: box-shadow .2s;
}
.case-card__link:hover { box-shadow: 0 4px 16px rgba(23, 35, 102, .12); }
.case-card__name { font-size: 18px; font-weight: 500; line-height: 22px; color: var(--text); }   /* +27 */
/* 画像 290x228（+64）角丸16。ロゴは縦横比を保って枠の中に収める */
.case-card__img { position: relative; aspect-ratio: 290 / 228; margin-top: 15px; overflow: hidden; border-radius: 16px; background: #fff; line-height: 0; }
.case-card__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #e6e6e6; pointer-events: none; }   /* 枠線は画像の上に重ねる */
.case-card__img img { width: 100%; height: 100%; object-fit: contain; }
.case-card__txt { margin-top: 20px; font-size: 15px; line-height: 27px; letter-spacing: .3px; color: var(--text); }   /* +312 */
.case-card__cat { display: none; }
.case-list__empty { margin-top: 60px; font-size: 16px; text-align: center; }

/* もっと見る 300x64（y1727）。矢印は下向き */
.case-list__more { margin-top: 36px; text-align: center; }
.case-list__more[hidden] { display: none; }
.case-more { min-width: 0; width: 300px; height: 64px; border-radius: 35px; }
.case-more::after { transform: rotate(90deg); }

/* ============================================================
  紹介資料・無料デモ環境（TOP と同じブロック。余白だけこのページに合わせる）
============================================================ */
.document { padding-top: 110px; }               /* もっと見る の下端 y1791 → 箱 y1901 */
.demo-cta { padding-bottom: 202px; }            /* 箱の下端 y2862 → フッター y2984（フッターは 80px 重なる） */

/* ============================================================
  FOOTER（共通ブロック。このページは CTA バーが無いので下の余白を詰める）
============================================================ */
.l-footer { padding-bottom: 25px; }

/* ============================================================
  導入事例 詳細（/case/detail）：Figma 事例紹介_PC 6:82
  枠（パンくず・白い箱）は OML、箱の中は記事の entryexample_7 に静的に入れる HTML（.cs-○○ のクラスを使う）
  背景のバブル・パンくずは一覧（.case-list）と同じ
============================================================ */
.case-detail__card { margin-top: 53px; padding: 50px 60px 60px; border-radius: 20px; background: #fff; box-shadow: 0 0 16px #e1ebf7; }   /* x170 y166 幅1100 */
.case-detail__cat { display: none; }
.case-detail__card img { display: block; max-width: 100%; height: auto; }

/* ---- 冒頭：左に会社名など、右にインタビュー画像 480x320 ---- */
.cs-intro { display: flex; justify-content: space-between; gap: 40px; }
.cs-intro__txt { flex: 1; min-width: 0; }
.cs-intro__label { font-size: 15px; line-height: 27px; letter-spacing: .3px; }
.cs-intro__logo { margin-top: 16px; }
.cs-intro__logo img { width: auto; max-height: 70px; }
.cs-intro__name { margin-top: 16px; font-size: 32px; font-weight: 700; line-height: 32px; letter-spacing: -2px; color: var(--navy); }
.cs-intro__name small { margin-left: 4px; font-size: 20px; letter-spacing: 0; }
.cs-intro__meta { margin-top: 15px; font-size: 15px; line-height: 27px; letter-spacing: .3px; }
.cs-intro__img { flex: 0 0 480px; margin-top: 14px; }

/* ---- 画像 480x320（角丸20・仮置きはグレー） ---- */
.cs-intro__img, .cs-feature__img { overflow: hidden; border-radius: 20px; background: #f6f6f6; aspect-ratio: 480 / 320; }
.cs-intro__img img, .cs-feature__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 見出しのブロック（上に区切り線 #dcdcdc） ---- */
.cs-sec { margin-top: 62px; padding-top: 52px; border-top: 1px solid #dcdcdc; }
.cs-sec + .cs-sec { margin-top: 95px; padding-top: 78px; }   /* 2つ目（インタビュー）は上下を広く（Figma y1566 / 1645） */
.cs-sec__ttl { font-size: 26px; font-weight: 700; line-height: 25px; letter-spacing: .4px; color: var(--text); }
.cs-sec__ttl::before { content: "●"; margin-right: .25em; color: var(--pink); }
.cs-sec__lead { margin-top: 24px; font-size: 18px; line-height: 32px; letter-spacing: .3px; }

/* ---- 使われ方：画像と説明を左右に（--rev で左右反対） ---- */
.cs-feature { display: flex; align-items: center; gap: 60px; margin-top: 37px; }
.cs-feature + .cs-feature { margin-top: 48px; }
.cs-feature--rev { flex-direction: row-reverse; }
.cs-feature__img { flex: 0 0 480px; }
.cs-feature__txt { flex: 1; min-width: 0; }
.cs-feature__txt h3 { font-size: 24px; font-weight: 700; line-height: 25px; letter-spacing: .4px; color: var(--navy); }
.cs-feature__txt p { margin-top: 19px; font-size: 18px; line-height: 36px; letter-spacing: .3px; }

/* ---- 担当者インタビュー：左に写真 240x300、右に Q&A ---- */
.cs-interview { display: flex; align-items: flex-start; gap: 60px; margin-top: 46px; }
.cs-person { flex: 0 0 240px; }
.cs-person__img { overflow: hidden; aspect-ratio: 240 / 300; border-radius: 20px; background: #7a7a7a; }
.cs-person__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-person__name { margin-top: 22px; font-size: 16px; line-height: 32px; letter-spacing: .3px; color: var(--dark); }
.cs-qa { flex: 1; min-width: 0; margin: -5px 0 0; }
.cs-qa__item + .cs-qa__item { margin-top: 23px; padding-top: 23px; border-top: 1px solid #dcdcdc; }
.cs-qa dt, .cs-qa dd { position: relative; margin: 0; padding-left: 40px; font-size: 18px; line-height: 36px; letter-spacing: .3px; }
.cs-qa dd { margin-top: 14px; }
.cs-qa dt::before, .cs-qa dd::before { position: absolute; left: 0; top: -4px; font-family: var(--jost); font-size: 24px; font-weight: 600; line-height: 43.48px; }
.cs-qa dt::before { content: "Q"; color: var(--navy); }
.cs-qa dd::before { content: "A"; color: var(--pink); }

/* ============================================================
  タブレット（〜1279px）
============================================================ */
@media (max-width: 1279px) {
  .gnav { gap: 20px; }
  .gnav__list { gap: 24px; }
  .gnav__btns { gap: 10px; }
  .breadcrumb { padding-inline: 20px; }
}
@media (max-width: 1023px) {
  .case-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-intro, .cs-feature, .cs-feature--rev, .cs-interview { gap: 30px; }
  .cs-intro__img, .cs-feature__img { flex-basis: 45%; }
}

/* ============================================================
  SP（〜767px）
============================================================ */
@media (max-width: 767px) {
  /* ---------- HEADER / ハンバーガー（TOP と同じ） ---------- */
  .l-header__logo img[data-tab="gov"] { height: 29px; margin-left: -8px; }
  .l-header__sp-btn { display: inline-flex !important; width: 92px; height: 42px; font-size: 16px; }
  .is-menu-open .l-header__sp-btn { display: none !important; }
  .hamburger { position: relative; z-index: 2; display: block; width: 37px; height: 20px; }
  .hamburger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 1px; background: var(--pink); transition: transform .3s, opacity .3s, top .3s; }
  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 9px; }
  .hamburger span:nth-child(3) { top: 18px; }
  .is-menu-open .hamburger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
  .is-menu-open .hamburger span:nth-child(2) { opacity: 0; }
  .is-menu-open .hamburger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
  .gnav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 32px;
    padding: 32px 24px 40px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .is-menu-open .gnav { opacity: 1; visibility: visible; }
  .is-menu-open { overflow: hidden; }
  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__list a { display: block; padding: 16px 4px; border-bottom: 1px solid #e5e5e5; }
  .gnav__btns { flex-direction: column; gap: 12px; align-items: center; }
  .gnav__btns .btn { width: 100%; max-width: 335px; height: 54px; justify-content: center; }

  /* ---------- 導入事例一覧 ---------- */
  .case-list { padding-top: 6px; }               /* パンくず y60（ヘッダー下 6px） */
  /* バブル 482x643（不透明度50%）を y52 / 842 / 1618 / 2501 に4枚。下の資料・デモの後ろまで敷く */
  .case-list::before {
    bottom: -720px;
    background: url("/cms/img/usr/top/ec/bg_bubble.jpg") no-repeat,
                url("/cms/img/usr/top/ec/bg_bubble.jpg") no-repeat,
                url("/cms/img/usr/top/ec/bg_bubble.jpg") no-repeat,
                url("/cms/img/usr/top/ec/bg_bubble.jpg") no-repeat;
    background-size: max(482px, 128.54%) auto;
    background-position: center -2px, center 788px, center 1564px, center 2447px;
  }
  .breadcrumb { padding: 0 22px; }
  .case-list__inner { width: calc(100% - 42px); }
  .case-list__ttl { margin-top: 26px; font-size: 32px; line-height: 38.93px; letter-spacing: -1px; }   /* y105 */
  /* タブは縦に2段（デザインの絞り込み 3段 y166〜330 の位置） */
  .case-tabs { flex-direction: column; gap: 10px; margin-top: 22px; }
  .case-tabs__btn { width: 100%; height: 48px; border-radius: 24px; font-size: 15px; }
  .case-tabs__btn::before { width: 28px; height: 28px; }
  .case-filter { gap: 19px; margin-top: 16px; }                   /* ラベル x21 / セレクト x70 285x48 */
  .case-filter__select { flex: 1; width: auto; }
  .case-filter__select::after { right: 15px; }
  .case-filter__select select { height: 48px; padding-left: 20px; }
  .case-filter:not([hidden]) + .case-cards { margin-top: 23px; }
  /* カード 333x380（x22・y353〜 20px 間隔）角丸15 */
  .case-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 23px; }
  .case-card__link { min-height: 380px; padding: 20px 29px 14px; border-radius: 15px; }
  .case-card__name { font-size: 16px; }                              /* +21 */
  .case-card__img { margin-top: 15px; border-radius: 12px; }         /* 273x215（+58） */
  .case-card__txt { margin-top: 14px; line-height: 26px; }           /* +287 */
  .case-list__more { margin-top: 37px; }
  .case-more { width: 100%; height: 54px; border-radius: 27px; }     /* 333x54（y2370） */

  /* ---------- 導入事例 詳細 ---------- */
  .case-detail__card { margin-top: 26px; padding: 30px 20px 36px; border-radius: 15px; }
  .cs-intro, .cs-feature, .cs-feature--rev, .cs-interview { flex-direction: column; align-items: stretch; gap: 20px; }
  .cs-intro__img, .cs-feature__img { flex: none; width: 100%; margin-top: 0; border-radius: 12px; }
  .cs-intro__logo img { max-height: 50px; }
  .cs-intro__name { margin-top: 12px; font-size: 24px; line-height: 32px; letter-spacing: -1px; }
  .cs-intro__name small { font-size: 16px; }
  .cs-intro__meta { margin-top: 8px; font-size: 14px; line-height: 24px; }
  .cs-sec, .cs-sec + .cs-sec { margin-top: 36px; padding-top: 32px; }
  .cs-sec__ttl { font-size: 18px; line-height: 28px; }
  .cs-sec__lead { margin-top: 14px; font-size: 15px; line-height: 28px; }
  .cs-feature { margin-top: 24px; }
  .cs-feature + .cs-feature { margin-top: 36px; }
  .cs-feature__txt h3 { font-size: 20px; }
  .cs-feature__txt p { margin-top: 12px; font-size: 15px; line-height: 28px; }
  .cs-interview { margin-top: 24px; }
  .cs-person { display: flex; align-items: center; gap: 20px; flex-basis: auto; }
  .cs-person__img { flex: 0 0 120px; border-radius: 12px; }
  .cs-person__name { margin-top: 0; font-size: 14px; line-height: 26px; }
  .cs-qa { margin-top: 0; }
  .cs-qa dt, .cs-qa dd { padding-left: 30px; font-size: 15px; line-height: 28px; }
  .cs-qa dd { margin-top: 10px; }
  .cs-qa dt::before, .cs-qa dd::before { top: -2px; font-size: 20px; line-height: 32px; }
  .cs-qa__item + .cs-qa__item { margin-top: 18px; padding-top: 18px; }

  /* ---------- 紹介資料・無料デモ環境 ---------- */
  .document { padding-top: 65px; }               /* もっと見る の下端 y2424 → 箱 y2489 */
  .demo-cta { padding-bottom: 110px; }           /* 箱の下端 y3453 → フッター y3523（フッターは 40px 重なる） */

  /* ---------- FOOTER（/contact と同じ：コピーライトだけ。CTA バーが無いので下の余白を詰める） ---------- */
  .l-footer { padding-bottom: 22px; }
}

/* ============================================================
  画面が 1440px より広いとき：バブル背景を画面幅に比例して拡大（--u は common.css）
============================================================ */
@media (min-width: 1441px) {
  .case-list::before { background-size: calc(var(--u) * 1441) calc(var(--u) * 1920); background-position: center calc(var(--u) * -229); }
}
