:root {
    --ink: #333;
    --brand: #003499;
    --blue: #0079d1;
    --cyan: #44c0f0;
    --urgent: #a82a23;
    --muted: #495d71;
    --line: #c5d5e3;
    --tint: #e7f1f8;
    --button-shadow: 0 3px 9px rgba(150, 175, 223, .8);
    --ease: cubic-bezier(.445, .05, .55, .95);
}

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

.rescue {
    margin: 0;
    color: var(--ink);
    background: white;
    font: 500 16px/1.8 "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
    letter-spacing: .035em;
}

.rescue {
    --type-section: 2rem;
    --type-intro: 1.75rem;
    --type-band: 1.875rem;
    --type-subhead: 1.5rem;
    --type-lead: 1.5rem;
    --type-list: 1.125rem;
    --type-copy: 1rem;
    --type-tab: 1.375rem;
    --type-action: 1.125rem;
}

@media (max-width: 1199px) {
    .rescue {
        --type-section: 1.875rem;
        --type-intro: 1.5rem;
        --type-band: 1.625rem;
        --type-subhead: 1.375rem;
        --type-list: 1rem;
        --type-action: 1.25rem;
    }
}

@media (max-width: 840px) {
    .rescue {
        --type-section: 1.75rem;
        --type-intro: 1.375rem;
        --type-band: 1.5rem;
        --type-subhead: 1.25rem;
        --type-lead: 1.25rem;
        --type-copy: .875rem;
        --type-tab: 1.125rem;
        --type-action: 1.125rem;
    }
}

@media (max-width: 540px) {
    .rescue {
        --type-section: 1.5rem;
        --type-intro: 1.125rem;
        --type-band: 1.25rem;
        --type-subhead: 1.125rem;
        --type-lead: .9375rem;
        --type-list: .875rem;
        --type-tab: 1rem;
        --type-action: 1rem;
    }
}

.container {
    width: min(calc(100% - 80px), 1180px);
    margin-inline: auto;
}

.rescue :where(h1, h2, h3, p, dl, dd, ol, ul) {
    margin: 0;
}

.rescue a {
    color: inherit;
    text-underline-offset: .25em;
}

.rescue :focus-visible {
    outline: 3px solid #01449a;
    outline-offset: 4px;
}

.rescue h2,
.rescue h3 {
    line-height: 1.45;
}

.rescue-section {
    padding-block: 96px;
}

.rescue-section h2 {
    font-size: var(--type-section);
    line-height: 1.75;
    letter-spacing: .02em;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.rescue) {
        scroll-behavior: smooth;
    }
}

.rescue-foot .container {
    display: flex;
    align-items: center;
}

.kv-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0876b2;
}

.rescue-mark {
    flex: none;
    width: 38px;
    height: 38px;
}

.rescue .rescue-action,
.rescue .support-cta,
.diagnosis-action {
    background: var(--urgent);
    color: white;
    border: 0;
    box-shadow: var(--button-shadow);
    text-decoration: none;
    font-weight: 700;
    transition: background-color .6s var(--ease), box-shadow .6s var(--ease);
}

.rescue .rescue-action:hover,
.rescue .support-cta:hover,
.rescue .diagnosis-action:hover {
    color: white;
    background: var(--blue);
    box-shadow: 0 3px 9px transparent;
}

.rescue-kv {
    padding: clamp(25px, 3.5vw, 45px) 0 clamp(42px, 6vw, 80px);
    background: var(--blue);
    color: white;
}

.kv-grid {
    container-type: inline-size;
    margin-inline: 40px;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    text-align: center;
    min-height: clamp(450px, 34vw, 610px);
    padding: clamp(34px, 4.8vw, 66px) clamp(30px, 5.8vw, 80px);
    background: white;
    color: var(--ink);
    border-radius: 24px;
}

.kv-brand {
    grid-column: 1;
    gap: 10px;
}

.kv-brand .rescue-mark {
    width: clamp(46px, 7cqi, 132px);
    height: auto;
}

.kicker {
    font-size: clamp(12px, 1.45cqi, 28px);
    font-weight: 700;
    line-height: 1.45;
}

.kv-name {
    font-size: clamp(24px, 3.15cqi, 80px);
    line-height: 1.3;
    letter-spacing: -.035em;
    font-weight: 900;
}

.rescue h1 {
    grid-column: 1;
    margin: 60px 0 72px;
    color: #0076b7;
    font-size: min(clamp(34px, max(3.8vw, 4.5cqi), 96px), 5.4cqi);
    line-height: 1.2;
    letter-spacing: .035em;
    font-weight: 900;
}

.rescue h1>* {
    display: block;
}

.rescue h1 strong {
    font-weight: inherit;
}

.kv-path {
    grid-column: 1;
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #094474;
    width: min(100%, max(493px, 47.7cqi));
}

