/* ========================================
   ブログ・導入事例 公開ページ
   ======================================== */

.bp-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ヒーロー */
.bp-hero {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    padding: 64px 24px;
    text-align: center;
}

.bp-hero-title {
    font-size: clamp(28px, 2.5vw + 16px, 40px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.bp-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

/* カテゴリタブ */
.bp-tabs {
    display: flex;
    gap: 8px;
    padding: 32px 0 0;
    flex-wrap: wrap;
}

.bp-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    background: #f0f0f0;
    transition: all 0.2s;
}

.bp-tab:hover {
    background: #e0e0e0;
}

.bp-tab.active {
    background: #00BCD4;
    color: #fff;
}

/* 記事グリッド */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px 0 64px;
}

.bp-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.15);
}

.bp-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.bp-card-no-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2em;
}

/* 導入事例カード：画像にオーバーレイ+タイトル表示 */
.bp-card-case .bp-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.bp-card-case .bp-card-visual .bp-card-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.bp-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

.bp-card-overlay-title {
    font-size: 0.9em;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-card-body {
    padding: 16px 20px 20px;
}

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

.bp-card-date {
    font-size: 0.78em;
    color: #999;
}

.bp-card-category {
    font-size: 0.72em;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    background: #E0F7FA;
    color: #00838F;
}

.bp-card-title {
    font-size: 0.95em;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 60px 0;
    font-size: 0.95em;
}

/* ========================================
   記事詳細 2カラム
   ======================================== */
.bpd-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
}

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

/* サイドバー */
.bpd-sidebar-inner {
    position: sticky;
    top: 80px;
}

.bpd-side-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 20px;
}

.bpd-side-title {
    font-size: 0.85em;
    font-weight: 700;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #00BCD4;
}

.bpd-side-title i {
    color: #00BCD4;
    margin-right: 6px;
}

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

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

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

.bpd-cat-link {
    display: block;
    padding: 10px 8px;
    font-size: 0.85em;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.bpd-cat-link:hover {
    color: #00BCD4;
    background: #f8f8f8;
}

.bpd-cat-link.active {
    color: #00BCD4;
    font-weight: 700;
}

/* 最近の記事 */
.bpd-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bpd-recent-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.2s;
}

.bpd-recent-list li:last-child .bpd-recent-item {
    border-bottom: none;
}

.bpd-recent-item:hover {
    opacity: 0.75;
}

.bpd-recent-item.current {
    opacity: 0.5;
    pointer-events: none;
}

