/* ==========================================================================
   導入事例 (cases.html) — page-scoped components (.cs-*)
   共通の調子は css/subpage.css。採用年を縦の時間軸に並べ、
   「21年、選ばれ続けてきた」ことを年表として読ませる。
   ========================================================================== */

/* Hero ----------------------------------------------------------------------- */
.cs-hero__sub {
  display: block; margin-top: 18px; font-size: clamp(15px, 1.5vw, 18px); font-weight: 500;
  line-height: 1.7; letter-spacing: .03em; color: #48667d;
}
.cs-hero .pg-hero__lead { margin-top: 24px; }
/* 実績の数字は細く大きく。単位だけ朱にする（トップページの実績帯と同じ語り口） */
.cs-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--pg-line); padding: 32px 0 40px;
}
.cs-stat + .cs-stat { border-left: 1px solid var(--pg-line); padding-left: 40px; }
.cs-stat__num {
  display: flex; align-items: baseline; flex-wrap: nowrap; white-space: nowrap;
  font-size: clamp(38px, 4.2vw, 58px); font-weight: 500; line-height: 1.1; letter-spacing: -.045em;
  color: var(--pg-ink); font-variant-numeric: tabular-nums;
}
.cs-stat__num small { margin-left: 8px; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--color-primary-dark); }
.cs-stat__label { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--pg-muted); }

/* Trusted by --------------------------------------------------------------------- */
.pg .trust { padding: 28px 0; border-top: 0; border-bottom: 1px solid var(--pg-line-cool); background: #fff; }
.cs-trust__inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; }
.pg .trust__label { margin: 0; text-align: left; font-size: 12px; font-weight: 600; line-height: 1.7; letter-spacing: .14em; color: #48667d; }
.pg .trust__label span { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--pg-soft); }
.pg .trust__track span { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: #4f6475; }

/* 01 Track record — timeline ------------------------------------------------------ */
.cs-timeline { position: relative; }
.cs-entry {
  position: relative; display: grid; grid-template-columns: 172px minmax(0, 1fr) minmax(0, 340px);
  column-gap: 64px; padding-bottom: 72px;
}
/* 年と本文の間に一本の時間軸を通し、採用年ごとに点を打つ */
.cs-entry::before { content: ""; position: absolute; left: 204px; top: 18px; bottom: -18px; width: 1px; background: #cfdae2; }
.cs-entry:last-child { padding-bottom: 0; }
.cs-entry:last-child::before { bottom: auto; height: 0; }
.cs-entry::after {
  content: ""; position: absolute; left: 197px; top: 12px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 1px solid #93a9b9;
}
.cs-entry:first-child::after { background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 0 0 5px rgba(234, 91, 0, .14); }
.cs-entry__year strong {
  display: block; font-size: clamp(38px, 3.6vw, 50px); font-weight: 500; line-height: 1;
  letter-spacing: -.04em; color: var(--pg-ink); font-variant-numeric: tabular-nums;
}
.cs-entry__year span { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; line-height: 1.7; color: #48667d; }
.cs-entry__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-entry h3 { margin-top: 14px; font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.cs-entry h3 small { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: var(--pg-muted); }
.cs-entry__body > p { margin-top: 16px; font-size: 15px; line-height: 2.05; color: var(--pg-muted); }
.cs-entry__media {
  margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 22px;
  border-radius: 18px; background: var(--pg-cool); border: 1px solid var(--pg-line-cool);
}
.cs-entry__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }

/* 紺の淡い札（タグ）。オレンジの札はやめ、朱は時間軸の起点だけに使う */
.pg .badge { background: #e8eff4; border-color: transparent; color: #34556c; }
.pg .badge--outline { background: transparent; border-color: #cdd8e0; color: var(--pg-muted); }

/* 02 Topics --------------------------------------------------------------------- */
.cs-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cs-topic {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--pg-line);
  transition: border-color .3s, box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.cs-topic:hover { border-color: #c9d5de; box-shadow: 0 2px 6px rgba(21, 43, 61, .04), 0 24px 48px -30px rgba(21, 43, 61, .35); transform: translateY(-3px); }
.cs-topic__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--pg-cool); }
.cs-topic__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.cs-topic:hover .cs-topic__media img { transform: scale(1.03); }
.cs-topic__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 26px 28px 24px; }
.cs-topic__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-topic h3 { margin-top: 14px; font-size: 19px; font-weight: 600; line-height: 1.6; letter-spacing: .01em; }
.cs-topic p { margin-top: 10px; flex: 1 0 auto; font-size: 14px; line-height: 2; color: var(--pg-muted); }
.cs-topic .pg-link { margin-top: 16px; font-size: 13.5px; }

/* 03 Voices ------------------------------------------------------------------------ */
.cs-voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cs-voice { display: flex; flex-direction: column; margin: 0; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--pg-line-cool); }
.cs-voice__photo { aspect-ratio: 16 / 8; overflow: hidden; background: var(--pg-cool); }
.cs-voice__photo img { width: 100%; height: 100%; object-fit: cover; }
.cs-voice__body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 30px 32px 26px; }
.cs-voice__body::before {
  content: "“"; position: absolute; top: -34px; left: 26px; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--pg-ink); color: #fff;
  font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1; padding-top: 14px;
  box-shadow: 0 0 0 5px #fff;
}
.cs-voice blockquote { flex: 1 0 auto; margin-top: 10px; font-size: 15px; line-height: 2.05; color: #2c3d4b; }
.cs-voice figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--pg-line-cool);
  font-size: 12.5px; line-height: 1.7; color: var(--pg-muted);
}
.cs-voice figcaption strong { display: block; font-size: 15px; font-weight: 600; color: var(--pg-ink); }
.cs-voice figcaption .pg-link { font-size: 13px; }