.kv-path li {
    --arrow: 8px;
    display: grid;
    place-items: center;
    flex: 1 1 auto;
    padding: 8px 14px;
    background: #c3e4f8;
    font-weight: 700;
    font-size: clamp(13px, 1.44cqi, 28px);
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, 0 100%, var(--arrow) 50%);
}

.kv-path li:first-child {
    padding-left: 9px;
    background: #6dc5f2;
    clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%, calc(100% - var(--arrow)) 100%, 0 100%);
}

.kv-path li+li {
    margin-left: -5px;
}

.kv-path li:last-child {
    background: #dbf1ff;
}

.kv-actions {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, max(450px, 49.8cqi));
    margin: 23px 0 12px;
}

.rescue .rescue-action,
.rescue .support-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: var(--type-action);
    line-height: 1.45;
    letter-spacing: .05em;
}

.rescue-action span,
.support-cta::after {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    background: white;
    color: var(--brand);
    border-radius: 50%;
    font: 700 16px/1 Arial, sans-serif;
}

.support-cta::after {
    content: "›";
}

.rescue .kv-actions .rescue-action {
    position: relative;
    justify-content: center;
    min-height: 64px;
    padding-inline: 52px;
    font-size: 22px;
    text-align: center;
    white-space: nowrap;
}

.kv-actions .rescue-action b {
    font-weight: inherit;
}

.kv-actions .rescue-action span {
    position: absolute;
    inset-inline-end: 18px;
    width: 28px;
    height: 28px;
}

.kv-actions .rescue-action span::before {
    content: "";
    width: 6px;
    height: 10px;
    background: currentColor;
    clip-path: polygon(0 0, 34% 0, 100% 50%, 34% 100%, 0 100%, 66% 50%);
}

.kv-actions .rescue-action--emergency span {
    color: var(--urgent);
}

.rescue .kv-actions .rescue-action--emergency:hover {
    background-color: #86211c;
}

@media (min-width: 1200px) {
    .kv-path li {
        min-height: clamp(44px, 4.9cqi, 88px);
    }
}

.rescue .rescue-action--checkup {
    background-color: var(--brand);
}

.rescue .rescue-action--checkup:hover {
    background-color: #0068b4;
}

@media (max-width: 1199px) {
    .kv-actions {
        gap: 8px;
    }

    .rescue .kv-actions .rescue-action {
        min-height: 54px;
        padding-inline: 29px;
        font-size: clamp(.875rem, 4vw, 1.125rem);
        letter-spacing: 0;
    }

    .kv-actions .rescue-action span {
        inset-inline-end: 9px;
        width: 20px;
        height: 20px;
    }
}

.hours {
    color: #3d5368;
    font-size: 13px;
    font-weight: 700;
}

.scroll-cue {
    display: grid;
    place-items: center;
    width: 56px;
    height: 48px;
    margin: 6px auto 0;
}

.scroll-cue span {
    width: 14px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.kv-intro {
    margin-top: clamp(18px, 3vw, 44px);
    text-align: center;
    font-size: var(--type-intro);
    line-height: 1.75;
    font-weight: 700;
    letter-spacing: .05em;
}

.kv-intro p+p {
    margin-top: 4px;
}

.care-action .rescue-action {
    width: min(100%, 410px);
    margin-inline: auto;
}

.rescue-faq > .container {
    width: min(calc(100% - 32px), 880px);
}

.rescue-faq h2 {
    margin-bottom: clamp(24px, 3vw, 36px);
    text-align: center;
}

.rescue-faq-item {
    border-bottom: 1px solid var(--line);
}

.rescue-faq-item:first-of-type {
    border-top: 1px solid var(--line);
}

.rescue-faq-item summary {
    display: grid;
    grid-template-columns: 1.6em 1fr 1em;
    align-items: baseline;
    gap: .6em;
    padding: 18px 8px;
    color: #173c5a;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.rescue-faq-item summary::-webkit-details-marker {
    display: none;
}

.rescue-faq-item summary span {
    color: var(--brand);
    text-align: center;
}

.rescue-faq-item summary::after {
    content: "";
    width: .55em;
    height: .55em;
    align-self: center;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
}

.rescue-faq-item[open] summary::after {
    transform: rotate(225deg);
}

.rescue-faq-item p {
    margin: 0 8px 18px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--tint);
    font-size: 1rem;
}

.application {
    background: var(--tint);
}

.application-grid {
    max-width: 1000px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 5%;
    align-items: start;
}

.application #contact-heading {
    font-size: var(--type-section, 32px);
    line-height: 1.55;
    letter-spacing: .025em;
}

.application h2 span {
    display: inline-block;
}

.application h2+p {
    margin-top: 16px;
    font-size: var(--type-list, 18px);
    line-height: 1.85;
}

