/* ===== category ver1 ===== */

/* Hero */
.cv1-hero {
    background: linear-gradient(135deg, #182b38 0%, #45546c 100%);
    padding: 0;
    z-index: 1019;
}
.cv1-hero-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0 12px;
}
.cv1-hero-thumb {
    flex-shrink: 0;
    width: 80px;
}
.cv1-hero-thumb img {
    width: 100%;
    border-radius: 8px;
}
.cv1-hero-text {
    flex: 1;
}
.cv1-hero-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}
.cv1-hero-summary {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.4;
}
.cv1-hero-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cv1-hero-nav-item {
    display: inline-block;
    padding: 10px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 3px solid transparent;
}
.cv1-hero-nav-item:hover {
    color: #fff;
    text-decoration: none;
    border-bottom-color: #fab549;
}
.cv1-hero-nav-item i {
    margin-right: 4px;
}
.cv1-hero-nav-cta {
    color: #fab549;
}
.cv1-hero-nav-cta:hover {
    color: #fff;
    border-bottom-color: #fab549;
}

/* Section */
.cv1-section {
    padding: 40px 0;
    scroll-margin-top: 60px;
}
.cv1-bg-light {
    background: #f5f7fa;
}
.cv1-bg-white {
    background: #fff;
}

/* Form Section */
.cv1-form-section {
    padding: 50px 0 40px;
    background: #f0f2f5;
    scroll-margin-top: 80px;
}
.cv1-form-header {
    text-align: center;
    margin-bottom: 30px;
}
.cv1-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #182b38;
    margin: 0 0 10px;
}
.cv1-form-sub {
    font-size: 1rem;
    color: #666;
    margin: 0;
}
.cv1-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* Sticky CTA */
.cv1-sticky-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    text-decoration: none;
    padding: 1rem 0.75rem;
    border-radius: 8px 0 0 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -2px 2px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
}
.cv1-sticky-cta.visible {
    opacity: 1;
    pointer-events: auto;
}
.cv1-sticky-cta:hover {
    color: #fff;
    text-decoration: none;
    padding-right: 1rem;
    box-shadow: -4px 2px 20px rgba(231,76,60,0.4);
}
.cv1-sticky-cta-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.cv1-sticky-cta-sub {
    font-size: 0.7rem;
    opacity: 0.9;
}
.cv1-sticky-cta-sub i {
    font-size: 0.6rem;
}

/* Section title */
.cpg-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #182b38;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 3px solid #182b38;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cpg-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #e74c3c;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Company-grouped plan cards */
.cpg-company-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}
.cpg-company-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}
.cpg-company-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.cpg-company-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}
.cpg-plan {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.cpg-plan:last-child {
    border-bottom: none;
}
.cpg-plan:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
}
.cpg-plan-img {
    width: 90px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.cpg-plan-body {
    flex: 1;
    min-width: 0;
}
.cpg-plan-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Issue / Goal badges */
.cpg-ig-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
    line-height: 1.5;
}
.cpg-ig-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cpg-ig-issue {
    background: #e74c3c;
}
.cpg-ig-goal {
    background: #27ae60;
}
.cpg-ig-text {
    font-size: 13px;
    color: #666;
}

/* CTA */
.cpg-cta {
    text-align: center;
    padding: 24px 0 8px;
}
.cpg-cta-btn {
    display: inline-block;
    background: #f0ad4e;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 48px;
    border-radius: 8px;
    text-decoration: none;
}
.cpg-cta-btn:hover {
    background: #ec971f;
    color: #fff;
    text-decoration: none;
}
.cpg-cta-sub {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* Related Articles override */
.cv1-section + section.section.pt-5,
.cv1-section ~ section.section.pt-5 {
    padding-top: 2rem !important;
    background: transparent !important;
}
.cv1-section + section.section.pt-5 h2,
.cv1-section ~ section.section.pt-5 h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #182b38;
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 3px solid #182b38;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cv1-section + section.section.pt-5 h2::before,
.cv1-section ~ section.section.pt-5 h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #fab549;
    border-radius: 2px;
    flex-shrink: 0;
}
.cv1-section ~ section.section.pt-2.pb-1 {
    background: transparent !important;
    padding-bottom: 1.5rem !important;
}
.cv1-section ~ section.section.pt-2.pb-1 .list-card {
    border: 1px solid #e9ecef;
    box-shadow: none !important;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cv1-section ~ section.section.pt-2.pb-1 .list-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px);
}
.cv1-section ~ section.section.pt-2.pb-1 .list-card .item-img {
    height: 160px;
    object-fit: cover;
    width: 100%;
}
.cv1-section ~ section.section.pt-2.pb-1 .list-card-body p a {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}
.cv1-section ~ section.section.pt-2.pb-1 .list-card-body p a:hover {
    color: #fab549;
}

