/* ==========================================================================
   column-theme — 一覧・詳細の追加スタイル
   ========================================================================== */

.cl-main {
  min-height: 40vh;
}

.cl-page,
.cl-single {
  padding: 40px 0 80px;
}

.cl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tp-text);
}

.cl-breadcrumb a {
  color: var(--tp-text);
  text-decoration: none;
}

.cl-breadcrumb a:hover {
  color: var(--tp-pink);
}

.cl-breadcrumb__sep {
  opacity: 0.45;
}

.cl-page__head {
  margin-bottom: 36px;
  text-align: center;
}

.cl-page__title {
  margin: 4px 0 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  color: var(--tp-text-dark);
  letter-spacing: 0.02em;
}

.cl-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cl-card {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(74, 69, 66, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(74, 69, 66, 0.12);
}

.cl-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.cl-card__media {
  aspect-ratio: 1200 / 630;
  background: var(--tp-cream);
  overflow: hidden;
}

.cl-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(233, 76, 118, 0.18), rgba(242, 178, 127, 0.28));
}

.cl-card__body {
  padding: 20px 22px 24px;
}

.cl-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.cl-card__category {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(233, 76, 118, 0.12);
  color: var(--tp-pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

a.cl-card__category:hover {
  background: rgba(233, 76, 118, 0.2);
}

.cl-card__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(74, 69, 66, 0.7);
}

.cl-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--tp-text-dark);
}

.cl-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.cl-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--tp-gradient-solid);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.cl-more a:hover {
  opacity: 0.88;
}

.cl-empty {
  margin: 48px 0;
  text-align: center;
  font-weight: 700;
  color: rgba(74, 69, 66, 0.7);
}

/* ----- Staff ----- */

/* 直前の .cl-page が下 80px を持つため、上の余白は付けない */
.cl-staff {
  padding: 0 0 80px;
}

/* ----- Single ----- */

.cl-single__head {
  margin-bottom: 28px;
}

.cl-single__title {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--tp-text-dark);
}

.cl-single__thumb {
  margin: 0 0 32px;
  aspect-ratio: 1200 / 630;
  border-radius: 16px;
  overflow: hidden;
}

.cl-single__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cl-single__content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--tp-text);
}

.cl-single__content > *:first-child {
  margin-top: 0;
}

.cl-single__content h2,
.cl-single__content h3 {
  margin: 2em 0 0.6em;
  font-weight: 900;
  color: var(--tp-text-dark);
  line-height: 1.5;
}

.cl-single__content h2 {
  font-size: 30px;
  width: fit-content;
  max-width: 100%;
  padding: 0 0.1em;
  background: var(--tp-gradient-solid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cl-single__content h3 {
  font-size: 24px;
  padding-left: 0.55em;
  border-left: 4px solid var(--tp-pink);
}

.cl-single__content h4 {
  font-size: 20px;
  padding-left: 0.55em;
  border-left: 4px solid var(--tp-cream);
}

.cl-single__content h5 {
  font-size: 18px;
}

.cl-single__content h6 {
  font-size: 20px;
  padding-left: 0.55em;
  border-left: 4px solid var(--tp-cream);
}

.cl-single__content a {
  color: var(--tp-pink);
  transition: opacity 0.25s ease;

  &:hover {
    opacity: 0.7;
    text-decoration: none;
  }
}

.cl-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.cl-single__back {
  margin: 48px 0 0;
  text-align: center;
}

@media (max-width: 700px) {
  .cl-page,
  .cl-single {
    padding: 28px 0 56px;
  }

  .cl-card-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cl-card__title {
    font-size: 16px;
  }
}

/* ----- Table of Contents ----- */
.ez-toc-title-container {
  text-align: center;
  padding: 10px;
}

.ez-toc-title {
  font-weight: 700 !important;
}

.ez-toc-counter nav ul li a::before {
  color: var(--tp-pink) !important;
}

#ez-toc-container .ez-toc-js-icon-con {
  left: 0 !important;
}

div#ez-toc-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-shadow: none !important;
  border: 1px solid #eeeeee !important;
}

#ez-toc-container a.ez-toc-toggle {
  padding: 0 !important;
}

.wp-block-table td, 
.wp-block-table th {
  border: 1px solid #f0e6e0 !important;
}

.wp-block-table tr th {
  background: #FFEEF2 !important;
}

@media (max-width: 480px) {
  div#ez-toc-container {
    width: 100% !important;
    
  }
}
