.case-breakdown,
.case-head-demo,
.case-sheet-summary,
.dialog-foot .case-view-original {
  display: none;
}

.source-excerpt {
  min-width: 0;
}

@media (max-width: 900px) {
  .case-board-head .case-head-title,
  .case-board-head > span:last-child,
  .case-board-foot p {
    display: none;
  }

  .case-head-demo {
    display: inline;
    font-size: 0.75rem;
    letter-spacing: normal;
  }

  .case-board .source-scroll {
    display: none;
  }

  .case-breakdown {
    display: block;
    margin-inline: clamp(1rem, 3vw, 2rem);
  }

  .case-breakdown table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
  }

  .case-breakdown caption {
    padding-block: 0.5rem 0.875rem;
    border-top: 1px solid var(--line);
    text-align: left;
    font-weight: 600;
  }

  .case-breakdown th,
  .case-breakdown td {
    padding: 0.375rem 0.25rem;
    border-bottom: 1px solid var(--line);
    text-align: right;
    font-weight: 400;
  }

  .case-breakdown th:first-child {
    padding-left: 0;
    text-align: left;
  }

  .case-breakdown th:last-child,
  .case-breakdown td:last-child {
    padding-right: 0;
  }

  .case-breakdown thead th {
    font-size: 0.75rem;
    font-weight: 500;
  }
}

@media (max-width: 760px) {
  .case-reading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
  }

  .case-reading > div:last-of-type {
    text-align: right;
  }

  .case-reading .reading-label {
    max-width: none;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .case-reading strong {
    display: block;
    font-size: clamp(1.875rem, 9vw, 2.625rem);
    white-space: nowrap;
  }

  .case-reading strong small {
    font-size: 0.75rem;
  }

  .case-board-head,
  .case-board-foot p {
    font-size: 0.75rem;
  }

  .case-board-foot a {
    font-size: 0.9375rem;
  }

  .case-sheet-summary {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
  }

  .case-sheet-summary > p:first-child {
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .case-sheet-total {
    font-size: 1rem;
    line-height: 1.4;
  }

  .case-sheet-total strong {
    display: block;
    color: var(--deep-blue);
    font-size: 2.25rem;
    line-height: 1.12;
    letter-spacing: -0.045em;
  }

  .case-sheet-summary small {
    font-size: 0.75rem;
  }

  .dialog-image {
    padding: 0.625rem;
    overflow: visible;
  }

  .dialog-image img {
    display: block;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .dialog-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 1rem;
    padding: 0 1rem 0.5rem;
  }

  .dialog-foot p {
    display: none;
  }

  .dialog-foot a,
  .dialog-foot .case-view-original {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
    font-size: 0.8125rem;
  }
}
