.case-detail { min-width: 0; overflow-wrap: anywhere; }
.case-detail__header { padding: 30px 0 42px; }
.case-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 0 0 28px; list-style: none; color: var(--muted); font-size: 13px; }
.case-breadcrumbs li + li::before { margin-right: 12px; content: '›'; color: var(--blue-700); }
.case-breadcrumbs a { color: var(--blue-700); }
.case-detail__header h1 { max-width: 1000px; margin: 0 0 20px; font-size: clamp(27px, 3.3vw, 46px); line-height: 1.16; }
.case-detail__intro { max-width: 820px; color: #38556f; font-size: 18px; line-height: 1.6; }
.case-detail__intro p { margin: 0 0 18px; }
.case-detail__media { margin-top: 28px; border-radius: 12px; overflow: hidden; background: #eaf4fb; }
.case-detail__cover { display: block; width: 100%; max-height: 640px; height: auto; object-fit: contain; }
.case-detail__summary { margin-top: 32px; margin-bottom: 40px; }
.case-detail__summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.case-detail__summary dl > div { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #f7fbfe; }
.case-detail__summary dt { margin-bottom: 8px; color: var(--blue-900); font-size: 14px; font-weight: 700; }
.case-detail__summary dd { margin: 0; font-size: 15px; line-height: 1.6; }
.case-article { width: 100%; margin: 40px 0; font-size: 16px; line-height: 1.75; }
.case-article:empty { display: none; }
.case-article h2 { margin: 34px 0 16px; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.25; }
.case-article h3 { margin: 28px 0 12px; font-size: 21px; line-height: 1.3; }
.case-article p { margin: 0 0 20px; }
.case-article ul, .case-article ol { padding-left: 25px; margin: 0 0 24px; }
.case-article li { margin: 7px 0; }
.case-article a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.case-article a:hover { color: var(--orange); }
.case-article img { max-width: 100%; height: auto; border-radius: 8px; }
.case-article figure, .case-article .wp-caption { max-width: 100%; margin: 26px 0; }
.case-article figcaption, .case-article .wp-caption-text { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.case-article blockquote { margin: 26px 0; padding: 20px 24px; border-left: 4px solid var(--blue-700); border-radius: 0 8px 8px 0; background: #eff7fc; }
.case-article blockquote p:last-child { margin: 0; }
.case-article .wp-block-table { overflow-x: auto; }
.case-article table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.case-article th, .case-article td { padding: 12px 15px; border: 1px solid #d8e7f1; text-align: left; }
.case-article th { background: #eff7fc; color: var(--blue-900); }
.case-article .alignwide, .case-article .alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.case-detail__gallery, .case-detail__services { margin-top: 42px; margin-bottom: 48px; }
.case-detail__gallery h2, .case-detail__services h2, .case-detail__cta h2 { margin-bottom: 20px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case-gallery figure { min-width: 0; margin: 0; }
.case-gallery__link { display: block; overflow: hidden; border-radius: 10px; }
.case-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.case-gallery figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.case-detail__cta { padding: 40px 0; }
.case-detail__cta p { max-width: 700px; margin: 0 0 22px; font-size: 16px; line-height: 1.6; }
.case-detail__services ul { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.case-detail__services li { max-width: 100%; }
.case-detail__services a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: #f7fbfe; color: var(--blue-700); line-height: 1.5; }
.case-detail a:focus-visible, .case-detail button:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 4px; }
.case-lightbox { position: fixed; inset: 0; width: min(94vw, 1200px); max-width: 94vw; max-height: 90vh; max-height: 90dvh; margin: auto; padding: 44px 18px 18px; border: 0; border-radius: 12px; background: #fff; color: var(--blue-900); }
.case-lightbox::backdrop { background: rgba(3, 29, 55, .85); }
.case-lightbox figure { margin: 0; }
.case-lightbox img { display: block; width: 100%; max-height: 72vh; max-height: 72dvh; object-fit: contain; }
.case-lightbox figcaption { padding-top: 10px; font-size: 14px; line-height: 1.5; }
.case-lightbox__close { position: absolute; top: 4px; right: 8px; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--blue-900); font-size: 30px; cursor: pointer; }
@media (max-width: 768px) {
	.case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.case-detail__header { padding: 24px 0 30px; }
	.case-breadcrumbs ol { font-size: 12px; margin-bottom: 22px; }
	.case-detail__intro { font-size: 16px; }
}
@media (max-width: 560px) {
	.case-detail__summary dl, .case-gallery { grid-template-columns: 1fr; }
	.case-detail__summary dl > div { padding: 16px; }
	.case-article { font-size: 15px; line-height: 1.65; margin: 30px 0; }
	.case-detail__cta .button { width: 100%; }
	.case-detail__services ul { display: block; }
	.case-detail__services li + li { margin-top: 10px; }
}
