/* =====================================================================
   style.css — 旅行先・引っ越し先の平年の気温と雨 ツール固有の微調整のみ（cn-）。
   共通スタイルは /_shared/shirugear.css（結果表示は sg-result）。
   グラフの色: 1か所目＝青・2か所目＝橙（色の見分けにくさの検査済み・2か所目は点線でも区別）
   ===================================================================== */
:root {
  --cn-c1: #3b5bdb;
  --cn-c2: #d9480f;
  --cn-sel: rgba(59, 91, 219, 0.09);
  --cn-grid: #e3e7ef;
  --cn-axis: #5a6573;
}
html.sg-dark {
  --cn-c1: #5b7fe8;
  --cn-c2: #e0622c;
  --cn-sel: rgba(111, 147, 255, 0.14);
  --cn-grid: #2b323d;
  --cn-axis: #9aa3af;
}
@media (prefers-color-scheme: dark) {
  html:not(.sg-dark):not(.sg-light) {
    --cn-c1: #5b7fe8;
    --cn-c2: #e0622c;
    --cn-sel: rgba(111, 147, 255, 0.14);
    --cn-grid: #2b323d;
    --cn-axis: #9aa3af;
  }
}

.cn-slot { margin: 0 0 12px; }
.cn-slot__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; }
.cn-row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.cn-col { flex: 1 1 200px; min-width: 0; }
.cn-col .sg-select { width: 100%; }
.cn-search { position: relative; }
.cn-search .sg-input { width: 100%; }
.cn-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; cursor: pointer; line-height: 1.6; }
.cn-check input { width: 18px; height: 18px; flex: 0 0 auto; }
.cn-month .sg-select { max-width: 160px; }
.cn-msg { margin: 10px 0 0; color: #c92a2a; font-size: 0.92rem; line-height: 1.7; }
.sg-dark .cn-msg { color: #ff8787; }

.cn-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; vertical-align: -1px; }
.cn-swatch.cn-s1 { background: var(--cn-c1); }
.cn-swatch.cn-s2 { background: var(--cn-c2); }

/* 検索の候補 */
.cn-hits {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border: 1px solid var(--sg-border, #dde2ec);
  border-radius: 10px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--sg-surface, #fff);
}
.cn-hits li + li { border-top: 1px solid var(--sg-border, #dde2ec); }
.cn-hit {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cn-hit:hover, .cn-hit:focus-visible { background: var(--sg-primary-soft, #eaeefc); }
.cn-hit__name { font-weight: 600; margin-right: 8px; }
.cn-hit__sub { font-size: 0.82rem; color: var(--sg-muted, #5a6573); }
.cn-hits__none { padding: 9px 12px; font-size: 0.9rem; color: var(--sg-muted, #5a6573); }

/* 結果 */
.cn-result { text-align: left; }
.cn-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .cn-cards--two { grid-template-columns: 1fr 1fr; }
}
.cn-card { min-width: 0; }
.cn-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-weight: 700; font-size: 1.05rem; }
.cn-card__pref { font-weight: 400; font-size: 0.85rem; color: var(--sg-muted, #5a6573); }
.cn-card__big { margin: 4px 0 2px; font-size: 2.2rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cn-card__m { display: block; font-size: 0.85rem; font-weight: 600; color: var(--sg-muted, #5a6573); }
.cn-card__head { margin: 4px 0 8px; line-height: 1.7; font-size: 0.95rem; }
.cn-card__st, .cn-card__note { margin: 6px 0 0; font-size: 0.84rem; line-height: 1.65; color: var(--sg-muted, #5a6573); }
.cn-card__err { margin: 8px 0 0; line-height: 1.7; }
.cn-dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.cn-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--sg-border, #dde2ec); }
.cn-dl dt { color: var(--sg-muted, #5a6573); }
.cn-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cn-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.5;
}
.cn-compare-line { margin: 14px 0 6px; font-weight: 700; line-height: 1.7; }

/* 表 */
.cn-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.cn-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.cn-table caption { text-align: left; font-weight: 600; padding: 6px 0; }
.cn-table th, .cn-table td { padding: 6px 8px; border-bottom: 1px solid var(--sg-border, #dde2ec); text-align: right; white-space: nowrap; }
.cn-table th:first-child { text-align: left; }
.cn-table thead th { font-weight: 600; font-size: 0.8rem; color: var(--sg-muted, #5a6573); vertical-align: bottom; }
.cn-table small { font-weight: 400; }
.cn-table tr.is-sel { background: var(--cn-sel); font-weight: 700; }
.cn-table tr.cn-year { font-weight: 700; }
.cn-h3 { display: flex; align-items: center; gap: 6px; margin: 16px 0 6px; font-size: 0.98rem; }

/* グラフ */
.cn-legend { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9rem; }
.cn-legend li { display: flex; align-items: center; gap: 6px; }
.cn-chart { width: 100%; overflow: hidden; }
.cn-svg { display: block; max-width: 100%; height: auto; }
.cn-svg .cn-grid { stroke: var(--cn-grid); stroke-width: 1; }
.cn-svg .cn-grid--zero { stroke: var(--cn-axis); stroke-opacity: 0.5; }
.cn-svg .cn-axis { fill: var(--cn-axis); font-size: 11px; }
.cn-svg .cn-axis--sel { font-weight: 700; fill: var(--sg-fg, #1a2230); }
.cn-svg .cn-sel { fill: var(--cn-sel); }
.cn-svg .cn-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cn-svg .cn-line.cn-s1 { stroke: var(--cn-c1); }
.cn-svg .cn-line.cn-s2 { stroke: var(--cn-c2); stroke-dasharray: 6 4; }
.cn-svg .cn-band { stroke: none; fill-opacity: 0.16; }
.cn-svg .cn-band.cn-s1 { fill: var(--cn-c1); }
.cn-svg .cn-band.cn-s2 { fill: var(--cn-c2); }
.cn-svg .cn-dot { stroke: var(--sg-surface, #fff); stroke-width: 2; }
.cn-svg .cn-dot.cn-s1 { fill: var(--cn-c1); }
.cn-svg .cn-dot.cn-s2 { fill: var(--cn-c2); }
.cn-svg .cn-bar { opacity: 0.55; }
.cn-svg .cn-bar.is-sel { opacity: 1; }
.cn-svg .cn-bar.cn-s1 { fill: var(--cn-c1); }
.cn-svg .cn-bar.cn-s2 { fill: var(--cn-c2); }
.cn-svg .cn-cell { fill: transparent; cursor: pointer; }
.cn-svg .cn-cell:hover { fill: var(--cn-sel); }

.cn-list { margin: 0; padding-left: 1.2em; line-height: 1.8; }
.cn-list li { margin: 0.3em 0; }
.cn-src { line-height: 1.8; }
