/* CECC ?????????????? */

.cecc-page.cecc-list-page {
    background-color: #fafafa;
}

/* ?????? ???*/
section.cecc-filter {
    background-color: #f2f2f2;
    padding: 45px 0;
}

.cecc-filter-card {
    width: 100%;
    max-width: 1050px;
    min-height: 448px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 28px 30px 24px;
    box-sizing: border-box;
}

.cecc-search-row {
    position: relative;
    margin-bottom: 28px;
    padding-bottom: 8px;
    border-bottom: 2px solid #808080;
}

.cecc-search-input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 52px 0 0;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 40px;
    color: #000;
    background: transparent;
    box-sizing: border-box;
}

.cecc-search-input::placeholder {
    color: #999;
}

.cecc-search-input:focus {
    outline: none;
}

.cecc-search-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(calc(-50% - 4px));
    width: 22px;
    height: 22px;
    border: none;
    padding: 0;
    background: url("../images/cecc_2026/icon_search.svg") center/contain no-repeat;
    cursor: pointer;
    pointer-events: auto;
}

.cecc-filter-row {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e6e6e6;
}

.cecc-filter-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.cecc-filter-label {
    flex: 0 0 80px;
    width: 80px;
    font-size: 16px;
    font-weight: 500;
    line-height: 42px;
    color: #000;
}

.cecc-filter-options {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.cecc-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border: none;
    border-radius: 21px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    color: #000;
    background: #f2f2f2;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.cecc-filter-pill:hover {
    color: #ff0000;
}

.cecc-filter-pill.is-active {
    color: #fff;
    font-weight: 400;
    background: #ff1919;
}

.cecc-filter-pill.is-active:hover {
    color: #fff;
    background: #e60000;
}

.cecc-filter-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 8px;
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 40px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    color: #ff0000;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
}

.btn-clear-filters:hover {
    background-color: #ff0000;
    color: #fff;
}

/* ??????????*/
section.cecc-results {
    padding: 50px 0 100px;
    background-color: #fafafa;
}

section.cecc-results .wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}

.cecc-results-head {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1050px;
    margin: 0;
    align-self: flex-start;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
}

.cecc-results-head .count {
    color: #ff0000;
    font-weight: 500;
}

.cecc-results-grid {
    position: relative;
    z-index: 1;
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 336px);
    gap: 20px;
    justify-content: center;
}

/* ??????? ???*/
.solution-result-card {
    min-height: 275px;
    height: auto;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 20px 0 20px 0;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.solution-result-card .card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #000;
}

.solution-result-card .card-subtitle {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #ff0000;
}

.solution-result-card .card-divider {
    height: 2px;
    margin: 16px 0 14px;
    background: linear-gradient(to right,
        #ff0000 0,
        #ff0000 36px,
        #b2b2b2 36px,
        #b2b2b2 100%);
}

.solution-result-card .card-scenario {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #000;
}

.solution-result-card .card-scenario-text {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
}

.solution-result-card .card-scenario-label {
    white-space: nowrap;
}

.solution-result-card .card-scenario-value {
    min-width: 0;
    word-break: break-word;
}

.solution-result-card .card-scenario-icon {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='0.5' y='0.5' width='4.55' height='4.55' fill='none' stroke='%23000' stroke-width='1'/%3E%3Crect x='7.05' y='0.5' width='4.45' height='4.55' fill='none' stroke='%23ff0000' stroke-width='1'/%3E%3Crect x='0.5' y='7.05' width='4.55' height='4.45' fill='none' stroke='%23000' stroke-width='1'/%3E%3Crect x='7.05' y='7.05' width='4.45' height='4.45' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
}

.solution-result-card .tag-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-top: 14px;
}

.solution-result-card .tag {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 10px 0 22px;
    border-radius: 3px 0 3px 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
    color: #000;
    background: #f2f2f2;
    white-space: nowrap;
    position: relative;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.solution-result-card .tag::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff0000;
}

.solution-result-card .card-footer {
    margin-top: auto;
    padding-top: 16px;
}

.solution-result-card .link-more {
    margin-top: 0;
    margin-left: 0;
}

.cecc-seo-nav {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.solution-result-card.is-filter-hidden,
.solution-result-card[hidden] {
    display: none !important;
}

/* ???? / ????? solution_cecc.css breakpoint ??? */
@media (max-width: 1200px) {
    .cecc-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 720px;
        gap: 18px;
    }
}

@media (max-width: 960px) {
    section.cecc-filter {
        padding: 32px 0;
    }

    .cecc-filter-card {
        min-height: 0;
        padding: 22px 20px 18px;
    }

    .cecc-filter-label {
        flex: 0 0 68px;
        width: 68px;
        font-size: 15px;
        line-height: 38px;
    }

    .cecc-filter-pill {
        height: 38px;
        padding: 0 16px;
        font-size: 15px;
    }

    .cecc-results-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 16px;
    }

    section.cecc-results {
        padding: 36px 0 72px;
    }

    .solution-result-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .cecc-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 0;
    }

    .cecc-filter-label {
        flex: none;
        width: auto;
        line-height: 1.4;
    }

    .cecc-filter-options {
        gap: 8px;
    }

    .cecc-filter-pill {
        height: 36px;
        padding: 0 14px;
        font-size: 14px;
    }

    .cecc-results-head {
        font-size: 15px;
    }

    section.cecc-results .wrapper {
        gap: 20px;
    }
}
