/* Front page styles extracted from front-page-custom.php. */
/* ===== Global Styles ===== */
body {
  background-color: var(--ts-color-bg);
  color: var(--ts-color-ink);
}
.genre-map-entry {
  width: min(92%, 720px);
  margin: 0 auto 26px;
}
.genre-map-entry a {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(247, 219, 171, .9), rgba(255, 255, 255, .94) 52%, rgba(230, 237, 244, .9)),
    var(--ts-color-surface);
  border: 1px solid rgba(2, 35, 80, .12);
  color: var(--ts-color-ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(2, 35, 80, .045);
  transition: transform .18s ease, box-shadow .18s ease;
}
.genre-map-entry a:hover {
  transform: none;
  box-shadow: 0 10px 26px rgba(2, 35, 80, .065);
}
.genre-map-entry__eyebrow {
  color: var(--ts-color-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.genre-map-entry strong {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.35;
}
.genre-map-entry span:last-child {
  color: var(--ts-color-muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ===== Featured Editorial Block ===== */
.ts-front-featured {
  width: min(96%, 1120px);
  margin: 30px auto 34px;
  border-top: 3px solid var(--ts-color-ink);
}
.ts-front-featured__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 16px;
  border-bottom: 1px solid rgba(2, 35, 80, .16);
}
.ts-front-featured__eyebrow {
  margin: 0 0 4px;
  color: var(--ts-color-red);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.ts-front-featured h1 {
  margin: 0;
  color: var(--ts-color-ink);
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-weight: 900;
  line-height: 1.18;
}
.ts-front-featured__count {
  margin: 0;
  color: var(--ts-color-muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.ts-front-featured__count #count-number {
  color: var(--ts-color-ink);
  font-size: 1rem;
}
.ts-front-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, .92fr);
  gap: 0;
  border-bottom: 1px solid rgba(2, 35, 80, .16);
}
.ts-featured-card {
  min-width: 0;
  border-top: 1px solid rgba(2, 35, 80, .12);
}
.ts-featured-card:first-child {
  border-top: 0;
}
.ts-featured-card--lead {
  grid-row: span 5;
  padding-right: 28px;
  border-right: 1px solid rgba(2, 35, 80, .16);
}
.ts-featured-card__link {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
}
.ts-featured-card--lead .ts-featured-card__link {
  align-content: start;
  padding: 22px 0 24px;
}
.ts-featured-card:not(.ts-featured-card--lead) .ts-featured-card__link {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0 14px 22px;
}
.ts-featured-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edf1f5;
}
.ts-featured-card:not(.ts-featured-card--lead) .ts-featured-card__media {
  aspect-ratio: 1 / 1;
}
.ts-featured-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}
.ts-featured-card__link:hover .ts-featured-card__media img {
  transform: scale(1.018);
  filter: saturate(1.04);
}
.ts-featured-card__body {
  display: grid;
  align-content: start;
  gap: 7px;
}
.ts-featured-card__title {
  color: var(--ts-color-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-featured-card--lead .ts-featured-card__title {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.18;
  -webkit-line-clamp: 3;
}
.ts-featured-card--interview .ts-featured-card__title {
  -webkit-line-clamp: 3;
}
.ts-featured-card__subtitle {
  color: var(--ts-color-muted);
  font-size: .88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-featured-card--lead .ts-featured-card__subtitle {
  font-size: 1rem;
}
.ts-featured-card__date {
  color: #8793a3;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ===== Category Badge (cat-label) ===== */
.cat-label {
  position: relative;
  z-index: 2;
  margin-top: 0;
  margin-bottom: 8px;
  display: inline-block;
  color: var(--ts-color-surface) !important;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 9999px;
  max-width: 90%;
  text-decoration: none;
  white-space: normal;
  word-break: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* カテゴリIDごとの色分け (ヴィンテージ調) */
.cat-label-2  { background: var(--ts-color-gold) !important; } /* 楽曲レビュー */
.cat-label-91 { background: var(--ts-color-album) !important; } /* アルバムレビュー */
.cat-label-81 { background: var(--ts-color-artist) !important; } /* アーティスト解説 */
.cat-label-1002 { background: var(--ts-color-genre) !important; } /* ジャンル解説 */
.cat-label-default { background: var(--ts-color-neutral) !important; } /* その他 */

/* ===== Card Grid ===== */
#post-cards {
  display: block;
  width: min(96%, 1080px);
  margin: 0 auto 2.6rem;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  transition: transform .24s ease;
}
.card-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1f5;
}
.tab-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}
.tab-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--ts-color-surface);
  border-radius: 8px;
  color: #4d6178;
  text-align: center;
}
.card {
  background-color: var(--ts-color-surface);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 14px;
  border: 1px solid rgba(2, 35, 80, .1);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease;
}
.card:hover {
  transform: none;
  border-color: rgba(201, 79, 79, .26);
  box-shadow: none;
}
.card:hover .card-thumbnail img {
  transform: scale(1.018);
}
.card-link-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
}
/* Keep card internals layered while the transparent overlay handles full-card clicks. */
.card * {
  position: relative;
  z-index: 2;
}
.card .card-link-overlay {
  z-index: 5;
}
.card > .cat-label {
  align-self: flex-start;
  margin: 12px 0 0;
  max-width: 100%;
}
.card-artist,
.card-title {
  margin: 10px 0 0;
  color: var(--ts-color-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a {
  color: inherit;
  text-decoration: none;
}
.card-subtitle {
  min-height: 2.9em;
  margin: 6px 0 0;
  color: var(--ts-color-muted);
  font-size: .86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-date {
  margin: auto 0 0;
  padding-top: 12px;
  color: #8a97a6;
  font-size: .72rem;
  line-height: 1.3;
}

/* ===== Filter Tabs (Inverted Colors) ===== */
.ts-front-section-heading {
  width: min(96%, 1080px);
  margin: 0 auto 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.ts-front-section-heading p {
  margin: 0;
  color: var(--ts-color-red);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.ts-front-section-heading h2 {
  margin: 0;
  color: var(--ts-color-ink);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.2;
}
.filter-tabs {
  width: min(96%, 1080px);
  margin: 0 auto 18px;
  border-bottom: 1px solid rgba(2, 35, 80, .14);
}
.filter-tabs ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  gap: 22px;
  list-style: none;
}
.filter-tabs li {
  position: relative;
  color: var(--ts-color-muted);
  font-weight: 800;
  padding: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s;
}
.filter-tabs li.active {
  color: var(--ts-color-ink);
}
.filter-tabs li.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--ts-color-red);
}

/* ===== Load More Button ===== */
.load-more-button {
  display: block;
  margin: 2em auto;
  padding: 8px 24px;
  background-color: transparent;
  color: #112536;
  border: none;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  text-transform: lowercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-button:hover {
  text-decoration: underline;
}

/* ===== Responsive & Mobile Adjustments ===== */
@media screen and (max-width: 768px) {
  .ts-front-featured {
    width: 100%;
    margin: 20px 0 28px;
    border-top-width: 2px;
  }
  .ts-front-featured__header {
    align-items: flex-start;
    padding: 14px 14px 12px;
  }
  .ts-front-featured__count {
    padding-top: 3px;
    font-size: .72rem;
  }
  .ts-front-featured__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 14px 16px;
    overflow: visible;
    border-bottom: 1px solid rgba(2, 35, 80, .16);
  }
  .ts-featured-card,
  .ts-featured-card--lead {
    width: 100%;
    border-top: 0;
    border-bottom: 1px solid rgba(2, 35, 80, .12);
    border-right: 0;
    padding-right: 0;
  }
  .ts-featured-card:last-child {
    border-bottom: 0;
  }
  .ts-featured-card:first-child .ts-featured-card__link {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 16px;
  }
  .ts-featured-card:first-child .ts-featured-card__media {
    aspect-ratio: 16 / 10;
  }
  .ts-featured-card:first-child .ts-featured-card__title {
    font-size: 1.18rem;
    line-height: 1.28;
  }
  .ts-featured-card__link,
  .ts-featured-card--lead .ts-featured-card__link,
  .ts-featured-card:not(.ts-featured-card--lead) .ts-featured-card__link {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 0;
  }
  .ts-featured-card__media,
  .ts-featured-card:not(.ts-featured-card--lead) .ts-featured-card__media {
    aspect-ratio: 1 / 1;
  }
  .ts-featured-card__title,
  .ts-featured-card--lead .ts-featured-card__title {
    font-size: 1rem;
    line-height: 1.32;
    -webkit-line-clamp: 3;
  }
  .ts-featured-card__subtitle,
  .ts-featured-card--lead .ts-featured-card__subtitle {
    font-size: .8rem;
  }
  .tab-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 10px;
  }
  .cat-label {
    font-size: .66rem;
    max-width: 90%;
  }
  .card {
    padding: 10px;
  }
  .card > .cat-label {
    margin-top: 9px;
  }
  .card-artist,
  .card-title {
    margin-top: 8px;
    font-size: .84rem;
    line-height: 1.42;
  }
  .card-subtitle {
    min-height: 2.8em;
    margin-top: 4px;
    font-size: .74rem;
    line-height: 1.4;
  }
  .card-date {
    padding-top: 9px;
    font-size: .66rem;
  }
  .filter-tabs ul {
    gap: 16px;
    padding: 0 10px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .ts-front-section-heading {
    width: auto;
    margin: 0 14px 12px;
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  .filter-tabs li {
    padding-bottom: 10px;
    font-size: 0.78rem;
  }
}
@media screen and (min-width: 769px) {
  .ts-featured-card:nth-child(2) {
    border-top: 0;
  }
}

/* TOPの対談カードは投稿タイトルを全文表示する。 */
.card .card-interview-title {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}
