/* =========================================================================
   導入実例の詳細（case-evenmore / case-greencore / case-fcsagami・2026-09-19）
   記事（720px）＋右サイドバー（360px）の版面。並びは指示で見せられた参考ページにならい、
   色・文字・写真・アイコンは PASSO のもの。本文は _tools/casegen/gen_case_detail.py で書き出す
   ========================================================================= */
.cd {
  --cd-bg: #f4f7f9;
  --cd-line: #e3e8ec;
  padding: calc(var(--hd-h) + 56px) 0 140px;   /* 上は固定ヘッダーの分 */
  background: var(--cd-bg);
  color: var(--c-ink);
}
.cd a { color: inherit; }

/* パン屑：TOP / 導入実例 / タイトル */
.cd-bc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  font-size: 14px;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
}
.cd-bc a { text-decoration: underline; text-underline-offset: 3px; }
.cd-bc a:hover { color: var(--c-blue); }
.cd-bc__sep { color: var(--c-blue); }
.cd-bc__cur { overflow: hidden; text-overflow: ellipsis; }

/* 2列 */
.cd__in {
  display: grid;
  grid-template-columns: 720px 360px;
  justify-content: space-between;
  align-items: start;
  margin-top: 60px;
}
.cd-main { min-width: 0; }

/* 事業者名・タイトル・タグ */
.cd-head { display: block; }
.cd-head__co { display: flex; align-items: center; gap: 12px; }
.cd-head__mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--cd-line);
  font-family: var(--f-en);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-blue);
}
.cd-head__name { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.cd-head__ttl {
  margin-top: 16px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.6;
  word-break: auto-phrase;
}
.cd-head__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cd-head__tags li {
  padding: 3px 14px 4px;
  border-radius: 30px;
  background: #fff;
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.15;
}

/* メイン画像と、その左の共有ボタン */
.cd-vis { position: relative; margin-top: 50px; }
.cd-share {
  position: absolute;
  top: 0;
  right: calc(100% + 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cd-share__a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--c-ink);
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.cd-share__a:hover { color: var(--c-blue); }
.cd-share__ic { display: block; width: 24px; height: 24px; background: currentColor; }
.cd-share__ic--x { -webkit-mask: url(images/icon/share-x.svg) center / 20px no-repeat; mask: url(images/icon/share-x.svg) center / 20px no-repeat; }
.cd-share__ic--fb { -webkit-mask: url(images/icon/share-fb.svg) center / 24px no-repeat; mask: url(images/icon/share-fb.svg) center / 24px no-repeat; }
.cd-share__ic--line { -webkit-mask: url(images/icon/share-line.svg) center / 24px no-repeat; mask: url(images/icon/share-line.svg) center / 24px no-repeat; }
.cd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cd-vis__ph { overflow: hidden; border-radius: 5px; }
.cd-vis__ph img { display: block; width: 100%; height: auto; }

/* 概要の箱（元サイトと同じにならないよう作り替え・2026-09-20）
   上に青いグラデーションの帯（PROFILE／事業者概要）→ 項目名が青の表 → 水色の箱に番号付きの「ご依頼いただいたこと」 */
.cd-sum {
  margin-top: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 154, 211, .08);
}
.cd-sum__top {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px 32px 22px;
  background: linear-gradient(110deg, #1b9ad2 0%, #38b6e6 55%, #6fd0f1 100%);
  color: #fff;
}
.cd-sum__en { font-family: var(--f-en); font-size: 11px; font-weight: 600; letter-spacing: .22em; line-height: 1.2; color: var(--c-blue); }
.cd-sum__top .cd-sum__en { order: 2; color: rgba(255, 255, 255, .78); }
.cd-sum__h { font-size: 22px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; }
.cd-sum__dl { padding: 6px 32px 8px; }
.cd-sum__dl > div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 0 20px;
  padding: 16px 0;
  border-bottom: 1px dashed #d3e1ea;
}
.cd-sum__dl > div:last-child { border-bottom: 0; }
.cd-sum__dl dt { font-size: 14px; font-weight: 700; letter-spacing: .06em; line-height: 1.7; color: var(--c-blue); }
.cd-sum__dl dd { font-size: 15px; letter-spacing: .04em; line-height: 1.7; }
.cd-sum__dl a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.cd-sum__req { margin: 0 20px 20px; padding: 24px 22px 26px; border-radius: 8px; background: #eef6fa; }
.cd-sum__h3 { margin-top: 6px; font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1.45; }
.cd-sum__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cd-sum__nums li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
}
.cd-sum__no { flex: none; font-family: var(--f-en); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--c-blue); }