/* Plan cards in article body */
.content-body .shadow-sm.p-3.mb-2.bg-light {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    padding: 10px 14px !important;
    margin: 0.5rem 0 !important;
    background: #f8f9fb !important;
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > p.mb-1:first-child {
    grid-column: 2 / -1;
    grid-row: 1;
    margin: 0 !important;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > p.mb-1:first-child a {
    font-size: 0.88rem;
    font-weight: 700;
    color: #222;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > a:has(img) {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > a img {
    width: 70px !important;
    height: 50px;
    padding: 0 !important;
    border-radius: 6px;
    object-fit: cover;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > p:nth-of-type(2) {
    grid-column: 2 / -1;
    grid-row: 2;
    font-size: 0.8rem !important;
    line-height: 1.4;
    color: #555 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content-body .shadow-sm.p-3.mb-2.bg-light .reviews-members {
    display: none;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > hr {
    display: none;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > p:last-child {
    grid-column: 1 / -1;
    margin: 0 !important;
    padding: 0 !important;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > p:last-child a {
    font-size: 0.78rem !important;
    color: #45546c;
    white-space: nowrap;
}
.content-body .shadow-sm.p-3.mb-2.bg-light > p:last-child a:hover {
    color: #e74c3c;
}

/* Anchor offset for sticky header + nav */
[id] {
    scroll-margin-top: 120px;
}

/* TOC (WP style) */
.ks-toc {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.ks-toc .index__title {
    margin-bottom: 0.75rem;
}
.ks-toc .toc_title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #182b38;
    margin: 0;
}
.ks-toc .toc_toggle {
    font-size: 0.82rem;
    color: #6c757d;
}
.ks-toc .toc_toggle a {
    color: #6c757d;
    text-decoration: none;
}
.ks-toc .toc_toggle a:hover {
    color: #fab549;
}
.ks-toc .toc_brackets {
    color: #ccc;
}
.ks-toc ol.index__list,
.ks-toc ol.index__list_child {
    margin: 0;
    padding-left: 1.4rem;
    counter-reset: toc-counter;
    list-style: none;
}
.ks-toc li.index__item {
    counter-increment: toc-counter;
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
    position: relative;
    line-height: 1.6;
}
.ks-toc li.index__item::before {
    content: counter(toc-counter) ".";
    color: #fab549;
    font-weight: 700;
    font-size: 0.85rem;
    position: absolute;
    left: -1.4rem;
    top: 0;
    line-height: 1.9;
}
.ks-toc li.index__item a.index__link {
    color: #45546c;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.6;
    transition: color 0.2s;
}
.ks-toc li.index__item a.index__link:hover {
    color: #fab549;
}
.ks-toc ol.index__list_child li.index__item::before {
    color: #adb5bd;
}

/* ===== Responsive ===== */
/* content-body リスト */
.content-body > ul,
.content-body > ol,
.content-body > div > ul,
.content-body > div > ol {
    margin: 1em 0;
    padding-left: 0;
    list-style: none;
}
.content-body > ul > li,
.content-body > ol > li,
.content-body > div > ul > li,
.content-body > div > ol > li {
    position: relative;
    padding: 10px 14px 10px 28px;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background: #f8f9fb;
    border-radius: 6px;
    border-left: 3px solid #2c6fbb;
}
.content-body > ul > li::before,
.content-body > div > ul > li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 18px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2c6fbb;
}
.content-body > ol {
    counter-reset: ol-counter;
}
.content-body > ol > li,
.content-body > div > ol > li {
    counter-increment: ol-counter;
}
.content-body > ol > li::before,
.content-body > div > ol > li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #2c6fbb;
    line-height: 1;
}
.content-body > ul > li strong,
.content-body > ol > li strong,
.content-body > div > ul > li strong,
.content-body > div > ol > li strong {
    color: #182b38;
}

@media (max-width: 767px) {
    .cv1-hero-top {
        gap: 12px;
        padding: 12px 0 8px;
    }
    .cv1-hero-thumb {
        width: 50px;
    }
    .cv1-hero-title {
        font-size: 1.1em;
    }
    .cv1-hero-summary {
        font-size: 0.75rem;
    }
    .cv1-hero-nav-item {
        padding: 8px 14px;
        font-size: 12px;
    }
    .cv1-nav-item {
        padding: 12px 14px;
        font-size: 13px;
    }
    .cv1-section {
        padding: 24px 0;
    }
    .cv1-form-section {
        padding: 30px 0;
    }
    .cv1-form-title {
        font-size: 1.3rem;
    }
    .cv1-sticky-cta {
        writing-mode: horizontal-tb;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 10px 20px;
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }
    .cpg-plan-img {
        width: 70px;
        height: 50px;
    }
    .cpg-plan-title {
        font-size: 14px;
    }
    .cpg-ig-text {
        font-size: 12px;
    }
}
