/* 医療機関の活用情報を導入事例ハブへ統合するためのレイアウト */
.uc-medical {
    background: #fff;
    border-top: 1px solid #e5eaf0;
}

.uc-medical__intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.uc-medical__lead {
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1.9;
}

.uc-medical__anchor-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 36px auto 0;
}

.uc-medical__anchor-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #cdd8e3;
    border-radius: 8px;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.uc-medical__anchor-nav a:hover,
.uc-medical__anchor-nav a:focus-visible {
    border-color: #00a2fa;
    background: #f0f8ff;
    color: #0078bd;
}

.uc-medical__section {
    max-width: 1100px;
    margin: 96px auto 0;
    scroll-margin-top: 96px;
}

.uc-medical__section-heading {
    margin-bottom: 32px;
    color: #1e293b;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.uc-medical__section-heading span {
    display: block;
    margin-bottom: 8px;
    color: #00a2fa;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.uc-medical__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.uc-medical__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.uc-medical__card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f5f7fa;
}

.uc-medical__card--reason img {
    object-fit: contain;
    padding: 16px;
}

.uc-medical__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.uc-medical__card-kicker {
    margin-bottom: 8px;
    color: #00a2fa;
    font-size: 1.15rem;
    font-weight: 600;
}

.uc-medical__card-title {
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.5;
}

.uc-medical__card-text {
    margin: 0;
    color: #64748b;
    font-size: 1.3rem;
    line-height: 1.85;
}

.uc-medical__care-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.uc-medical__diagram {
    max-width: 640px;
    margin: 32px auto 0;
    text-align: center;
}

.uc-medical__diagram img {
    width: 100%;
    height: auto;
}

.uc-medical__care-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.uc-medical__care-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.uc-medical__care-card .uc-medical__card-body {
    padding: 24px;
}

.uc-subsidy {
    padding: 32px;
    border: 1px solid #d8e8f4;
    border-radius: 12px;
    background: #f7fbff;
}

.uc-subsidy__steps,
.uc-subsidy__plans {
    display: grid;
    gap: 16px;
}

.uc-subsidy__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 40px;
}

.uc-subsidy__step {
    min-height: 150px;
    padding: 20px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.uc-subsidy__step-number {
    color: #00a2fa;
    font-family: 'Barlow', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

.uc-subsidy__step-title {
    margin: 10px 0 6px;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
}

.uc-subsidy__step-text {
    margin: 0;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.uc-subsidy__headline {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
}

.uc-subsidy__headline strong {
    color: #00a2fa;
    font-size: 2.2rem;
}

.uc-subsidy__lead {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1.8;
    text-align: center;
}

.uc-subsidy__lead strong {
    color: #1e293b;
    font-size: 1.55rem;
}

.uc-subsidy__plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto 24px;
}

.uc-subsidy__plan {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.uc-subsidy__plan--featured {
    border: 2px solid #00a2fa;
}

.uc-subsidy__plan-name {
    padding: 14px 12px;
    background: #00a2fa;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.uc-subsidy__plan--featured .uc-subsidy__plan-name {
    background: linear-gradient(135deg, #00a2fa, #026ea8);
}

.uc-subsidy__plan--pro .uc-subsidy__plan-name {
    background: #1f2536;
}

.uc-subsidy__plan-name small {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 400;
}

.uc-subsidy__plan-body {
    padding: 20px 16px;
}

.uc-subsidy__price {
    margin: 0;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.8;
}

.uc-subsidy__price + .uc-subsidy__price {
    margin-top: 8px;
}

.uc-subsidy__price strong {
    color: #1e293b;
}

.uc-subsidy__price--highlight,
.uc-subsidy__price--highlight strong {
    color: #1e293b;
    font-weight: 700;
}

.uc-subsidy__note {
    margin: 0;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.uc-subsidy__notice {
    max-width: 680px;
    margin: 24px auto 0;
    padding: 16px 20px;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #fff8eb;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.7;
}

.uc-subsidy__notice strong {
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
    font-weight: 700;
}

.uc-medical__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.uc-medical__cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 8px;
    background: #00a2fa;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.uc-medical__cta a:first-child {
    background: #1f2536;
}

.uc-medical__cta a:hover,
.uc-medical__cta a:focus-visible {
    filter: brightness(.94);
}

@media (max-width: 900px) {
    .uc-medical__grid,
    .uc-subsidy__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uc-medical__care-grid,
    .uc-subsidy__plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .uc-medical__section {
        margin-top: 72px;
    }

    .uc-medical__lead {
        font-size: 1.35rem;
        text-align: left;
    }

    .uc-medical__anchor-nav {
        justify-content: stretch;
    }

    .uc-medical__anchor-nav a {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        padding-inline: 10px;
        text-align: center;
    }

    .uc-medical__grid,
    .uc-subsidy__steps {
        grid-template-columns: 1fr;
    }

    .uc-medical__care-card {
        grid-template-columns: 1fr;
    }

    .uc-medical__care-card img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .uc-subsidy {
        padding: 20px 16px;
    }
}
