.blog__container, .section__container, .article__container, .article__main, .article__post { /* compatibility wrappers if used */ }
.article__post-ttl { font-size: 30px; font-weight: 700; letter-spacing:.01em; margin:0 0 16px; color: var(--primary-color); }
.article__post-ttl::after { content:""; display:block; width:180px; height:4px; background: var(--accent-color); border-radius:2px; margin-top:12px; }
.article__post-info { display:flex; gap:14px; align-items:center; color:#666; font-size:13px; margin:8px 0 20px; }
.article__post-tag { display:inline-block; background:#eef6f2; color: var(--primary-color); padding:4px 10px; border-radius:999px; font-weight:700; }
.article__post-date { color:#666; }
.article__post-thumb { margin: 16px 0 20px; }

/* アイキャッチ画像（サムネイル） */
.article-thumbnail {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 32px;
    overflow: hidden;
    border-radius: 8px;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
/* ===================================================
   コラム一覧ページスタイル
   =================================================== */

.column-archive {
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================
   ヒーローセクション
   =================================================== */
.column-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.column-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,117.3C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.column-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.column-hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* ===================================================
   メインコンテナ
   =================================================== */

/* ===================================================
   カテゴリーフィルター
   =================================================== */
.category-filter-section { margin-bottom: 40px; }
/* ヘッダー帯とカテゴリが被らないように上余白を確保 */
body.post-type-archive-column .column-container .container { padding-top: 48px; position: relative; z-index: 1; }
body.post-type-archive-column .category-filter-section { margin-top: 0; }

.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-tab {
    padding: 10px 24px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.filter-tab:hover {
    background: #275d46;
    color: white;
}

.filter-tab.active {
    background: #275d46;
    color: white;
    border-color: #275d46;
}

/* ===================================================
   記事グリッド
   =================================================== */
.column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.column-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.column-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.column-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #275d46;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.column-card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.column-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.column-card:hover .column-card-thumbnail img {
    transform: scale(1.05);
}

.column-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #275d46 0%, #569578 100%);
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.column-card-content {
    padding: 25px;
}

.column-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.column-card-arrow {
    color: #275d46;
    font-weight: 600;
}

/* ===================================================
   ページネーション
   =================================================== */
.column-pagination {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.column-pagination ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.column-pagination li {
    display: inline-block;
}

.column-pagination a,
.column-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
}

.column-pagination a:hover {
    background: #275d46;
    border-color: #275d46;
    color: white;
}

.column-pagination .current {
    background: #275d46;
    border-color: #275d46;
    color: white;
}

/* ===================================================
   注目記事セクション
   =================================================== */
.featured-section {
    margin: 80px 0;
}

.download-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
    display: block;
    text-align: center;
    color: #1a4d3a;
}

.section-title-icon {
    display: none; /* アイコン削除 */
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.featured-card a {
    text-decoration: none;
    color: inherit;
}

.featured-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f0f0f0;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-thumbnail img {
    transform: scale(1.05);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #569578 0%, #275d46 100%);
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-content time {
    font-size: 12px;
    color: #999;
}

/* ===================================================
   資料ダウンロードセクション
   =================================================== */
.download-section {
    margin: 80px 0;
    background: #f8faf9;
    padding: 60px 40px;
    border-radius: 12px;
}

.download-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    margin-top: 40px;
    overflow-x: auto;
}

.download-grid .download-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 320px;
}

.download-card {
    background: #ffffff;
    border: 1px solid #e8ebe9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.download-card:hover {
    box-shadow: 0 8px 30px rgba(26, 77, 58, 0.12);
    transform: translateY(-5px);
    border-color: #569578;
}

.download-thumbnail {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.download-content {
    padding: 25px;
}

.download-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #1a4d3a;
}

.download-content p {
    font-size: 0.875rem;
    color: #5a6a62;
    margin-bottom: 20px;
    line-height: 1.7;
}
/* おすすめ資料の下線・ボーダーを無効化（念のため） */
body.post-type-archive-column .download-section .download-content h3,
body.post-type-archive-column .download-section .download-content p,
body.post-type-archive-column .download-section .download-content a { 
    text-decoration: none; 
    border-bottom: none; 
}

.download-button {
    display: inline-block;
    background: #1a4d3a;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-card:hover .download-button {
    background: #275d46;
    transform: translateX(3px);
}

/* ===================================================
   レスポンシブ
   =================================================== */
@media (max-width: 1024px) {
    .column-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-grid {
        flex-wrap: wrap;
    }
    
    .download-grid .download-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .column-hero-title {
        font-size: 32px;
    }
    
    .column-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        flex-direction: column;
    }
    
    .download-grid .download-card {
        flex: 1 1 100%;
        min-width: unset;
    }
    
    .download-section {
        padding: 40px 25px;
    }
    
    .download-thumbnail {
        height: 160px;
        font-size: 18px;
    }
    
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px; /* for scrollbar */
    }
    .filter-tab {
        flex-shrink: 0;
    }
}

/* ========================================
   コラムページ Page Header（統一デザインを継承）
   main.cssの統一スタイルを使用
======================================== */
/* コラムページ専用の調整は不要 - main.cssの統一デザインが適用されます */

/* Column archive specific spacing below the header */
body.post-type-archive-column .page-header { margin-bottom: 40px; }
body.post-type-archive-column .category-filter-section { margin-top: 10px; }

@media (max-width: 768px) {
  body.post-type-archive-column .page-header { margin-bottom: 24px; }
}

/* ===================================================
   シングル（各記事）
   =================================================== */
body.single-column .page-header { margin-top: var(--header-h); }
body.admin-bar.single-column .page-header { margin-top: calc(var(--header-h) + var(--adminbar-h)); }
.column-breadcrumbs { padding: 16px 0; }
.single-column .column-breadcrumbs { margin-top: var(--header-h); }
body.admin-bar.single-column .column-breadcrumbs { margin-top: calc(var(--header-h) + var(--adminbar-h)); }
.single-column .page-content { padding-top: var(--header-h); }
body.admin-bar.single-column .page-content { padding-top: calc(var(--header-h) + var(--adminbar-h)); }
.column-breadcrumbs .container { padding: 0 20px; }
.column-breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.column-breadcrumbs a:hover { text-decoration: underline; }
.column-breadcrumbs span { color: var(--text-secondary); margin: 0 6px; }
.column-breadcrumbs .current { color: var(--text-primary); }
.column-single-header { margin: 10px 0 20px; }
.article-title { font-size: 34px; font-weight: 800; letter-spacing: .01em; margin: 0 0 16px; position: relative; }
.article-title::after { content: ""; display:block; width: 180px; height: 4px; background: var(--accent-color); border-radius: 2px; margin-top: 12px; }
.article-meta { display:flex; gap: 14px; align-items:center; color: #666; font-size: 13px; margin-top: 8px; }
.article-meta .meta-cat { display:inline-block; background:#eef6f2; color: var(--primary-color); padding: 4px 10px; border-radius: 999px; text-decoration:none; font-weight:700; }
.article-meta .meta-date { color:#666; }
.single-column .page-content .container { padding-top: 28px; }
/* コラムページ専用の2カラムレイアウト - 優先度を上げて確実に適用 */
.single-column .blog-content { 
    display: grid !important; 
    grid-template-columns: minmax(0,1fr) 340px !important; 
    gap: 50px !important; 
    align-items: start !important; 
}
.blog-main { background: transparent; border: none; border-radius: 0; box-shadow: none; padding: 0; }
.blog-main { grid-column: 1; }
.column-sidebar { grid-column: 2; position: sticky; top: var(--header-h); }
body.admin-bar .column-sidebar { top: calc(var(--header-h) + var(--adminbar-h)); }
/* 実際のテンプレートでは .blog-sidebar が出力されるため両対応にする */
.single-column .blog-sidebar { 
    grid-column: 2 !important; 
    position: sticky; 
    top: var(--header-h); 
    display: flex !important; 
    flex-direction: column; 
    gap: 20px; 
}
body.admin-bar .single-column .blog-sidebar { top: calc(var(--header-h) + var(--adminbar-h)); }
.article-content { font-size: 16px; line-height: 1.9; color: #1a1a1a; }

/* 記事コンテンツ内の画像を幅制限 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 4px;
}

.article-content figure {
    max-width: 100%;
    margin: 20px 0;
}

.article-content figure img {
    margin: 0;
}
/* ブログ用カラーマッピング（既存テーマ変数に追従） */
.single-column { --blog-primary: var(--primary-color); --blog-secondary: var(--primary-color); --blog-accent: var(--accent-color); }
/* 見出し（指定デザイン） */
.single-column .article-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 60px 0 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--blog-accent);
  line-height: 1.35;
  scroll-margin-top: var(--header-h);
}
.single-column .article-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 40px 0 20px;
  padding-left: 15px;
  border-left: 4px solid var(--blog-primary);
  line-height: 1.4;
  scroll-margin-top: var(--header-h);
}
.single-column .article-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--blog-accent);
  line-height: 1.5;
}
.article-content p { margin: 0 0 16px; }
.article-content ul { margin: 0 0 16px 1.2em; }
.video-container { position: relative; padding-top: 56.25%; margin: 16px 0; }
.video-container iframe, .video-container video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-size: 13px; color: #666; margin-bottom: 20px; }
.data-section { margin: 20px 0 30px; }
.data-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.data-item { background: #f7f7f7; border-radius: 8px; padding: 16px; text-align: center; }
.data-number { display: block; font-size: 24px; font-weight: 800; color: var(--primary-color); }
.data-label { display: block; font-size: 12px; color: #666; margin-top: 6px; }
.info-box { background: #f0f7f4; border-left: 4px solid var(--accent-color); padding: 16px; border-radius: 4px; margin: 16px 0 20px; }
.inline-related { background: #f7f7f7; border-radius: 6px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.inline-related-label { font-size: 12px; color: var(--primary-color); font-weight: 700; }
.inline-related-link { text-decoration: none; color: var(--primary-color); border-bottom: 1px dashed var(--accent-color); }
.faq-section { margin: 40px 0; }
.faq-item { border: 1px solid #e6ece9; border-radius: 10px; padding: 14px 16px; margin: 12px 0; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.faq-question { font-size: 18px; margin: 0 0 10px; color: var(--primary-color); }
.faq-answer { font-size: 14px; color: #333; }
.author-box { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: center; background: #f7f7f7; border-radius: 8px; padding: 20px; margin: 30px 0; }
.author-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--primary-color); color: #fff; display:flex; align-items:center; justify-content:center; font-weight: 800; font-size: 36px; }
.author-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.author-info .author-name { margin: 0; font-size: 18px; font-weight: 700; color: var(--primary-color); }
.author-info .author-title { margin: 0; font-size: 14px; color: #666; font-weight: 600; }
.author-info .author-description { margin: 0; font-size: 14px; line-height: 1.7; }

/* ===================================================
   Article content utility: content-box / green-list
   管理画面挿入HTML（枠付きボックスと箇条書き）
   =================================================== */
.single-column .article-content .content-box {
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    background: rgba(86, 149, 120, 0.02);
    padding: 25px 30px;
    margin: 30px 0;
    position: relative;
    transition: all 0.3s ease;
}

.single-column .article-content .content-box:hover {
    border-color: var(--primary-color);
    background: rgba(86, 149, 120, 0.05);
    box-shadow: 0 4px 15px rgba(39, 93, 70, 0.1);
}

.single-column .article-content .box-title {
    background: var(--accent-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    top: -10px;
}

.single-column .article-content .green-list { list-style: none; margin: 0; padding: 0; }

.single-column .article-content .green-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.single-column .article-content .green-list li:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.single-column .article-content .green-list li::before {
    content: "\25CF"; /* ● */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.single-column .article-content .green-list li:hover::before { color: var(--primary-color); }

.single-column .article-content .green-list.checkmark li::before {
    content: "\2713"; /* ✓ */
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.single-column .article-content .green-list.arrow li::before {
    content: "\25B6"; /* ▶ */
    font-size: 0.8rem;
    color: var(--accent-color);
}

.single-column .article-content .green-list.checkmark li:hover::before,
.single-column .article-content .green-list.arrow li:hover::before { color: var(--primary-color); }

@media (max-width: 768px) {
  .single-column .article-content .content-box { padding: 20px; }
  .single-column .article-content .box-title { top: 0; }
}

@media (max-width: 1024px) {
  .single-column .blog-content { grid-template-columns: 1fr !important; }
  .column-sidebar { position: static; }
  .single-column .blog-sidebar { position: static; }
  .data-grid { grid-template-columns: 1fr; }
  
  .article-thumbnail {
    margin: 20px 0 24px;
  }
  
  .author-box {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  
  .author-avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }
  
  .author-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .author-info .author-name {
    font-size: 16px;
  }
  
  .author-info .author-title {
    font-size: 13px;
  }
}

/* =============================
   Sidebar widgets (single column)
============================= */
.blog-sidebar .sidebar-widget { background:#fff; border:1px solid #e8ecea; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.05); padding:18px; }
.blog-sidebar .sidebar-cta-widget { background: transparent; border: none; box-shadow: none; padding: 0; }
.blog-sidebar .widget-title { font-size:16px; font-weight:700; color: var(--primary-color); margin:0 0 12px; padding-bottom:8px; border-bottom:1px solid #eef2f0; }

/* 新着記事（popular） */
.popular-posts { display:flex; flex-direction:column; gap:10px; }
.popular-item { display:flex; gap:12px; align-items:flex-start; padding:8px 0; border-bottom:1px dashed #e6ece9; }
.popular-item:last-child { border-bottom:none; }
.popular-rank { width:28px; height:28px; border-radius:50%; background: var(--accent-color); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:0 0 28px; }
.popular-content { flex:1; }
.popular-title { margin:0 0 4px; font-size:14px; line-height:1.4; }
.popular-title a { color:#1a1a1a; text-decoration:none; }
.popular-title a:hover { color: var(--primary-color); }
.popular-meta time { font-size:12px; color:#666; }

/* カテゴリ */
.category-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.category-list a { display:flex; justify-content:space-between; align-items:center; gap:10px; background:#f7f7f7; color:#333; text-decoration:none; padding:10px 12px; border-radius:8px; }
.category-list a:hover { background:#eef6f2; color: var(--primary-color); }
.category-list a span { color:#666; font-size:12px; }

/* 目次（サイドバー） */
.toc-nav { 
  max-height: 400px; 
  overflow-y: auto; 
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) #f0f0f0;
}

.toc-nav::-webkit-scrollbar {
  width: 6px;
}

.toc-nav::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { display: block; color: #333; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 14px; line-height: 1.4; transition: all 0.2s ease; }
.toc-list a:hover { background: #eef6f2; color: var(--primary-color); }
.toc-list a.active { background: #eef6f2; color: var(--primary-color); font-weight: 600; }
.toc-list .toc-h2 { padding-left: 12px; }
.toc-list .toc-h3 { padding-left: 24px; font-size: 13px; }

/* 記事内目次（最初のH2の上に表示 - アコーディオン仕様） */
.article-toc-container {
  background: #f7f9f8;
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  padding: 0;
  margin: 40px 0;
  overflow: hidden;
}

.article-toc-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--accent-color);
}

.article-toc-title:hover {
  background: rgba(86, 149, 120, 0.05);
}

.article-toc-title::before {
  content: "📑";
  font-size: 24px;
  margin-right: 8px;
}

.article-toc-title::after {
  content: "▼";
  font-size: 14px;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.article-toc-container.toc-open .article-toc-title::after {
  transform: rotate(180deg);
}

.article-toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 28px;
}

.article-toc-container.toc-open .article-toc-content {
  max-height: 1000px;
  padding: 20px 28px 24px;
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-toc-list li {
  position: relative;
  padding-left: 0;
}

.article-toc-list a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.2s ease;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.article-toc-list a:hover {
  background: #eef6f2;
  color: var(--primary-color);
  border-color: var(--accent-color);
  transform: translateX(4px);
}

.article-toc-list .toc-h2 {
  font-weight: 600;
}

.article-toc-list .toc-h3 {
  padding-left: 28px;
  font-size: 14px;
  font-weight: 400;
}

.article-toc-list .toc-h3::before {
  content: "└";
  position: absolute;
  left: 14px;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .article-toc-title {
    font-size: 18px;
    padding: 16px 20px;
  }
  
  .article-toc-content {
    padding: 0 20px;
  }
  
  .article-toc-container.toc-open .article-toc-content {
    padding: 16px 20px 20px;
  }
  
  .article-toc-list a {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .article-toc-list .toc-h3 {
    padding-left: 24px;
    font-size: 13px;
  }
}

/* CTA */
.sidebar-cta-box { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color:#fff; border-radius:12px; padding:20px; text-align:center; }
.sidebar-cta-title { margin:0 0 8px; font-size:18px; font-weight:700; color:#fff; }
.sidebar-cta-box p { margin:0 0 12px; opacity:.95; }
.sidebar-cta-button { display:inline-block; background:#fff; color: var(--primary-color); text-decoration:none; padding:10px 16px; border-radius:6px; font-weight:700; }
.sidebar-cta-button:hover { background:#eef6f2; }

/* ========================================
   関連記事セクション（記事下部）
======================================== */
.related-posts {
  margin: 60px 0 40px;
  padding: 50px 0;
  background: #f8faf9;
  border-radius: 12px;
}

.related-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin: 0 0 40px;
  position: relative;
  padding-bottom: 20px;
}

.related-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.related-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.related-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 200px;
}

.related-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(39, 93, 70, 0.15);
}

.related-thumbnail {
  width: 300px;
  min-width: 300px;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #275d46 0%, #569578 100%);
  position: relative;
  display: block;
  flex-shrink: 0;
}

.related-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-item:hover .related-thumbnail img {
  transform: scale(1.08);
}

.related-thumbnail span {
  color: #ffffff;
  font-size: 64px;
  font-weight: 700;
  opacity: 0.3;
}

.related-content {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  min-height: 200px;
}

.related-category {
  display: inline-block;
  background: #eef6f2;
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  align-self: flex-start;
}

.related-item-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary-color);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* タイトルのアンダーラインを無効化 */
  text-decoration: none !important;
  border-bottom: none !important;
}

.related-item-title::after {
  display: none !important;
}

.related-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.related-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.related-meta time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.related-meta time::before {
  content: '📅';
  font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .related-grid {
    padding: 0 30px;
  }
  
  .related-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .related-thumbnail {
    width: 260px;
    min-width: 260px;
    height: 180px;
  }
  
  .related-content {
    min-height: 180px;
  }
  
  .related-item-title {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .related-posts {
    margin: 40px 0 30px;
    padding: 40px 0;
  }
  
  .related-grid {
    gap: 20px;
    padding: 0 20px;
  }
  
  .related-title {
    font-size: 22px;
    margin-bottom: 24px;
  }
  
  .related-item {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }
  
  .related-thumbnail {
    width: 100%;
    min-width: 100%;
    height: 200px;
  }
  
  .related-content {
    padding: 20px;
    min-height: auto;
  }
  
  .related-item-title {
    font-size: 16px;
  }
  
  .related-excerpt {
    font-size: 13px;
  }
  
  .related-item:hover {
    transform: translateY(-5px);
  }
}

/* CTAセクション（記事下） */
.article-cta {
  margin: 60px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(39, 93, 70, 0.15);
  transition: all 0.3s ease;
}

.cta-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(39, 93, 70, 0.25);
}

.cta-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
}

.cta-box p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: #ffffff;
  color: var(--primary-color);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #eef6f2;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .article-cta {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
  }
  
  .cta-box {
    padding: 30px 24px;
  }
  
  .cta-box h3 {
    font-size: 18px;
  }
}


