/* ========== column アーカイブ用 ========== */

.column-archive {
  padding: 80px 0;
}

.column-archive__header {
  text-align: center;
  margin-bottom: 28px;
}

.column-archive__header .section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.column-archive__desc {
  margin-top: 8px;
  color: #666;
}

.column-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.column-item {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
}

.column-date {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.column-title {
  font-size: 18px;
  margin: 20px 0 20px;
}

.column-title a {
  text-decoration: none;
  color: #111;
}

.column-title a:hover {
  text-decoration: underline;
}


/* ===== アイキャッチ ===== */
.column-thumb {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 4px;
}
.column-thumb-img {
  display: block;
  width: 20%;
  height: auto;
  object-fit: cover;
}


/* =========================================================
   column Archive (category-column.php) — トップと同じレイアウト
   依存クラス: .column-archive, .top-column, .top-column__*
   ========================================================= */

/* コンテナ */
.column-archive .container {
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
}

/* セクションヘッダー */
.column-archive__header {
  margin: 32px 0 20px;
}
.section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}
.column-archive__desc {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

/* 一覧グリッド */
.top-column {
  margin: 24px 0 48px;
}
.top-column__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .top-column__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top-column__list { grid-template-columns: 1fr; }
}

.top-column__item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.top-column__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-color: #e5e7eb;
}

/* クリック領域をカード全体に */
.top-column__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  background: #fff;
}

/* サムネイル（必ず1枚だけ表示される想定） */
.top-column__thumb {
  position: relative;
  aspect-ratio: 16 / 9;          /* 上と同じ見え方に */
  width: 100%;
  overflow: hidden;
  background: #f6f7f8;
}
.top-column__thumb img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* メタ情報（日時・カテゴリ・NEW） */
.top-column__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 16px 0;
}

.top-column__date {
  font-size: 12px;
  color: #6b7280;
}

/* カテゴリ */
.top-column__cats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top-column__cat {
  font-size: 11px;
  line-height: 1;
  color: #2563eb;
  background: #eaf1ff;
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* NEWバッジ */
.top-column__badge {
  margin-left: auto;
}
.top-column__badge--new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  padding: 6px 8px;
  line-height: 1;
  border-radius: 6px;
  letter-spacing: .08em;
}

/* タイトル・抜粋 */
.top-column__title {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.6;
  font-weight: 700;
  padding: 10px 16px 0;
  margin: 0;
}
.top-column__title a { color: inherit; text-decoration: none; }

.top-column__excerpt {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  padding: 8px 16px 16px;
  margin: 0;
}

/* 空メッセージ */
.top-column__empty {
  text-align: center;
  color: #6b7280;
  padding: 48px 0 64px;
}

/* ページネーション */
.pagination--column {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 64px;
}
.pagination--column .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.pagination--column .page-numbers:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}
.pagination--column .page-numbers.current {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

/* ダークモード（必要なら） */
@media (prefers-color-scheme: dark) {
  .top-column__item { background: #111315; border-color: #222; }
  .top-column__item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.5); }
  .column-archive__desc { color: #9ca3af; }
  .top-column__date { color: #9ca3af; }
  .top-column__excerpt { color: #cbd5e1; }
  .top-column__cat { color: #93c5fd; background: #0a1a33; border-color: #133b7a; }
  .pagination--column .page-numbers { background: #0b0d0f; border-color: #1f2937; color: #e5e7eb; }
  .pagination--column .page-numbers.current { background: #2563eb; border-color: #2563eb; }
}





/* ===== ページネーション ===== */
.column-pagination {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.column-pagination ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.column-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #0073aa;
  border-radius: 6px;
  background: #f7f7f7;
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s ease;
}

.column-pagination .page-numbers:hover {
  background: #0073aa;
  color: #fff;
}

.column-pagination .page-numbers.current {
  background: #0073aa;
  color: #fff;
  font-weight: 700;
}

/* 一覧へ戻るボタン */
.column-actions {
  margin-top: 20px;
}
.btn-column {
  display: block;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s ease;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 160px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.btn-column:hover { background:#e5e7eb; border-color:#e5e7eb; }

/* 前/次ナビ（中央寄せ・ボタン風） */
.column-postnav {
  margin: 32px 0 0;
}
.column-postnav__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.column-postnav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all .2s ease;
}
.column-postnav a:hover { background:#333; color:#fff; }

/* 空表示 */
.column-empty { text-align:center; color:#666; }

.single-featured-img { display:block; max-width:100%; height:auto; }
.single-featured { margin: 0 0 24px; }


/* ========== column 詳細ページ ========== */
.column-single {
  padding: 80px 0;
}
.column-single .column-single__article {
  max-width: 900px;
  margin: 2rem auto;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 24px;
}
.column-single .column-date {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.column-single .column-title {
  font-size: 2rem;
  line-height: 1.3;
  margin: 2rem 0 1.5rem;
}
.column-single .column-content {
  color: #222;
  line-height: 1.9;
}
.column-single .column-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  margin: 20px 0;
}
.column-content h2 {
  margin: 1.5rem 0 1.5rem;
  border-bottom: solid 2px #cce4ff;
  position: relative;
}
.column-content h2:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 2px #5472cd;
  bottom: -2px;
  width: 20%;
}
.column-content h3 {
  position: relative;
  display: inline-block;
  padding: 0 45px;
  margin: 1rem 0 1rem;
}
.column-content h3:before, .column-content h3:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 44px;
  height: 2px;
  background-color: black;
  -webkit-transform: rotate(-60deg);
  transform: rotate(-60deg);
}
.column-content h3:before {
  left:0;
}
.column-content h3:after {
  right: 0;
}
.column-content h4 {
  display: inline-block;
  position: relative;
  color: #5472cd;
  margin: 1rem 0 1.5rem;
}
.column-content h4:before {
  content: '';
  display: inline-block;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #cce4ff;
}
.column-content p {
  margin-bottom: 2rem;
}

/* column */
.column-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.column-li {
  border-bottom: 1px solid #eee;
}
.column-a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .8em;
  padding: .7em 0;
  text-decoration: none;
  color: inherit;
}
.column-date { color: #666; font-size: .9rem; }
.column-title { line-height: 1.6; }
