/* =============================================
   TOPIC DETAIL PAGE — topic-detail.css
   ============================================= */

/* ─── ヘッダーエリア（パンくず） ─── */
.td-header {
  padding: 20px 48px 0;
  background: #fff;
}

.td-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 400;
  color: #4a4a4a;
  letter-spacing: 1px;
}

.td-breadcrumb a {
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.td-breadcrumb a:hover {
  color: #000;
  text-decoration: underline;
}

.td-breadcrumb svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.td-breadcrumb span {
  color: #4a4a4a;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── 記事コンテナ ─── */
.td-article {
  background: #fff;
  padding: 20px 0 80px;
}

.td-article-inner {
  max-width: 1211px;
  margin: 0 auto;
  padding: 0 114px;
}

/* ─── 日付 ─── */
.td-meta {
  margin-bottom: 8px;
}

.td-date {
  font-size: 18px;
  font-weight: 400;
  color: #7d7d7d;
  letter-spacing: 0.5px;
  line-height: 1.8;
  display: block;
}

/* ─── タイトル ─── */
.td-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.6;
  margin: 0 0 24px;
  letter-spacing: 0.5px;
}

/* ─── ヒーロー画像 ─── */
.td-hero-image {
  width: 100%;
  margin-bottom: 36px;
  overflow: hidden;
  background: #d9d9d9;
}

.td-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ─── 本文 ─── */
.td-body {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  line-height: 2.28;
  letter-spacing: 0.3px;
  margin-bottom: 60px;
}

.td-body p {
  margin: 0 0 1em;
}

.td-body p:last-child {
  margin-bottom: 0;
}

/* ─── 記事ナビゲーション ─── */
.td-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 30px 0 0;
  border-top: 1px solid #e8e8e8;
}

.td-nav a {
  font-size: 11px;
  font-weight: 400;
  color: #797979;
  text-decoration: underline;
  letter-spacing: 1.3px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.td-nav a:hover {
  color: #000;
}

.td-nav-list {
  color: #060725 !important;
  font-size: 11px !important;
}

.td-nav-prev,
.td-nav-next {
  position: relative;
}

/* ─── レスポンシブ ─── */
@media (max-width: 1200px) {
  .td-article-inner {
    padding: 0 60px;
  }
}

@media (max-width: 960px) {
  .td-article-inner {
    padding: 0 40px;
  }

  .td-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .td-header {
    padding: 16px 24px 0;
  }

  .td-article-inner {
    padding: 0 24px;
  }

  .td-title {
    font-size: 20px;
  }

  .td-date {
    font-size: 15px;
  }

  .td-body {
    font-size: 14px;
    line-height: 2;
  }

  .td-nav {
    gap: 30px;
  }
}

@media (max-width: 540px) {
  .td-header {
    padding: 14px 16px 0;
  }

  .td-article-inner {
    padding: 0 16px;
  }

  .td-title {
    font-size: 18px;
  }

  .td-date {
    font-size: 14px;
  }

  .td-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .td-nav a {
    font-size: 12px;
  }
}
