:root {
    --darkBlue: #003279;
    --blue: #008ed8;
    --lightBlue: #e4f1fa;
    --white: #ffffff;
    --shadow: #868686e6;
    --viewport: 1200px;
    --px: calc((90px / var(--viewport)) * 100vw);
}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    min-height: 100dvh;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
        'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

img {
    width: 100%;
    display: block;
}

button {
    background: transparent;
    outline: none;
    border: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.show-m {
    display: none;
}

.show-b {
    display: none;
}

/* ## 레이아웃 */
body {
    background-color: var(--darkBlue);
    position: relative;
    overflow-x: hidden;
}

main {
    width: 100%;
    margin: 0 auto;
    padding: 79px 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: var(--viewport);
    padding: 0 var(--px);
    margin: 0 auto;
    position: relative;
}

/* ## 컴포넌트 */
/* # 버튼 */
.btn-form {
    position: fixed;
    bottom: calc(40px + env(safe-area-inset-bottom));
    right: calc(40px + env(safe-area-inset-right));
    width: 100px;
    height: 160px;
    background-color: var(--white);
    border-radius: 50px;
    padding: 30px 20px 23px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--blue);
    border: 3px solid var(--blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.btn-form__logo {
    margin-bottom: 5px;
}

.btn-form__arrow {
    width: 20px;
    margin-top: 18px;
}

.btn {
    display: inline-block;
    padding: 16px 60px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 100px;
}

.btn--darkBlue {
    color: var(--white);
    background-color: var(--darkBlue);
}

.btn--blue {
    color: var(--white);
    background-color: var(--blue);
}

.btn--white {
    color: var(--darkBlue);
    background-color: var(--white);
}

/* ## home */
.home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background-image: url(../images/line.svg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: -2;
}

/* # hero */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-10%, -30%);
    max-width: 707px;
    width: calc((707px / var(--viewport)) * 100vw);
    aspect-ratio: 1/1;
    background-image: url(../images/hero.webp);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
}

.hero__logo {
    width: 111px;
    margin-bottom: 118px;
}

.hero__img1 {
    width: 174px;
}

.hero__header {
    width: min(619px, 70%);
    margin-top: 15px;
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    color: var(--white);
    position: relative;
}

.hero__heading {
    font-size: 54px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 37px;
}

.hero__desc {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 28px;
}

.hero__warning {
    font-size: 18px;
    line-height: 1.4;
}

/* ## program */
.pg {
    padding: 330px 0 212px;
    position: relative;
}

.pg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -14%);
    width: 850px;
    height: 831px;
    background-image: url(../images/healthlife.svg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.pg::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-70%);
    width: 172px;
    height: 131px;
    background: center/contain no-repeat url(../images/medicine.svg);
    pointer-events: none;
}

.pg__heading {
    width: 50%;
    font-size: 54px;
    font-weight: bold;
    color: var(--white);
    position: relative;
    left: 50%;
    margin-bottom: 46px;
}

.pg__body {
    width: 100%;
    padding: 63px 127px 184px;
    background-color: var(--white);
    border-radius: 30px;
    position: relative;
}

.pg__body h3 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
    font-size: 42px;
    font-weight: bold;
    color: var(--darkBlue);
}

.pg__body h3 img {
    width: 178px;
    margin-bottom: 10px;
}

.pg__body h3 + p {
    font-size: 24px;
    color: var(--darkBlue);
}

.pg__detail-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding-top: 19px;
    margin-top: 36px;
    border-top: 1px solid var(--blue);
}

.pg__detail-group h4 {
    font-size: 24px;
    font-weight: bold;
    color: var(--darkBlue);
}

.pg__detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
}

.pg__detail li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.pg__detail:nth-child(2) {
    justify-content: space-evenly;
}

.pg__detail:nth-child(2) li {
    justify-content: center;
    flex: inherit;
}

.pg__detail img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.pg__detail p {
    height: 30px;
    font-size: 13px;
    color: var(--darkBlue);
    text-align: center;
}

.pb__bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 20px);
    width: 63%;
}

/* ## 프로그램의 목적 */
.propose {
    padding: 180px 0 200px;
    background-color: var(--lightBlue);
    position: relative;
}

.propose .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(20%, -83%);
    width: 421px;
    height: 425px;
    background-image: url(../images/blood.svg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.propose .container {
    padding: 0 50px;
}

.propose h2 {
    font-size: 54px;
    font-weight: bold;
    color: var(--darkBlue);
    margin-bottom: 75px;
}

.pp__detail-group {
    display: flex;
    gap: 16px;
}

.pp__detail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 35px;
}

