/* ================================================================
   reading/reading-score — local.css
   ================================================================ */

/* 2列横並びレイアウト */
.sc-two-col {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.sc-two-col .a-score-table {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(4,63,109,.1);
}

/* ヘッダー：背景なし・ボーダーのみ */
.a-score-table thead tr {
  background: none;
}
.a-score-table th {
  padding: .6rem 1.2rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue);
  text-align: center;
  font-family: 'Raleway', sans-serif;
  border-bottom: 2px solid var(--lb4);
}
.a-score-table td {
  padding: .45rem 1.2rem;
}

/* バンドカラー + 左アクセントライン */
.sc-high td     { background: rgba(34,197,94,.12);   color: #166534; }
.sc-mid-high td { background: rgba(16,185,129,.1);   color: #065f46; }
.sc-mid td      { background: rgba(70,162,218,.12);  color: var(--blue); }
.sc-low-mid td  { background: rgba(245,161,0,.12);   color: #92400e; }
.sc-low td      { background: rgba(0,0,0,.03);       color: var(--gray3); }

.sc-high td:first-child     { border-left: 3px solid #22c55e; }
.sc-mid-high td:first-child { border-left: 3px solid #10b981; }
.sc-mid td:first-child      { border-left: 3px solid var(--lb); }
.sc-low-mid td:first-child  { border-left: 3px solid var(--orange); }
.sc-low td:first-child      { border-left: 3px solid var(--gray6); }

@media (max-width: 640px) {
  .sc-two-col {
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(4,63,109,.1);
  }
  .sc-two-col .a-score-table {
    width: 100%;
    border-radius: 0 !important;
    box-shadow: none !important;
    table-layout: fixed;
  }
  .sc-two-col .a-score-table th,
  .sc-two-col .a-score-table td {
    width: 50%;
  }
  .sc-two-col .a-score-table:last-child thead {
    display: none;
  }
}
