/* コラムページ専用CSS - HTMLクラス名に合わせて修正 */

/* パンくずナビゲーション */
.column-breadcrumb {
  background: #f8f9fa;
  padding: 120px 0 20px;
}

.column-breadcrumb .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  padding: 0;
}

.breadcrumb-list li {
  position: relative;
}

.breadcrumb-list li:not(:last-child)::after {
  content: ">";
  margin-left: 10px;
  color: #999;
  font-weight: normal;
}

.breadcrumb-list a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
  color: #5a67d8;
}

.breadcrumb-list li:last-child {
  color: #333;
  font-weight: 500;
}

/* メインコンテンツ */
.column-page {
  background: white;
  padding: 40px 0 100px;
}

.column-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.column-article {
  max-width: 800px;
  margin: 0 auto;
}

/* 記事ヘッダー */
.post-header {
  margin-bottom: 40px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.post-date {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.post-category {
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #333 0%, #667eea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-lead {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
}

/* アイキャッチ画像 */
.post-image {
  margin: 40px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* コラム一覧ページ */
.column-list-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.column-list-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px;
  background: linear-gradient(135deg, #333 0%, #667eea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.column-list-header p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

.column-list {
  max-width: 1000px;
  margin: 0 auto;
}

/* カード内の日付＋カテゴリ */
.related-content .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-meta .post-category {
  font-size: 0.75rem;
  padding: 3px 10px;
}

@media (max-width: 768px) {
  .column-list-header h1 {
    font-size: 1.8rem;
  }
  .column-list-header p {
    font-size: 1rem;
  }
}

/* 目次（TOC） */
.toc {
  background: #f8f9fa;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 15px;
  padding: 25px 30px;
  margin: 0 0 50px;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
}

.toc-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.3rem;
  background: #667eea;
  border-radius: 2px;
}

.toc-list {
  list-style: none;
  counter-reset: toc-counter;
  margin: 0;
  padding: 0;
}

.toc-list li {
  counter-increment: toc-counter;
  margin: 0;
  border-bottom: 1px dashed rgba(102, 126, 234, 0.2);
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px;
  color: #444;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.toc-list a::before {
  content: counter(toc-counter);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #667eea;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50%;
  transform: translateY(3px);
}

.toc-list a:hover {
  color: #667eea;
  text-decoration: underline;
}

/* 見出しのアンカー位置（固定ヘッダー対策） */
.post-content h2 {
  scroll-margin-top: 100px;
}

/* 記事本文 */
.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.post-content section {
  margin-bottom: 50px;
}

.post-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
  border-left: 4px solid #667eea;
}

.post-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin: 30px 0 15px;
}

.post-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 25px 0 12px;
}

.post-content p {
  margin-bottom: 20px;
  color: #444;
}

.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 8px;
  color: #444;
}

.post-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #555;
  border-radius: 0 10px 10px 0;
}

/* ティップスボックス */
.tips-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
}

.tips-box h4 {
  color: #667eea;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.tips-box ul {
  margin: 0;
  padding-left: 20px;
}

.tips-box li {
  margin-bottom: 10px;
  color: #333;
}

/* CTAセクション */
.article-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  margin: 60px 0;
  color: white;
}

.cta-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cta-button.primary {
  background: white;
  color: #667eea;
}

.cta-button.primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button.secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

/* 関連記事セクション */
.related-articles {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid #f0f0f0;
}

.related-articles .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: #333;
  font-weight: 600;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.related-card {
  background: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.related-image {
  height: 180px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 25px;
}

.related-date {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.related-title {
  margin: 10px 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.related-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-title a:hover {
  color: #667eea;
}

.related-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .column-breadcrumb {
    padding: 120px 0 15px;
  }
  
  .breadcrumb-list {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .column-page {
    padding: 20px 0 60px;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .post-lead {
    font-size: 1rem;
  }

  .post-image img {
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
    padding-left: 15px;
  }

  .post-content h3 {
    font-size: 1.2rem;
  }

  .article-cta {
    padding: 35px 25px;
  }

  .cta-content h3 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .tips-box {
    padding: 20px;
  }

  .post-meta {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 1.5rem;
  }

  .post-content h2 {
    font-size: 1.3rem;
  }

  .article-cta {
    padding: 25px 20px;
  }

  .tips-box {
    padding: 15px;
  }

  .related-content {
    padding: 20px;
  }
}