@charset "UTF-8";
@font-face {
    font-family: 'Kosugi Maru';
    src: url('brand/kosugi-maru.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Zen Maru Gothic';
    src: url('brand/zen-maru-diagnosis-500.woff2?v=start-copy') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Zen Maru Gothic';
    src: url('brand/zen-maru-diagnosis-700.woff2?v=start-copy') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Zen Maru Gothic';
    src: url('brand/zen-maru-diagnosis-900.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}
:root {
    --frame-width: min(max(94%, 1000px), 1600px);
    --frame-height: clamp(600px, 90%, 720px);
    --frame-radius: 20px;
    --toolbar-offset: calc((100% - 720px) / 2);
    --screen-surface: linear-gradient(114deg, #fff0f6 0%, #fffafe 47%, #eaf8fc 100%);
    --screen-ink: #293c4b;
    --cta-green: #008451;
    --cta-hover: #007749;
    --cta-edge: #036b2c;
    --diagnosis-rounded: "Zen Maru Gothic", "Kosugi Maru", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: 62.5%;
}

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

body {
    margin: 0;
    color: var(--screen-ink);
    font: 1.4rem/1 "Kosugi Maru", 游ゴシック, YuGothic, sans-serif;
    font-feature-settings: "palt";
    overflow-wrap: anywhere;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 95% 90%, #c3ece7, transparent 58%),
        radial-gradient(ellipse at 13% 6%, #fccddd, transparent 56%),
        linear-gradient(25deg, #b7e2f3, #dcecf4 45%, #f4dce9);
}

:where(h1, h2, p, ul) { margin: 0; }
:where(ul) { padding: 0; list-style: none; }
small { font: inherit; }
[hidden] { display: none !important; }

/* Keep the screen scrollable independently of the floating toolbar and footer. */
.diagnosis-viewport {
    position: fixed;
    inset: 0;
    inline-size: var(--frame-width);
    block-size: var(--frame-height);
    margin: auto;
    border-radius: var(--frame-radius);
    overflow: auto;
    scrollbar-width: none;
    background: var(--screen-surface);
}

.diagnosis-viewport::-webkit-scrollbar { display: none; }

#incomeForm { block-size: 100%; }

.diagnosis-screen {
    display: grid;
    place-items: center;
    justify-content: center;
    inline-size: 100%;
    min-block-size: 100%;
    background: var(--screen-surface);
}

/* The script focuses headings to announce the new screen after navigation. */
.diagnosis-screen h2[tabindex="-1"]:focus { outline: none; }

.diagnosis-toolbar {
    position: fixed;
    inset-block-start: var(--toolbar-offset);
    inset-inline: 0;
    inline-size: var(--frame-width);
    margin-inline: auto;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 30px 30px 0;
    pointer-events: none;
}

.diagnosis-logo .oshigoto-brand {
    --oshigoto-mark: 38px;
    --oshigoto-word: 28px;
    pointer-events: auto;
}

.diagnosis-progress {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.progress-dots button {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.diagnosis-footer {
    position: fixed;
    inset-block-end: 10px;
    inset-inline: 0;
    z-index: 2;
    color: #3b5266;
    text-align: center;
    font: 500 1.2rem/1 var(--diagnosis-rounded);
}

.diagnosis-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--cta-green);
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.diagnosis-cta:hover:not(:disabled) { background-color: var(--cta-hover); }
.diagnosis-cta:disabled { cursor: not-allowed; }

.diagnosis-cta:focus-visible,
.progress-dots button:focus-visible,
.start-notice a:focus-visible {
    outline: 2px solid #007995;
    outline-offset: 3px;
}

.no-script {
    position: fixed;
    inset: 42% 0 auto;
    z-index: 3;
    background: white;
    text-align: center;
    padding: 20px;
}

@media (max-height: 764px) {
    :root { --toolbar-offset: 20px; }
}

@media (max-width: 999px) {
    :root {
        --frame-width: calc(100% - 30px);
        --frame-height: min(calc(100% - 50px), 720px);
        --frame-radius: 17px;
        --toolbar-offset: max(25px, calc((100% - 720px) / 2));
    }

    .diagnosis-toolbar { padding: 12px 20px 0; }
    .diagnosis-logo .oshigoto-brand {
        --oshigoto-mark: 32px;
        --oshigoto-word: 22px;
        --oshigoto-gap: 7px;
    }
    .diagnosis-footer { inset-block-end: 5px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .diagnosis-progress { transition: none; }
}

.diagnosis-start {
    block-size: 100%;
    font-family: var(--diagnosis-rounded);
    font-weight: 500;
    padding: clamp(76px, 12vh, 108px) clamp(28px, 5vw, 88px) clamp(26px, 6vh, 56px);
    text-align: center;
}
.diagnosis-start .start-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(370px, 2.8fr) minmax(0, 1fr);
    gap: clamp(10px, 2.4vw, 36px);
    align-items: center;
    justify-content: center;
    inline-size: 100%;
    max-inline-size: 1130px;
}
.diagnosis-start .start-portrait {
    position: relative;
    isolation: isolate;
    justify-self: center;
    width: 100%;
    max-width: 182px;
    margin: 0;
    padding: 0;
}
.diagnosis-start .start-portrait img { display: block; width: 100%; max-width: none; height: auto; }
.diagnosis-start .start-portrait::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 11% -16% 0;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--portrait-halo) 22%, transparent 72%);
}
.start-portrait-pink { --portrait-halo: #f8c6da; }
.start-portrait-blue { --portrait-halo: #bfe4f1; }
.diagnosis-start .start-copy {
    display: grid;
    justify-items: center;
    min-width: 0;
    width: 100%;
}
.start-title { display: grid; justify-items: center; gap: 10px; font: inherit; }
.start-title-lead {
    font-size: clamp(2.2rem, 3vw, 3.4rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
}
.start-title-main {
    display: flex;
    gap: .055em;
    font-size: clamp(7.2rem, 8.6vw, 11.8rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.045em;
    white-space: nowrap;
}
.start-title-main > span:first-child { color: #a94e75; }
.start-title-main > span:last-child { color: #256d89; }
.start-callout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .26em .75em;
    margin: clamp(15px, 3vh, 25px) 0 0;
    color: #326579;
    font-size: clamp(1.6rem, 1.9vw, 2.2rem);
    font-weight: 700;
    line-height: 1.45;
}
.start-callout strong { color: #924463; font-weight: 900; }

.diagnosis-start .diagnosis-cta {
    isolation: isolate;
    overflow: hidden;
    justify-self: center;
    gap: .44em;
    width: min(100%, 440px);
    min-height: 64px;
    margin: clamp(17px, 3.4vh, 28px) auto 0;
    padding: 12px 18px;
    box-shadow: 0 4px var(--cta-edge), 0 9px 20px #007a4b25, inset 0 1px #00ac6c;
    font-size: clamp(2.25rem, 2.3vw, 2.9rem);
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .2s ease;
}
.diagnosis-start .diagnosis-cta span { position: relative; z-index: 1; white-space: inherit; }
.diagnosis-cta-arrow {
    display: block;
    flex: none;
    inline-size: 1em;
    block-size: 1em;
    background: currentColor;
    clip-path: polygon(0 32%, 54% 32%, 54% 0, 100% 50%, 54% 100%, 54% 68%, 0 68%);
    pointer-events: none;
}
.diagnosis-cta-arrow--down {
    clip-path: polygon(32% 0, 68% 0, 68% 54%, 100% 54%, 50% 100%, 0 54%, 32% 54%);
}
.diagnosis-question,
.diagnosis-result {
    --diagnosis-arrow-inset: clamp(21px, 5.6vw, 30px);
    --diagnosis-cta-inline: calc(var(--diagnosis-arrow-inset) + 1.35em);
}
.diagnosis-cta-arrow--end {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: var(--diagnosis-arrow-inset);
    transform: translateY(-50%);
}
@media (forced-colors: active) {
    .diagnosis-cta-arrow { forced-color-adjust: none; background: ButtonText; }
    button:disabled .diagnosis-cta-arrow { background: GrayText; }
    a .diagnosis-cta-arrow { background: LinkText; }
}
@media (prefers-reduced-motion: no-preference) {
    .diagnosis-start .diagnosis-cta::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(112deg, transparent 42%, #ffffff88 50%, transparent 58%);
        transform: translateX(-70%);
        animation: diagnosis-start-shine 3s infinite;
    }
}
@keyframes diagnosis-start-shine {
    from { transform: translateX(-70%); }
    24%, to { transform: translateX(70%); }
}

.start-notice {
    margin: clamp(17px, 3vh, 25px) 0 0;
    color: #44596b;
    font-size: 1.02rem;
    line-height: 1.65;
}
.start-compare-link { display: block; }
.start-notice a {
    color: #235f7b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.start-notice-break { display: none; }

@media (max-width: 999px) {
    .diagnosis-start {
        block-size: auto;
        align-items: start;
        padding: clamp(80px, 13.5vh, 120px) clamp(11px, 3.2vw, 36px) clamp(26px, 5vh, 46px);
    }
    .diagnosis-start .start-layout {
        grid-template-columns: clamp(47px, 15.6vw, 122px) minmax(0, 1fr) clamp(47px, 15.6vw, 122px);
        gap: clamp(20px, 3.6vh, 32px) clamp(5px, 2vw, 20px);
        max-inline-size: 660px;
    }
    .diagnosis-start .start-copy { display: contents; }
    .diagnosis-start .start-title {
        grid-area: 1 / 1 / 2 / -1;
        justify-self: center;
        gap: 10px;
    }
    .start-title-lead { font-size: clamp(2rem, 5.75vw, 3.2rem); }
    .start-title-main { font-size: clamp(5.2rem, 16.1vw, 8.9rem); }
    .diagnosis-start .start-portrait-pink { grid-area: 2 / 1; }
    .diagnosis-start .start-portrait-blue { grid-area: 2 / 3; }
    .start-callout {
        grid-area: 2 / 2;
        flex-direction: column;
        gap: .48em;
        margin: 0;
        font-size: clamp(1.5rem, 4.5vw, 2.35rem);
    }
    .diagnosis-start .diagnosis-cta {
        grid-area: 3 / 1 / 4 / -1;
        min-height: 60px;
        margin-top: 0;
        padding: 11px clamp(10px, 3vw, 16px);
        font-size: clamp(1.72rem, 5.5vw, 2.8rem);
    }
    .start-notice {
        grid-area: 4 / 1 / 5 / -1;
        margin-top: 0;
        font-size: clamp(1.1rem, 2.95vw, 1.3rem);
        line-height: 1.65;
        text-wrap: balance;
    }
    .start-notice-break { display: block; }
    .start-compare-link { margin-top: .52em; }
}

@media (max-width: 999px) and (max-height: 545px) {
    .diagnosis-start { padding-block: 64px 22px; }
    .diagnosis-start .start-layout { row-gap: clamp(12px, 3vh, 17px); }
    .diagnosis-start .start-title { gap: 7px; }
    .start-title-lead { font-size: clamp(1.9rem, 5vw, 2.45rem); }
    .start-title-main { font-size: clamp(4.8rem, 14.4vw, 6.6rem); }
    .diagnosis-start .start-portrait { max-width: 58px; }
    .diagnosis-start .diagnosis-cta { min-height: 54px; }
}
@media (min-width: 600px) and (max-width: 999px) and (max-height: 545px) {
    .diagnosis-start { padding-block: clamp(50px, 14vh, 56px) 16px; }
    .diagnosis-start .start-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 4.4fr) minmax(0, 1fr); }
    .diagnosis-start .start-copy {
        display: grid;
        grid-area: 1 / 2;
        row-gap: clamp(7px, 2vh, 12px);
        padding-inline: 35px;
    }
    .diagnosis-start .start-copy > * { grid-area: auto; }
    .diagnosis-start .start-portrait { max-width: 94px; }
    .diagnosis-start .start-portrait-pink { grid-area: 1 / 1; }
    .diagnosis-start .start-portrait-blue { grid-area: 1 / 3; }
    .start-title-main { font-size: clamp(4.8rem, 8vw, 5.9rem); }
    .start-callout { gap: .3em; font-size: clamp(1.5rem, 3.3vw, 2.05rem); line-height: 1.35; }
    .diagnosis-start .diagnosis-cta { font-size: clamp(1.85rem, 3.1vw, 2.4rem); }
    .start-notice { font-size: 1.12rem; line-height: 1.45; }
    .start-compare-link { margin-top: .3em; }
}
