@charset "UTF-8";
/* ==================================================================
   導入事例 一覧ページ用スタイル（/hr/case/）
   このファイル単体で完結（adps2.css / compass2.css は読み込まない）
   ※ 新デザインにした事例詳細ページ（/hr/case/〇〇/）もこのファイルのみを読み込む（4. を参照）
   1. デザイン変数とリセット（compass2.css と同じ値）
   2. 共通部品：compass2.css の内容をコピー（2026-12-01 時点・本ページで使う分のみ）
   3. 導入事例 固有：このファイル独自の定義（接頭辞 cs-）
   4. 各社の事例詳細ページ（/hr/case/〇〇/：接頭辞 cs-detail / cd-）
   ================================================================== */

/* ==================================================================
   1. デザイン変数とリセット
   ================================================================== */
:root {
  --bg-soft: #eaf1fb;
  --ink: #0f1826;
  --ink-soft: #57667a;
  --ink-faint: #93a1b3;
  --line: #e1e8f2;
  --card: #ffffff;
  --accent: #4dd0f0;
  --primary: #3457e8;
  --primary-2: #1c3aa8;
  --navy: #445fe6;
  --navy-2: #2a3bb0;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(15, 25, 60, .06);
  --shadow-md: 0 12px 40px rgba(15, 25, 60, .10);
  --maxw: 1180px;
  --header-h: 100px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================================================================
   2. 共通部品（compass2.css からコピー）
   ================================================================== */
body{
  font-family:"游ゴシック Medium",YuGothic,YuGothicM,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","Noto Sans Japanese","メイリオ","ＭＳ Ｐゴシック","Helvetica",arial,sans-serif;
  color:var(--ink);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  height:auto;
}
/* common.css が html の基準フォントサイズを62.5%(=10px)にしているため、
   本文（<main class="adps2">）側だけ16px基準へ戻す。ヘッダー・フッターは対象外。 */
.adps2{font-size:16px;}
:where(.adps2) img{max-width:100%; display:block;}
:where(.adps2) a{color:inherit; text-decoration:none;}
:where(.adps2) ul{list-style:none;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
.section-head{max-width:640px; margin:0 auto 56px; text-align:center;}
.section-head h2{font-size:clamp(26px,3.4vw,40px); font-weight:900; letter-spacing:.01em; margin:16px 0 14px;}
.section-head p{color:var(--ink-soft); font-size:15.5px; line-height:2;}
.section-pad{padding:60px 0;}
.section-pad.is-white{background:#fff;}
.section-pad.is-soft{background:var(--bg-soft);}
.view-more{text-align:center; margin-top:36px;}
.grad-text{
  background:linear-gradient(120deg,var(--accent),var(--primary) 65%,var(--primary-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.reveal{opacity:0; transform:translateY(28px); transition:opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);}
.reveal.is-in{opacity:1; transform:translateY(0);}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:15px; padding:16px 30px; border-radius:99px;
  cursor:pointer; border:none; white-space:nowrap; transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary{
  color:#fff; background:linear-gradient(120deg,var(--accent),var(--primary) 75%);
  box-shadow:0 10px 24px rgba(52,87,232,.32);
}
.btn-primary:hover{transform:translateY(-3px); box-shadow:0 14px 28px rgba(52,87,232,.4);}
.btn-outline{
  color:var(--primary); background:#fff; border:1.5px solid rgba(52,87,232,.3);
}
.btn-outline:hover{border-color:var(--primary); transform:translateY(-3px); box-shadow:var(--shadow-sm);}
.btn-sm{padding:11px 20px; font-size:13.5px;}
.btn svg{width:16px; height:16px; flex-shrink:0;}

/* ---------- KV ---------- */
.hero{
  position:relative; background:linear-gradient(155deg,#eef4ff 0%,#e6f1ff 45%,#dcecff 100%); color:var(--ink); overflow:hidden;
  padding:28px 0 36px;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(50% 60% at 8% 0%, rgba(52,87,232,.24), transparent 60%),
    radial-gradient(45% 55% at 100% 12%, rgba(77,208,240,.32), transparent 60%),
    radial-gradient(50% 60% at 80% 95%, rgba(124,58,237,.14), transparent 60%),
    radial-gradient(40% 45% at 15% 100%, rgba(28,58,168,.16), transparent 60%);
  filter:blur(4px);
  pointer-events:none;
}
.hero::after{
  content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image:linear-gradient(rgba(15,24,38,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(15,24,38,.055) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(circle at 50% 30%, black, transparent 75%);
}
.hero .wrap{position:relative; z-index:2;}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center;}
.hero-visual{position:relative;}
.hero-visual::before{
  content:""; position:absolute; inset:-14% -8%; z-index:-1;
  background:radial-gradient(circle at 50% 45%, rgba(77,208,240,.45), rgba(52,87,232,.18) 45%, transparent 72%);
  filter:blur(50px); pointer-events:none;
}
.hero-copy h1,
.hero-copy .hero-title{
  font-size:clamp(28px,3.6vw,42px); font-weight:900; line-height:1.36; letter-spacing:.01em; margin:0 0 16px;
}
.hero-lead{font-size:15px; color:var(--ink-soft); max-width:520px; margin:0 0 32px; line-height:2;}
.hero-btns{display:flex; gap:14px; flex-wrap:wrap;}

.breadcrumb-mini{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12.5px; color:var(--ink-soft); margin-bottom:22px;}
.breadcrumb-mini a{color:var(--ink-soft); font-weight:600;}
.breadcrumb-mini a:hover{color:var(--primary);}
.breadcrumb-mini span.sep{color:var(--ink-faint);}
.breadcrumb-mini span.cur{color:var(--primary); font-weight:700;}
.hero .breadcrumb-mini{margin-bottom:0;}

/* ---------- 追従サブナビ ---------- */
.subnav{
  background:rgba(255,255,255,.92); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  padding:16px 0; border-bottom:1px solid var(--line);
  position:sticky; top:var(--header-h); z-index:40; transition:box-shadow .25s ease;
}
.subnav-inner{
  display:flex; align-items:center; gap:10px; flex-wrap:nowrap;
  overflow-x:auto; scrollbar-width:none;
  padding:16px 2px 6px;
  justify-content:center;
}
.subnav-inner::-webkit-scrollbar{display:none;}
.subnav-bar{display:flex; gap:6px; flex-wrap:nowrap; flex-shrink:0;}
.subnav-btn{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  width:110px; height:44px; padding:0 4px; border-radius:14px; border:1.5px solid rgba(52,87,232,.3); background:#fff;
  color:var(--ink-soft); transition:all .25s ease;
  box-shadow:0 2px 8px rgba(52,87,232,.08);
  white-space:nowrap; flex-shrink:0;
}
.subnav-btn .snb-pre{font-size:9px; font-weight:600; letter-spacing:.06em; line-height:1.2; opacity:.7;}
.subnav-btn .snb-main{font-size:14px; font-weight:800; line-height:1.2;}
.subnav-btn:hover{border-color:rgba(52,87,232,.6); color:var(--primary); background:rgba(52,87,232,.06); transform:translateY(-2px); box-shadow:0 6px 16px rgba(52,87,232,.18);}
.subnav-btn.active{color:#fff; background:linear-gradient(120deg,var(--accent),var(--primary) 75%); border-color:transparent; box-shadow:none;}
.subnav-btn.active .snb-pre{opacity:.85;}
.subnav-btn.active:hover{transform:none;}

/* ---------- 注目の導入事例（写真＋ロゴバッジのカード） ---------- */
.case-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:22px;}
.case-card{
  display:block; color:inherit; text-decoration:none;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease; overflow:hidden;
}
.case-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-md);}
.case-card.has-photo{padding:0;}
.case-photo{position:relative; height:180px; background:var(--bg-soft);}
.case-photo > img{width:100%; height:100%; object-fit:cover; object-position:center top; display:block;}
.case-logo-badge{
  position:absolute; left:24px; bottom:-32px; width:84px; height:84px; border-radius:18px;
  background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center; padding:12px;
}
.case-logo-badge img{width:100%; height:100%; object-fit:contain;}
.case-card-body{padding:28px;}
.case-card.has-photo .case-card-body{padding-top:50px;}
.case-tagrow{display:flex; align-items:center; justify-content:space-between; margin-bottom:16px;}
.case-industry{font-size:11.5px; font-weight:700; color:var(--primary); background:rgba(52,87,232,.08); padding:6px 12px; border-radius:99px;}
.case-card .case-title{font-size:16.5px; font-weight:800; line-height:1.6; margin-bottom:16px;}
.case-meta{display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:16px; border-top:1px solid var(--line);}
.case-meta .co{font-weight:700; font-size:13.5px; line-height:1.6;}
.case-meta .info{font-size:11.5px; color:var(--ink-faint); margin-top:6px; line-height:1.7;}
.case-meta span.link{font-size:12.5px; font-weight:700; color:var(--primary); white-space:nowrap;}

/* ---------- おすすめ（相談会・資料ダウンロード） ---------- */
.osusume-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px;}
.osusume-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease; display:flex; flex-direction:column; gap:20px;
}
.osusume-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-md);}
.osusume-head{display:flex; align-items:center; gap:16px;}
.osusume-ico{width:46px; height:46px; flex-shrink:0;}
.osusume-head h3{font-size:17px; font-weight:800;}
.osusume-card p{color:var(--ink-soft); font-size:14px; line-height:1.9; flex:1 0 auto; margin:0;}
.osusume-photo{border-radius:var(--radius-sm); overflow:hidden; height:190px;}
.osusume-photo img{width:100%; height:100%; object-fit:cover;}
/* 資料の表紙を傾けて見せるモック表示（compass2.css と同じ） */
.osusume-photo--mock{
  height:190px; overflow:visible; background:linear-gradient(135deg,rgba(52,87,232,.07),rgba(77,208,240,.1));
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.osusume-photo--mock img{
  width:auto; height:auto; max-width:76%; max-height:86%; object-fit:contain;
  border-radius:6px; border:1px solid rgba(255,255,255,.7);
  box-shadow:0 20px 40px rgba(15,24,38,.2), 0 6px 14px rgba(15,24,38,.1);
  transform:rotate(-5deg); transition:transform .35s ease;
}
.osusume-card:hover .osusume-photo--mock img{transform:rotate(-2deg) scale(1.04);}
/* 資料2冊を重ねて見せる表示（/hr/ トップの top2.css と同じ） */
.osusume-photo--pair{gap:0; padding:16px 20px;}
.osusume-photo--pair img{max-width:52%; max-height:80%;}
.osusume-photo--pair img:first-child{transform:rotate(-6deg) translateX(8px); position:relative; z-index:1;}
.osusume-photo--pair img:last-child{transform:rotate(5deg) translate(-8px,10px);}
.osusume-card:hover .osusume-photo--pair img:first-child{transform:rotate(-3deg) translateX(8px) scale(1.04);}
.osusume-card:hover .osusume-photo--pair img:last-child{transform:rotate(2deg) translate(-8px,10px) scale(1.04);}

/* ==================================================================
   3. 導入事例 固有
   ================================================================== */
[id]{scroll-margin-top:calc(var(--header-h, 80px) + 100px);}

/* ---------- KV ---------- */
.cs-hero .hero-copy{padding:28px 0 8px;}
.cs-eyebrow{
  display:inline-block; font-family:"Inter",sans-serif; font-size:13px; font-weight:800; letter-spacing:.18em;
  color:var(--primary); margin-bottom:10px;
}
.cs-hero .hero-copy h1{font-size:clamp(34px,4.4vw,52px); margin:0 0 12px;}
.cs-hero .hero-title{font-size:clamp(20px,2.2vw,26px); line-height:1.6; margin:0 0 16px;}
.cs-hero .hero-lead{margin:0 0 24px; line-height:1.9;}
/* KV右側：事例写真のモザイク */
.cs-mosaic{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.cs-mosaic img{
  width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:var(--radius-md);
  box-shadow:0 18px 40px rgba(15,24,38,.14); border:4px solid #fff;
}
.cs-mosaic img:nth-child(even){transform:translateY(22px);}

/* ---------- 追従サブナビ（ページ内リンク） ---------- */
.cs-subnav .subnav-btn{width:auto; min-width:136px; padding:0 18px;}
.cs-subnav .snb-main{white-space:nowrap;}

/* ---------- 製品別セクションの見出し ---------- */
.cs-product-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap;
  margin-bottom:32px; padding-bottom:20px; border-bottom:1px solid var(--line);
}
.cs-product-head .cs-eyebrow{font-family:inherit; letter-spacing:.06em; margin-bottom:4px;}
.cs-product-head h2{font-size:clamp(24px,3vw,34px); font-weight:900; line-height:1.3;}
.cs-product-head .btn{flex-shrink:0;}

/* ---------- 事例カード（製品別一覧） ---------- */
.cs-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.cs-card{
  display:flex; flex-direction:column; color:inherit; text-decoration:none;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease;
}
.cs-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-md);}
.cs-card-photo{aspect-ratio:3/2; overflow:hidden; background:var(--bg-soft);}
.cs-card-photo img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.cs-card:hover .cs-card-photo img{transform:scale(1.04);}
.cs-card-body{flex:1; display:flex; flex-direction:column; gap:10px; padding:22px 24px 20px;}
.cs-card-tags{display:flex; flex-wrap:wrap; gap:6px;}
.cs-card-co{font-size:16.5px; font-weight:800; line-height:1.5;}
.cs-card-text{flex:1; font-size:13.5px; color:var(--ink-soft); line-height:1.85;}
.cs-card-foot{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin-top:6px; padding-top:14px; border-top:1px solid var(--line);
}
.cs-card-emp{display:flex; align-items:flex-start; gap:6px; font-size:11.5px; color:var(--ink-faint); line-height:1.6;}
.cs-card-emp svg{width:14px; height:14px; flex-shrink:0; margin-top:2px; color:var(--primary);}
.cs-card-foot .link{font-size:12.5px; font-weight:700; color:var(--primary); white-space:nowrap;}

