@charset "utf-8";

/*———————————
地域連携ページ
———————————*/

.sec-partnerMain {
    color: var(--cl-brown);

    .st-current strong {
        color: var(--cl-main);
        font-weight: 700;
    }
}

.sec-partnerConsult {
    background-color: #F4F9EE;
}

.sec-partnerRoles {
    background-color: #F2F8FA;

    .st-notice {
        margin-top: 24px;
        padding: 22px 24px;
        border-radius: var(--kadomaru);
        background-color: #F4F9EE;
        color: var(--cl-brown);
        font-size: 1.6rem;
        font-weight: 500;
        line-height: 1.9;
        text-align: center;

        @media (max-width:768px) {
            padding: 20px;
            font-size: 1.5rem;
            text-align: left;

            br {
                display: none;
            }
        }
    }

    .st-notice + .bl-roleDivision {
        margin-top: 24px;
    }
}

.sec-partnerFlow {
    background-color: var(--cl-base);
}

.sec-partnerCooperation {
    background-color: #E8F5F1;
}

.bl-partnerContact,
.bl-partnerClosing {
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 3px 5px #33333309;

    .st-copy {
        max-width: 620px;
        margin-inline: auto;
        font-size: 1.6rem;
        line-height: 1.9;
        text-align: center;

        @media (max-width:768px) {
            font-size: 1.5rem;
            text-align: left;
        }
    }

    .st-lead {
        width: fit-content;
        margin: 28px auto 16px;
        padding-bottom: 4px;
        border-bottom: 3px solid var(--cl-orange);
        color: var(--cl-brown);
        font-weight: 700;
    }

    @media (max-width:768px) {
        padding: 30px 20px;
    }
}

.bl-partnerContact {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(var(--cl-main-rgb) / 0.12);
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(var(--cl-main-rgb) / 0.12);

    &::before {
        content: "";
        height: 5px;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        background: linear-gradient(90deg,
                var(--cl-main) 0 25%,
                var(--cl-yellow) 25% 50%,
                var(--cl-orange) 50% 75%,
                var(--cl-blue) 75% 100%);
    }

    .st-lead {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        width: fit-content;
        margin: 30px auto 22px;
        padding: 0;
        border-bottom: 0;
        border-radius: 0;
        background-color: transparent;
        color: var(--cl-brown);
        font-size: 1.8rem;

        svg {
            width: 24px;
            height: 24px;
            flex: 0 0 auto;
            fill: none;
            color: var(--cl-orange);
            stroke: currentColor;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;

            circle {
                fill: currentColor;
                stroke: none;
            }
        }
    }

    .st-notice {
        margin-top: 24px;
        padding: 12px 16px;
        border-radius: 10px;
        background-color: #F4F9EE;
        color: rgba(111, 82, 54, 0.78);
        font-size: 1.5rem;
        line-height: 1.7;
        text-align: center;
    }

    @media (max-width:768px) {
        .st-lead {
            margin-top: 26px;
            font-size: 1.6rem;
            line-height: 1.6;

            svg {
                margin-top: 1px;
            }
        }
    }
}

.bl-contactInfo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;

    > a,
    > div {
        min-height: 92px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 14px 20px;
        border-radius: var(--kadomaru);
        color: #fff;
    }

    > a {
        background-color: var(--cl-main);

        &::after {
            content: "";
            width: 9px;
            height: 9px;
            position: absolute;
            top: 50%;
            right: 22px;
            border-top: 2px solid #fff;
            border-right: 2px solid #fff;
            transform: translateY(-50%) rotate(45deg);
        }
    }

    > div {
        background-color: var(--cl-orange);
    }

    .st-label {
        display: flex;
        gap: 7px;
        align-items: center;
        font-size: 1.5rem;
        font-weight: 700;

        img,
        svg {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }

        svg {
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;

            circle {
                fill: currentColor;
                stroke: none;
            }
        }
    }

    strong {
        font-size: 2.3rem;
        letter-spacing: 0.02em;
    }

    @media (max-width:768px) {
        grid-template-columns: 1fr;
        gap: 12px;

        > a,
        > div {
            min-height: 80px;
        }

        strong {
            font-size: 2.1rem;
        }
    }
}

