/* Business page corrections. */

/* Remove leftover prototype-only footer copy on both desktop and mobile. */
.site-footer .footer-note {
  display: none !important;
}

@media (max-width: 640px) {
  .business-list details > summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    grid-template-areas:
      "number title toggle"
      "number note toggle";
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
    min-height: 142px;
    padding: 28px 0;
  }

  .business-list details > summary > span {
    grid-area: number;
    align-self: center;
  }

  .business-list details > summary > b {
    grid-area: title;
    min-width: 0;
    margin: 0;
    font-size: 0;
    line-height: 1.55;
    letter-spacing: .04em;
    white-space: pre-line;
  }

  .business-list details > summary > b::after {
    font-family: var(--serif);
    font-size: clamp(27px, 7.7vw, 34px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .04em;
  }

  .business-list details:nth-of-type(1) > summary > b::after { content: "店舗用アルミ\Aフロント"; }
  .business-list details:nth-of-type(2) > summary > b::after { content: "ビル・住宅用\Aサッシ"; }
  .business-list details:nth-of-type(3) > summary > b::after { content: "スチール・\Aステンレス"; }
  .business-list details:nth-of-type(4) > summary > b::after { content: "硝子・ミラー"; }
  .business-list details:nth-of-type(5) > summary > b::after { content: "排煙窓・\Aオペレーター"; }
  .business-list details:nth-of-type(6) > summary > b::after { content: "現場加工・改修"; }
  .business-list details:nth-of-type(7) > summary > b::after { content: "金物交換"; }

  .business-list details > summary > small {
    grid-area: note;
    min-width: 0;
    margin: 0;
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.7;
    letter-spacing: .04em;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .business-list details > summary > i {
    grid-area: toggle;
    align-self: center;
    justify-self: end;
    margin: 0;
  }

  .business-detail {
    padding-top: 10px;
  }
}
