:root {
    --text: #5e5b5f;
    --pink: #ff649a;
    --red: #ff5252;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #fff;
}

body {
    width: 100%;
    max-width: 425px;
    margin: 0;
    margin-inline: auto;
    color: var(--text);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
        "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
    font-weight: 600;
}

button,
input,
select {
    font: inherit;
}

.hero {
    position: relative;
    min-height: 1480px;
    padding: 110px 6% 240px;
    background: #fff2f7 url("img/bg.png") center top / 100% auto no-repeat;
}

.hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 200px;
    background: url("img/wave.png") center bottom / 100% 100% no-repeat;
    content: "";
}

.profile-card {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 95px 60px 90px;
    background: #fff;
    border-radius: 58px;
}

.logo {
    display: block;
    width: 100%;
    max-width: 505px;
    height: auto;
    margin: 0 auto 65px;
}

.lead {
    margin: 0 0 72px;
    font-size: 28px;
    line-height: 1.65;
}

.field+.field {
    margin-top: 58px;
}

.field label {
    display: block;
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 700;
}

.field label span {
    color: var(--red);
}

.field input,
.field select {
    display: block;
    width: 100%;
    height: 80px;
    padding: 0 22px;
    color: var(--text);
    background: #fff;
    border: 4px solid #eee;
    border-radius: 9px;
    outline: none;
    font-size: 22px;
}

.field input:focus,
.field select:focus {
    border-color: #ff9ebe;
}

.field input::placeholder,
.field select:invalid {
    color: #d8d8da;
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #656267 50%),
        linear-gradient(135deg, #656267 50%, transparent 50%);
    background-position:
        calc(100% - 34px) 34px,
        calc(100% - 22px) 34px;
    background-size: 12px 12px, 12px 12px;
    background-repeat: no-repeat;
}

.field-note {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 12px 0 0;
    color: var(--red);
    font-size: 24px;
    line-height: 1.7;
}

.field-note img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-top: 6px;
}

.to-top {
    position: fixed;
    z-index: 10;
    right: max(24px, calc((100vw - 425px) / 2 + 24px));
    bottom: 24px;
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.to-top.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.to-top img {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.questionnaire {
    width: min(740px, 100%);
    margin: 0 auto;
    padding: 60px 10px 100px;
}

.type {
    margin-bottom: 86px;
}

.type h2 {
    margin: 0;
    padding: 28px 38px;
    border-radius: 20px 20px 0 0;
    font-size: 30px;
    line-height: 1.35;
}

.type-1 h2 {
    background: #fff1f5;
}

.type-1 h2 span {
    background: linear-gradient(90deg, #FA5C8A 0%, #59565A 100%);
}

.type-2 h2 {
    background: #dffbdf;
}

.type-2 h2 span {
    background: linear-gradient(90deg, #29DF46 0%, #59565A 100%);
}

.type-3 h2 {
    background: #d8fbfb;
}

.type-3 h2 span {
    background: linear-gradient(90deg, #4CAEFF 0%, #59565A 100%);
}

.type-4 h2 {
    background: #ffe0e0;
}

.type-4 h2 span {
    background: linear-gradient(90deg, #FF3732 0%, #59565A 100%);
}

.type-5 h2 {
    background: #f8dcff;
}

.type-5 h2 span {
    background: linear-gradient(90deg, #A951E4 0%, #59565A 100%);
}

.type-6 h2 {
    background: #fffedb;
}

.type-6 h2 span {
    background: linear-gradient(90deg, #E8D31A 0%, #59565A 100%);
}

.check-list {
    padding: 34px 40px 0;
}

.check-list label {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    min-height: 100px;
    padding: 27px 0 25px;
    border-bottom: 2px solid #e2e2e2;
    cursor: pointer;
    font-size: 25px;
    line-height: 1.65;
}

.check-list label:last-child {
    border-bottom: 0;
}

.check-list input {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 4px 0 0;
    appearance: none;
    background: #fff;
    border: 4px solid #dedede;
    border-radius: 8px;
}

.check-list input:checked {
    background: var(--pink);
    border-color: var(--pink);
}

.check-list input:checked::after {
    display: block;
    width: 15px;
    height: 8px;
    margin: 7px 0 0 6px;
    border-bottom: 4px solid #fff;
    border-left: 4px solid #fff;
    transform: rotate(-45deg);
    content: "";
}

.check-list input:focus-visible {
    outline: 4px solid #ffc3d8;
    outline-offset: 3px;
}

.submit-area {
    padding: 18px 0 0;
}

.security {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0 0 40px;
    color: var(--red);
    font-size: 23px;
}

.security img {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
}

.submit-area button {
    width: 100%;
    height: 100px;
    color: #fff;
    background: linear-gradient(90deg, #ff659e, #ff9dc2);
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    font-size: 34px;
    font-weight: 700;
}

.submit-area button:hover {
    filter: brightness(1.03);
}

.complete-page {
    min-height: 100vh;
    padding: min(32vh, 590px) 7% 120px;
    background: #fff2f7 url("img/bg.png") center / cover no-repeat;
}

.complete-card {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 110px 62px 105px;
    background: #fff;
    border-radius: 58px;
}

.complete-card h1 {
    margin: 0 0 48px;
    color: #000;
    font-size: 40px;
    text-align: center;
}

.complete-card p {
    margin: 0;
    font-size: 28px;
    line-height: 1.8;
}

@media (min-width: 0) {
    .hero {
        min-height: 765px;
        padding: 66px 6% 166px;
    }

    .hero::after {
        height: 100px;
    }

    .profile-card {
        padding: 48px 28px 45px;
        border-radius: 30px;
    }

    .logo {
        margin-bottom: 34px;
    }

    .lead {
        margin-bottom: 38px;
        font-size: 16px;
    }

    .field+.field {
        margin-top: 30px;
    }

    .field label {
        margin-bottom: 10px;
        font-size: 17px;
    }

    .field input,
    .field select {
        height: 48px;
        padding: 0 14px;
        border-width: 2px;
        font-size: 14px;
    }

    .field select {
        background-position:
            calc(100% - 24px) 20px,
            calc(100% - 17px) 20px;
        background-size: 7px 7px, 7px 7px;
    }

    .field-note {
        gap: 10px;
        margin-top: 7px;
        font-size: 14px;
    }

    .field-note img {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }

    .to-top {
        width: 78px;
        height: 78px;
        font-size: 15px;
    }

    .questionnaire {
        padding: 32px 6% 60px;
    }

    .type {
        margin-bottom: 50px;
    }

    .type h2 {
        padding: 17px 20px;
        border-radius: 10px 10px 0 0;
        font-size: 19px;
    }

    .type h2 span {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .check-list {
        padding: 18px 18px 0;
    }

    .check-list label {
        gap: 14px;
        min-height: 62px;
        padding: 18px 0;
        border-bottom-width: 1px;
        font-size: 15px;
        line-height: 1.65;
    }

    .check-list input {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        margin-top: 2px;
        border-width: 2px;
        border-radius: 5px;
    }

    .check-list input:checked::after {
        width: 10px;
        height: 5px;
        margin: 4px 0 0 3px;
        border-width: 0 0 2px 2px;
    }

    .security {
        gap: 12px;
        margin-bottom: 24px;
        font-size: 14px;
    }

    .security img {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .submit-area button {
        height: 60px;
        border-radius: 10px;
        font-size: 21px;
    }

    .complete-page {
        padding: 32vh 30px 60px;
    }

    .complete-card {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .complete-card h1 {
        margin-bottom: 20px;
        font-size: 22px;
    }

    .complete-card p {
        font-size: 16px;
    }
}