.pp__desc {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 3%;
    font-size: 24px;
    font-weight: bold;
    color: var(--darkBlue);
}

.pp__desc img {
    width: 42px;
}

/* ## 신청하기 */
.register {
    padding: 147px 0 0;
    position: relative;
}

.register::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-160%, -25%);
    width: 255px;
    height: 338px;
    background-image: url(../images/hands.svg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
}

.register .container {
    padding: 0 calc(var(--px) - 10px);
}

.rg__body {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.rg__body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: center/contain no-repeat url(../images/circle.svg);
    pointer-events: none;
    z-index: -1;
    animation: rotate 500s linear infinite;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.rg__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.rg__group h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 54px;
    font-weight: bold;
    color: var(--darkBlue);
}

.rg__group h2 img {
    width: 254px;
}

.rg__group p {
    font-size: 24px;
    color: var(--darkBlue);
    text-align: center;
    line-height: 1.4;
}

/* ## download */
.download {
    padding: 200px 0 181px;
    position: relative;
}

.download::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-60%);
    width: 533px;
    height: 586px;
    background-image: url(../images/exerciselife.svg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.download h2 {
    font-size: 54px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 70px;
}

.dl__desc {
    position: relative;
    left: 50%;
    width: 50%;
}

/* ## footer */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer img {
    width: 72px;
    margin-bottom: 9px;
}

footer h6 {
    margin-bottom: 19px;
    font-size: 15px;
    font-weight: bold;
    color: var(--white);
}

address {
    margin-bottom: 47px;
    color: var(--white);
    font-size: 13px;
    font-style: normal;
}

.code {
    color: var(--white);
    font-size: 13px;
}

/* ## form */
.form__header {
    padding-bottom: 138px;
}

.form__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 54px;
    font-weight: bold;
    color: var(--white);
    position: relative;
}

.form__heading img {
    width: 233px;
    margin-bottom: 24px;
}

.form__desc {
    margin-top: 46px;
    font-size: 24px;
    color: var(--white);
    text-align: center;
    font-weight: normal;
    line-height: 1.5;
}

.form::after {
    content: '';
    position: fixed;
    top: -210px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 1200px;
    height: 1200px;
    background: center/contain no-repeat url(../images/circle.svg);
    pointer-events: none;
    z-index: -1;
}

.form .hero__logo {
    margin-bottom: 37px;
}

.form-wrap {
    margin-bottom: 120px;
}

.form-wrap .container {
    padding: 0 calc(var(--px) * 2.4);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form__title {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
}

.form-group {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    background-color: var(--white);
    border-radius: 44px;
}

.form__body {
    width: 100%;
    padding: 53px 41px;
    background-color: var(--white);
    border-radius: 44px;
}
.form-group.error,
.form__body.error {
    position: relative;
}
.form-group.error::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    border: 3px solid red;
    border-radius: 9999px;
    pointer-events: none;
    box-sizing: border-box;
}
.form__body.error::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    border: 3px solid red;
    border-radius: 44px;
    pointer-events: none;
    box-sizing: border-box;
}

.form__label {
    font-size: 18px;
    color: var(--darkBlue);
    font-weight: bold;
    width: 28%;
    min-width: 55px;
}

.form__input {
    font-size: 21px;
    color: var(--darkBlue);
    width: 72%;
    background: transparent;
    outline: none;
    border: none;
}

.checkbox-group {
    --check-box-size: 21px;
    display: flex;
    align-items: center;
    position: relative;
}

.check__input {
    width: 0;
    height: 0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.check__box {
    display: block;
    width: var(--check-box-size);
    height: var(--check-box-size);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: center/contain no-repeat url(../images/checkbox.svg);
}

.check__box::after {
    content: '';
    width: calc(var(--check-box-size) - 5px);
    height: calc(var(--check-box-size) - 10px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-33%, -70%);
    background: center/contain no-repeat url(../images/check.svg);
    opacity: 0;
}

.check__input:checked + .check__box::after {
    opacity: 1;
}

.check__label {
    flex: 1;
    padding-left: calc(var(--check-box-size) * 2);
    font-size: 15px;
    color: var(--darkBlue);
    z-index: 1;
}

.terms .check__label {
    font-size: 18px;
    font-weight: bold;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

sup {
    vertical-align: top;
}

.terms__body {
    margin-top: 17px;
    font-size: 15px;
    color: var(--darkBlue);
}

.terms__body b {
    color: inherit;
    font-size: inherit;
}

.terms__body ul {
    padding-left: 20px;
}

table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    color: var(--darkBlue);
    font-size: 13px;
    border: 1px solid var(--darkBlue);
}

table b {
    color: var(--darkBlue);
}

table th,
table td {
    border: 1px solid var(--darkBlue);
    padding: 10px 12px;
    text-align: center;
}

table th:nth-child(1) {
    width: 44%;
}

.btn-submit {
    width: fit-content;
    margin: 70px auto;
}

dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    border: 0;
    border-radius: 8px;
    padding: 44px 30px 30px;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0px 5px 10px #00000029;
}

