/* ========================================
   コラムページ共通スタイル
======================================== */

/* コンテンツグリッド（2カラムレイアウト） */

.main-column {
    min-width: 0; /* グリッドのオーバーフロー対策 */
}

/* ========================================
   コラム詳細ページ
======================================== */
.column-detail {
    padding: 30px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.column-article {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* アイキャッチ画像 */
.column-thumbnail {
    margin: -30px -30px 30px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.column-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 記事ヘッダー */
.column-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.column-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.column-meta i {
    margin-right: 5px;
    color: #999;
}

.column-date {
    display: flex;
    align-items: center;
}

.column-categories {
    display: flex;
    align-items: center;
}

.column-categories a {
    color: #ff6b6b;
    text-decoration: none;
}

.column-categories a:hover {
    text-decoration: underline;
}

.column-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* 記事本文 */
.column-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.column-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
}

.column-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #333;
}

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

.column-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

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

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

.column-content blockquote {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #ff6b6b;
}

/* タグ */
.column-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.column-tags i {
    margin-right: 10px;
    color: #999;
}

.column-tags a {
    display: inline-block;
    padding: 5px 15px;
    margin: 0 5px 10px 0;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.column-tags a:hover {
    background: #ff6b6b;
    color: #fff;
}

/* シェアボタン */
.column-share {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

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

.share-buttons {
    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;
}

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

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

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

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

.share-button i {
    font-size: 20px;
}

/* 前後の記事ナビゲーション */
.column-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.nav-previous,
.nav-next {
    display: flex;
}

.nav-previous {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
    text-align: right;
}

.column-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.column-navigation a:hover {
    color: #ff6b6b;
}

/* ========================================
   コラム一覧ページ
======================================== */
/* コラム一覧ページの調整 */
.archive-columns {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

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

/* パンくずリストの余白調整 */
.archive-columns .machonavi-breadcrumb {
    margin-bottom: 30px;
}

.archive-columns .archive-header {
    margin-bottom: 30px;
    text-align: center;
}

.archive-columns .archive-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.archive-columns .archive-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* コラムグリッド */
.columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

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

.column-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

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

.column-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
}

.column-card-category {
    background: #ff6b6b;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.column-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.column-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

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

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

.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
}

/* 人気コラムウィジェット */
.popular-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: ranking;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    counter-increment: ranking;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

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

.popular-post-link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.popular-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.popular-post-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    background: none;
}

.popular-post-date {
    font-size: 12px;
    color: #999;
}

/* おすすめ店舗ウィジェット */

.widget-recommended-shop {
    position: relative;
}

.sponsor-label {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000000;
    color: #fff;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.widget-shop-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.widget-shop-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.widget-shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.widget-recommended-shop .widget-shop-image {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f0f0f0; /* 画像がない場合の背景 */
}

.widget-recommended-shop .widget-shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.widget-shop-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.widget-shop-catch {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.widget-shop-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.widget-shop-vote {
    text-align: center;
}

/* エリアリンクウィジェット */
.widget-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    background: none;
}

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

.area-links-list li {
    margin-bottom: 10px;
}

.area-links-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.area-links-list a:hover {
    background: #ff6b6b;
    color: #fff;
}

.area-links-list i {
    margin-right: 8px;
}

.area-links-list .count {
    font-size: 12px;
    color: #999;
}

.area-links-list a:hover .count {
    color: #fff;
}

/* ========================================
   カテゴリータブ - 修正版
======================================== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.category-tab {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    outline: none;
}

.category-tab:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.category-tab.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}



/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 250px;
    }
}

@media (max-width: 768px) {
    .archive-columns {
        padding: 20px 0;
    }
    /* モバイルでは1カラムレイアウト */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .column-detail {
    padding: 10px 0;
    }
    
    .column-sidebar {
        position: static;
    }
    
    /* コラム詳細 */
    .column-article {
        padding: 20px;
    }
    
    .column-thumbnail {
        margin: -20px -20px 20px;
    }
    
    .column-title {
        font-size: 24px;
    }
    
    .column-content {
        font-size: 15px;
    }
    
    /* シェアボタン */
    .share-button {
        width: 45px;
        height: 45px;
    }
    
    /* ナビゲーション */
    .column-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* コラム一覧 */
        .columns-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-columns .archive-title {
        font-size: 24px;
    }
    /* カテゴリタブ */
    .category-tabs {
        padding: 15px;
        gap: 8px;
    }
    
    .category-tab {
        padding: 8px 18px;
        font-size: 13px;
    }
}
