/* Repair pricing section — reference-comp implementation */
.p-costV2,
.p-costV2 * {
    box-sizing: border-box;
}

.p-costV2 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 52px 0 106px;
    background: #f5fcff;
    color: #06377f;
    font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}

.p-costV2::before,
.p-costV2::after {
    display: none;
}

.p-costV2__inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px),1120px);
    margin-inline: auto;
}

.p-costV2__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.p-costV2__icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #ffea00;
}

.p-costV2__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.p-costV2__heading h2 {
    margin: 12px 0 0;
    color: #073477;
    font-size: clamp(3.8rem,4vw,5.2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .13em;
}

.p-costV2__heading p {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 12px 0 30px;
    color: #073477;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .05em;
}

.p-costV2__heading p span {
    width: 48px;
    height: 1px;
    background: #4676bb;
}

.p-costV2 .p-costV2__tabs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    border-bottom: 3px solid #0b54be;
}

.p-costV2 .p-costV2__tab {
    width: 200px;
    min-width: 0;
    margin: 0 0 -3px;
    padding: 14px 18px 15px;
    border: 2px solid #a9bfde;
    border-bottom: 3px solid #0b54be;
    border-radius: 10px 10px 0 0;
    background: rgba(255,255,255,.62);
    color: #315386;
    box-shadow: none;
    font: 800 2rem/1.2 "Noto Sans JP",sans-serif;
    cursor: pointer;
}

.p-costV2 .p-costV2__tab.is-active {
    position: relative;
    z-index: 1;
    border-color: #0b54be;
    border-bottom-color: #fff;
    background: #fff;
    color: #0b54be;
}

.p-costV2__tax {
    margin: 12px 3px 12px;
    color: #171717;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
}

.p-costV2 .p-costV2__content[hidden] {
    display: none;
}

.p-costV2__items {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.p-costV2__item {
    display: grid;
    grid-template-columns: 224px minmax(0,1fr);
    min-width: 0;
    min-height: 138px;
    padding: 10px;
    border: 1px solid #c8e1f1;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(8,60,114,.08);
}

.p-costV2__item > img {
    display: block;
    width: 100%;
    height: 118px;
    object-fit: cover;
}

.p-costV2__item > div {
    display: flex;
    min-width: 0;
    min-height: 0;
    padding: 4px 0 2px 18px;
    flex-direction: column;
}

.p-costV2__item h3 {
    margin: 0;
    color: #073477;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: .02em;
}

.p-costV2__item h3 small {
    display: inline;
    font-size: .62em;
    font-weight: 700;
    letter-spacing: 0;
}

.p-costV2__time {
    margin: 3px 0 0;
    color: #315386;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.p-costV2__time span {
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid #4d75b3;
    color: #073477;
}

.p-costV2__price,
.p-costV2__estimate {
    margin: 9px 0 0;
    color: #073477;
    font-weight: 800;
    line-height: 1;
}

.p-costV2__price {
    white-space: nowrap;
    font-size: 1.7rem;
}

.p-costV2__price strong {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.p-costV2__price small {
    font-size: 1.4rem;
    font-weight: 800;
}

.p-costV2__estimate {
    padding-bottom: 5px;
    font-size: 1.55rem;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .p-costV2 {
        padding: 30px 0 78px;
    }

    .p-costV2__inner {
        width: min(calc(100% - 28px),680px);
    }

    .p-costV2__icon {
        width: 54px;
        height: 54px;
    }

    .p-costV2__heading h2 {
        margin-top: 8px;
        font-size: 3.1rem;
        letter-spacing: .1em;
    }

    .p-costV2__heading p {
        gap: 12px;
        margin: 10px 0 24px;
        font-size: 1.45rem;
    }

    .p-costV2__heading p span {
        width: 30px;
    }

    .p-costV2 .p-costV2__tabs {
        gap: 6px;
        border-bottom-width: 2px;
    }

    .p-costV2 .p-costV2__tab {
        width: min(42%,160px);
        margin-bottom: -2px;
        padding: 11px 8px 12px;
        border-width: 1.5px;
        border-bottom-width: 2px;
        border-radius: 7px 7px 0 0;
        font-size: 1.45rem;
    }

    .p-costV2__tax {
        margin: 8px 0 10px;
        font-size: .95rem;
    }

    .p-costV2__items {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    .p-costV2__item {
        display: flex;
        padding: 7px 7px 9px;
        flex-direction: column;
        border-radius: 5px;
    }

    .p-costV2__item > img {
        width: 100%;
        height: auto;
        aspect-ratio: 1.95 / 1;
    }

    .p-costV2__item > div {
        display: flex;
        min-height: 70px;
        padding: 7px 2px 0;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .p-costV2__item h3 {
        font-size: 1.32rem;
        line-height: 1.35;
    }

    .p-costV2__time {
        display: none;
    }

    .p-costV2__price,
    .p-costV2__estimate { margin-top: 8px; }

    .p-costV2__price {
        font-size: 1.1rem;
    }

    .p-costV2__price strong {
        font-size: clamp(1.8rem,5.7vw,2.35rem);
    }

    .p-costV2__price small {
        font-size: 1rem;
    }

    .p-costV2__estimate {
        padding-bottom: 1px;
        font-size: 1.05rem;
        line-height: 1.35;
    }
}

@media (max-width: 359px) {
    .p-costV2__inner { width: calc(100% - 20px); }
    .p-costV2__items { gap: 6px; }
    .p-costV2__item { padding: 6px; }
    .p-costV2__item > div { min-height: 66px; }
    .p-costV2__item h3 { font-size: 1.18rem; }
    .p-costV2__price strong { font-size: 1.8rem; }
}
