/* 成功事例(一覧 /case-study/・詳細 /case-study/{slug}/)。TOP・サービスページと同じ配色・書体。 */
.cs-main { background: #fff; color: var(--ref-ink, #15212a); font-family: "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; }
.cs-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.cs-wrap--narrow { width: min(900px, calc(100% - 48px)); }

/* ヒーロー */
.cs-hero { position: relative; overflow: hidden; padding: 56px 0 52px; background: linear-gradient(180deg, #eef5f6 0%, #fff 100%); }
.cs-hero::before, .cs-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cs-hero::before { right: -120px; top: -140px; width: 420px; height: 420px; border: 56px solid rgba(18, 58, 85, .08); }
.cs-hero::after { right: 120px; top: 70px; width: 120px; height: 120px; border: 10px solid rgba(201, 164, 92, .35); }
.cs-hero .cs-wrap { position: relative; z-index: 1; }
.cs-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 22px; font-size: 13px; color: #5d6f7b; }
.cs-breadcrumb a { color: inherit; text-decoration: none; }
.cs-breadcrumb a:hover { color: var(--ref-teal, #168a83); }
.cs-breadcrumb span:last-child { color: var(--ref-ink, #15212a); }
.cs-en { margin: 0 0 4px; font: 800 clamp(34px, 6vw, 64px)/1.1 "Alexandria", "Noto Sans JP", sans-serif; letter-spacing: .04em; color: var(--ref-teal, #168a83); }
.cs-hero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5; font-weight: 800; color: var(--ref-navy, #123a55); }
.cs-hero--detail h1 { font-size: clamp(22px, 2.8vw, 32px); margin-top: 14px; }
.cs-lead { max-width: 760px; margin: 18px 0 0; font-size: 16px; line-height: 2; color: #34454f; }

.cs-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ref-navy, #123a55); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.cs-chip--solid { background: var(--ref-teal, #168a83); color: #fff; }

/* 要約(課題・結果) */
.cs-summary { margin: 24px 0 0; border: 1px solid var(--ref-line, #d8e2e7); border-radius: 14px; background: #fff; box-shadow: 0 14px 36px rgba(18, 58, 85, .08); overflow: hidden; }
.cs-summary > div { display: grid; grid-template-columns: 170px 1fr; }
.cs-summary > div + div { border-top: 1px solid var(--ref-line, #d8e2e7); }
.cs-summary dt { display: flex; align-items: center; justify-content: center; padding: 16px 12px; background: var(--ref-navy, #123a55); color: #fff; font-size: 14px; font-weight: 700; }
.cs-summary dt.cs-summary__result { background: var(--ref-teal, #168a83); }
.cs-summary dd { margin: 0; padding: 16px 22px; font-size: 15px; font-weight: 600; line-height: 1.9; }
.cs-figure { margin: 24px 0 0; }
.cs-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* 数字 */
.cs-metrics { padding: 6px 0 20px; }
.cs-metrics__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.cs-metrics__list[data-count="1"] { grid-template-columns: minmax(0, 520px); justify-content: center; }
.cs-metrics__list[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.cs-metrics__list li { padding: 22px 20px 24px; text-align: center; border: 1px solid var(--ref-line, #d8e2e7); border-top: 4px solid var(--ref-teal, #168a83); border-radius: 12px; background: linear-gradient(180deg, #fff, #f5f9fa); }
.cs-metrics__label { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #34454f; line-height: 1.6; }
.cs-metrics__value { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 10px; }
.cs-metrics__before { font-size: 18px; font-weight: 700; color: #7f909b; }
.cs-metrics__arrow { color: var(--ref-orange, #ed653c); font-weight: 800; }
.cs-metrics__value strong { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; font-weight: 800; color: var(--ref-teal, #168a83); }

/* 本文セクション */
.cs-section { padding: 30px 0 6px; }
.cs-section h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ref-line, #d8e2e7); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--ref-navy, #123a55); }
.cs-num { font: 800 22px/1 "Alexandria", sans-serif; color: var(--ref-teal, #168a83); }
.cs-text p { margin: 0 0 1.1em; font-size: 16px; line-height: 2.05; }
.cs-text ul { list-style: none; margin: 0 0 1.2em; padding: 18px 22px; border-radius: 10px; background: #eef7f5; }
.cs-text li { position: relative; padding-left: 26px; font-size: 15.5px; font-weight: 600; line-height: 1.9; }
.cs-text li + li { margin-top: 6px; }
.cs-text li::before { content: "✓"; position: absolute; left: 0; color: var(--ref-teal, #168a83); font-weight: 800; }
.cs-profile { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.cs-profile th, .cs-profile td { padding: 14px 18px; border: 1px solid var(--ref-line, #d8e2e7); text-align: left; vertical-align: top; }
.cs-profile th { width: 160px; background: #eef5f6; color: var(--ref-navy, #123a55); font-weight: 700; }
.cs-comment { padding: 22px 26px; border-left: 5px solid var(--ref-teal, #168a83); border-radius: 0 12px 12px 0; background: #f5f9fa; }
.cs-comment__label { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--ref-teal, #168a83); }
.cs-comment p:last-child { margin: 0; line-height: 2; }
.cs-note { margin: 22px 0 0; font-size: 12px; line-height: 1.9; color: #6b7a85; }
.cs-note--center { text-align: center; }
.cs-back { padding: 18px 0 44px; }
.cs-back a { color: var(--ref-blue, #195b89); font-weight: 700; text-decoration: none; }
.cs-back a:hover { text-decoration: underline; }

/* 一覧・カード */
.cs-list { padding: 18px 0 64px; }
.cs-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.cs-filter a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--ref-line, #d8e2e7); border-radius: 999px; background: #fff; color: var(--ref-navy, #123a55); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.cs-filter a span { font-size: 12px; color: #7f909b; }
.cs-filter a:hover { background: #eef5f6; }
.cs-filter a[aria-current="true"] { background: var(--ref-navy, #123a55); border-color: var(--ref-navy, #123a55); color: #fff; }
.cs-filter a[aria-current="true"] span { color: rgba(255, 255, 255, .75); }
.cs-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ref-line, #d8e2e7); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 8px 24px rgba(18, 58, 85, .06); transition: transform .25s, box-shadow .25s; }
.cs-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(18, 58, 85, .14); }
.cs-card__visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 190px; padding: 20px 22px 22px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #123a55 0%, #195b89 70%, #2a7aa6 100%); }
.cs-card__visual::before { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .1); }
.cs-card__visual::after { content: ""; position: absolute; right: 56px; top: 34px; width: 54px; height: 54px; border-radius: 50%; border: 5px solid rgba(214, 178, 106, .55); }
.cs-card__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-card__visual[data-has-image] { background: #123a55; }
.cs-card__visual[data-has-image]::before, .cs-card__visual[data-has-image]::after { display: none; }
.cs-card__visual[data-has-image] > :not(img) { position: relative; z-index: 1; }
.cs-card__visual[data-has-image]::selection { background: transparent; }
.cs-card__visual .cs-chip { position: absolute; left: 18px; top: 16px; }
.cs-card__visual strong { position: relative; display: block; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.cs-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.cs-card__body h2, .cs-card__body h3 { margin: 0; font-size: 15.5px; line-height: 1.75; font-weight: 700; color: var(--ref-ink, #15212a); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card__meta { margin: 0; font-size: 13px; color: #6b7a85; }
.cs-card__more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 800; color: var(--ref-teal, #168a83); }
.cs-empty { padding: 60px 0; text-align: center; color: #5d6f7b; }
.cs-pager { display: flex; justify-content: center; gap: 8px; margin: 36px 0 0; }
.cs-pager a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ref-line, #d8e2e7); border-radius: 50%; color: var(--ref-navy, #123a55); font-weight: 700; text-decoration: none; }
.cs-pager a[aria-current="page"] { background: var(--ref-navy, #123a55); border-color: var(--ref-navy, #123a55); color: #fff; }
.cs-related { background: #f4f8f9; padding-top: 48px; }
.cs-related__title { margin: 0 0 24px; text-align: center; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--ref-navy, #123a55); }

/* CTA */
.cs-cta { padding: 64px 0; text-align: center; color: #fff; background: linear-gradient(135deg, #123a55 0%, #195b89 100%); }
.cs-cta h2 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.cs-cta p { margin: 0 0 26px; opacity: .88; line-height: 1.9; }
.cs-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cs-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 300px; padding: 17px 28px; border: 2px solid var(--ref-orange, #ed653c); border-radius: 999px; background: var(--ref-orange, #ed653c); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; }
.cs-button:hover { transform: translateY(-2px); background: #d9522b; border-color: #d9522b; }
.cs-button--outline { background: transparent; border-color: rgba(255, 255, 255, .85); }
.cs-button--outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

@media (max-width: 960px) {
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-metrics__list, .cs-metrics__list[data-count="2"] { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cs-hero { padding: 36px 0 36px; }
  .cs-hero::before { right: -170px; top: -170px; }
  .cs-hero::after { display: none; }
  .cs-wrap, .cs-wrap--narrow { width: calc(100% - 40px); }
  .cs-grid { grid-template-columns: 1fr; gap: 20px; }
  .cs-summary > div { grid-template-columns: 1fr; }
  .cs-summary dt { justify-content: flex-start; padding: 10px 16px; }
  .cs-summary dd { padding: 14px 16px; }
  .cs-profile th, .cs-profile td { display: block; width: auto; }
  .cs-profile th { border-bottom: 0; }
  .cs-button { min-width: 0; width: 100%; }
  .cs-cta { padding: 48px 0; }
}

/* 編集モードのときだけ出る「クリックして入力」の枠(訪問者には表示されない) */
.cs-edit-empty, .cs-text .cs-edit-empty { margin: 0; padding: 18px 22px; border: 2px dashed #9fb7c5; border-radius: 10px; background: #f6fafb; color: #6b7a85; font-size: 14px; text-align: center; }
[data-top-edit-empty] { min-height: 1.6em; }
