/* ==================== Blog Styles ==================== */

:root {
    --blog-primary: #6366f1;
    --blog-primary-dark: #4f46e5;
    --blog-secondary: #14b8a6;
    --blog-dark: #1e293b;
    --blog-text: #334155;
    --blog-text-light: #64748b;
    --blog-bg: #f8fafc;
    --blog-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --blog-card-shadow-hover: 0 10px 25px rgba(99, 102, 241, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* ==================== Typography ==================== */

.blog-content {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, Meiryo, sans-serif;
    color: var(--blog-text);
    line-height: 1.8;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: var(--blog-dark);
}

/* ==================== Blog Hero ==================== */

.blog-hero {
    background: linear-gradient(135deg, var(--blog-primary) 0%, #8b5cf6 100%);
    color: white;
    padding: 3rem 0;
    margin: -1.5rem -0.75rem 2rem;
    border-radius: 0 0 1.5rem 1.5rem;
}

.blog-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: white;
}

.blog-hero p {
    opacity: 0.9;
    font-size: 1.05rem;
}

/* ==================== Breadcrumb ==================== */

.blog-breadcrumb {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.blog-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.blog-breadcrumb .breadcrumb-item a {
    color: var(--blog-text-light);
    text-decoration: none;
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: var(--blog-primary);
}

.blog-breadcrumb .breadcrumb-item.active {
    color: var(--blog-text);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== Article Card (Index Page) ==================== */

.blog-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blog-card-shadow-hover);
    color: inherit;
    text-decoration: none;
}

.blog-card-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.blog-card-thumb.thumb-compare { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.blog-card-thumb.thumb-hospital { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.blog-card-thumb.thumb-restaurant { background: linear-gradient(135deg, #f59e0b, #f97316); }
.blog-card-thumb.thumb-merit { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.blog-card-thumb.thumb-method { background: linear-gradient(135deg, #10b981, #14b8a6); }

.blog-card-body {
    padding: 1.25rem;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blog-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blog-dark);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--blog-text-light);
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ==================== Article Detail ==================== */

.blog-article {
    max-width: 780px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-header .article-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blog-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.article-header h1 {
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--blog-text-light);
    align-items: center;
}

.article-meta i {
    margin-right: 0.3rem;
}

/* ==================== Article Body ==================== */

.article-body h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--blog-primary);
    display: inline-block;
}

.article-body h3 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--blog-primary);
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.4rem;
}

/* ==================== Article Table ==================== */

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.article-body thead th {
    background: var(--blog-primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.article-body tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-body tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
}

/* ==================== Point / Highlight Box ==================== */

.blog-point {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
    border-left: 4px solid var(--blog-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.blog-point strong {
    color: var(--blog-primary);
}

/* ==================== CTA Section ==================== */

.blog-cta {
    background: linear-gradient(135deg, var(--blog-primary) 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin: 3rem 0 1rem;
}

.blog-cta h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.blog-cta .btn {
    background: white;
    color: var(--blog-primary);
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== Related Articles ==================== */

.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-articles h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    border: none;
    padding: 0;
}

.related-card {
    display: block;
    padding: 1.25rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--blog-card-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--blog-card-shadow-hover);
    color: inherit;
    text-decoration: none;
}

.related-card .related-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blog-primary);
    display: block;
    margin-bottom: 0.4rem;
}

.related-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blog-dark);
    line-height: 1.5;
    margin: 0;
}

/* ==================== Tag ==================== */

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.blog-tag {
    font-size: 0.75rem;
    color: var(--blog-text-light);
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* ==================== Responsive ==================== */

@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem 0;
    }

    .blog-hero h1 {
        font-size: 1.5rem;
    }

    .article-header h1 {
        font-size: 1.35rem;
    }

    .article-body h2 {
        font-size: 1.2rem;
    }

    .blog-cta {
        padding: 2rem 1.25rem;
    }

    .blog-cta h3 {
        font-size: 1.25rem;
    }

    .article-body table {
        font-size: 0.8rem;
    }

    .article-body thead th,
    .article-body tbody td {
        padding: 0.5rem 0.6rem;
    }
}
