/* コラムページ専用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: #1a1aff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
  color: #0000cc;
}

.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: #1a1aff;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--c-black);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.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: 900;
  color: var(--c-black);
  margin: 0 0 15px;
  letter-spacing: -0.02em;
}

.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;
  }
}

/* カテゴリータブ（コラム一覧） */
.column-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.column-tab {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  background: #fff;
  border: 1px solid rgba(26, 26, 255, 0.35);
  border-radius: 30px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.column-tab:hover {
  border-color: #1a1aff;
  color: #1a1aff;
}

.column-tab.is-active {
  color: #fff;
  background: var(--c-primary);
  border-color: var(--c-black);
  box-shadow: 3px 3px 0 var(--c-black);
}

@media (max-width: 768px) {
  .column-tabs {
    gap: 8px;
    margin-bottom: 30px;
  }
  .column-tab {
    font-size: 0.82rem;
    padding: 7px 15px;
  }
}

/* 目次（TOC） */
.toc {
  display: block;
  background: #f8f9fa;
  border: 1px solid rgba(26, 26, 255, 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: #1a1aff;
  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(26, 26, 255, 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: #1a1aff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50%;
  transform: translateY(3px);
}

.toc-list a:hover {
  color: #1a1aff;
  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 #1a1aff;
}

.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 #1a1aff;
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #555;
  border-radius: 0 10px 10px 0;
}

/* 記事内テーブル */
.post-content table,
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
  background: var(--c-white);
  border: 2px solid var(--c-black);
  box-shadow: var(--shadow-flat);
}

.post-content th,
.post-content td,
.price-table th,
.price-table td {
  border: 1px solid #dcdcd5;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.post-content thead th,
.price-table thead th {
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  border-color: var(--c-primary);
}

.post-content tbody tr:nth-child(even),
.price-table tbody tr:nth-child(even) {
  background: rgba(26, 26, 255, 0.045);
}

.post-content tbody tr:hover,
.price-table tbody tr:hover {
  background: rgba(26, 26, 255, 0.09);
}

/* 行見出し（tbody内の th）を使うテーブル向け */
.post-content tbody th,
.price-table tbody th {
  background: rgba(26, 26, 255, 0.06);
  font-weight: 700;
  color: var(--c-black);
}

@media (max-width: 768px) {
  .post-content table,
  .price-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .post-content th,
  .post-content td,
  .price-table th,
  .price-table td {
    padding: 10px 12px;
  }
}

/* ティップスボックス */
.tips-box {
  background: #eef0ff;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius-md);
  padding: 25px;
  margin: 30px 0;
}

.tips-box h4 {
  color: #1a1aff;
  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: var(--c-primary);
  border: 2px solid var(--c-black);
  box-shadow: var(--shadow-flat-lg);
  border-radius: var(--radius-lg);
  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: #1a1aff;
}

.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: #1a1aff;
  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;
  /* auto-fill: 記事数が1〜2件でも空トラックを保持し、カード幅を3列時と同じに固定する
     （auto-fit だと空トラックが潰れてカードが引き伸ばされる） */
  grid-template-columns: repeat(auto-fill, 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 {
  display: block;
  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: #1a1aff;
}

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

/* カード全体をクリック可能にする（コラム一覧） */
.column-list .related-card {
  position: relative;
}

.column-list .related-card .related-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* レスポンシブ対応 */
@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;
  }
}

/* 記事下部の付録（関連記事＋編集部）
   旧・各記事HTMLのインラインstyleをここへ集約。今後の一括調整はこのセクションを編集してください。 */
.websi-appendix-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.websi-appendix {
  border-top: 1px solid #e2e6ea;
  padding-top: 24px;
}

.websi-appendix h2 {
  font-size: 1.15rem;
  color: #0000cc;
  margin: 0 0 14px;
}

.websi-appendix ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.websi-appendix li {
  margin: 0 0 14px;
}

.websi-appendix a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #1a1aff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.5;
}

.websi-appendix a img {
  flex-shrink: 0;
  width: 112px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e6ea;
}

.websi-appendix a:hover span {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .websi-appendix a {
    gap: 12px;
  }
  .websi-appendix a img {
    width: 88px;
    height: 56px;
  }
}

/* 「この記事について」ボックス */
.websi-editor {
  margin: 28px 0 42px;
  background: #eef0ff;
  border: 1px solid #c9caf7;
  border-radius: 8px;
  padding: 18px 20px;
}

.websi-editor p {
  margin: 0 0 8px;
}

.websi-editor p:nth-of-type(1) {
  font-size: 0.8rem;
  color: #0000cc;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.websi-editor p:nth-of-type(2) {
  font-weight: 700;
  margin: 0 0 8px;
}

.websi-editor p:nth-of-type(3) {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #333;
  margin: 0 0 10px;
}

.websi-editor p:nth-of-type(4) {
  margin: 0;
}

.websi-editor a {
  color: #1a1aff;
  font-weight: 600;
  text-decoration: none;
}
/* 記事内CTAボックス（各記事HTMLのインラインstyleから集約） */
.cta-box {
  background: #eef0ff;
  border: 1px solid #c9caf7;
  border-radius: 10px;
  padding: 24px 22px;
  margin: 1.8em 0;
}
.cta-box h3 {
  margin: 0 0 10px;
  color: #0000cc;
}
.cta-box p {
  margin: 0 0 16px;
}
.cta-box p:last-child {
  margin: 0;
}

/* 横スクロール可能なテーブルラッパー */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
