/* =========================================================
   気象データ表（6列）の専用レイアウト
   ========================================================= */

.md-typeset table.climate-table {
  width: 100%;
  table-layout: fixed;    /* 列幅を安定させる */
  border-collapse: collapse;
}

/* =========================================================
   列幅（6列用に最適化）
   ========================================================= */

/* 1列目：地域区分（短い） */
.md-typeset table.climate-table th:nth-child(1),
.md-typeset table.climate-table td:nth-child(1) {
  min-width: 6rem;
  width: 7rem;
  text-align: center;
}

/* 2列目：使用する気象データ（長文） */
.md-typeset table.climate-table th:nth-child(2),
.md-typeset table.climate-table td:nth-child(2) {
  min-width: 12rem;
  padding-right: 1rem; /* 境界がくっつかないように */
}

/* 3列目：冷房度日 */
.md-typeset table.climate-table th:nth-child(3),
.md-typeset table.climate-table td:nth-child(3) {
  min-width: 6rem;
  text-align: right;
  padding-left: .8rem;
}

/* 4列目：暖房度日 */
.md-typeset table.climate-table th:nth-child(4),
.md-typeset table.climate-table td:nth-child(4) {
  min-width: 6rem;
  text-align: right;
  padding-left: .8rem;
}

/* 5列目：緯度 */
.md-typeset table.climate-table th:nth-child(5),
.md-typeset table.climate-table td:nth-child(5) {
  min-width: 5rem;
  text-align: right;
}

/* 6列目：経度 */
.md-typeset table.climate-table th:nth-child(6),
.md-typeset table.climate-table td:nth-child(6) {
  min-width: 6rem;
  text-align: right;
}

/* =========================================================
   境界強調（列と列がくっつくのを防ぐ）
   ========================================================= */

.md-typeset table.climate-table th + th,
.md-typeset table.climate-table td + td {
  border-left-width: 2px;   /* 境界線を太くしてくっつき防止 */
}

/* =========================================================
   セルの折返し調整（長文に強い）
   ========================================================= */

.md-typeset table.climate-table th,
.md-typeset table.climate-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
  padding: .5rem .6rem;
}

/* =========================================================
   スマホ最適化（768px 以下）
   ========================================================= */

@media (max-width: 768px) {
  .md-typeset table.climate-table th:nth-child(1),
  .md-typeset table.climate-table td:nth-child(1) {
    min-width: 4.5rem;
  }

  .md-typeset table.climate-table th:nth-child(2),
  .md-typeset table.climate-table td:nth-child(2) {
    min-width: 10rem;
    padding-right: 1.2rem;
  }

  .md-typeset table.climate-table th:nth-child(3),
  .md-typeset table.climate-table td:nth-child(3),
  .md-typeset table.climate-table th:nth-child(4),
  .md-typeset table.climate-table td:nth-child(4),
  .md-typeset table.climate-table th:nth-child(5),
  .md-typeset table.climate-table td:nth-child(5),
  .md-typeset table.climate-table th:nth-child(6),
  .md-typeset table.climate-table td:nth-child(6) {
    min-width: 5rem;
  }
}