.application .closing-phone {
    display: inline-block;
    margin-top: 22px;
    color: var(--brand);
    font: 700 clamp(25px, 2.5vw, 32px)/1.4 Roboto, Arial, sans-serif;
    letter-spacing: .025em;
}

.application .hours {
    font-size: 14px;
    line-height: 1.7;
}

.rescue-mobile-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: center;
    gap: 8px;
    position: fixed;
    z-index: 4;
    bottom: 0;
    inset-inline: 0;
    padding: 6px 16px max(6px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
}

.rescue-mobile-cta[inert] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .rescue-mobile-cta {
        transition: opacity .28s ease, transform .28s ease-out, visibility 0s;
    }

    .rescue-mobile-cta[inert] {
        transform: translateY(16px);
        transition-delay: 0s, 0s, .28s;
    }
}

.rescue-mobile-cta .rescue-action {
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding-inline: 12px;
}

.rescue-mobile-cta .rescue-action--emergency {
    -webkit-tap-highlight-color: rgba(168, 42, 35, .18);
}

.rescue-mobile-cta .rescue-action--emergency:is(:hover, :active, :focus-visible) {
    background-color: #86211c;
}

.rescue-mobile-cta .rescue-action--emergency span {
    color: var(--urgent);
}

.support-section {
    background: #e7f2f8;
}

.support-section .container {
    max-width: 1000px;
}

.support-heading {
    margin-bottom: 32px;
    text-align: center;
}

.support-heading h2 {
    color: #202d38;
    margin-bottom: 8px;
}

.support-heading h2 span,
.support-scene figcaption span {
    display: inline-block;
}

.support-heading > p {
    font-size: var(--type-list);
    line-height: 1.75;
}

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

.support-card {
    --card-accent: #0071b6;
    --card-button: #003499;
    --card-button-text: white;
    --card-hover: #005eab;
    --card-rule: #bfd8e9;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    min-width: 0;
    position: relative;
    overflow: clip;
    padding: 32px clamp(22px, 2.2vw, 32px) 28px;
    border: 1px solid var(--card-rule);
    border-radius: 18px;
    background: white;
    color: #25313d;
}

.support-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: #1279b9;
}

.support-card--emergency {
    --card-accent: #ffdc38;
    --card-button: #ffdc38;
    --card-button-text: #151a1e;
    --card-hover: #ffe96e;
    --card-rule: #d5837d;
    color: white;
    background: #a82a23;
}

.support-card--emergency::before {
    background: repeating-linear-gradient(-51deg, #ffdc38 0 10px, #151a1e 10px 20px);
}

.support-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--card-accent);
}

.support-symbol {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    color: white;
    background: #1279b9;
}

.support-card--emergency .support-symbol {
    border: 1px solid #7f7236;
    border-radius: 10px;
    color: var(--card-accent);
    background: #2c3029;
}

.support-symbol svg {
    width: 30px;
    height: 30px;
}

.card-label {
    font: 700 12px/1.4 Arial, sans-serif;
    letter-spacing: .12em;
}

.support-card h3 {
    font-size: var(--type-band);
    line-height: 1.35;
}

.support-audience {
    margin: 16px 0 0;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.6;
    font-weight: 700;
    text-wrap: balance;
}

.support-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 16px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #eaf5fc;
    color: #18496b;
}

.support-card--emergency .support-scene {
    background: #f4f1e5;
    color: #3a3422;
}

.support-scene img {
    display: block;
    width: min(44%, 178px);
    height: auto;
}

.support-scene figcaption {
    min-width: 0;
    font-size: var(--type-copy);
    font-weight: 700;
    line-height: 1.65;
    text-wrap: pretty;
}

.support-examples {
    margin: 0 0 20px;
    padding: 12px 0 0 1.25em;
    border-top: 1px solid var(--card-rule);
    font-size: var(--type-list);
    line-height: 1.75;
    list-style: disc;
}

.support-examples li::marker {
    color: var(--card-accent);
}

.rescue .support-card .support-cta {
    align-self: end;
    background: var(--card-button);
    color: var(--card-button-text);
    box-shadow: none;
}

.rescue .support-card .support-cta:hover {
    background: var(--card-hover);
}

.support-card .support-cta::after {
    background: var(--card-button-text);
    color: var(--card-button);
}

.support-card .support-cta:focus-visible {
    outline-color: var(--card-accent);
}

.diagnosis-form {
    min-width: 0;
    padding: clamp(20px, 3vw, 44px);
    background: white;
    border: 2px solid #1787cf;
    border-radius: 16px;
    scroll-margin-top: 20px;
}

.diagnosis-form h2 {
    font-size: clamp(23px, 2vw, 31px);
}

.diagnosis-form header p,
.password-note,
.field-error,
.diagnosis-consent {
    font-size: 14px;
}