.bl-roleDivision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    .bl-roleCard {
        padding: 28px;
        border-radius: var(--kadomaru);
        background-color: #fff;
        box-shadow: 0 3px 5px #3333331b;

        h3 {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 18px;
            padding-bottom: 14px;
            border-bottom: 1px solid #6F523633;
            color: var(--cl-brown);
            font-size: 2rem;

            span {
                width: 14px;
                height: 14px;
                flex: 0 0 auto;
                border-radius: 50%;
            }
        }

        ul {
            padding-left: 0;
        }

        li {
            position: relative;
            padding-left: 18px;
            font-size: 1.6rem;
            line-height: 1.7;

            &::before {
                content: "";
                width: 6px;
                height: 6px;
                position: absolute;
                left: 0;
                top: 0.7em;
                border-radius: 50%;
            }

            &:not(:last-child) {
                margin-bottom: 10px;
            }
        }

        &.st-blue {
            border-top: 4px solid var(--cl-blue);

            h3 span,
            li::before {
                background-color: var(--cl-blue);
            }
        }

        &.st-green {
            border-top: 4px solid var(--cl-sub);

            h3 span,
            li::before {
                background-color: var(--cl-sub);
            }
        }
    }

    @media (max-width:768px) {
        grid-template-columns: 1fr;

        .bl-roleCard {
            padding: 24px 20px;

            h3 {
                font-size: 1.8rem;
            }

            li {
                font-size: 1.5rem;
            }
        }
    }
}

.st-flowLead {
    margin-top: 24px;
    color: var(--cl-brown);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
}

.bl-flowLegend {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding-left: 0;
    color: var(--cl-brown);
    font-size: 1.4rem;
    font-weight: 700;

    li {
        display: flex;
        gap: 7px;
        align-items: center;

        &::before {
            content: "";
            width: 9px;
            height: 9px;
            border-radius: 50%;
        }

        &.st-hospital::before {
            background-color: var(--cl-blue);
        }

        &.st-maemu::before {
            background-color: var(--cl-main);
        }
    }
}

.st-flowScrollHint {
    display: none;
}

.bl-flowRoutesScroller {
    margin-top: 38px;
    outline: none;

    &:focus-visible {
        border-radius: var(--kadomaru);
        box-shadow: 0 0 0 3px rgba(var(--cl-main-rgb) / 0.22);
    }
}

.bl-flowRoutes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    position: relative;
    padding-bottom: 50px;

    &::before,
    &::after {
        content: "";
        width: 25%;
        height: 2px;
        position: absolute;
        bottom: 30px;
        opacity: 0.72;
    }

    &::before {
        left: 25%;
        background-color: var(--cl-blue);
        transform: rotate(6deg);
        transform-origin: left center;
    }

    &::after {
        right: 25%;
        background-color: var(--cl-orange);
        transform: rotate(-6deg);
        transform-origin: right center;
    }
}

.bl-flowRoute {
    --flow-accent: var(--cl-blue);
    display: grid;
    grid-template-rows: auto 1fr;

    &.st-outpatient {
        --flow-accent: var(--cl-orange);
    }
}

.bl-flowRouteHeader {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 0 0 12px;
    color: var(--cl-brown);

    .st-routeIcon {
        width: 34px;
        height: 34px;
        display: grid;
        place-content: center;
        flex: 0 0 auto;
        border: 1px solid rgba(111, 82, 54, 0.2);
        border-radius: 10px;
        background-color: #fff;
        color: var(--flow-accent);
        box-shadow: 0 2px 5px rgba(111, 82, 54, 0.08);
    }

    svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    h3 {
        font-size: 2rem;
        line-height: 1.35;
    }

    p {
        margin-top: 1px;
        font-size: 1.3rem;
        font-weight: 500;
        line-height: 1.4;
    }
}

.bl-flowSteps {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-left: 0;

    > li {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
        position: relative;

        &:not(:last-child)::before {
            content: "";
            width: 2px;
            position: absolute;
            top: 22px;
            bottom: -22px;
            left: 13px;
            background-color: color-mix(in srgb, var(--flow-accent) 52%, transparent);
        }
    }

    .st-num {
        width: 28px;
        height: 28px;
        display: grid;
        place-content: center;
        z-index: 1;
        border-radius: 50%;
        background-color: var(--flow-accent);
        color: #fff;
        font-size: 1.3rem;
        font-weight: 700;
    }

    .bl-flowCard {
        display: grid;
        grid-template-rows: auto 1fr;

        dl {
            grid-template-rows: repeat(2, minmax(0, 1fr));
        }
    }
}

