/* コラム（/column/）のスタイル。共通の /assets/site.css の上に重ねる */

/* ===== 記事の見出し部分 ===== */
.col-hero h1 {
  max-width: 820px;
}

.col-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.col-catch {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--ocean-light);
  letter-spacing: 0.08em;
  margin: -6px 0 18px;
}

.col-series {
  color: var(--ocean-light);
}

/* ===== 本文 ===== */
.col-body {
  padding: 72px 0 56px;
}

.col-article {
  max-width: 760px;
  margin: 0 auto;
}

.col-article h2 {
  margin-top: 56px;
}

.col-article > h2:first-child {
  margin-top: 0;
}

.col-article p {
  font-size: 1rem;
}

.col-article a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-pale);
}

.col-article a:hover {
  border-bottom-color: var(--accent);
}

.col-article ul,
.col-article ol {
  margin: 0 0 22px 1.4em;
  font-size: 0.97rem;
  line-height: 1.9;
}

.col-article li + li {
  margin-top: 6px;
}

.col-article blockquote {
  margin: 0 0 22px;
  padding: 16px 20px;
  background: var(--gray-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
}

.col-article blockquote p {
  margin: 0;
  font-size: 0.93rem;
}

.col-article .data-table {
  margin-bottom: 24px;
}

/* 本文の表は内容の幅に合わせて詰める */
.col-article > .table-wrap .data-table {
  width: auto;
  min-width: min(100%, 420px);
  font-size: 0.86rem;
}

.col-article > .table-wrap .data-table th,
.col-article > .table-wrap .data-table td {
  padding: 9px 16px;
}

.col-article .data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.col-article .data-table td.num {
  font-weight: 400;
  color: var(--text);
}

/* 要点のまとめ（<div class="col-point">）。記事の冒頭に置き、チェックマークの箇条書きで強調する */
.col-point {
  position: relative;
  background: linear-gradient(135deg, #f2f8fd 0%, #eefaf7 100%);
  border: 2px solid var(--accent-pale);
  border-left: 6px solid var(--accent);
  border-radius: 16px;
  padding: 26px 30px 24px;
  margin: 0 0 40px;
  box-shadow: 0 8px 24px rgba(26, 42, 74, 0.06);
}

.col-point .col-point-title {
  display: inline-block;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white) !important;
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px !important;
}

.col-point ul {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 14px;
}

.col-point li {
  position: relative;
  padding-left: 34px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.75;
}

.col-point li + li {
  margin-top: 0;
}

.col-point li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.col-point p:last-child,
.col-point ul:last-child {
  margin-bottom: 0;
}

/* 冒頭の「この記事のデータ」 */
.col-databar {
  display: grid;
  gap: 10px;
  margin: -24px 0 40px;
}

.col-article .col-databar a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 12px;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.col-article .col-databar a:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(26, 42, 74, 0.08);
}

.col-databar img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.col-databar span {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.col-databar small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.col-databar b {
  font-size: 0.95rem;
}

.col-databar i {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.col-small {
  font-size: 0.8rem !important;
  color: var(--text-light) !important;
  line-height: 1.8 !important;
}

/* ===== グラフ ===== */
.col-chart {
  margin: 8px 0 32px;
  padding: 22px 24px 18px;
  border: 1px solid var(--gray);
  border-radius: 16px;
  background: var(--white);
}

.col-chart figcaption {
  margin-bottom: 14px;
}

.col-chart figcaption b {
  display: block;
  font-size: 0.98rem;
  color: var(--navy);
}

.col-chart figcaption span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* 棒（HTML）。主色はサイトの青、比較の系列はオレンジ、その他は灰色 */
.col-chart {
  --cb-main: #2e86c1;
  --cb-sub: #e08a3c;
  --cb-muted: #c3ced9;
}

.cb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 12px !important;
  font-size: 0.8rem !important;
  color: var(--navy) !important;
}

.cb-legend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--cb-main);
}

.cb-legend .s1::before {
  background: var(--cb-sub);
}

.cb-h {
  display: grid;
  gap: 10px;
}

.cb-row {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 12px;
  align-items: center;
  font-size: 0.84rem;
}

.cb-label {
  text-align: right;
  color: var(--navy);
  line-height: 1.4;
}

.cb-row.is-hl .cb-label,
.cb-row.is-hl .cb-val {
  font-weight: 700;
  color: var(--navy);
}

.cb-bars {
  display: grid;
  gap: 3px;
}