/* 04 Consulting ---------------------------------------------------------------------- */
.cs-consulting { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px 72px; align-items: center; }
.cs-consulting h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.65; letter-spacing: -.01em; }
.cs-consulting__copy > p { margin-top: 16px; font-size: 15px; line-height: 2.05; color: var(--pg-muted); }
.cs-consulting__copy .pg-link { margin-top: 22px; }
.cs-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--pg-line); }
.cs-fields li {
  position: relative; padding: 14px 12px 14px 22px; border-bottom: 1px solid var(--pg-line);
  font-size: 14px; font-weight: 600; line-height: 1.7; letter-spacing: .02em;
}
.cs-fields li:nth-child(odd) { padding-right: 20px; }
.cs-fields li:nth-child(even) { padding-left: 42px; }
.cs-fields li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 6px; height: 6px; border-radius: 50%; background: #5e8fb3; }
.cs-fields li:nth-child(even)::before { left: 22px; }
.cs-consulting__photo { margin: 0; }
.cs-consulting__photo img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 2px 6px rgba(21, 43, 61, .05), 0 30px 60px -36px rgba(21, 43, 61, .45); }
.cs-note { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--pg-line); font-size: 12.5px; line-height: 1.9; color: var(--pg-soft); }

/* Responsive -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cs-stat + .cs-stat { padding-left: 24px; }
  .cs-entry { grid-template-columns: 132px minmax(0, 1fr); column-gap: 56px; row-gap: 24px; }
  .cs-entry::before { left: 160px; }
  .cs-entry::after { left: 153px; }
  .cs-entry__media { grid-column: 2; max-width: 420px; }
  .cs-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-consulting { gap: 48px; }
}
@media (max-width: 768px) {
  .cs-stats { grid-template-columns: 1fr; padding: 8px 0 32px; }
  .cs-stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; }
  .cs-stat + .cs-stat { border-left: 0; border-top: 1px solid var(--pg-line); padding-left: 0; }
  .cs-stat__num { font-size: 36px; }
  .cs-stat__num small { font-size: 14px; margin-left: 4px; }
  .cs-stat__label { margin: 0; font-size: 12.5px; }
  .cs-trust__inner { grid-template-columns: 1fr; gap: 16px; }
  .cs-entry { grid-template-columns: minmax(0, 1fr); padding: 0 0 56px 36px; row-gap: 18px; }
  .cs-entry::before { left: 7px; top: 18px; }
  .cs-entry::after { left: 0; top: 10px; }
  .cs-entry__media { grid-column: 1; max-width: none; }
  .cs-entry__year { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .cs-entry__year span { margin-top: 0; }
  .cs-topics, .cs-voices { grid-template-columns: 1fr; }
  .cs-voice__body { padding: 30px 22px 22px; }
  .cs-consulting { grid-template-columns: 1fr; }
  .cs-fields { grid-template-columns: 1fr; }
  .cs-fields li:nth-child(n) { padding: 13px 0 13px 22px; }
  .cs-fields li:nth-child(n)::before { left: 2px; }
  .cs-note { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-topic, .cs-topic__media img { transition: none; }
  .cs-topic:hover { transform: none; }
}