.cs-section + .cs-section{padding-top:24px;}

/* ---------- 導入企業ロゴ一覧 ---------- */
.cs-logos{
  display:grid; grid-template-columns:repeat(5,1fr); gap:12px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:32px; box-shadow:var(--shadow-sm);
}
.cs-logos li > a,
.cs-logos li > span{
  display:flex; align-items:center; justify-content:center; height:84px; padding:12px 14px;
  border-radius:var(--radius-sm); background:#fff; border:1px solid var(--line);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.cs-logos li > a:hover{border-color:rgba(52,87,232,.5); box-shadow:var(--shadow-sm);}
.cs-logos img{width:auto; height:auto; max-width:100%; max-height:52px; object-fit:contain;}
.cs-logos-note{text-align:center; margin-top:16px; color:var(--ink-faint); font-size:12px;}

/* ---------- フッター上の「お問い合わせ」帯 ----------
   common.js が /hr/case/ 配下でフッターに .footer-btn を残すが、
   /hr/ トップと揃えるため、このページでは非表示にする。
   （新デザインの事例詳細ページも case2.css を読み込むため、同じく非表示になる） */
.footer-btn{display:none;}

/* ---------- レスポンシブ ---------- */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr; gap:32px;}
  .case-grid{grid-template-columns:1fr;}
  .osusume-grid{grid-template-columns:1fr;}
  .cs-grid{grid-template-columns:1fr 1fr;}
  .cs-logos{grid-template-columns:repeat(4,1fr);}
  .cs-mosaic{max-width:560px;}
}
@media (max-width:640px){
  .hero{padding:12px 0 40px;}
  .hero-btns .btn{width:100%;}
  .osusume-card{padding:24px;}
  .subnav{padding:12px 0;}
  .cs-hero .hero-copy{padding-top:20px;}
  .cs-mosaic{gap:10px;}
  .cs-mosaic img{border-width:3px; border-radius:var(--radius-sm);}
  .cs-mosaic img:nth-child(even){transform:translateY(14px);}
  .cs-subnav .subnav-inner{justify-content:flex-start; padding:12px 2px 4px;}
  .cs-subnav .subnav-btn{min-width:0; padding:0 14px;}
  .cs-grid{grid-template-columns:1fr;}
  .cs-product-head{align-items:flex-start;}
  .cs-logos{grid-template-columns:repeat(2,1fr); padding:18px; gap:8px;}
  .cs-logos li > a,
  .cs-logos li > span{height:72px; padding:10px;}
  .cs-logos img{max-height:44px;}
  .case-meta{flex-direction:column; align-items:flex-start;}}

