@charset "UTF-8";

/*
 * catch-target.css — 魚種ページ（/catch-target/{slug}/）
 *
 * 表が中心のページ。スマホでは表を横にスクロールさせ、ページ全体が
 * 横にはみ出さないようにする。
 * 注意書き（.cautionBox）は single.css のものを使う（functions.php で一緒に
 * 読み込む）。
 */

/* ============================================================== 区切り */

.catchTarget {
  padding-top: 32px;
}

.ctSection + .ctSection {
  margin-top: 40px;
}

.ctSection_title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
  border-bottom: 2px solid var(--bright);
}

.ctSection_date {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.ctNote {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ================================================================== 表 */

/* 列が多い表はスマホで収まらないので、表だけを横にスクロールさせる */
.ctTableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
}

.ctTable {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
  border-collapse: collapse;
}

.ctTable th,
.ctTable td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.ctTable thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--link);
  white-space: nowrap;
  background: var(--tint);
}

.ctTable tbody th {
  font-weight: 700;
  white-space: nowrap;
}

/* 推移の表は天候と潮の列まで並ぶので、もっと広く取って横にスクロールさせる */
#trend .ctTable {
  min-width: 820px;
}

/* 数値は桁をそろえて読み比べやすくする */
.ctTable_num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 地域グループの見出し行 */
.ctTable_group th {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--on-navy);
  background: var(--navy);
}

.ctTable_area {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--meta);
}

.ctTable a {
  color: var(--link);
  white-space: nowrap;
}

.ctTable a:hover {
  color: var(--link-hover);
}

/* ============================================================ グラフ */

.ctChartWrap {
  padding: 16px 18px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* viewBox を狭めにしてあるので、広い画面で文字が大きくなりすぎないよう
   最大幅を決める。狭い画面では幅いっぱいに縮む（横スクロールさせない） */
.ctChart {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  overflow: visible;
}

.ctChart_grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.ctChart_label {
  font-family: var(--font-en);
  font-size: 11px;
  fill: var(--meta);
  font-variant-numeric: tabular-nums;
}

.ctChart_series path {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ctChart_series.-max path {
  stroke: var(--bright);
}

.ctChart_series.-max circle {
  fill: var(--bright);
}

/* 中央値は濃紺の破線。色だけに頼らず、線の種類でも見分けられるようにする */
.ctChart_series.-median path {
  stroke: var(--navy);
  stroke-dasharray: 5 4;
}

.ctChart_series.-median circle {
  fill: var(--navy);
}

.ctChartLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 8px;
  padding: 0;
  font-size: 13px;
  list-style: none;
}

.ctChartLegend_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ctChartLegend_item::before {
  content: "";
  display: inline-block;
  width: 22px;
  border-top: 2px solid var(--bright);
}

.ctChartLegend_item.-median::before {
  border-top: 2px dashed var(--navy);
}

/* ========================================================== 出船なしなど */

.ctInactive {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.ctInactive_label {
  margin-right: 8px;
  font-weight: 700;
  color: var(--ink);
}

/* ======================================================= 日別記事への案内 */

.ctReports {
  margin-top: 40px;
}

.ctReports_link {
  display: inline-block;
  padding: 12px 20px;
  font-weight: 700;
  color: var(--link);
  background: var(--tint);
  border: 1px solid var(--tint-line);
}

.ctReports_link:hover {
  color: var(--link-hover);
}

@media screen and (max-width: 767px) {
  .catchTarget {
    padding-top: 24px;
  }

  .ctSection_title {
    font-size: 19px;
  }

  .ctTable th,
  .ctTable td {
    padding: 8px 10px;
  }
}
