/* ===============================================
   コラム機能用スタイル
   =============================================== */

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, #2E7CD6 0%, #1E5BA8 100%);
    padding: 80px 0 40px;
    margin-bottom: 60px;
}

.page-header-content {
    text-align: center;
    color: #fff;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* レイアウト */
.column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.column-main {
    min-width: 0;
}

/* カテゴリーフィルター */
.category-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #333;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2E7CD6;
    color: #2E7CD6;
}

.filter-btn.active {
    background: #2E7CD6;
    color: #fff;
    border-color: #2E7CD6;
}

/* コラムグリッド */
.column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* コラムカード */
.column-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.column-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.column-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.column-card:hover .column-card-image img {
    transform: scale(1.1);
}

.column-card-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 3rem;
}

.column-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2E7CD6;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.column-card-content {
    padding: 25px;
}

.column-date {
    color: #999;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.column-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #2E7CD6;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.column-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.column-tag {
    font-size: 0.75rem;
    color: #999;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: flex;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #2E7CD6;
    color: #fff;
    border-color: #2E7CD6;
}

.pagination .current span {
    background: #2E7CD6;
    color: #fff;
    border-color: #2E7CD6;
}

/* サイドバー */
.column-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #2E7CD6;
}

/* 検索フォーム */
.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.search-submit {
    padding: 10px 20px;
    background: #2E7CD6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #1E5BA8;
}

/* 人気記事 */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #2E7CD6;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* カテゴリーリスト */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #2E7CD6;
}

.category-list .count {
    font-size: 0.9rem;
    color: #999;
}

/* タグクラウド */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-link {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f0f0;
    border-radius: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-cloud-link:hover {
    background: #2E7CD6;
    color: #fff;
}

/* アーカイブリスト */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.archive-list a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.archive-list a:hover {
    color: #2E7CD6;
}

/* ===============================================
   個別記事ページ
   =============================================== */

.column-header {
    padding: 60px 0 10px;
}

.column-header .breadcrumb {
    justify-content: flex-start;
}

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

.article-category {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    background: #2E7CD6;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-badge:hover {
    background: #1E5BA8;
}

.article-title {
    font-size: 2.2rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 5px;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-link {
    color: #2E7CD6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.tag-link:hover {
    opacity: 0.7;
}

/* アイキャッチ画像 */
.article-thumbnail {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 記事本文 */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2E7CD6;
    color: #333;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 35px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #2E7CD6;
    color: #333;
}

.article-content h4 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 4px solid #2E7CD6;
    font-style: italic;
}

.article-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content code {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.article-content th,
.article-content td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.article-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 著者情報 */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.author-description {
    color: #666;
    line-height: 1.6;
}

/* シェアボタン */
.share-buttons {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.share-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.share-buttons-list {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-button:hover {
    transform: translateY(-3px);
}

.share-button.twitter {
    background: #1DA1F2;
}

.share-button.facebook {
    background: #1877F2;
}

.share-button.line {
    background: #00B900;
}

.share-button.linkedin {
    background: #0A66C2;
}

.share-button.copy-link {
    background: #666;
}

.share-button.copied {
    background: #4CAF50;
}

/* 前後の記事ナビゲーション */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.nav-previous,
.nav-next {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    gap: 15px;
}

.nav-previous:hover,
.nav-next:hover {
    background: #e8eaec;
    transform: translateX(5px);
}

.nav-next {
    justify-content: space-between;
}

.nav-next:hover {
    transform: translateX(-5px);
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 0.85rem;
    color: #999;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-placeholder {
    visibility: hidden;
}

/* 関連記事 */
.related-posts {
    margin-bottom: 60px;
}

.related-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.related-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.related-card-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 2rem;
}

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

.related-date {
    color: #999;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.related-card-content .related-title {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 目次ウィジェット */
.toc-widget.sticky {
    position: sticky;
    top: 20px;
}

.toc-content {
    max-height: 400px;
    overflow-y: auto;
}

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

.toc-item {
    margin-bottom: 10px;
}

.toc-h2 {
    padding-left: 0;
}

.toc-h3 {
    padding-left: 20px;
}

.toc-h4 {
    padding-left: 40px;
}

.toc-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.toc-link:hover {
    color: #2E7CD6;
}

.no-toc {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
}

/* 最新記事ウィジェット */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 15px;
}

.recent-post a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.recent-post-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .column-layout {
        grid-template-columns: 1fr;
    }

    .column-sidebar {
        position: relative;
        top: 0;
    }

    .column-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

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

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

    .post-navigation {
        grid-template-columns: 1fr;
    }

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

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

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .share-buttons-list {
        flex-wrap: wrap;
    }

    .category-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons {
        width: 100%;
    }
}

/* 記事なしの表示 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-posts i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-posts p {
    font-size: 1.1rem;
}

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}