/* ==================================================================
   4. 各社の事例詳細ページ（/hr/case/〇〇/）
   ================================================================== */
/* ---------- KV：見出し（左）＋写真とロゴ（右） ---------- */
.cd-hero .breadcrumb-mini{margin-bottom:0;}
.cd-hero .hero-copy{padding:28px 0 8px;}
.cd-hero .hero-grid{grid-template-columns:1.1fr .9fr;}
.cd-tags{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:14px;}
.cd-tags .cs-eyebrow{margin:0 6px 0 0;}
.cd-tag{
  display:inline-block; padding:5px 14px; border-radius:99px; line-height:1.4;
  font-size:12.5px; font-weight:800; color:var(--primary); background:rgba(52,87,232,.1);
}
.cd-tag.is-compass{color:#0b7ea0; background:rgba(77,208,240,.18);}
.cd-tag.is-voice{color:#4d7c0f; background:rgba(132,204,22,.2);}
.cd-hero h1{font-size:clamp(24px,2.9vw,34px); font-weight:900; line-height:1.55; letter-spacing:.01em; margin:0 0 16px;}
.cd-company{font-size:17px; font-weight:800; color:var(--ink); margin:0 0 22px;}
.cd-photo{position:relative; padding-bottom:28px;}
.cd-photo > img{
  width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:var(--radius-lg);
  box-shadow:0 24px 50px rgba(15,24,38,.16); border:5px solid #fff; background:#fff;
}
.cd-photo-logo{
  position:absolute; left:-18px; bottom:0; width:200px; height:96px; padding:16px 20px; border-radius:18px;
  background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
}
.cd-photo-logo img{max-width:100%; max-height:100%; object-fit:contain;}

/* ---------- 会社概要 ---------- */
.cd-wrap{max-width:880px; margin:0 auto;}
.cd-profile{
  display:grid; grid-template-columns:200px minmax(0,1fr); gap:28px; align-items:center;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px 32px; box-shadow:var(--shadow-sm);
}
.cd-profile-logo{display:flex; align-items:center; justify-content:center; height:110px; padding:12px; border-radius:var(--radius-sm); border:1px solid var(--line); background:#fff;}
.cd-profile-logo img{max-width:100%; max-height:100%; object-fit:contain;}
.cd-profile-name{font-size:19px; font-weight:900; line-height:1.5; margin-bottom:12px;}
.cd-profile dl{display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 16px; font-size:14px; line-height:1.7;}
.cd-profile dt{font-weight:800; color:var(--primary); white-space:nowrap;}
.cd-profile dd{color:var(--ink-soft);}

/* ---------- 本文 ---------- */
.cd-article{overflow-wrap:anywhere;}
.cd-lead{font-size:16px; line-height:2.1; color:var(--ink); margin-top:40px;}
.cd-article p{font-size:15.5px; line-height:2.1; color:var(--ink);}
.cd-article p + p{margin-top:1.2em;}
.cd-article a:not([class]){color:var(--primary); font-weight:700; text-decoration:underline; text-underline-offset:.2em;}
.cd-article a:not([class]):hover{text-decoration:none;}
.cd-sec{margin-top:64px;}
.cd-sec h2{
  position:relative; margin-bottom:24px; padding:0 0 14px 20px; border-bottom:1px solid var(--line);
  font-size:clamp(20px,2.4vw,26px); font-weight:900; line-height:1.55; color:var(--ink);
}
.cd-sec h2::before{
  content:""; position:absolute; left:0; top:.2em; bottom:calc(14px + .2em); width:6px; border-radius:3px;
  background:linear-gradient(180deg,var(--accent),var(--primary));
}
/* 写真＋本文の2カラム（.is-reverse で写真を右に） */
.cd-media{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:32px; align-items:start; margin:32px 0;}
.cd-media.is-reverse > figure{order:2;}
.cd-media > p{margin:0;}
.cd-fig{margin:0;}
.cd-fig img{width:100%; height:auto; border-radius:var(--radius-md); box-shadow:var(--shadow-sm);}
.cd-fig figcaption{margin-top:10px; font-size:13px; line-height:1.7; color:var(--ink-soft); text-align:center;}
.cd-fig.is-wide{max-width:640px; margin:40px auto 0;}

/* ---------- ページ下部：製品バナー・ボタン ---------- */
.cd-cta{margin-top:64px; padding:36px; border-radius:var(--radius-lg); background:var(--bg-soft); text-align:center;}
.cd-cta-bnr{display:block; max-width:640px; margin:0 auto 28px; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .25s ease, box-shadow .25s ease;}
.cd-cta-bnr:hover{transform:translateY(-3px); box-shadow:var(--shadow-md);}
.cd-cta-bnr img{width:100%; height:auto;}
.cd-btns{display:flex; flex-wrap:wrap; justify-content:center; gap:14px;}
.cd-back{text-align:center; margin-top:40px;}

@media (max-width:980px){
  .cd-hero .hero-grid{grid-template-columns:1fr;}
  .cd-photo{max-width:560px;}
}
@media (max-width:640px){
  .cd-photo-logo{left:12px; width:150px; height:72px; padding:10px 14px;}
  .cd-profile{grid-template-columns:1fr; padding:22px; gap:18px;}
  .cd-profile-logo{height:90px;}
  .cd-profile dl{grid-template-columns:1fr; gap:0;}
  .cd-profile dt{margin-top:8px;}
  .cd-lead, .cd-article p{font-size:15px; line-height:2;}
  .cd-sec{margin-top:48px;}
  .cd-media, .cd-media.is-reverse{grid-template-columns:1fr; gap:18px;}
  .cd-media.is-reverse > figure{order:0;}
  .cd-cta{padding:24px 18px;}
  .cd-btns .btn{width:100%; white-space:normal;}
}

/* ---------- 一括変換した事例詳細ページ：本文は元のHTML（旧デザインのクラス）をそのまま使い、見た目だけを新デザインにする ---------- */
.cd-article .case-detail_col{margin-top:64px;}
.cd-article .case-detail_col > h2,
.cd-article .case-grid_title{
  position:relative; margin:0 0 24px; padding:0 0 14px 20px; border-bottom:1px solid var(--line);
  font-size:clamp(20px,2.4vw,26px); font-weight:900; line-height:1.55; color:var(--ink); text-align:left; background:none;
}
.cd-article .case-detail_col > h2::before,
.cd-article .case-grid_title::before{
  content:""; position:absolute; left:0; top:.2em; bottom:calc(14px + .2em); width:6px; border-radius:3px;
  background:linear-gradient(180deg,var(--accent),var(--primary));
}
.cd-article .case-detail_col > h2::after, .cd-article .case-grid_title::after{display:none;}
.cd-article h3{margin:32px 0 14px; font-size:18px; font-weight:800; line-height:1.6; color:var(--primary-2);}
/* 写真＋本文の2カラム */
.cd-article .case-grid{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:32px; align-items:start; margin:32px 0;}
.cd-article .case-grid > .case-grid_col:not(.img-block):first-child:last-child{grid-column:1 / -1;}
.cd-article .case-grid > .case-grid_col:not(.img-block):first-child + .case-grid_col.img-block{order:2;}
.cd-article .case-grid > .case-grid_col:not(.img-block):first-child:has(+ .img-block){order:1;}
.cd-article .case-grid.is-center.is-one-photo{grid-template-columns:minmax(0,640px); justify-content:center;}
.cd-article .case-grid_col{min-width:0;}
.cd-article .case-grid_col > p + p{margin-top:1.2em;}
.cd-article .img-block img, .cd-article .case-grid_col > img, .cd-article .case-img_all img{
  width:100%; height:auto; border-radius:var(--radius-md); box-shadow:var(--shadow-sm);
}
.cd-article .img-cap{margin-top:10px; font-size:13px !important; line-height:1.7 !important; color:var(--ink-soft) !important; text-align:center;}
.cd-article .case-img_all{margin:32px 0;}
.cd-article .note{font-size:12.5px !important; color:var(--ink-soft) !important; line-height:1.8 !important;}
.cd-article .btn.btn-default{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto; min-width:240px; max-width:100%; height:auto;
  padding:14px 32px; border:none; border-radius:99px; line-height:1.5; white-space:normal;
  background:linear-gradient(120deg,var(--accent),var(--primary) 75%); color:#fff; box-shadow:0 10px 24px rgba(52,87,232,.28);
  font-size:15px; font-weight:700; text-decoration:none;
}
.cd-article .btn.btn-default::after{content:none;}
.cd-article .btn.btn-default span{padding:0;}
/* 導入文の横の写真（旧ページの冒頭にあるもの） */
.cd-intro .case-grid{margin-top:40px;}
.cd-intro .case-grid h2{display:none;}
@media (max-width:640px){
  .cd-article .case-detail_col{margin-top:48px;}
  .cd-article .case-grid, .cd-article .case-grid.is-center.is-one-photo{grid-template-columns:1fr; gap:18px;}
  .cd-article .case-grid > .case-grid_col{order:0 !important;}
  .cd-article .btn.btn-default{min-width:0; width:100%;}
}
.cd-intro .case-grid{grid-template-columns:minmax(0,6fr) minmax(0,5fr);}

/* スマホ：一覧ページのKVボタン（お問い合わせ／資料ダウンロード）とサブナビを非表示
   （共通ヘッダー下の追従CTAと重複するため）。
   詳細ページは同じCSSを使うがサブナビが無いので、サブナビのあるページに限定する。 */
@media (max-width:750px){
  body:has(.cs-subnav) .hero-btns{display:none;}
  .cs-subnav{display:none;}
}