.dialog__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

dialog img {
    width: 67px;
    height: 58px;
}

.dialog__text {
    line-height: 130%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
    font-size: 16px;
    color: var(--darkBlue);
}

::backdrop {
    background-color: #00000060;
}

.btn-close.btn {
    font-size: 16px;
    width: 188px;
    height: 44px;
    padding: 10px;
}

/* ## media */
@media (min-width: 1200px) {
    :root {
        --px: 90px;
    }
}

@media (max-width: 1024px) {
    .pg__body {
        padding: 49px 32px 124px;
    }

    .pp__desc {
        font-size: 20px;
    }

    .pp__desc img {
        width: 32px;
    }
}

@media (max-width: 768px) {
    .show-m {
        display: block;
    }

    .show-w {
        display: none;
    }

    :root {
        --viewport: 390px;
        --px: calc((36px / var(--viewport)) * 100vw);
    }

    .btn {
        font-size: 18px;
        padding: 12px 20px;
        width: 242px;
        text-align: center;
    }

    .container {
        max-width: none;
    }

    main {
        padding: 41px 0;
    }

    main::after {
        display: none;
    }

    .hero::before {
        width: calc((272px / var(--viewport)) * 100vw);
        background-image: url(../images/hero-m.png);
    }

    .hero__logo {
        width: 72px;
        margin-bottom: 90px;
    }

    .hero__img1 {
        width: 103px;
        margin-left: calc(var(--px) / 2 * -1);
    }

    .hero__header {
        margin-left: 0;
    }

    .hero__heading {
        font-size: 34px;
        margin-bottom: 14px;
    }

    .hero__desc {
        font-size: 18px;
    }

    .hero__warning {
        font-size: 13px;
    }

    .pg {
        padding-top: 58px;
        padding-bottom: 57px;
    }

    .pg::before {
        width: 136px;
        height: 133px;
        left: auto;
        right: 0;
        transform: none;
        background-image: url(../images/hand-m.svg);
    }

    .pg__heading {
        width: 100%;
        font-size: 34px;
        margin-bottom: 20px;
        left: 0;
    }

    .pg__body {
        padding: 44px 24px 80px;
    }

    .pg__body h3 {
        font-size: 24px;
    }

    .pg__body h3 img {
        width: 98px;
    }

    .pg__body h3 + p {
        font-size: 18px;
    }

    .pg__detail-group {
        gap: 64px;
        padding-top: 36px;
    }

    .pg__detail-group h4 {
        font-size: 18px;
    }

    .pg__detail {
        flex-wrap: wrap;
        gap: 32px 16px;
        padding-bottom: 2px;
    }

    .pg__detail-group:nth-of-type(2) .pg__detail li {
        width: 100%;
    }

    .pg__detail li {
        width: calc((100% - 16px) / 2);
    }

    .pb__bottom {
        display: none;
    }

    .pg::after {
        display: none;
    }

    .swiper-horizontal > .swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: 35px;
    }

    .swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
    .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
        margin: 0 6px;
    }

    .swiper-pagination-bullet {
        background-color: var(--white);
        border: 1px solid var(--blue);
        width: 10px;
        height: 10px;
    }

    .swiper-pagination-bullet-active {
        background-color: var(--blue);
    }

    .propose {
        padding: 65px 0 70px;
    }

    .propose .container {
        padding: 0;
    }

    .propose .container::before {
        display: none;
    }

    .propose h2 {
        padding: 0 var(--px);
        margin-bottom: 60px;
        font-size: 34px;
    }

    .pp__desc {
        font-size: 18px;
    }

    .pp__desc img {
        width: 42px;
    }

    .pp__detail-group {
        padding: 0 var(--px);
        overflow-x: scroll;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
    }

    ::-webkit-scrollbar {
        display: none;
    }

    .pp__detail {
        min-width: 318px;
    }

    .register {
        padding-top: 0;
        background: linear-gradient(to bottom, var(--lightBlue) 50%, transparent 50%);
    }

    .register .container {
        padding: 0;
    }

    .register::before {
        content: '';
        position: absolute;
        top: calc((30px / var(--viewport)) * 100vw * -1);
        left: auto;
        right: calc((74px / var(--viewport)) * 100vw);
        width: calc((42px / var(--viewport)) * 100vw);
        height: calc((45px / var(--viewport)) * 100vw);
        transform: none;
        background-image: url(../images/shield.svg);
        background-position: center top;
        background-repeat: no-repeat;
        background-size: contain;
        z-index: 2;
    }

    .register::after {
        width: calc((72px / var(--viewport)) * 100vw);
        height: calc((75px / var(--viewport)) * 100vw);
        left: auto;
        right: 20px;

        transform: none;
        background-image: url(../images/cell.svg);
        z-index: 1;
    }

    .rg__body {
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .rg__body::after {
        display: none;
    }

    .rg__group h2 {
        font-size: 34px;
    }

    .rg__group h2 img {
        width: 137px;
    }

    .rg__group p {
        font-size: 18px;
    }

    .download {
        padding: 125px 0 155px;
    }

    .download::after {
        width: calc((270px / var(--viewport)) * 100vw);
        height: calc((360px / var(--viewport)) * 100vw);
        transform: translate(-77%, -10%);
        background-image: url(../images/exercise.svg);
    }

    .dl__desc {
        width: 100%;
        left: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .download h2 {
        margin-bottom: 26px;
        text-align: center;
        font-size: 34px;
    }

    .btn-form {
        width: 74px;
        height: 118px;
        padding: 24px 12px;
        bottom: 32px;
        right: 16px;
    }

    .btn-form__logo {
        display: none;
    }

    .btn-form__arrow {
        margin-top: 10px;
    }

    .form::after {
        display: none;
    }

    .form__header {
        padding-bottom: 72px;
        position: relative;
    }

    .form__header::before {
        content: '';
        position: absolute;
        top: -20px;
        right: calc((115px / var(--viewport)) * 100vw);
        width: calc((65px / var(--viewport)) * 100vw);
        height: calc((67px / var(--viewport)) * 100vw);
        background: center/contain no-repeat url(../images/hcp.svg);
        pointer-events: none;
    }

    .form__header::after {
        content: '';
        position: absolute;
        top: 0;
        right: calc((10px / var(--viewport)) * 100vw);
        width: calc((95px / var(--viewport)) * 100vw);
        height: calc((95px / var(--viewport)) * 100vw);
        background: center/contain no-repeat url(../images/hand.svg);
        pointer-events: none;
    }

    .form__heading {
        font-size: 34px;
    }

    .form__heading img {
        width: 111px;
        margin-bottom: 12px;
    }

    .form__desc {
        font-size: 18px;
        margin-top: 24px;
    }

    .form-wrap .container {
        padding: 0 calc(var(--px));
        gap: 20px;
    }

    .form__title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .form-group {
        padding: 22px 20px;
    }

    .form__label {
        font-size: 13px;
    }

    .form__input {
        /* font-size: 18px; */
    }

    .form-wrap {
        margin-bottom: 75px;
    }

    .form__body {
        padding: 40px 30px;
        border-radius: 15px;
    }

    .form__body.error::before {
        border-radius: 15px;
    }

    .terms .form__body {
        max-height: 70dvh;
        padding-left: 22px;
        padding-right: 22px;
        padding-bottom: 22px;
        display: flex;
        flex-direction: column;
    }

    .grid-2 {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .terms .check__label {
        padding-left: calc(var(--check-box-size) * 1.5);
        font-size: 15px;
    }

    .terms__body {
        padding: 0 5px;
        font-size: 13px;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        overflow-y: scroll;
    }

    .btn-submit {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

@media (max-width: 500px) {
    .hero__header {
        width: 100%;
    }

    .rg__body {
        width: 130%;
    }

    .pp__detail {
        min-width: auto;
        width: 72vw;
        flex-shrink: 0;
    }

    .form__desc {
        font-size: 16px;
    }

    table {
        font-size: 12px;
    }

    td[rowspan='4'] {
        text-align: left;
    }

    td[rowspan='4'] br {
        display: none;
    }
}
