/* 福岡市早良区・商店街のビルの事例ページだけの部品（3行まとめ・写真）。博多区・早良区の事例ページと同じ形。色と字はサイトの値を使う。 */
/* 見出しは <wbr> の位置（言葉の切れ目）でだけ折り返す。入りきらない時は通常どおり折り返す。 */
.case-shotengai h1,
.case-shotengai .content-section > h2 { word-break: keep-all; overflow-wrap: anywhere; }
.case-shotengai .shotengai-summary li,
.case-shotengai .content-section > p { text-wrap: pretty; }

.case-shotengai .shotengai-summary {
  max-width: 46em;
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.case-shotengai .shotengai-summary ul { margin: 0; padding-left: 1.2em; }
.case-shotengai .shotengai-summary li { margin: 4px 0; font-size: 16px; line-height: 1.75; }
.case-shotengai .shotengai-summary strong { color: var(--ink); }

.case-shotengai .consultation .cta-actions { margin: 18px 0; }

@media (max-width: 720px) {
  .case-shotengai .shotengai-summary { padding: 12px 14px; }
}

/* 作業前・作業後の写真（早良区の一軒家の事例と同じ並べ方） */
.case-shotengai .shotengai-photos { margin: 22px 0 4px; }
.case-shotengai .shotengai-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.case-shotengai .shotengai-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 665 / 1182; object-fit: cover; border-radius: 8px; background: var(--soft); }
.case-shotengai .shotengai-photos figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (max-width: 720px) {
  .case-shotengai .shotengai-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* 同じ場所の作業前・作業後を1組ずつ並べる */
.case-shotengai .ba-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin: 22px 0 4px; }
.case-shotengai .ba-pair { margin: 0; }
.case-shotengai .ba-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.case-shotengai .ba-cell { position: relative; margin: 0; }
.case-shotengai .ba-cell img { display: block; width: 100%; height: auto; aspect-ratio: 665 / 1182; object-fit: cover; border-radius: 8px; background: var(--soft); }
.case-shotengai .ba-tag { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.6; color: #fff; background: rgba(20, 28, 24, .72); }
.case-shotengai .ba-tag.is-after { background: rgba(31, 107, 84, .9); }
.case-shotengai .ba-note { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (max-width: 720px) {
  .case-shotengai .ba-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.case-shotengai .ba-list.is-one { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - 9px); }
@media (max-width: 720px) {
  .case-shotengai .ba-list.is-one { max-width: none; }
}