.bl-flowCard {
    overflow: hidden;
    border: 1px solid rgba(111, 82, 54, 0.18);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 3px 7px rgba(111, 82, 54, 0.08);

    h3,
    h4 {
        color: var(--cl-brown);
    }

    h4 {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(111, 82, 54, 0.2);
        font-size: 1.6rem;
        line-height: 1.5;
    }

    dl {
        display: grid;
    }

    dl > div {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: stretch;
        min-height: 50px;
        padding: 8px 12px 8px 7px;

        &:first-child {
            background-color: rgba(113, 197, 213, 0.13);
        }

        &:last-child {
            border-top: 1px solid rgba(111, 82, 54, 0.12);
            background-color: rgba(145, 196, 81, 0.13);
        }
    }

    dt {
        display: flex;
        flex-direction: column;
        gap: 3px;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;

        &::before {
            content: "";
            width: 22px;
            height: 22px;
            flex: 0 0 auto;
            background-repeat: no-repeat;
            background-position: center;
        }

        &.st-hospital::before {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E9EB3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16M3 21h18M9 8h6M12 5v6M8 14h2M14 14h2M8 18h2M14 18h2'/%3E%3C/svg%3E");
            background-size: 20px 20px;
        }

        &.st-maemu::before {
            background-image: url("../img/logo-main.webp");
            background-size: 25px auto;
            background-position: center top;
        }
    }

    dl > div:first-child dt {
        color: color-mix(in srgb, var(--cl-blue) 68%, var(--cl-brown));
    }

    dl > div:last-child dt {
        color: var(--cl-main);
    }

    dd {
        align-self: center;
        margin: 0;
        color: var(--cl-brown);
        font-size: 1.5rem;
        line-height: 1.6;
    }
}

