/* 各種プロジェクトカード */
.wide_card {
    background-color: white;
    max-width: 1000px;
    width: 80vw;
    overflow: hidden;

    >a {
        display: flex;
    }

    a:hover {
        opacity: 1;
    }
}

.wide_card_price_support {
    font-weight: 700;
    font-size: 48px;
    letter-spacing: 1.2px;
    margin-top: -10px;
    color: #000;
}

.wide_card-left {
    position: relative;
    flex: 0 1 50%;
    min-width: 0;

    .project-image-wrapper {
        position: relative;
        width: fit-content;
        max-width: 100%;
        aspect-ratio: 3 / 2;
        overflow: hidden;
    }

    .next-goal {
        position: absolute;
        top: unset;
        left: unset;
        bottom: 0;
        right: 0;
        font-size: 16px;
        background-color: unset;
        color: white;
        padding: 0;
        border-radius: 0;
        width: 19%;
        z-index: 2;

        img {
            width: 100%;
            height: unset;
        }
    }

    .project-image-wrapper>img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

}

.wide_card-right {
    position: relative;
    flex-basis: 50%;
    display: flex;
    flex-direction: column;


    .project_price_goalnum {
        margin-top: -3px;
    }

    .project_price_goaltxt {
        padding-bottom: 0;
        padding-left: 0;
    }

    .project_price_slash {
        margin: auto 20px 20px auto;
    }
}

.legacy-wp-project__wide-card {
    >.wide_card-left {
        flex-basis: 50%;
        width: 50%;

        .project-image-wrapper {
            width: 100%;
        }

        @media (max-width: 980px) {
            width: 100%;
        }
    }
}

.wide_card-digit {
    font-weight: 600;
}

.project_l-inner-project-outline .wide_card-right {
    padding: 5%;
    justify-content: space-between;
    background-color: #fafafa;
}

.card-right-top {
    display: flex;
    justify-content: space-between;
}

.project_nowtotal {
    font-size: 16px;
    font-weight: 700;
    color: #666;
}

.project_price_goaltxt {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    padding-left: 26px;
    padding-bottom: 3px;
}

.project_price_goalnum {
    display: flex;

    div {
        font-size: 15px;
        font-weight: 700;
        padding-bottom: 10px;
    }
}

.project_next-goal {
    font-weight: 700;
}

.project_next-goaltxt {
    font-size: 14px;
    color: #666;
    font-family: 'Bebas Neue';
    letter-spacing: 0.5px;
}

.project_next-goalnum {
    font-size: 15px;
    margin-top: -7px;
}

.project_goal-wrapper {
    margin: auto 5px 8px 0;
}