.cb-track {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cb-track .cb-bar {
  display: block;
  height: 18px;
  min-width: 2px;
  max-width: calc(100% - 4.5em);
  border-radius: 0 4px 4px 0;
  background: var(--cb-muted);
  flex-shrink: 0;
}

.cb-pair .cb-bar {
  height: 13px;
  background: var(--cb-main);
}

.cb-pair .cb-bar.s1 {
  background: var(--cb-sub);
}

.cb-row.is-hl .cb-bar {
  background: var(--cb-main);
}

.cb-val {
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cb-row:hover .cb-bar,
.cb-col:hover .cb-bar {
  filter: brightness(0.88);
}

/* ワードクラウド（column.js が SVG を描く）。種類ごとに色を分け、急に増えた言葉は濃く */
.col-chart {
  --cw-news: #2e86c1;
  --cw-food: #1f9e6e;
}

.cw-cloud {
  padding: 8px;
  background: var(--gray-light);
  border-radius: 12px;
  min-height: 120px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.cw-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
}

svg text.cw-w {
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  fill: #8a96a6;
}

svg text.cw-news { fill: color-mix(in srgb, var(--cw-news) 55%, #fff); }
svg text.cw-food { fill: color-mix(in srgb, var(--cw-food) 55%, #fff); }
svg text.cw-news.is-hot { fill: var(--cw-news); }
svg text.cw-food.is-hot { fill: var(--cw-food); }
svg text.cw-pos { fill: #1f9e6e; }
svg text.cw-neg { fill: #c0392b; }
svg text.cw-mix { fill: #7b8796; }
svg text.cw-w:hover { opacity: 0.7; }
/* ワードクラウドの下の「画像を保存・シェア」 */
.cw-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.col-article .cw-btn,
.cw-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--white);
  color: var(--accent);
  cursor: pointer;
  line-height: 1.4;
}

.cw-btn:hover {
  background: var(--accent);
  color: var(--white);
}

svg text.cw-credit { fill: #8a96a6; font-weight: 500; text-anchor: end; letter-spacing: 0.04em; }

.cw-legend .k-news::before { background: var(--cw-news); }
.cw-legend .k-food::before { background: var(--cw-food); }
.cw-legend .k-pos::before { background: #1f9e6e; }
.cw-legend .k-neg::before { background: #c0392b; }
.cw-legend .k-mix::before { background: #7b8796; }
.cw-legend .k-note::before { display: none; }
.cw-legend .k-note { color: var(--text-light); }

/* 縦棒 */
.cb-v {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 220px;
  border-bottom: 1px solid var(--gray);
  padding-top: 22px;
}

.cb-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.cb-plot {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.cb-col .cb-bar {
  display: block;
  width: min(24px, 70%);
  border-radius: 4px 4px 0 0;
  background: var(--cb-main);
}

.cb-col .cb-val {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.cb-x {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 6px;
  height: 0;
  line-height: 1;
  overflow: visible;
  white-space: nowrap;
}

.cb-v {
  margin-bottom: 26px;
}

.col-chart details {
  margin-top: 12px;
  font-size: 0.8rem;
}

.col-chart summary {
  cursor: pointer;
  color: var(--accent);
  width: fit-content;
}

.col-chart details .data-table {
  margin: 10px 0 0;
  font-size: 0.8rem;
}

.col-chart details .data-table th,
.col-chart details .data-table td {
  padding: 8px 12px;
}

.col-chart .col-source {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* 画像（ダッシュボードの画面など） */
.col-figure {
  margin: 8px 0 32px;
  padding: 16px;
  border: 1px solid var(--gray);
  border-radius: 16px;
  background: var(--white);
}

.col-article .col-figure > a {
  display: block;
  border: none;
}

.col-figure img {
  margin: 0 auto;
  border-radius: 8px;
}

.col-figure figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* POPなどの画像を2枚並べる */
.col-pops {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 8px 0 28px;
}

.col-pops figure {
  margin: 0;
}

.col-pops img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--gray);
  box-shadow: 0 6px 18px rgba(26, 42, 74, 0.08);
}

.col-pops figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}

@media (max-width: 640px) {
  .col-pops {
    grid-template-columns: 1fr;
  }
}

/* ===== 著者 ===== */
.col-author {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--gray-light);
  border-radius: 16px;
}

.col-author img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.col-author p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.8;
}

.col-author .col-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.col-author .col-author-name span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 10px;
}

.col-author a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-pale);
  margin-left: 4px;
}

.col-data {
  background: var(--sky);
}

/* ===== 一覧 ===== */
.col-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.col-tab {
  font: inherit;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--gray);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.col-tab.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.col-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.col-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 16px;
  padding: 24px 24px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.col-thumb {
  width: calc(100% + 48px);
  max-width: none;
  margin: -24px -24px 18px;
  border-radius: 15px 15px 0 0;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.col-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 42, 74, 0.08);
}

.col-card[hidden] {
  display: none;
}

.col-card .col-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-light);
  margin: 0 0 10px;
}

.col-theme {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.col-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.6;
  margin: 0 0 10px;
}

.col-card .col-desc {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0 0 14px;
  flex: 1;
}

.col-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 !important;
}

.col-tag {
  font-size: 0.7rem;
  color: var(--navy);
  background: var(--gray-light);
  border-radius: 999px;
  padding: 3px 10px;
}

.related .col-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 640px) {
  .col-body {
    padding: 48px 0 40px;
  }

  .col-article p {
    font-size: 0.95rem;
  }

  .col-chart {
    padding: 16px 14px 14px;
    margin-left: -8px;
    margin-right: -8px;
  }

  .col-author {
    padding: 16px;
  }

  .col-point {
    padding: 20px 18px 18px;
  }

  .col-databar i {
    font-size: 0;
  }

  .col-databar i::after {
    content: "›";
    font-size: 1.6rem;
    line-height: 1;
  }

  .col-point li {
    font-size: 0.95rem;
    padding-left: 30px;
  }

  .cb-row {
    grid-template-columns: 6.5em 1fr;
    gap: 8px;
    font-size: 0.78rem;
  }

  .cb-col .cb-val {
    font-size: 0.66rem;
  }

  /* 年が詰まるので、偶数番目の年は隠す */
  .cb-col:nth-child(even) .cb-x {
    visibility: hidden;
  }
}
