@charset "UTF-8";

.p-caseV2,
.p-caseV2 *,
.p-caseV2 *::before,
.p-caseV2 *::after { box-sizing: border-box; }

.p-caseV2 {
    position: relative;
    overflow: hidden;
    padding: 50px 0 108px;
    background: linear-gradient(180deg,#f5fcff 0%,#fff 18%,#fff 82%,#ecfaff 100%);
    color: #073477;
    font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}
.p-caseV2::before,
.p-caseV2::after {
    position: absolute;
    width: 260px;
    height: 180px;
    opacity: .24;
    background-image: radial-gradient(circle,#1697e8 0 2px,transparent 2.4px);
    background-size: 12px 12px;
    content: "";
}
.p-caseV2::before { display: none; }
.p-caseV2::after { right: -20px; bottom: 0; mask-image: linear-gradient(315deg,#000,transparent 72%); }

.p-caseV2__inner { position: relative; z-index: 1; width: min(1120px,calc(100% - 40px)); margin: 0 auto; }
.p-caseV2__heading { position: relative; min-height: 180px; padding: 0 0 32px; text-align: center; }
.p-caseV2__heading::before {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: -56px;
    width: 100%;
    height: 250px;
    background: url("../img/case-cityscape-original-v2.png") center bottom / 100% auto no-repeat;
    opacity: 1;
    pointer-events: none;
    content: "";
    transform: none;
}
.p-caseV2__heading > img { display: block; width: 72px; height: 72px; margin: 0 auto 4px; object-fit: contain; }
.p-caseV2__heading h2 { margin: 0; color: #073477; font-size: clamp(3.2rem,3.6vw,4.6rem); font-weight: 900; line-height: 1.32; letter-spacing: -.035em; }

.p-caseV2__card {
    position: relative;
    margin-top: 66px;
    padding: 62px 30px 34px;
    border: 3px solid #0b4497;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
}
.p-caseV2__card + .p-caseV2__card { margin-top: 86px; }
.p-caseV2__cardTitle {
    position: absolute;
    top: -35px;
    left: 50%;
    display: grid;
    place-items: center;
    width: min(760px,76%);
    min-height: 68px;
    margin: 0;
    padding: 10px 28px;
    border: 3px solid #0b4497;
    border-radius: 12px;
    background: linear-gradient(100deg,#fffdf4,#fff7da,#fffdf4);
    color: #073477;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .04em;
    text-align: center;
    transform: translateX(-50%);
}

.p-caseV2__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 58px;
    margin: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid #8bb9dd;
}
.p-caseV2__meta > div { display: flex; align-items: center; gap: 14px; }
.p-caseV2__meta dt { padding: 7px 12px; border-radius: 4px; background: #0784e7; color: #fff; font-size: 1.45rem; font-weight: 800; line-height: 1; }
.p-caseV2__meta dd { margin: 0; color: #073477; font-size: 1.55rem; font-weight: 700; }

.p-caseV2__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 24px;
}
.p-caseV2__detail { min-width: 0; padding: 0 34px 0 8px; }
.p-caseV2__detail + .p-caseV2__detail { padding: 0 8px 0 34px; border-left: 2px dotted #8bb9dd; }
.p-caseV2__detail h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #073477; font-size: 2.2rem; font-weight: 900; line-height: 1.2; }
.p-caseV2__detail h4 img { flex: 0 0 auto; width: 42px; height: 42px; object-fit: contain; }
.p-caseV2__detail:first-child h4 img { transform: scale(1.1); }
.p-caseV2__detail p { margin: 0; color: #111; font-size: 1.45rem; font-weight: 600; line-height: 1.75; }

.p-caseV2__compare {
    display: grid;
    grid-template-columns: minmax(0,1fr) 50px minmax(0,1fr);
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}
.p-caseV2__compare figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #e9f5fc; }
.p-caseV2__compare figure > img { display: block; width: 100%; height: 260px; object-fit: cover; }
.p-caseV2__compare figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: max-content;
    min-width: 0;
    padding: 7px 24px 8px 14px;
    background: #137fd4;
    clip-path: polygon(0 0,100% 0,86% 100%,0 100%);
    color: #fff;
    font: 800 2.2rem/1 Inter,sans-serif;
    letter-spacing: .03em;
}
.p-caseV2__arrow {
    display: block;
    width: 50px;
    height: 82px;
    background: url("../img/case-arrow-pc.png") center / contain no-repeat;
}
.p-caseV2__worker { position: absolute; z-index: 2; right: -19px; bottom: 26px; display: block; width: 118px; height: auto; pointer-events: none; }

@media (max-width: 767px) {
    .p-caseV2 { padding: 30px 0 64px; }
    .p-caseV2__inner { width: min(calc(100% - 28px),680px); }
    .p-caseV2__heading { min-height: 140px; padding-bottom: 24px; }
    .p-caseV2__heading::before { bottom: -34px; height: 160px; background-size: 100% auto; }
    .p-caseV2__heading > img { width: 56px; height: 56px; margin-bottom: 0; }
    .p-caseV2__heading h2 { font-size: clamp(2.6rem,8vw,3.6rem); letter-spacing: -.035em; }
    .p-caseV2__card { margin-top: 50px; padding: 46px 14px 18px; border-width: 2px; border-radius: 10px; }
    .p-caseV2__card + .p-caseV2__card { margin-top: 62px; }
    .p-caseV2__cardTitle { top: -27px; width: calc(100% - 28px); min-height: 53px; padding: 8px 10px; border-width: 2px; border-radius: 8px; font-size: clamp(1.45rem,4.8vw,1.85rem); }
    .p-caseV2__meta { display: grid; grid-template-columns: 1.35fr .9fr; gap: 8px; padding-bottom: 12px; }
    .p-caseV2__meta > div { gap: 7px; }
    .p-caseV2__meta dt { padding: 5px 7px; font-size: .9rem; white-space: nowrap; }
    .p-caseV2__meta dd { font-size: 1rem; line-height: 1.35; }
    .p-caseV2__details { display: block; margin-top: 14px; }
    .p-caseV2__detail { padding: 0 2px 14px; }
    .p-caseV2__detail + .p-caseV2__detail { margin-top: 14px; padding: 0 2px 0; border-top: 2px dotted #8bb9dd; border-left: 0; }
    .p-caseV2__detail h4 { gap: 8px; margin: 12px 0 8px; font-size: 1.6rem; }
    .p-caseV2__detail h4 img { width: 32px; height: 32px; }
    .p-caseV2__detail p { font-size: 1.08rem; line-height: 1.65; }
    .p-caseV2__compare { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding: 0 34px 0 0; }
    .p-caseV2__compare figure { width: 100%; }
    .p-caseV2__compare figure > img { height: 185px; }
    .p-caseV2__compare figcaption { min-width: 0; padding: 6px 19px 7px 11px; font-size: 1.55rem; }
    .p-caseV2__arrow { width: 126px; height: 54px; background-image: url("../img/case-arrow-sp.png"); transform: none; }
    .p-caseV2__worker { right: -10px; bottom: 24px; width: 74px; }
}

@media (max-width: 359px) {
    .p-caseV2__cardTitle { font-size: 1.35rem; }
    .p-caseV2__meta { grid-template-columns: 1fr; }
    .p-caseV2__compare figure > img { height: 160px; }
}
