/* ============================================================
   /blog  /blog/insights  /blog/news  /blog/*/slug
   Blog Landing, Listing, and Detail Page Styles
   CSS prefix: bl-
   ============================================================ */

:root {
    --teal: #10c59a;
    --teal-dark: #00857e;
    --ink: #333333;
    --bg-light: #f8f8f8;
    --bg-gray: #f2f2f2;
}

/* ════════════════════════════════════════════
   SHARED: SECTION HEADER + SEE-ALL BUTTON
════════════════════════════════════════════ */

.bl-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.bl-see-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Desktop: show in header, hide below content */
/* Mobile: hide in header, show below content */
.bl-see-all-desktop { display: flex; }
.bl-see-all-wrap    { display: none; }

.bl-section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--teal);
    margin: 0;
    line-height: 1.3;
}

.bl-see-all {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--ink);
    font-size: 20px;
    font-weight: 400;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.bl-see-all:hover { opacity: 0.7; }

.bl-see-all-text {
    border-bottom: 1px solid #10c59a;
    line-height: 1.4;
}

.bl-see-all-circle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50% !important;
    background: #10c59a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 14px;
    flex-shrink: 0;
    text-decoration: none;
}

/* ════════════════════════════════════════════
   SHARED: CARD (landing お知らせ + listing pages)
════════════════════════════════════════════ */

.bl-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bl-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    transition: opacity 0.2s;
}

.bl-card:hover { opacity: 0.85; }

.bl-card-img-wrap {
    height: 171px;
    overflow: hidden;
    border-radius: 12px;
    margin: 12px 12px 0;
    flex-shrink: 0;
}

.bl-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bl-card:hover .bl-card-img { transform: scale(1.03); }

.bl-card-body {
    padding: 10px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bl-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.bl-date {
    font-size: 15px;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
}

.bl-badge {
    background: var(--teal);
    color: white;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 500;
    line-height: 17px;
    white-space: nowrap;
}

.bl-card-title {
    font-size: 18px;
    color: #272727;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ════════════════════════════════════════════
   BLOG LANDING (/blog)
════════════════════════════════════════════ */

.bl-landing-section {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
    background: var(--bg-light);
}

/* Last section needs clearance for CTA banner */
.bl-landing-section.bl-news-section {
    padding-bottom: 240px;
}

.bl-section-watermark {
    position: absolute;
    font-size: 100px;
    font-weight: 900;
    color: #f0f0f0;
    top: 0;
    left: -4px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

/* Container sits above watermark */
.bl-section-container {
    position: relative;
    z-index: 1;
}

/* ── Insights grid (featured left + sidebar right) ── */
.bl-insights-grid {
    display: grid;
    grid-template-columns: 47% 1fr;
    gap: 56px;
}

/* Featured article */
.bl-featured {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bl-featured-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    background: var(--bg-gray);
}

.bl-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bl-featured:hover .bl-featured-img { transform: scale(1.02); }

.bl-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.bl-featured-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar list */
.bl-sidebar-list { display: flex; flex-direction: column; }

.bl-sidebar-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #d8d8d8;
    text-decoration: none;
    color: inherit;
    align-items: start;
    transition: opacity 0.2s;
}

.bl-sidebar-item:last-child { border-bottom: 1px solid #d8d8d8; }
.bl-sidebar-item:hover { opacity: 0.75; }

.bl-sidebar-img {
    width: 140px;
    height: 94px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: var(--bg-gray);
    flex-shrink: 0;
}

.bl-sidebar-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.bl-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ════════════════════════════════════════════
   LISTING PAGES (/blog/insights, /blog/news)
════════════════════════════════════════════ */

.bl-listing-section {
    background: var(--bg-light);
    padding: 56px 0 240px; /* 240px bottom clears CTA banner */
}

/* Pagination */
.bl-pagination {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    margin-top: 56px;
    list-style: none;
    padding: 0;
}

.bl-pagination li a {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    padding: 4px 6px 6px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.bl-pagination li.active a,
.bl-pagination li a:hover {
    border-bottom-color: var(--ink);
}

/* ════════════════════════════════════════════
   DETAIL PAGE (/blog/insights/{slug}, /blog/news/{slug})
════════════════════════════════════════════ */

/* Reuses existing .news-single-blog-area global styles */

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .bl-card-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .bl-section-title { font-size: 32px; }
    .bl-featured-title { font-size: 20px; }
    .bl-insights-grid { gap: 36px; }
}

@media (max-width: 768px) {
    .bl-card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .bl-card-img-wrap { height: 140px; }
    .bl-card-title { font-size: 15px; }

    /* Listing page mobile */
    .bl-listing-section .bl-card-img-wrap { height: 160px; }

    .bl-insights-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bl-featured-img-wrap { height: 223px; }
    .bl-featured-title { font-size: 18px; }

    .bl-section-title { font-size: 28px; }
    .bl-see-all { font-size: 15px; }
    .bl-section-header { margin-bottom: 24px; }

    .bl-section-watermark { font-size: 60px; }
    .bl-landing-section { padding: 48px 0 60px; }
    .bl-landing-section.bl-news-section { padding-bottom: 240px; }
    .bl-listing-section { padding: 40px 0 240px; }

    /* Sidebar: 110×73px thumb, badge pushed far right */
    .bl-sidebar-item { grid-template-columns: 110px 1fr; gap: 12px; }
    .bl-sidebar-img { width: 110px; height: 73px; }
    .bl-sidebar-title { font-size: 14px; }
    .bl-sidebar-item .bl-card-meta { justify-content: space-between; }

    /* NEWS section — list layout matching Figma */
    .bl-news-section .bl-card-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .bl-news-section .bl-card {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #d8d8d8;
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 12px;
        align-items: start;
        padding: 16px 0;
    }
    .bl-news-section .bl-card:last-child { border-bottom: 1px solid #d8d8d8; }
    .bl-news-section .bl-card-img-wrap { height: 73px; border-radius: 4px; margin: 0; }
    .bl-news-section .bl-card-body { padding: 0; }
    .bl-news-section .bl-card-meta { justify-content: space-between; }
    .bl-news-section .bl-card-title { font-size: 14px; margin-top: 4px; -webkit-line-clamp: 2; }

    /* Mobile: hide header see-all, show bottom wrap */
    .bl-see-all-desktop { display: none; }
    .bl-see-all-wrap    { display: flex; margin-top: 32px; }
}

@media (max-width: 480px) {
    .bl-card-grid { grid-template-columns: 1fr; }
    .bl-listing-section .bl-card-grid { gap: 16px; }
    .bl-listing-section .bl-card-img-wrap { height: 180px; }
    .bl-pagination li a { font-size: 20px; }
}