.st-flowMerge {
    display: flex;
    gap: 7px;
    align-items: center;
    width: fit-content;
    z-index: 1;
    margin: 6px auto 20px;
    padding: 7px 15px;
    border: 1px solid var(--cl-main);
    border-radius: 999px;
    background-color: rgba(var(--cl-main-rgb) / 0.08);
    color: var(--cl-main);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

.bl-flowCommon {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    padding-left: 0;

    > li {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        position: relative;

        &:not(:last-child) {
            margin-bottom: 24px;

            &::before {
                content: "";
                width: 2px;
                position: absolute;
                top: 34px;
                bottom: -34px;
                left: 20px;
                background-color: rgba(var(--cl-main-rgb) / 0.45);
            }
        }
    }

    .st-flowIcon {
        width: 42px;
        height: 42px;
        display: grid;
        place-content: center;
        z-index: 1;
        border-radius: 50%;
        background-color: var(--cl-main);
        color: #fff;
    }

    .st-continuing .st-flowIcon {
        background-color: var(--cl-main);
    }

    svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

.bl-flowCard.st-common {
    h3 {
        min-height: 52px;
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(111, 82, 54, 0.2);
        font-size: 2rem;
        line-height: 1.5;

        span {
            flex: 0 0 auto;
            color: var(--cl-main);
        }
    }

    dl > div {
        grid-template-columns: 88px minmax(0, 1fr);
        min-height: 64px;
        padding: 11px 18px 11px 10px;
    }

    dt {
        font-size: 1.2rem;

        &::before {
            width: 26px;
            height: 26px;
        }

        &.st-hospital::before {
            background-size: 23px 23px;
        }

        &.st-maemu::before {
            background-size: 30px auto;
        }
    }

    dd {
        font-size: 1.6rem;
    }
}

.st-continuing .bl-flowCard.st-common {
    border-color: rgba(var(--cl-main-rgb) / 0.65);

    h3 {
        background-color: rgba(21, 160, 112, 0.13);
    }
}

.bl-flowCaseList {
    display: grid;
    gap: 4px;

    strong {
        color: color-mix(in srgb, var(--cl-blue) 68%, var(--cl-brown));
    }
}

@media (max-width:768px) {
    .st-flowLead {
        margin-top: 20px;
        font-size: 1.5rem;
        text-align: left;
    }

    .bl-flowLegend {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .st-flowScrollHint {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: flex-end;
        margin-top: 18px;
        padding-right: 2px;
        color: var(--cl-main);
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.4;

        .st-arrow {
            display: inline-block;
            font-size: 1.8rem;
            line-height: 1;
            animation: flowScrollHintArrow 1.4s ease-in-out infinite;
        }
    }

    .bl-flowRoutesScroller {
        width: calc(100% + 20px);
        margin-top: 10px;
        margin-right: -20px;
        padding: 0 20px 12px 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 0 20px;
        scroll-snap-type: x proximity;
        scrollbar-color: rgba(var(--cl-main-rgb) / 0.55) rgba(111, 82, 54, 0.09);
        scrollbar-width: thin;

        &::-webkit-scrollbar {
            height: 6px;
        }

        &::-webkit-scrollbar-track {
            border-radius: 999px;
            background-color: rgba(111, 82, 54, 0.09);
        }

        &::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background-color: rgba(var(--cl-main-rgb) / 0.55);
        }
    }

    .bl-flowRoutes {
        width: max-content;
        grid-template-columns:
            clamp(220px, calc(100vw - 140px), 285px)
            clamp(260px, calc(100vw - 68px), 330px);
        gap: 16px;
        padding-bottom: 4px;

        &::before,
        &::after {
            display: none;
        }
    }

    .bl-flowRoute {
        scroll-snap-align: start;
    }

    .bl-flowRouteHeader h3 {
        font-size: 1.9rem;
    }

    .bl-flowCard {
        h4 {
            padding-inline: 11px;
            font-size: 1.5rem;
        }

        dl > div {
            grid-template-columns: 66px minmax(0, 1fr);
            padding-right: 9px;
            padding-left: 5px;
        }

        dd {
            font-size: 1.4rem;
        }
    }

    .st-discharge .bl-flowCard dl > div {
        grid-template-columns: 54px minmax(0, 1fr);
        padding-left: 3px;
    }

    .st-flowMerge {
        margin-top: 15px;
        margin-bottom: 22px;
        font-size: 1.3rem;
    }

    .bl-flowCommon {
        > li {
            grid-template-columns: 36px minmax(0, 1fr);
            gap: 9px;

            &:not(:last-child)::before {
                top: 29px;
                bottom: -30px;
                left: 17px;
            }
        }

        .st-flowIcon {
            width: 36px;
            height: 36px;
        }

        svg {
            width: 19px;
            height: 19px;
        }
    }

    .bl-flowCard.st-common {
        h3 {
            min-height: 48px;
            gap: 8px;
            padding: 12px 13px;
            font-size: 1.7rem;
        }

        dl > div {
            grid-template-columns: 68px minmax(0, 1fr);
            padding: 10px 10px 10px 5px;
        }

        dt {
            font-size: 1rem;
        }

        dd {
            font-size: 1.4rem;
        }
    }
}

@keyframes flowScrollHintArrow {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(7px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .st-flowScrollHint .st-arrow {
        animation: none;
    }
}

.bl-cooperationList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-left: 0;

    li {
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 18px;
        align-items: start;
        padding: 24px;
        border-radius: var(--kadomaru);
        background-color: #fff;
        box-shadow: 0 3px 5px rgba(var(--cl-main-rgb) / 0.1);

        &:nth-child(3n+1) .st-icon {
            background-color: var(--cl-orange);
        }

        &:nth-child(3n+2) .st-icon {
            background-color: var(--cl-yellow);
            color: #fff;
        }

        &:nth-child(3n+3) .st-icon {
            background-color: var(--cl-blue);
        }
    }

    .st-icon {
        width: 52px;
        height: 52px;
        display: grid;
        place-content: center;
        border-radius: 50%;
        color: #fff;
        font-size: 1.6rem;
        font-weight: 700;

        svg {
            width: 29px;
            height: 29px;
            display: block;
            fill: none;
            stroke: currentColor;
            overflow: hidden;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
            shape-rendering: geometricPrecision;
        }
    }

    h3 {
        margin-bottom: 8px;
        color: var(--cl-brown);
        font-size: 1.8rem;
        line-height: 1.5;
    }

    p {
        font-size: 1.5rem;
        line-height: 1.7;
    }

    @media (max-width:768px) {
        grid-template-columns: 1fr;

        li {
            grid-template-columns: 46px 1fr;
            gap: 14px;
            padding: 20px;
        }

        .st-icon {
            width: 46px;
            height: 46px;

            svg {
                width: 26px;
                height: 26px;
            }
        }

        h3 {
            font-size: 1.7rem;
        }

        p {
            font-size: 1.4rem;
        }
    }
}

.sec-partnerCta {
    padding: 80px 20px 100px;
    background-color: var(--cl-base);
}

.bl-partnerClosing {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;

    h2 {
        margin-bottom: 14px;
        color: var(--cl-brown);
        font-size: 2.6rem;

        @media (max-width:768px) {
            font-size: 2rem;
            line-height: 1.5;
        }
    }

    > p {
        margin-bottom: 28px;
        font-size: 1.6rem;

        @media (max-width:768px) {
            font-size: 1.5rem;
        }
    }

    .bl-contactNotes {
        grid-template-columns: 1fr;
        margin-top: 24px;

        p {
            font-size: 1.7rem;
            font-weight: 500;

            @media (max-width:768px) {
                font-size: 1.6rem;
            }
        }
    }

    .bl-contactActions .el-btn {
        font-size: 1.9rem;

        @media (max-width:768px) {
            font-size: 1.7rem;
        }
    }
}

@media (max-width:768px) {
    .sec-partnerCta {
        padding-block: 70px 100px;
    }
}
