@charset "utf-8";
/* ============================================================
   c-selectChart — 工具別のコンプレッサー選定早見表
   「使用例・型番／圧力／空気使用量／コンプレッサーの目安（＋商品リンク）」の表。
   PC は罫線で区切った 4 列の表、スマホ（767px 以下）は 1 行ずつのカードに組み替える。
   スマホでは見出し行を消し、各セルの data-label を左の項目名の列として出す。

   読み込み: <link rel="stylesheet" href="/css/components/select-chart.css?20261007">
   詳細: .claude/docs/components.md の select-chart
   ============================================================ */

.c-selectChart__lead {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.7;
}

/* PC：縦横の罫線・青地の見出し行・薄い色の左端列で「表」と一目で分かる形にする
   （横線だけだと境目が分からず読みにくい、と 2026-10-07 に指摘） */
.c-selectChart {
  width: 100%;
  margin: 0 0 10px;
  border-collapse: collapse;
  border: 1px solid #b9c4d2;
  font-size: 15px;
  line-height: 1.6;
}

.c-selectChart th,
.c-selectChart td {
  padding: 12px 10px;
  border: 1px solid #b9c4d2;
  background: #fff;
  vertical-align: middle;
  text-align: left;
}

.c-selectChart thead th {
  padding-top: 9px;
  padding-bottom: 9px;
  border-color: #3471b0;
  border-left-color: #5d8cc4;
  background: #3471b0;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

.c-selectChart thead th:first-child {
  border-left-color: #3471b0;
}

/* 列の幅を固定し、同じページに並ぶ複数の表で列の位置をそろえる */
.c-selectChart thead th:nth-child(1) { width: 38%; }
.c-selectChart thead th:nth-child(2) { width: 15%; }
.c-selectChart thead th:nth-child(3) { width: 12%; }
.c-selectChart thead th:nth-child(4) { width: 35%; }

.c-selectChart tbody th {
  background: #f3f6fa;
  font-weight: normal;
}

/* 数値の列は右揃え（桁を縦にそろえる） */
.c-selectChart .c-selectChart__num {
  text-align: right;
  white-space: nowrap;
}

/* 左端の列は「型番」が主、「使用例」が従。
   同じ用途でも型番で空気使用量が変わるので、型番を大きく先に出す（2026-10-09 先方指示） */
.c-selectChart__model {
  display: block;
  color: #222;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
}

.c-selectChart__model a {
  color: #1a5aa0;
  text-decoration: underline;
}

.c-selectChart__model a:hover {
  opacity: .7;
}

.c-selectChart__use {
  display: block;
  margin-top: 2px;
  color: #5b6573;
  font-size: 13px;
}

.c-selectChart__hp {
  display: block;
  font-weight: bold;
}

.c-selectChart__links {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
}

.c-selectChart__links a {
  display: block;
}

.c-selectChart__links a::before {
  content: "› ";
}

/* 目安のセルを rowspan で上下に結合したときの、下の行の控え。
   PC では結合セルが下の行も占めるので隠す。スマホは1行ずつのカードになり結合が効かないので出す（下の @media） */
.c-selectChart .c-selectChart__dup {
  display: none;
}

.c-selectChart__note {
  margin: 0 0 30px;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

/* スマホ：1行＝1枚のカード。頭は青地、各項目は「左に項目名の列・右に値」の2列 */
@media only screen and (max-width: 767px) {
  .c-selectChart thead {
    display: none;
  }

  .c-selectChart,
  .c-selectChart tbody,
  .c-selectChart tr,
  .c-selectChart th,
  .c-selectChart td {
    display: block;
    width: auto;
  }

  .c-selectChart {
    border: 0;
  }

  .c-selectChart tr {
    margin-bottom: 14px;
    border: 1px solid #b9c4d2;
  }

  .c-selectChart tbody th {
    padding: 9px 12px;
    border: 0;
    background: #3471b0;
    color: #fff;
  }

  /* 青地の上なので、型番（リンク含む）は白、使用例は淡い青 */
  .c-selectChart tbody th .c-selectChart__model,
  .c-selectChart tbody th .c-selectChart__model a {
    color: #fff;
  }

  .c-selectChart tbody th .c-selectChart__use {
    color: #dbe6f3;
  }

  .c-selectChart td,
  .c-selectChart .c-selectChart__num {
    display: grid;
    grid-template-columns: 9em 1fr;
    align-items: center;
    column-gap: 12px;
    padding: 0 12px 0 0;
    border: 0;
    border-top: 1px solid #d3dae4;
    text-align: left;
  }

  .c-selectChart td::before {
    content: attr(data-label);
    align-self: stretch;
    padding: 8px 10px;
    border-right: 1px solid #d3dae4;
    background: #f3f6fa;
    color: #4b5768;
    font-size: 13px;
  }

  /* 目安のセルは中身が多いので、項目名を上の帯にして、目安とリンクを下に並べる */
  .c-selectChart td.c-selectChart__pick,
  .c-selectChart td.c-selectChart__dup {
    display: block;
    padding: 0 0 10px;
  }

  .c-selectChart td.c-selectChart__pick::before {
    display: block;
    margin-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid #d3dae4;
  }

  .c-selectChart__hp,
  .c-selectChart__links {
    padding: 0 12px;
  }

  .c-selectChart__links a {
    display: inline-block;
    margin-right: 14px;
  }
}