/* 本文 */
.cd-body { margin-top: 40px; }
.cd-body p { font-size: 16px; letter-spacing: .04em; line-height: 1.8; }
.cd-body p + p { margin-top: 20px; }
.cd-body .cd-body__lead { margin-bottom: 4px; }
.cd-body p a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.cd-body__h2 {
  position: relative;
  margin: 58px 0 22px;
  padding-left: 16px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
}
.cd-body__h2::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  border-radius: 1px;
  background: var(--c-blue);
}
.cd-body__h3 {
  margin: 40px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cd-line);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
}
.cd-body__h2 + .cd-body__h3 { margin-top: 30px; }
/* 項目の小見出し（見出しの下の青い太字の1行・2026-09-20） */
.cd-body .cd-body__sub { margin-bottom: 14px; font-size: 17px; font-weight: 700; line-height: 1.7; color: var(--c-blue); }
.cd-body .cd-body__note { margin-top: 12px; font-size: 13px; color: var(--c-ink-2); }
.cd-body .cd-body__end { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--cd-line); font-size: 15px; }

/* 実際に制作した動画（本文の「映像制作」の下・2026-09-19） */
.cd-movies { display: grid; gap: 28px; margin-top: 26px; }
.cd-movie { margin: 0; }
.cd-movie video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 5px; background: #0e1a22; }
.cd-movie figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .04em; color: var(--c-ink-2); text-align: center; }

/* 相談ボタンの箱 */
.cd-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  margin-top: 150px;
  padding: 40px 20px;
  border-radius: 8px;
  background: #e6eef3;
}
.cd-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(320px, 100%);
  height: 67px;
  border-radius: 99px;
  background: linear-gradient(100deg, var(--c-blue) 0%, var(--c-grad-a) 100%);
  box-shadow: 0 10px 24px rgba(24, 154, 211, .26);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff !important;
  transition: filter .3s var(--ease), box-shadow .3s var(--ease);
}
.cd-cta__btn:hover { filter: brightness(1.06); box-shadow: 0 14px 30px rgba(24, 154, 211, .34); }
.cd-cta__btn i { width: 18px; height: 18px; background: currentColor; -webkit-mask: url(images/icon/arrow-r-thin.svg) center / 18px no-repeat; mask: url(images/icon/arrow-r-thin.svg) center / 18px no-repeat; transition: translate .3s var(--ease); }
.cd-cta__btn:hover i { translate: 3px 0; }

/* 右サイドバー（元サイトと同じにならないよう作り替え・2026-09-20）
   白い箱ごとに「英字の小見出し＋和文の見出し」。ほかの導入実例は小さい写真の行、カテゴリーは矢印つきの行、キーワードは # つきの枠 */
.cd-side { display: grid; gap: 24px; }
.cd-side__blk { padding: 26px 24px 20px; border-radius: 10px; background: #fff; }
.cd-side__h {
  position: relative;
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cd-line);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
}
.cd-side__h::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--c-blue); }
.cd-side__en { font-family: var(--f-en); font-size: 11px; font-weight: 600; letter-spacing: .22em; line-height: 1.2; color: var(--c-blue); }

