@charset "utf-8";

.diagnosis-download-page #wrapper {
    min-width: 0;
    background: #f5f5f5;
}

.diagdl-main {
    padding: 180px 40px 96px;
    background: #f5f5f5;
}

.diagdl-content__in {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(460px, 520px);
    gap: 80px;
    align-items: start;
}

.diagdl-title {
    position: relative;
    padding-left: 18px;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0;
}

.diagdl-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 28px;
    background: #092578;
    transform: translateY(-50%);
}

.diagdl-copy {
    margin-top: 46px;
}

.diagdl-copy__title {
    padding-bottom: 14px;
    border-bottom: 1px solid #d9d9d9;
    color: #222;
    font-size: 24px;
    line-height: 1.55;
    font-weight: 700;
    letter-spacing: 0;
}

.diagdl-copy__text {
    margin-top: 16px;
    color: #222;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0;
}

.diagdl-previews {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.diagdl-preview {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 894 / 545;
    overflow: hidden;
    border: 0;
    background: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.diagdl-preview::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 20px;
    height: 20px;
    background: url("../../img/icon.png") no-repeat center / cover;
}

.diagdl-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (hover: hover) {
    .diagdl-preview:hover {
        opacity: 0.88;
        transform: translateY(-2px);
    }
}

.diagdl-back {
    width: 100%;
    max-width: 1120px;
    margin: 40px auto 0;
}

.diagdl-back__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 190px;
    height: 50px;
    background: #013ca4;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .diagdl-back__link:hover {
        opacity: 0.8;
    }
}

.diagdl-form-card {
    width: 100%;
    min-height: 530px;
    padding: 34px 32px 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.08);
}

.diagdl-form-card__lead {
    color: #222;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    letter-spacing: 0;
}

.diagdl-form-wrap {
    margin-top: 20px;
}

.diagdl-form__fields dt {
    display: flex;
    align-items: center;
    margin-top: 14px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
}

.diagdl-form__fields dt:first-child {
    margin-top: 0;
}

.diagdl-form__fields dt span.required {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 18px;
    margin-right: 8px;
    padding: 0 4px;
    border-radius: 2px;
    background: #e90404;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0;
}

.diagdl-form__fields input[type="text"],
.diagdl-form__fields input[type="email"] {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 1px solid #cecece;
    border-radius: 4px;
    padding: 0 16px;
    background: #fff;
    color: #222;
    font-size: 16px;
    letter-spacing: 0;
}

.diagdl-form__fields input:focus {
    border-color: #013ca4;
    box-shadow: 0 0 0 2px rgba(1, 60, 164, 0.12);
}

.diagdl-form__privacy {
    margin: 22px 0 14px;
    color: #505050;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
    letter-spacing: 0;
}

.diagdl-form__privacy label {
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagdl-form__privacy input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.diagdl-form__privacy a {
    text-decoration: underline;
}

.diagdl-form__submit input#form_submit_button {
    width: 100%;
    height: 62px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: linear-gradient(180deg, #fde701 0%, #f1c800 100%);
    color: #222;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .diagdl-form__submit input#form_submit_button:hover {
        opacity: 0.85;
    }
}

.diagdl-line {
    margin-top: 14px;
}

.diagdl-line__link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 62px;
    border-radius: 4px;
    background: linear-gradient(180deg, #78e985 0%, #20c13b 100%);
    color: #102313;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    transition: filter 0.2s ease;
}

.diagdl-line__icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
}

@media (hover: hover) {
    .diagdl-line__link:hover {
        filter: brightness(0.94);
    }
}

#mail_form .error_blank,
#mail_form .error_format,
#mail_form .error_check {
    display: block;
    margin-top: 5px;
    color: #f44336;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

#mail_form .error_check {
    display: none;
}

.diagdl-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.diagdl-modal.is-open {
    display: flex;
}

.diagdl-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.58);
    cursor: pointer;
}

.diagdl-modal__content {
    position: relative;
    z-index: 1;
    width: min(980px, 92vw);
    max-height: 88vh;
}

.diagdl-modal__image {
    display: block;
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    background: #fff;
}

.diagdl-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #013ca4;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.diagdl-modal-open {
    overflow: hidden;
}

@media screen and (max-width: 1199px) {
    .diagdl-main {
        padding-right: 32px;
        padding-left: 32px;
    }

    .diagdl-content__in {
        grid-template-columns: minmax(0, 1fr) minmax(440px, 480px);
        gap: 44px;
    }
}

@media screen and (max-width: 1079px) {
    .diagdl-main {
        padding: 125px 40px 76px;
    }

    .diagdl-content__in {
        display: block;
        max-width: 640px;
    }

    .diagdl-form-card {
        margin-top: 40px;
    }
}

@media screen and (max-width: 767px) {
    .diagdl-main {
        padding: 94px 12px 60px;
    }

    .diagdl-title {
        padding-left: 13px;
        font-size: 20px;
    }

    .diagdl-title::before {
        height: 22px;
    }

    .diagdl-copy {
        margin-top: 28px;
    }

    .diagdl-copy__title {
        padding-bottom: 10px;
        font-size: 19px;
    }

    .diagdl-copy__text {
        margin-top: 13px;
        font-size: 14px;
        line-height: 1.8;
    }

    .diagdl-previews {
        gap: 10px;
        margin-top: 22px;
    }

    .diagdl-preview::after {
        width: 18px;
        height: 18px;
    }

    .diagdl-back {
        max-width: 640px;
        margin-top: 28px;
        text-align: center;
    }

    .diagdl-back__link {
        width: 170px;
        height: 44px;
        font-size: 14px;
    }

    .diagdl-form-card {
        min-height: 0;
        margin-top: 34px;
        padding: 22px 14px 20px;
        border-radius: 6px;
    }

    .diagdl-form-card__lead {
        font-size: 13px;
        line-height: 1.7;
        text-align: left;
    }

    .diagdl-form-card__lead br {
        display: none;
    }

    .diagdl-form__fields dt {
        font-size: 13px;
    }

    .diagdl-form__fields input[type="text"],
    .diagdl-form__fields input[type="email"] {
        height: 44px;
        padding: 0 12px;
        font-size: 16px;
    }

    .diagdl-form__privacy {
        margin-top: 18px;
        font-size: 11px;
    }

    .diagdl-form__privacy label {
        align-items: flex-start;
        text-align: left;
    }

    .diagdl-form__submit input#form_submit_button,
    .diagdl-line__link {
        height: 54px;
        font-size: 15px;
    }

    .diagdl-line__link {
        gap: 8px;
    }

    .diagdl-line__icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .diagdl-modal {
        padding: 20px 10px;
    }

    .diagdl-modal__content {
        width: 96vw;
    }
}