.bpd-recent-thumb {
    width: 64px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.bpd-recent-no-thumb {
    width: 64px;
    height: 42px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.8em;
    flex-shrink: 0;
}

.bpd-recent-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bpd-recent-date {
    font-size: 0.72em;
    color: #999;
}

.bpd-recent-title {
    font-size: 0.8em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* バナー */
.bpd-side-banner {
    text-align: center;
    background: linear-gradient(135deg, #E0F7FA, #f0fffe);
    border: 2px solid #B2EBF2;
}

.bpd-side-banner a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bpd-banner-logo {
    max-width: 140px;
    margin-bottom: 12px;
}

.bpd-banner-text {
    font-size: 0.82em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}

.bpd-banner-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #00BCD4;
    color: #fff;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    transition: background 0.2s;
}

.bpd-banner-btn:hover {
    background: #0097A7;
}

/* 詳細本文（既存） */

.bp-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.bp-detail-title {
    font-size: clamp(22px, 2vw + 12px, 30px);
    font-weight: 700;
    color: #222;
    line-height: 1.6;
    margin-bottom: 24px;
}

.bp-detail-store {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

.bp-detail-store i {
    color: #00BCD4;
    margin-right: 4px;
}

.bp-detail-thumb {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 32px;
}

.bp-detail-body {
    font-size: 15px;
    color: #444;
    line-height: 2.0;
}

.bp-detail-body p {
    margin-bottom: 20px;
}

.bp-detail-body img {
    max-width: 100%;
    border-radius: 8px;
}

/* 本文内テンプレートブロック */
.bp-detail-body .lp-block-challenge {
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.bp-detail-body .lp-block-effect {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.bp-detail-body .lp-block-interview {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.bp-detail-body .lp-block-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.bp-detail-body .lp-block-challenge .lp-block-title { color: #E65100; }
.bp-detail-body .lp-block-effect .lp-block-title { color: #2E7D32; }

.bp-detail-body .lp-block-quote {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 24px 24px 24px 48px;
    margin: 24px 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.8;
    position: relative;
}

.bp-detail-body .lp-block-quote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 3em;
    color: #ccc;
    position: absolute;
    top: 8px;
    left: 14px;
    line-height: 1;
}

/* blockquote（note風） */
.bp-detail-body blockquote {
    background: #f7f7f7;
    border-left: none;
    border-radius: 8px 8px 0 0;
    padding: 24px 24px 4px 48px;
    margin: 24px 0 0 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.8;
    position: relative;
}

.bp-detail-body blockquote + blockquote {
    border-radius: 0;
    padding-top: 4px;
    margin-top: 0;
}

.bp-detail-body blockquote:last-child,
.bp-detail-body blockquote:not(:has(+ blockquote)) {
    border-radius: 0 0 8px 8px;
    padding-bottom: 24px;
}

.bp-detail-body blockquote:not(blockquote + blockquote):not(:has(+ blockquote)) {
    border-radius: 8px;
    padding: 24px 24px 24px 48px;
}

.bp-detail-body blockquote::before {
    content: none;
}

.bp-detail-body blockquote:not(blockquote + blockquote)::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 3em;
    color: #ccc;
    position: absolute;
    top: 8px;
    left: 14px;
    line-height: 1;
}

/* 大見出し（強調テキスト） */
.bp-detail-body .lp-block-highlight {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.6;
    color: #222;
    margin: 0;
    padding: 0;
}

/* インタビュー質問 */
.bp-detail-body .lp-block-question {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    padding: 0;
    margin: 0;
    line-height: 1.7;
}

/* 区切り線 */
.bp-detail-body hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 32px 0;
}

/* テーブル */
.bp-detail-body .lp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95em;
}

.bp-detail-body .lp-block-table th {
    background-color: #F7F9FB;
    font-weight: 700;
    border: 1px solid #DAE4EE;
    padding: 8px 12px;
    text-align: left;
}

.bp-detail-body .lp-block-table td {
    border: 1px solid #DAE4EE;
    padding: 8px 12px;
}

/* 目次 */
.bp-detail-body .lp-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

.bp-detail-body .lp-toc-title {
    font-weight: 700;
    font-size: 1.05em;
    margin-bottom: 12px;
    color: #333;
}

.bp-detail-body .lp-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-detail-body .lp-toc li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.bp-detail-body .lp-toc li:last-child {
    border-bottom: none;
}

.bp-detail-body .lp-toc a {
    color: #00BCD4;
    text-decoration: none;
    font-size: 0.95em;
}

.bp-detail-body .lp-toc a:hover {
    text-decoration: underline;
}

.bp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    color: #00BCD4;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
}

.bp-back-link:hover {
    text-decoration: underline;
}

/* ページネーション */
.bp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0 0 48px;
}

.bp-pagination a,
.bp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.bp-pagination a {
    color: #555;
    background: #f5f5f5;
}

.bp-pagination a:hover {
    background: #E0F7FA;
    color: #00838F;
}

.bp-pagination .active {
    background: #00BCD4;
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .bp-hero {
        padding: 48px 20px;
    }

    .bp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bpd-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px 16px 48px;
    }

    .bpd-sidebar-inner {
        position: static;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bpd-wrapper {
        grid-template-columns: 1fr 240px;
        gap: 32px;
    }
}

/* ========================================
   導入事例カード（helpfeel風）
   ======================================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0 72px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.15);
}

.case-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.case-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card-no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f8fa, #e0f2f4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0d4da;
    font-size: 2.5em;
}

.case-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

.case-card-title {
    font-size: 0.9em;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-body {
    padding: 12px 16px 14px;
}

.case-card-store {
    font-size: 0.8em;
    color: #777;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 32px 0 48px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
