/* ========================================================================
   column.css — コラム一覧 + 個別記事の共通スタイル
   ======================================================================== */

/* ── 1. コラム一覧ページ ─────────────────────────────────────────────── */

/* 記事カード */
.column-list-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border-bottom: 1px solid #e0dcd6;
  transition: background 0.2s;
}
.column-list-card:hover {
  background: #faf8f5;
}

/* カード内メタ情報行 */
.column-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* カテゴリバッジ */
.column-list-cat {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1a2a4a;
  background: #e8edf5;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* 日付 */
.column-list-date {
  font-size: 13px;
  color: #888;
}

/* 記事タイトル */
.column-list-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 6px;
  color: #222;
}

/* 記事抜粋 */
.column-list-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* カテゴリセクション見出し */
.column-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a2a4a;
}
.column-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a2a4a;
}
.column-section-count {
  font-size: 13px;
  color: #888;
  margin-left: auto;
}

/* もっと見る展開ボタン */
.column-more-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: none;
  border: 1px dashed #ccc;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2a4a;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.column-more-btn:hover {
  background: #f5f3ef;
  border-color: #1a2a4a;
}
.column-more-count {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
}

/* 検索バー */
.col-search-bar {
  position: relative;
  margin-bottom: 24px;
}
.col-search-bar input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border: 1px solid #e0dcd6;
  border-radius: 12px;
  font-size: 15px;
  background: #faf8f5;
  transition: all .2s;
  box-shadow: none;
  box-sizing: border-box;
}
.col-search-bar input:focus {
  outline: none;
  border-color: #1a2a4a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,42,74,.1);
}
.col-search-bar::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  pointer-events: none;
}
.col-search-bar::after {
  content: '';
  position: absolute;
  left: 30px;
  top: calc(50% + 7px);
  width: 2px;
  height: 6px;
  background: #9ca3af;
  transform: rotate(-45deg);
  pointer-events: none;
}

/* カテゴリナビ */
.col-cat-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.col-cat-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  border: 1px solid #e0dcd6;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  transition: all .15s;
  white-space: nowrap;
}
.col-cat-nav a:hover {
  border-color: #1a2a4a;
  color: #1a2a4a;
  background: #f5f3ef;
}
.col-cat-nav a.active {
  background: #1a2a4a;
  color: #fff;
  border-color: #1a2a4a;
}
.col-cat-cnt {
  font-size: 11px;
  opacity: .65;
  background: rgba(0,0,0,.06);
  padding: 1px 6px;
  border-radius: 8px;
}
.col-cat-nav a.active .col-cat-cnt {
  background: rgba(255,255,255,.25);
}

/* ── 2. コラム個別記事 ───────────────────────────────────────────────── */

/* 記事ヘッダー */
.article-header {
  padding: 32px 0;
  position: relative;
  overflow: hidden;
  background: #faf8f5;
  margin: -20px -20px 0;
  padding: 32px 20px;
}
.article-cat-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1a2a4a;
  background: #e8edf5;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.article-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 12px;
}
.article-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* 著者ボックス */
.article-author {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: #faf8f5;
  border: 1px solid #e0dcd6;
  border-radius: 12px;
  margin: 24px 0;
}
.article-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.article-author-name {
  font-weight: 600;
  font-size: 14px;
}
.article-author-desc {
  font-size: 12px;
  color: #888;
}

/* ポイントボックス（記事冒頭） */
.article-summary {
  background: #e8edf5;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.article-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 8px;
}
.article-summary ul {
  font-size: 14px;
  line-height: 1.8;
  padding-left: 20px;
  margin: 0;
  color: #333;
}

/* 本文 */
.article-body {
  padding: 40px 0;
  max-width: 720px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8edf5;
}
.article-body h2:first-child {
  margin-top: 0;
}
.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid #1a2a4a;
}
.article-body p {
  font-size: 16px;
  line-height: 2;
  color: #555;
  margin-bottom: 20px;
}
.article-body strong {
  color: #222;
}

/* 目次 */
.col-toc {
  background: #f5f5f3;
  border-radius: 8px;
  padding: 24px 20px;
  margin: 0 0 32px;
}
.col-toc-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 12px;
}
.col-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}
.col-toc li {
  counter-increment: toc;
  padding: 8px 0;
  border-bottom: 1px solid #e0dcd6;
  font-size: 14px;
  line-height: 1.6;
}
.col-toc li:last-child {
  border-bottom: none;
}
.col-toc li::before {
  content: counter(toc) ".";
  color: #1a2a4a;
  font-weight: 700;
  margin-right: 8px;
}
.col-toc a {
  color: #555;
  text-decoration: none;
}
.col-toc a:hover {
  color: #1a2a4a;
}

/* ポイント（青系） */
.col-point {
  background: #e8edf5;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}
.col-point-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 8px;
}
.col-point p {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin: 0;
}

/* 注意（黄系） */
.col-note {
  background: #fdf8ec;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  border-left: 4px solid #d4b06a;
}
.col-note-title {
  font-size: 14px;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 8px;
}
.col-note p {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin: 0;
}

/* 落とし穴（赤系） */
.col-trap {
  background: #fdf0f0;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  border-left: 4px solid #c0392b;
}
.col-trap-title {
  font-size: 14px;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 8px;
}
.col-trap p {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin: 0;
}

/* テーブル */
.col-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 28px;
}
.col-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
.col-table th {
  background: #1a2a4a;
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
}
.col-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e0dcd6;
  line-height: 1.7;
  vertical-align: top;
}
.col-table tr:last-child td {
  border-bottom: none;
}

/* 引用ボックス */
.col-quote {
  background: #fff;
  border-radius: 8px;
  padding: 24px 20px;
  margin: 24px 0;
  border-left: 4px solid #d4b06a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.col-quote p {
  font-size: 16px;
  line-height: 2;
  color: #222;
  margin-bottom: 8px;
}
.col-quote p:last-child {
  margin-bottom: 0;
}
.col-quote cite {
  font-size: 13px;
  color: #888;
  font-style: normal;
}

/* 関連記事カード */
.col-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e0dcd6;
}
.col-related-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a2a4a;
  margin-bottom: 16px;
}
.col-related .column-list-card {
  border: 1px solid #e0dcd6;
  border-radius: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e0dcd6;
}
.col-related .column-list-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── 3. レスポンシブ（360px幅対応） ──────────────────────────────────── */

@media (max-width: 640px) {
  .article-header {
    padding: 24px 16px;
    margin: -16px -16px 0;
  }
  .article-title {
    font-size: 20px;
  }
  .article-body {
    padding: 24px 0;
  }
  .article-body h2 {
    font-size: 17px;
    margin: 36px 0 12px;
  }
  .article-body h3 {
    font-size: 15px;
    margin: 24px 0 10px;
  }
  .article-body p {
    font-size: 15px;
  }
  .article-author {
    padding: 16px;
    gap: 12px;
  }
  .article-author img {
    width: 48px;
    height: 48px;
  }
  .column-list-card {
    padding: 16px;
  }
  .column-list-card h3 {
    font-size: 15px;
  }
  .column-section-title {
    font-size: 18px;
  }
  .col-table {
    min-width: 360px;
  }
}
