/* Solved cases — problem to solution flow */
.p-solved,
.p-solved * {
    box-sizing: border-box;
}

.p-solved {
    padding: 82px 0 96px;
    background: #fff;
    color: #13243a;
    font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}

.p-solved > .l-inner {
    width: min(calc(100% - 40px),1120px);
}

.p-solved .c-sectionTitle {
    display: block;
    width: 100%;
    margin: 0;
    color: #151515;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .02em;
    text-align: center;
}

.p-solved .c-sectionTitle span {
    color: #ed2626;
}

.p-solved .c-sectionTitle::after {
    display: none;
}

.p-solved__carousel {
    position: relative;
}

.p-solved__nav,
.p-solved__pagination {
    display: none;
}

.p-solved__list {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.p-solved__item {
    display: grid;
    min-width: 0;
    grid-template-rows: auto 205px 48px minmax(220px,1fr);
    overflow: hidden;
    border: 1px solid #cfd9e5;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(10,51,91,.08);
}

.p-solved__title {
    display: grid;
    min-height: 70px;
    margin: 0;
    padding: 11px 8px;
    place-items: center;
    background: linear-gradient(180deg,#0a438c 0%,#063477 100%);
    color: #fff;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.p-solved__block {
    min-width: 0;
    padding: 16px 14px 18px;
    background: #fff;
}

.p-solved__block--result {
    background: #fffbed;
}

.p-solved__label {
    display: inline-flex;
    min-height: 24px;
    margin: 0 0 11px;
    padding: 4px 10px;
    align-items: center;
    border-radius: 4px;
    background: #0b4c99;
    color: #fff;
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(5,52,109,.14);
}

.p-solved__block--result .p-solved__label {
    background: #f0262f;
    color: #fff;
    box-shadow: 0 2px 4px rgba(190,20,28,.14);
}

.p-solved__text {
    margin: 0;
    color: #1d2a39;
    font-size: 1.56rem;
    font-weight: 500;
    line-height: 1.72;
}

.p-solved__arrow {
    position: relative;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg,#fff 0 50%,#fffbed 50% 100%);
}

.p-solved__arrow::before {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url("../img/solved-arrow-v2.png") center / cover no-repeat;
    box-shadow: 0 3px 8px rgba(4,44,92,.2);
    content: "";
}

.p-solved__arrow::after {
    display: none;
}

@media (max-width: 767px) {
    .p-solved {
        padding: 58px 0 70px;
    }

    .p-solved > .l-inner {
        width: min(calc(100% - 28px),680px);
    }

    .p-solved .c-sectionTitle {
        font-size: 2.45rem;
        line-height: 1.42;
    }

    .p-solved__list {
        display: flex;
        gap: 12px;
        margin-top: 26px;
        padding: 0 0 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .p-solved__list::-webkit-scrollbar {
        display: none;
    }

    .p-solved__carousel {
        width: calc(100% + 14px);
    }

    .p-solved__item {
        flex: 0 0 calc(100% - 54px);
        grid-template-rows: auto 160px 44px minmax(0,1fr);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .p-solved__title {
        min-height: 58px;
        padding: 9px 12px;
        font-size: 1.65rem;
    }

    .p-solved__title br {
        display: block;
    }

    .p-solved__block {
        padding: 14px 15px 16px;
    }

    .p-solved__label {
        margin-bottom: 9px;
        font-size: 1.15rem;
    }

    .p-solved__text {
        font-size: 1.25rem;
        line-height: 1.72;
    }

    .p-solved__nav {
        position: absolute;
        z-index: 4;
        top: calc(50% + 12px);
        display: block;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #0b4c99;
        box-shadow: 0 3px 9px rgba(4,44,92,.28);
        cursor: pointer;
        transform: translateY(-50%);
    }

    .p-solved__nav::before {
        position: absolute;
        top: 11px;
        width: 11px;
        height: 11px;
        border-top: 3px solid #fff;
        border-right: 3px solid #fff;
        content: "";
    }

    .p-solved__nav--prev {
        left: -4px;
    }

    .p-solved__nav--prev::before {
        left: 14px;
        transform: rotate(-135deg);
    }

    .p-solved__nav--next {
        right: 8px;
    }

    .p-solved__nav--next::before {
        right: 14px;
        transform: rotate(45deg);
    }

    .p-solved__nav:disabled {
        opacity: .36;
        cursor: default;
    }

    .p-solved__pagination {
        display: flex;
        gap: 9px;
        width: calc(100% - 14px);
        margin-top: 10px;
        justify-content: center;
    }

    .p-solved__pagination button {
        width: 11px;
        height: 11px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #c7ccd3;
        cursor: pointer;
    }

    .p-solved__pagination button.is-active {
        background: #0b4c99;
        transform: scale(1.15);
    }
}

@media (max-width: 359px) {
    .p-solved > .l-inner { width: calc(100% - 20px); }
    .p-solved .c-sectionTitle { font-size: 2.2rem; }
    .p-solved__item { grid-template-rows: auto 174px 42px minmax(0,1fr); }
    .p-solved__carousel { width: calc(100% + 10px); }
    .p-solved__item { flex-basis: calc(100% - 46px); }
    .p-solved__nav--next { right: 5px; }
}
