@charset "utf-8";

.l-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  padding-top: 0 !important;
}

/* ===========================
 パンくず（Figma完全一致）
=========================== */
.c-article-topnav {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 48px auto 24px auto;
}

.c-article-topnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
}

.c-article-topnav a {
  color: #666;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.c-article-topnav > span::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("img/column/angle_usui.png") center/contain no-repeat;
  margin: 0 4px;
}

.c-article-topnav > span:last-child::after {
  content: none !important;
}


@media (min-width: 768px) {
  .l-main {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ===========================
   カテゴリヘッダー
=========================== */
.column-category-header {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.column-category-header .category-list-title {
  color: #140564;
  font-family: "Hiragino Kaku Gothic ProN";
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.75px;
}

.column-category-header .category-list-count {
  color: #666;
  font-family: "Hiragino Kaku Gothic ProN";
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  margin-bottom: 24px;
}

/* ===========================
   コラム一覧
=========================== */
.column-list {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 32px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

/* 広い画面：4列表示（カードサイズはそのまま） */
@media screen and (min-width: 1788px) {
  .l-content {
    max-width: 1800px;
  }
  .column-list {
    max-width: 1628px;
  }
}

/* ★ ここから下に .column-card の CSS は一切なし ★ */

/* ===========================
   ページネーション
=========================== */
.pagination {
  max-width: 1080px;
  margin: 0 auto 60px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  transition: background 0.2s, color 0.2s;
}

.pagination .current {
  background: #333;
  color: #fff;
  border-color: #333;
}

.pagination a:not(.prev):not(.next):hover {
  background: #333;
  color: #FFF;
}

/* ===========================
   カテゴリ一覧カードを card.css と同じ見た目にする
=========================== */

/* カード本体 */
.column-card {
  display: flex;
  width: 384px;
  height: 405px;
  padding: 6px;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  border-radius: 2px;
  background: #FFF;
  box-shadow: 0 4px 4px rgba(51, 51, 51, 0.15);
}

/* サムネイル */
.column-card .thumb {
  width: 100%;
  height: 204.188px;
  flex-shrink: 0;
  align-self: stretch;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.column-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本文 */
.column-card .meta {
  width: 318px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* カテゴリバッジ */
.column-card .category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  background: #E2E8F0;
  color: #333;
  border-radius: 2px;
}

/* 日付 */
.column-card .date {
  color: rgba(51, 51, 51, 0.40);
  font-family: Inter;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  text-align: right;
  width: 100%;
  margin-bottom: 8px;
}

/* タイトル */
.column-card .title {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* タグ */
.column-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.column-card .tags .tag {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  color: #666;
  border-radius: 2px;
  border: 1px solid #D1D5DB;
  line-height: 15px;
  white-space: nowrap;
}

.column-category-header {
  margin-bottom: 24px !important;
}

.column-list {
  margin-bottom: 24px !important;
}

.pagination {
  margin-bottom: 24px !important;
}

.category-list {
  margin-bottom: 24px !important;
}

/* カテゴリ一覧とタグ一覧を横並びにする */
.category-tag-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  padding: 0 16px;
}

@media (max-width: 700px) {
  .category-tag-wrapper {
    flex-direction: column;
  }
}

/* ===========================
 カテゴリ一覧 / タグ一覧
=========================== */
.category-list {
  display: flex;
  width: 550px;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 4px;
  border: 1px solid #D1D5DB;
  background: #FFF;
  box-sizing: border-box;
}

.category-list h2 {
  color: #333;
  font-family: "Hiragino Kaku Gothic ProN";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin: 0;

  position: relative;
  padding-left: 28px; 
}

.category-list h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("img/column/shapes.png") center/contain no-repeat;
}

.category-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-list li a {
  display: inline-flex;
  height: 34px;
  padding: 5.5px 16px 6.5px 16px;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #D1D5DB;
  background: #FFF;

  color: #666;
  font-family: "Hiragino Kaku Gothic ProN";
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  text-decoration: none;
}

/* ===========================
 タグ一覧（Figma完全一致）
=========================== */

.tag-list {
  display: flex;
  width: 550px; /* ★ 横幅550px */
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 4px;
  border: 1px solid #D1D5DB;
  background: #FFF;
  box-sizing: border-box;
}

/* タイトル（TAG） */
.tag-list h2 {
  color: #333;
  font-family: "Hiragino Kaku Gothic ProN";
  font-size: 14px;
  font-weight: 600;
  line-height: 16px; /* 114.286% */
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0;

  position: relative;
  padding-left: 28px;
}

.tag-list h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("img/column/tag.png") center/contain no-repeat;
}

/* タグの枠（全体） */
.tag-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* タグひとつひとつの pill */
.tag-list li a {
  display: inline-flex;
  height: 30px;
  padding: 6px 12px;
  align-items: center;
  border-radius: 2px;
  border: 1px solid #D1D5DB;
  background: #FFF;
  text-decoration: none;

  color: #666;
  font-family: "Hiragino Kaku Gothic ProN";
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.tag-list li a:hover {
  border-color: #2563EB;
  color: #2563EB;
}

.category-list li a:hover {
  border-color: #2563EB;
  color: #2563EB;
}

/* ===========================
 SP対応（〜768px）
=========================== */
@media (max-width: 768px) {

  /* ページタイトル（カテゴリ名 / タグ名）*/
  .column-category-header .category-list-title {
    font-size: 24px !important;
    line-height: 32px !important;
    letter-spacing: 0;
  }

  /* 全X件の記事が見つかりました */
  .category-list-count {
    color: #666;
    font-family: "Hiragino Kaku Gothic ProN";
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 20px;
  }

  /* カード一覧を1列・342px幅に */
  .column-list {
    grid-template-columns: 1fr;
    max-width: 342px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
    padding-bottom: 0;
    margin-bottom: 32px !important;
  }

  /* カード */
  .c-card {
    height: auto;
    padding: 6px;
    border-radius: 4px;
    background: #FFF;
    box-shadow: 0 4px 4px 0 rgba(51, 51, 51, 0.15);
    width: 100%;
    max-width: 342px;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* ラベルを全幅・1行目 */
  .c-card .c-card__labels {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
    padding-bottom: 4px;
  }

  /* 画像を左列・2〜4行目スパン */
  .c-card .c-card__thumb {
    grid-column: 1;
    grid-row: 2 / span 3;
    aspect-ratio: unset;
    align-self: stretch;
  }

  /* 日付を右列・2行目 */
  .c-card .c-card__date {
    display: block;
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    color: rgba(51, 51, 51, 0.30);
    font-family: Inter;
    font-size: 9px;
    font-weight: 500;
    line-height: 13.5px;
    margin: 0;
    width: 100%;
  }

  /* タイトルを右列・3行目 */
  .c-card .c-card__title {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  /* サブタイトルを右列・4行目 */
  .c-card .c-card__subtitle {
    display: block;
    grid-column: 2;
    grid-row: 4;
    align-self: start;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    margin: 0;
    min-width: 0;
  }

  .pagination {
    padding: 0px 40px 60px;
    margin: 0 auto !important;
  }

  /* パンくずをタグ一覧の下に移動するためのflex順序 */
  /* common.css の padding-bottom: 100px を打ち消す */
  .l-content {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
  }

  .column-category-header {
    order: 1;
    margin-top: 24px !important;
  }
  
  .column-list {
    order: 2;
  }

  .pagination {
    order: 3;
  }
  
  .category-tag-wrapper {
    order: 4;
    margin-bottom: 0 !important;
  }

  .c-article-topnav {
    order: 5;
    margin: 32px auto 60px !important;
    padding: 0 16px;
    flex-wrap: wrap;
  }

  /* テキストと矢印記号が別行に分かれないよう、最終項目以外はnowrap */
  .c-article-topnav > span:not(:last-child) {
    white-space: nowrap;
  }

  /* カテゴリ一覧・タグ一覧のラッパーを縦並び・342px幅に */
  .category-tag-wrapper {
    flex-direction: column;
    max-width: 342px;
    gap: 40px;
  }

  /* カテゴリ一覧・タグ一覧：枠線なし・幅全体 */
  .category-list,
  .tag-list {
    width: 100%;
    border: none;
    padding: 0;
    margin-bottom: 0 !important;
  }

  /* カテゴリ一覧・タグ一覧のタイトルのフォントサイズを戻す */
  .category-list h2,
  .tag-list h2 {
    font-size: 18px;
    line-height: 20px;
  }
}