.project_price_slash {
    margin-right: 20px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

.next-card-progress {

    &,
    div {
        font-family: "Bebas Neue", sans-serif;
        letter-spacing: 0.1em;
        align-items: flex-end;
        height: 2.5rem !important;
        font-size: 2rem;
        line-height: 1.2;
    }

    @media (max-width: 768px) {

        &,
        div {
            line-height: 1;
            width: unset;
            color: #FFF;
        }
    }
}

.project-supporter,
.project-timer,
.project-timer_noterm {
    display: flex;
}

.project-timer_noterm {
    align-items: flex-end;
    margin-bottom: 4px;
}

.project_support_silhouette {
    padding-top: 17px;
    padding-right: 10px;

    img {
        width: 30px;
        height: 39px;
        margin-left: 5px;
    }

    @media (max-width: 768px) {
        padding-top: 18px;
        padding-right: 0;

        img {
            width: 18px;
            height: 24px;
            margin-left: 1px;
        }
    }
}

.project-timer_clock {
    padding-top: 10px;
    padding-right: 10px;

    img {
        width: 32px;
        height: 32px;
        margin-top: 15px;
    }

    @media (max-width: 768px) {
        padding-top: 17px;
        padding-right: 0;

        img {
            width: 25px;
            height: 25px;
            margin-top: 0;
        }
    }
}

.project_support,
.project-timer_last {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: -7px;

    @media (max-width: 768px) {
        font-size: 11px;
        font-weight: 500;
        margin-top: -4px;
    }
}

.project_support_num,
.project-timer_num {
    font-size: 31px;
    display: flex;
    font-weight: 700;

    @media (max-width: 768px) {
        font-size: 18px;
        margin-top: 4px;
    }
}

.project-card-bottom {
    display: flex;
    padding-top: 11px;

    @media (max-width: 768px) {
        padding-top: 4px;
    }
}

.project-timer {
    margin-left: 54px;

    .wide_card-digit {
        @media (max-width: 768px) {
            margin-top: 9px;
            margin-left: 14px;
        }
    }

    @media (max-width: 768px) {
        margin-left: 20px;
    }
}

.project-supporter {

    .wide_card-digit {
        @media (max-width: 768px) {
            margin-top: 9px;
            margin-left: 14px;
        }
    }
}

.project_favorite_good {
    fill: #85807F;
    margin-left: 12px;
}

.project_favorite_yet svg {
    fill: #85807F;
}

.project_favorite_already {
    fill: #fd7801;
}

.project_favorite-button {
    display: flex;
    height: unset;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    p {
        margin-bottom: 0;
    }
}

.project_deduction-for-donation {
    display: flex;
    padding-top: 15px;
    align-items: center;

    p {
        color: #FD790E;
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.2;
        margin-right: 5px;

        @media (max-width: 768px) {
            font-size: 1.2rem;
        }
    }

    img {
        height: 21px;
        width: 20px;
        margin: 0;
        margin-bottom: 1rem;
    }
}

.project_wide_card {
    max-width: 1150px;
    width: 95vw;
    display: flex;
    border-radius: 0;
    box-shadow: none;

    @media (max-width: 980px) {
        width: 85vw;
        display: grid;
    }

    .project_favorite {
        background-color: #fff;
        color: rgb(153, 153, 153);
        width: 105px;
        margin-right: 18px;
        padding: 0;

        p {
            svg {
                height: 23px;
                width: 23px;
            }
        }

        &:has(span) {
            margin-right: 0;
            width: 136px;
        }
    }
}

.project_wide-card_buttons {
    display: flex;
    margin-top: 18px;
    justify-content: space-between;

    .project_favorite {
        form {
            height: stretch;
            margin: 0;
            display: grid;
            align-items: center;
        }

        p {
            display: flex;
            align-items: center;
            gap: 0.2em;
            font-size: clamp(1.4rem, 1.5vw, 1.8rem);
            letter-spacing: 0px;
            margin: 0;

        }
    }

    .project_favorite-button-sum {
        height: 23px;
        width: unset;
        margin-top: unset;
        margin-left: unset;
        line-height: 23px;
        border-radius: 5px;
        font-size: 14px;
        padding: 0 0.25em;
    }
}

.project_support_button_sp_disable,
.project_wide-card_buttons .project_support_button_sp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 1.5vw, 2rem);
    width: 100%;
    max-width: 285px;
    text-decoration: none;
    line-height: 1;
    border-radius: 6px;
    background: #F36F0E;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 1em;
}

.project_support_button_sp_disable {
    background: #ccc;
    padding: 0 12px;
}

.project_price_totalwrapper {
    .wide_card_price_support {
        @media (max-width: 768px) {
            font-size: 36px;
            margin-top: -7px;
        }
    }

    .sp-preview & {
        .wide_card_price_support {
            font-size: 36px;
            margin-top: -7px;
        }
    }
}

.project-supporter {
    .sp-preview & {
        .wide_card-digit {
            margin-top: 9px;
            margin-left: 7px;
        }
    }
}

.project-timer_noterm {
    @media (max-width: 768px) {
        margin-bottom: 0;
    }
}

.project-timer.wide_card-digit {
    @media (max-width: 768px) {
        padding-left: 10px;
        margin-top: 9px;
    }
}

.sp-preview {
    .project-timer {
        .wide_card-digit {
            margin-top: 9px;
            margin-left: 14px;
        }
    }
}