/* ほかの導入実例：写真＋名前＋矢印の行 */
.cd-side__cases li + li { border-top: 1px dashed #d3e1ea; }
.cd-bnr {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  transition: color .3s var(--ease);
}
.cd-bnr__ph { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 6px; background: #e6eef3; }
.cd-bnr__ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.cd-bnr:hover .cd-bnr__ph img { scale: 1.06; }
.cd-bnr__txt { display: grid; gap: 4px; }
.cd-bnr__en { font-family: var(--f-en); font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--c-blue); }
.cd-bnr__name { font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.cd-bnr::after { content: ""; width: 16px; height: 16px; background: var(--c-blue); -webkit-mask: url(images/icon/arrow-r-thin.svg) center / 16px no-repeat; mask: url(images/icon/arrow-r-thin.svg) center / 16px no-repeat; transition: translate .3s var(--ease); }
.cd-bnr:hover { color: var(--c-blue); }
.cd-bnr:hover::after { translate: 4px 0; }

/* カテゴリー：矢印つきの行（お知らせは件数つき） */
.cd-side__cat li + li { border-top: 1px dashed #d3e1ea; }
.cd-side__cat a { display: flex; align-items: center; gap: 12px; padding: 14px 2px; font-size: 14px; letter-spacing: .04em; transition: color .3s var(--ease); }
.cd-side__cat a::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px; border-top: 1.5px solid var(--c-blue); border-right: 1.5px solid var(--c-blue); rotate: 45deg; transition: translate .3s var(--ease); }
.cd-side__cat a:not(:has(.cd-side__num))::after { margin-left: auto; }
.cd-side__cat a:hover { color: var(--c-blue); }
.cd-side__cat a:hover::after { translate: 3px 0; }
.cd-side__num {
  min-width: 28px;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 99px;
  background: #eef6fa;
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--c-blue);
}

/* キーワード：# つきの枠 */
.cd-side__kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-bottom: 6px; }
.cd-side__kw a {
  display: block;
  padding: 6px 12px;
  border: 1px solid var(--cd-line);
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.15;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.cd-side__kw a::before { content: "#"; margin-right: 3px; color: var(--c-blue); transition: color .3s var(--ease); }
.cd-side__kw a:hover { border-color: var(--c-blue); background: var(--c-blue); color: #fff; }
.cd-side__kw a:hover::before { color: #fff; }

/* ---------- 1180px 以下：記事の幅を縮める ---------- */
@media (max-width: 1180px) {
  .cd__in { grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; }
}

/* ---------- 1024px 以下：1列（サイドバーは記事の下） ---------- */
@media (max-width: 1024px) {
  .cd__in { grid-template-columns: minmax(0, 1fr); gap: 80px; max-width: min(720px, calc(100% - var(--side) * 2)); }
  .cd-bc { max-width: min(720px, calc(100% - var(--side) * 2)); padding: 0; }
  .cd-share { position: static; flex-direction: row; justify-content: flex-end; margin-bottom: 14px; }
  .cd-side { gap: 20px; }
  .cd-side__cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .cd-side__cases li + li { border-top: 0; }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .cd { padding: calc(var(--hd-h) + 24px) 0 90px; }
  .cd-bc { font-size: 12px; gap: 10px; }
  .cd__in { margin-top: 36px; gap: 64px; }
  .cd-head__mark { width: 48px; height: 48px; font-size: 14px; }
  .cd-head__name { font-size: 14px; }
  .cd-head__ttl { margin-top: 14px; font-size: 21px; line-height: 1.6; }
  .cd-head__tags { margin-top: 12px; }
  .cd-head__tags li { font-size: 12px; }
  .cd-vis { margin-top: 24px; }
  .cd-vis__ph { margin-inline: calc(var(--side) * -1); border-radius: 0; }
  .cd-sum { margin-top: 32px; }
  .cd-sum__top { padding: 20px 20px 18px; }
  .cd-sum__h { font-size: 19px; }
  .cd-sum__dl { padding: 4px 20px 6px; }
  .cd-sum__dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
  .cd-sum__dl dt { font-size: 13px; }
  .cd-sum__dl dd { font-size: 15px; line-height: 1.6; }
  .cd-sum__req { margin: 0 12px 12px; padding: 20px 16px 20px; }
  .cd-sum__h3 { font-size: 17px; }
  .cd-sum__nums { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
  .cd-sum__nums li { padding: 12px 14px; }
  .cd-body p { font-size: 15px; line-height: 1.85; }
  .cd-body__h2 { margin: 48px 0 18px; padding-left: 14px; font-size: 19px; }
  .cd-body__h3 { margin: 32px 0 16px; padding-bottom: 14px; font-size: 17px; }
  .cd-body .cd-body__sub { margin-bottom: 10px; font-size: 16px; }
  .cd-movies { gap: 22px; margin-top: 20px; }
  .cd-movie figcaption { font-size: 12px; }
  .cd-cta { margin-top: 90px; padding: 32px 16px; }
  .cd-cta__btn { height: 60px; font-size: 15px; }
  .cd-side { gap: 16px; }
  .cd-side__blk { padding: 22px 18px 16px; }
  .cd-side__cases { grid-template-columns: minmax(0, 1fr); }
  .cd-side__cases li + li { border-top: 1px dashed #d3e1ea; }
  .cd-bnr { grid-template-columns: 100px minmax(0, 1fr) 16px; gap: 14px; padding: 14px 0; }
}