.diagnosis-form header {
    margin-bottom: 22px;
}

.diagnosis-form .form-scope {
    margin: 8px 0 4px;
    font-weight: 700;
}

.diagnosis-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.diagnosis-wide {
    grid-column: 1 / -1;
}

.diagnosis-field label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--type-copy, 16px);
    line-height: 1.6;
    font-weight: 700;
}

.diagnosis-field small {
    color: var(--muted);
    margin-left: 4px;
    font-size: 12px;
}

.diagnosis-field :is(input, select, textarea) {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #758ba0;
    border-radius: 5px;
    background: white;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.65;
}

.diagnosis-field textarea {
    display: block;
    resize: vertical;
}

.diagnosis-consent {
    margin: 16px 0;
}

.diagnosis-consent input {
    width: 19px;
    height: 19px;
    vertical-align: middle;
    accent-color: var(--brand);
}

.rescue .password-note {
    margin-top: 12px;
}

.diagnosis-action {
    padding: 14px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: white;
    font: inherit;
    font-size: var(--type-action, 18px);
    line-height: 1.5;
    font-weight: 700;
    cursor: pointer;
}

.diagnosis-action:disabled {
    opacity: .65;
    cursor: wait;
}

.field-error,
[role="alert"] {
    color: var(--urgent);
}

.form-status:not([hidden]) {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid currentColor;
}

.rescue-foot .container {
    gap: 24px;
    flex-wrap: wrap;
    padding-block: 28px;
    font-size: 14px;
    line-height: 1.7;
}

.rescue-foot strong {
    margin-right: auto;
    font-size: 18px;
}

@media (max-width: 899px) {
    .container {
        width: calc(100% - 32px);
    }

    .rescue-section {
        padding-block: 64px;
    }

    .support-heading {
        margin-bottom: 24px;
    }

    .support-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .support-card {
        display: block;
        grid-row: auto;
        min-height: 0;
        padding: 24px 20px 20px;
    }

    .support-symbol {
        width: 44px;
        height: 44px;
    }

    .support-symbol svg {
        width: 28px;
        height: 28px;
    }

    .rescue .support-cta,
    .rescue .rescue-action {
        min-height: 52px;
    }

    .application-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .application h2+p {
        margin-top: 12px;
    }
}

@media (max-width: 760px) {
    .container {
        width: calc(100% - 32px);
    }

    .rescue-kv {
        padding: 20px 0 46px;
    }

    .kv-grid {
        min-height: 0;
        padding: 32px clamp(17px, 5.8vw, 34px) 10px;
        border-radius: 16px;
    }

    .kv-brand {
        gap: 6px;
    }

    .kv-brand .rescue-mark {
        width: 40px;
        height: 40px;
    }

    .kv-name {
        font-size: clamp(22px, 6.25vw, 32px);
    }

    .kicker {
        font-size: clamp(11px, 3vw, 14px);
    }

    .rescue h1 {
        margin: 40px 0 52px;
        font-size: clamp(23px, 10.35cqi, 45px);
        line-height: 1.2;
    }

    .kv-path li {
        padding: 7px 8px;
        font-size: clamp(11px, 3.05vw, 14px);
    }

    .kv-actions {
        width: 100%;
        margin: 18px 0 12px;
    }

    .rescue :is(.kv-actions, .rescue-mobile-cta) .rescue-action {
        justify-content: center;
        gap: 10px;
        min-height: 52px;
        padding: 10px;
        font-size: 1rem;
        letter-spacing: 0;
    }

    :is(.kv-actions, .rescue-mobile-cta) .rescue-action span {
        position: static;
        width: 18px;
        height: 18px;
    }

    .kv-intro {
        max-width: 34em;
        padding: 0 6px;
        margin-top: 16px;
    }

    .rescue-foot .container {
        gap: 8px 18px;
    }

    .rescue-foot strong {
        width: 100%;
    }
}

@media (min-width: 761px) and (max-width: 840px) {
    .rescue h1 {
        font-size: min(5.85vw, 6.95cqi);
        letter-spacing: .01em;
    }
}

@media (max-width: 840px) {
    .kv-grid {
        margin-inline: 25px;
    }
}

@media (max-width: 540px) {
    .kv-grid {
        margin-inline: 15px;
    }
}

@media (max-width: 480px) {
    .support-scene {
        padding: 8px;
        gap: 6px;
    }

    .diagnosis-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .diagnosis-action,
    .care-action .rescue-action {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .diagnosis-form {
        padding-inline: clamp(8px, calc(30vw - 88px), 20px);
    }

    .diagnosis-field select {
        padding-inline: 2px;
        font-size: clamp(13px, calc(4vw + .2px), var(--type-copy, 14px));
        letter-spacing: normal;
    }
}
