/* 事例ページ(第3弾)の見た目。本文(case_overview_html)には style を書かず、ここにまとめる。2026-11-24 */

/* --- ページ上部の帯・パンくず・概要見出し --- */
.case-detail-page .section-1 .main-txt h2.wf{font-size:28px;line-height:1.6;letter-spacing:.02em;font-weight:500;max-width:min(760px,60%)}
.case-detail-page .section-1 .main-txt p{margin-top:14px;font-size:15px;letter-spacing:.08em}
.case-detail-page .breadcrumb li:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:62%}
.case-detail-page .section-2 .outline > .case-heading-top{margin-top:10px}

/* --- 見出し: 章は h3、小見出しは h4(もとは h4 と h5。大きさは変えない) --- */
.case-detail-page .section-2 h3.case-heading{font-size:2.8rem}
.case-detail-page .case-media-txt h4{margin-bottom:2rem;font-size:2.4rem;line-height:1.5}

/* LeGacy: 帯の背景はカードの絵柄が読めないよう、ぼかした画像に差し替える */
.case-detail-page .section-1.legacy{background-image:url(/images/cp/legacy-case-bg-blur.jpg)}

/* 東京ホビー(匿名): 帯は専用の背景。型から引き継いだ絵は使わない */
.case-detail-page .section-1.hobby{background-image:url(/images/cp/hobby-case-bg.jpg);background-size:cover;background-position:center}

/* GRID BASE: 帯は専用の背景。型から引き継いだ絵は使わない */
.case-detail-page .section-1.gridbase{background-image:url(/images/cp/gridbase-case-bg.jpg);background-size:cover;background-position:center}

/* NetSuite保守(匿名)・須藤石材: 帯は専用の背景。型から引き継いだ絵は使わない */
.case-detail-page .section-1.netsuite{background-image:url(/images/cp/netsuite-maintenance-case-bg.jpg);background-size:cover}
.case-detail-page .section-1.sudosekizai{background-image:url(/images/cp/sudosekizai-case-bg.jpg);background-size:cover;background-position:center}

/* --- 事例一覧のカード: タイトル(長い)とクライアント名 --- */
.case-page .section-2 ul.case-list li p.wf{text-align:left;font-size:1.5rem;line-height:1.6;letter-spacing:.02em}
.case-page .section-2 ul.case-list li p.wf .client{display:block;margin-top:.6rem;font-size:1.25rem;font-weight:400;color:#777}

/* --- 目次 --- */
.case-toc{margin:3em auto 4em;max-width:760px;padding:22px 28px;background:#f6f6f6;border-radius:6px}
.case-toc__title{font-size:13px;letter-spacing:.14em;color:#00923f;margin-bottom:10px}
.case-toc ol{margin:0;padding-left:1.4em;line-height:2}
.case-toc a{color:#333;text-decoration:none;border-bottom:1px solid #ccc}
.case-toc a:hover{color:#00923f;border-color:#00923f}

/* --- 本文 --- */
.case-text{margin-top:1.5em;line-height:2}
.case-nowrap{white-space:nowrap}
.case-list-gap{margin-bottom:6rem}

/* --- 図と画面写真 --- */
.case-fig{margin:2.5em 0}
.case-fig--center{margin-left:auto;margin-right:auto;text-align:center}
.case-fig--mid{max-width:720px;margin-left:auto;margin-right:auto}
.case-fig--narrow{max-width:560px;margin-left:auto;margin-right:auto}
.case-fig--phone{max-width:390px;margin-left:auto;margin-right:auto}
.case-img{max-width:100%;height:auto}
.case-img--float{float:right;max-width:40%;margin:0 0 1em 1.5em}
.case-img--logo{width:150px}
.case-img--half{width:52%}
.case-shot{display:block;width:100%;height:auto;border:1px solid #ddd}
.case-diagram{display:block;width:100%;height:auto;margin:2em 0}
.case-fig .case-diagram{margin:0}
.case-cap{margin-top:.8em;font-size:1.4rem;line-height:1.7;color:#666}
.case-scroll{overflow-x:auto}
.case-row{display:flex;flex-wrap:wrap;gap:24px;justify-content:center;align-items:flex-start;margin:2.5em 0}
.case-row__item{margin:0;flex:1 1 260px;max-width:320px}
.case-row__item--wide{flex:2 1 420px;max-width:none}
.case-row__text{flex:1 1 260px;font-size:1.5rem;line-height:1.9}

/* --- 表 --- */
.case-table{width:100%;margin-top:3rem;border-collapse:collapse;font-size:1.5rem;line-height:1.6}
.case-table th,.case-table td{padding:1rem;border:1px solid #ddd;text-align:left}
.case-table__head{background:#f4f4f4}

@media (max-width:767px){
  .case-detail-page .section-1 .main-txt h2.wf{font-size:19px;max-width:none}
  .case-detail-page .breadcrumb li:last-child{max-width:48%}
  .case-detail-page .section-2 h3.case-heading{font-size:2.2rem}
  .case-detail-page .case-media-txt h4{font-size:2rem}
  .case-scroll .case-diagram{min-width:640px}
  .case-img--float{float:none;width:auto;max-width:100%;margin:1.5em auto}
  .case-toc{padding:18px 20px}
}
