/* Shared case styles; deliberately isolated from imported product/news formatting. */
.case-detail { padding: 30px; background: #fff; box-sizing: border-box; }
.case-heading { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid #e9edf1; }
.case-heading h1 { margin: 0 0 14px; font-size: 26px; line-height: 1.5; font-weight: 700; color: #25364b; overflow-wrap: anywhere; }
.case-heading p { margin: 0; font-size: 13px; line-height: 1.8; color: #7d8793; }
.case-body { font-size: 16px; line-height: 1.95; color: #394555; overflow-wrap: anywhere; }
.case-body p { margin: 0 0 18px; padding: 0; text-indent: 0; }
.case-body h2 { margin: 32px 0 18px; padding: 10px 15px; border-left: 3px solid #f14325; background: #f5f7fa; font-size: 21px; line-height: 1.6; color: #25364b; font-weight: 700; }
.case-body h3 { margin: 24px 0 12px; font-size: 18px; line-height: 1.65; color: #25364b; font-weight: 600; }
.case-body ol, .case-body ul { margin: 12px 0 22px; padding-left: 26px; }
.case-body ol { list-style: decimal outside; }
.case-body ul { list-style: disc outside; }
.case-body li { margin-bottom: 12px; list-style: inherit; }
.case-body .case-photo { margin: 24px 0; padding: 0; text-align: center; background: #f7f8fa; }
.case-body .case-photo img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 0; }
.case-body > :first-child { margin-top: 0; }
.case-contact { margin-top: 30px; padding: 20px; border: 1px solid #e9edf1; background: #f8fafc; }
.case-contact p { margin: 0 0 10px; color: #425269; font-size: 15px; line-height: 1.8; }
.case-contact a { display: inline-block; color: #ee4526; font-size: 22px; line-height: 1.6; font-weight: 700; }
.case-links { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e9edf1; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.case-links a { color: #52647b; }
.case-links a:hover, .case-sidebar a:hover { color: #f14325; }
.case-sidebar { margin: 0; padding: 0; }
.case-sidebar li { padding: 0; border-bottom: 1px solid #eee; }
.case-sidebar li:last-child { border-bottom: 0; }
.case-sidebar a { display: block; padding: 18px 12px; font-size: 16px; font-weight: 600; line-height: 1.8; text-align: center; color: #425269; }
.case-sidebar li.on a { color: #ee4526; background: #fff4ef; box-shadow: inset 3px 0 #f14325; }
.case-category-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px 14px; background: #f7f8fa; }
.case-category-nav a { display: block; padding: 11px 6px; border: 1px solid #e3e7ed; border-radius: 3px; background: #fff; font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center; color: #425269; }
.case-category-nav a.on { border-color: #f14325; background: #f14325; color: #fff; }
.case-list-intro { margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid #edf0f4; }
.case-list-intro h1 { margin: 0 0 10px; font-size: 25px; font-weight: 700; line-height: 1.5; color: #25364b; }
.case-list-intro p { margin: 0; font-size: 14px; line-height: 1.9; color: #7d8793; }
.case-list-page .piclist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.case-list-page .piclist li { float: none; width: auto; min-width: 0; margin: 0; border: 1px solid #e9edf1; background: #fff; }
.case-list-page .piclist li .pic { aspect-ratio: 4/3; background: #f7f8fa; }
.case-list-page .piclist li .pic img { display: block; width: 100%; height: 100%; object-fit: contain; transform: none; }
.case-list-page .piclist li .bt { display: block; height: auto; padding: 14px; font-size: 15px; line-height: 1.7; font-weight: 600; white-space: normal; text-align: left; color: #394555; }
.case-list-page .case-card-summary { margin: 0; padding: 0 14px 16px; font-size: 13px; line-height: 1.85; color: #7d8793; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-mobile.case-detail { margin: 0; padding: 24px 18px; }
.case-mobile .case-heading h1 { font-size: 23px; }
.case-mobile .case-body { font-size: 15px; line-height: 1.95; }
.case-mobile .case-body h2 { margin-top: 26px; padding: 9px 12px; font-size: 19px; }
.case-mobile .case-body h3 { font-size: 17px; }
.case-mobile .case-body .case-photo { margin: 20px 0; }
.case-mobile .case-contact { padding: 16px; }
.caselist.case-list-page { padding: 22px 14px; }
.caselist.case-list-page .list-loop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.caselist.case-list-page li.loop { float: none; width: auto; min-width: 0; margin: 0; border: 1px solid #e9edf1; background: #fff; }
.caselist.case-list-page li figure { padding-top: 75%; background: #f7f8fa; }
.caselist.case-list-page li figure img { object-fit: contain; min-height: 0; }
.caselist.case-list-page li h3 { height: auto; min-height: 4.9em; margin: 0; padding: 10px; font-size: 14px; font-weight: 600; line-height: 1.75; white-space: normal; color: #394555; }
@media (max-width: 360px) {
  .case-mobile.case-detail { padding: 22px 15px; }
  .case-mobile .case-heading h1 { font-size: 21px; }
  .caselist.case-list-page li h3 { font-size: 13px; }
}
