@charset "UTF-8";
/* ============================================================
   column-enhancements.css — コラム一覧＆記事ページ プロフェッショナル改善
   tokens.css の後、enhancements.css の後に読み込む
   ============================================================ */

/* ===========================================
   1. 一覧ページ: カードデザイン刷新
   =========================================== */

/* カードグリッド: CSS Grid化 */
.p-contents__left--column .c-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .p-contents__left--column .c-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.p-contents__left--column .c-list__item--column {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* カードリンク: ホバーエフェクト刷新 */
.c-list__link--column {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md, 10px) !important;
  overflow: hidden;
  border: 1px solid var(--color-border, #e0e3e3);
  background: var(--color-white, #fff) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.c-list__link--column:hover {
  opacity: 1 !important;
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* カード画像: 16:9統一 + 見切れ防止
   プロンプト仕様（1360x765px = 16:9）に合わせてCSS枠も16:9に統一。
   旧画像（20:9）も新画像（16:9）も見切れなく表示する。
   - 16:9画像 → 完全フィット（見切れなし）
   - 20:9画像 → 上下にわずかな余白（背景色で自然にフィル） */
.c-list__imgbox--column {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  border: none !important;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f4f6f8 0%, #eef1f3 100%);
}

.c-list__imgbox--column img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  content-visibility: auto;
  will-change: transform;
}

.c-list__link--column:hover .c-list__imgbox--column img {
  transform: scale(1.05);
}

/* カード内テキスト */
.c-list__link--column .c-list__inner {
  padding: 20px 20px 12px;
  flex: 1;
}

/* 日付 */
.c-contents__date--column {
  margin: 0 0 8px;
}

.c-contents__date--column time {
  font-size: 1.3rem;
  color: var(--color-text-muted, #555);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* カード見出し */
.c-list__heading--column {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: var(--color-text, #2a2d2d) !important;
  margin: 0 0 8px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .c-list__heading--column {
    font-size: 1.6rem !important;
  }
}

/* カード抜粋 */
.c-list__link--column .c-list__excerpt {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--color-text-muted, #555);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 「続きを読む」ボタン */
.c-btn__column {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-secondary, #00856f);
  background: var(--color-bg-alt, #f8f9f9);
  border-top: 1px solid var(--color-border, #e0e3e3);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.05em;
}

.c-btn__column::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.c-list__link--column:hover .c-btn__column {
  background: var(--color-secondary, #00856f);
  color: var(--color-white, #fff);
}

.c-list__link--column:hover .c-btn__column::after {
  transform: rotate(-45deg) translateX(2px);
}

/* ===========================================
   2. 一覧ページ: セクション見出し改善
   =========================================== */

/* ページヘッダー「コラム」帯 — 他ページと統一（下線なし） */
.c-headingsub__box--column {
  position: relative;
}

/* ===========================================
   3. サイドバー改善
   =========================================== */
/* サイドバー: カテゴリーはスクロールアウト、オススメ記事で固定 */
/* topを負の値にすることで、カテゴリー分を上にスクロールさせてからsticky */
.p-contents__right {
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

@media (min-width: 960px) {
  .p-contents__right--column {
    /* カテゴリーセクション（約340px）分を上にはみ出させる */
    top: -280px;
  }
}

/* サイドバー: カテゴリナビ */
.p-column__item--list-item {
  margin-bottom: 6px;
}

.p-column__link--list-link {
  display: block;
  color: var(--color-text, #2a2d2d) !important;
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--color-bg-alt, #f8f9f9);
  border: 1.5px solid var(--color-border, #e0e3e3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.p-column__link--list-link:visited {
  color: var(--color-text, #2a2d2d) !important;
}

.p-column__link--list-link:hover {
  background: var(--color-secondary, #00856f) !important;
  color: var(--color-white, #fff) !important;
  border-color: var(--color-secondary, #00856f);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 133, 111, 0.2);
}

.p-column__link--list-current {
  background: var(--color-secondary, #00856f) !important;
  color: var(--color-white, #fff) !important;
  border-color: var(--color-secondary, #00856f) !important;
  pointer-events: none;
}

.p-column__link--list-current:visited {
  color: var(--color-white, #fff) !important;
}

/* サイドバー: 記事リスト */
.c-list__side {
  border-bottom-color: var(--color-border, #e0e3e3) !important;
  transition: background 0.2s ease;
  padding: 12px 0 !important;
}

.c-list__side:hover {
  background: var(--color-bg-alt, #f8f9f9);
}

.c-list__heading--side {
  font-weight: 600 !important;
}

/* サイドバーの見出し */
.c-aside__heading {
  background: linear-gradient(135deg, var(--color-secondary, #00856f), #00a293) !important;
}

/* ===========================================
   4. ページネーション改善
   =========================================== */
.c-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 0;
}

.c-pager__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text, #2a2d2d);
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, #e0e3e3);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  transition: all 0.2s ease;
}

.c-pager__item:hover {
  background: var(--color-secondary, #00856f);
  color: var(--color-white, #fff);
  border-color: var(--color-secondary, #00856f);
}

.c-pager__item--current {
  background: var(--color-secondary, #00856f);
  color: var(--color-white, #fff);
  border-color: var(--color-secondary, #00856f);
  pointer-events: none;
}

.c-pager__item--prev,
.c-pager__item--next {
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

/* ===========================================
   5. 記事ページ改善（column-premium.css の補完）
   =========================================== */

/* 記事内テーブル改善 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 24px;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--color-border, #e0e3e3);
}

.table.is-bordered {
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.table.is-bordered thead th {
  background: linear-gradient(135deg, #f0f4f8, #e8ecf0);
  font-weight: 700;
  font-size: 1.4rem;
  white-space: nowrap;
  color: var(--color-text, #2a2d2d);
}

.table.is-bordered td {
  font-size: 1.4rem;
  line-height: 1.6;
  vertical-align: top;
}

.table.is-striped tbody tr:nth-child(even) {
  background: var(--color-bg-alt, #f8f9f9);
}

/* 記事内 mark タグ */
mark {
  background: linear-gradient(transparent 60%, rgba(83, 179, 50, 0.2) 60%);
  padding: 0 2px;
}

/* 記事内リンク改善 */
.p-contents__left--column a:not(.c-list__link):not(.c-btn__column):not([class*="cta"]):not([class*="p-gnav"]):not([class*="c-btn"]) {
  color: var(--color-link, #0870b7);
  text-decoration-color: rgba(8, 112, 183, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.p-contents__left--column a:not(.c-list__link):not(.c-btn__column):not([class*="cta"]):not([class*="p-gnav"]):not([class*="c-btn"]):hover {
  color: var(--color-link-hover, #0a5c94);
  text-decoration-color: currentColor;
}

/* ===========================================
   6. 読書プログレスバー（記事ページ用）
   =========================================== */
.p-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary, #53b332), var(--color-secondary, #00856f));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ===========================================
   7. スクロールアニメーション
   =========================================== */
.c-list__item--column {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-list__item--column.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* スタガー: nth-child で自動付与 */
.c-list__item--column:nth-child(2n) {
  transition-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .c-list__item--column {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================================
   8. SNSシェアボタン改善
   =========================================== */
.p-column__share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border, #e0e3e3);
  margin: 40px 0 0;
}

.p-column__share-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-muted, #555);
  white-space: nowrap;
}

.p-column__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.p-column__share-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.p-column__share-btn img {
  width: 100%;
  height: 100%;
}

/* ===========================================
   9. 関連記事セクション改善
   =========================================== */
.p-column__related {
  margin: 48px 0 0;
  padding: 32px 0 0;
  border-top: 2px solid var(--color-border, #e0e3e3);
}

.p-column__related-heading {
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: 2.0rem;
  font-weight: 700;
  color: var(--color-text, #2a2d2d);
  margin: 0 0 24px;
  padding: 0 0 12px;
  border-bottom: 3px solid var(--color-secondary, #00856f);
  display: inline-block;
}

/* ===========================================
   10. CTA改善
   =========================================== */
.c-btn__cv {
  position: relative;
  overflow: hidden;
}

/* ===========================================
   11. フッター前の「記事一覧に戻る」ボタン
   =========================================== */
.p-column__back {
  display: flex;
  justify-content: center;
  margin: 40px 0 0;
}

.p-column__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-secondary, #00856f);
  background: var(--color-white, #fff);
  border: 2px solid var(--color-secondary, #00856f);
  border-radius: var(--radius-full, 999px);
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.p-column__back-link:hover {
  background: var(--color-secondary, #00856f);
  color: var(--color-white, #fff);
}

.p-column__back-link::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ===========================================
   12. 印刷対応
   =========================================== */
@media print {
  .p-reading-progress,
  .p-sticky-cta,
  .p-contents__right,
  .c-btn__cv,
  .p-column__share {
    display: none !important;
  }

  .c-list__link--column {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
