/* new card design */
@media screen and (max-width: 450px) {
    .main-content .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
.card-wrap {
    height: 200px;
    border: 1px solid #dedddb;
    border-radius: 8px;
    width: 336px;
    position: relative;
    transition: 0.2s all ease-in-out !important;
    background-color: rgba(255, 255, 255);
    margin-bottom: 16px;
}
.card-body.flex:not(.letter-index)::after {
    content: "";
    width: 32%;
    max-width: 350px !important;
}
.card-body.flex .card-wrap {
    position: relative;
    width: 32%;
    max-width: 350px;
    margin-bottom: 40px;
}
.swiper-slide .card-wrap {
    margin-left: auto;
    margin-right: auto;
}
.already-read {
    background: rgba(241, 240, 240, 0.8) !important;
}
.card-wrap:hover {
    border: 1px solid #f3c930;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px,
        rgba(17, 17, 26, 0.1) 0px 0px 8px;
}
.card-shadow {
    height: 200px;
    padding: 8px;
    box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
}
.card-top {
    background-color: #eeeeee;
    color: #505050;
    padding: 4px;
    border-radius: 8px 8px 0 0;
    height: 82px;
}
.card-variety {
    color: #fff;
    padding: 3px 5px 3px;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    left: -5px;
}
.variety-green {
    background: #3ab483;
}
.variety-yellow {
    background: #f3c930;
}
.card-above {
    margin-left: 25px;
    margin-bottom: 5px;
    height: 16px;
    display: flex;
}
.card-above-wide {
    margin-left: 90px;
}
.icon-return {
    width: 17px;
}
.return-source {
    font-size: 13px;
    text-decoration-line: underline;
    margin-left: 2px;
    align-self: center;
    z-index: 1;
    color: #0337ad;
    font-weight: bold;
}
.bookmark-overlay {
    top: 2px;
    right: 2px;
    width: 1.38rem;
    height: 1.7rem;
    z-index: 2;
    position: absolute;
    transition: 0.2s all ease-in-out !important;
    list-style: none;
}
.letter-index .bookmark-overlay {
    top: 28px;
    right: 34px;
}
.icon-bookmark-overlay {
    top: 2px;
    right: 2px;
    width: 1.38rem;
    height: 1.7rem;
    position: relative;
    cursor: pointer;
    background-image: url(/assets/img/icon_bookmark.svg);
    background-repeat: no-repeat;
    transition: 0.2s all ease-in-out !important;
}

.icon-bookmarked-overlay {
    top: 2px;
    right: 2px;
    width: 1.38rem;
    height: 1.7rem;
    position: relative;
    cursor: pointer;
    background-image: url(/assets/img/icon_bookmarked.svg);
    background-repeat: no-repeat;
    transition: 0.2s all ease-in-out !important;
}
.icon-bookmark-overlay:after,
.icon-bookmarked-overlay:after {
    display: block;
    content: "";
    position: absolute;
    width: 2.2rem;
    height: 2.2rem;
    top: -4px;
    left: -8px;
    border-radius: 50%;
    /* background: rgba(255, 0, 0, 0.2); */
}

.card-main-title {
    font-size: 16px;
    letter-spacing: -0.5px;
    font-weight: bold;
    padding: 0px 8px 2px;
    height: 94px;
    word-break: break-all;
}
.card-main-title-already-read {
    font-size: 16px;
    font-weight: normal;
    padding: 0px 8px 2px;
    height: 94px;
    word-break: break-all;
}
.card-new {
    font-size: 12px;
    color: #e00202;
    background: #fff;
    border: 1.8px solid #e00202;
    border-radius: 3px;
    padding: 3px 6px;
    /* vertical-align: text-top; */
}
.card-bottom {
    color: #686868;
}
.contributor-box {
    display: flex;
    padding: 5px 0 5px;
    margin-top: 5px;
}
.contributor-image {
    margin-right: 10px;
    height: 48px;
    width: 48px;
    min-width: 48px;
    object-fit: cover;
}
.contributor-info {
    width: 100%;
}
.contributor-name {
    font-size: 16px;
    font-weight: bold;
    height: 24px;
    padding-top: 2px;
}
.contributor-posted-date {
    font-size: 13px;
    height: 24px;
    padding-top: 2px;
    display: flex;
    justify-content: space-between;
}
.reserved-box {
    display: flex;
}
.reserved_date {
    font-weight: bold;
    margin-right: 5px;
}
.overlay-box {
    display: flex;
    align-self: center;
    margin-right: 5px;
}
.card-detail-link {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: initial;
}
.group-overlay {
    position: relative;
    width: 28px;
    height: 28px;
    z-index: 1;
    transition: 0.5s;
    background-image: url(/assets/img/icon_people_group.svg);
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 8px;
}
.group-overlay:after {
    display: block;
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    top: -8px;
    left: -8px;
    border-radius: 50%;
    /* background: rgba(255, 0, 0, 0.2); */
}

.detail-overlay {
    position: relative;
    width: 28px;
    height: 28px;
    z-index: 1;
    transition: 0.5s;
    background-image: url(/assets/img/icon_detail.svg);
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 8px;
}
.detail-overlay:after {
    display: block;
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    top: -8px;
    left: -8px;
    border-radius: 50%;
    /* background: rgba(255, 0, 0, 0.2); */
}

.group-hidden {
    width: 100%;
    z-index: 2;
    padding: 5px 10px 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
    background-color: rgba(255, 255, 255, 0.95);
}
.group-show {
    opacity: 1;
    visibility: visible;
}
.overlay-top {
    display: flex;
    justify-content: space-between;
}
.group-title {
    font-size: 14px;
    font-weight: bold;
}
.overlay-close-box {
    width: 30px;
    height: 25px;
    text-align: end;
    cursor: pointer;
}
.overlay-close {
    width: 18px;
}
.group-badge {
    margin-right: 3px;
    font-size: 0.7rem;
    font-weight: normal;
    color: black;
    padding: 3px;
    margin-bottom: 4px;
    border: 1px solid black;
    border-radius: 4px;
}
.category-overlay, .idea-tagicon-overlay {
    position: relative;
    width: 28px;
    height: 28px;
    z-index: 1;
    transition: 0.5s;
    background-image: url(/assets/img/icon_categories.svg);
    background-repeat: no-repeat;
    cursor: pointer;
}

.category-overlay:after, .idea-tagicon-overlay::after {
    display: block;
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    top: -8px;
    left: -6px;
    border-radius: 50%;
    /* background: rgba(255, 0, 0, 0.2); */
}
.category-hidden, .idea-tag-hidden {
    width: 100%;
    z-index: 2;
    padding: 5px 10px 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
    background-color: rgba(255, 255, 255, 0.95);
}
.category-show, .idea-tag-show {
    opacity: 1;
    visibility: visible;
}
.category-title {
    font-size: 14px;
    font-weight: bold;
}
.category-badge {
    margin-right: 3px;
    font-size: 0.7rem;
    font-weight: normal;
    color: black;
    padding: 3px;
    margin-bottom: 4px;
    border: 1px solid black;
    border-radius: 4px;
}

@media screen and (max-width: 1280px) {
    .card-body.flex .card-wrap {
        width: 48.5%;
    }
}
.extra-info {
    display: flex;
    justify-content: space-between;
    height: 34px;
}
.extra-info-date {
    display: flex;
}
.limited-date {
    font-size: 12px;
    font-weight: bold;
    line-height: 22.5px;
    height: 25px;
    border: 1.8px solid #686868;
    border-radius: 3px;
    padding: 0px 3px 0px;
}
.imminent-date {
    font-size: 12px;
    font-weight: bold;
    line-height: 22.5px;
    height: 25px;
    color: #e00202;
    border: 1.8px solid #e00202;
    border-radius: 3px;
    padding: 0px 3px 0px;
}
.finished-date {
    font-size: 12px;
    line-height: 22.5px;
    height: 25px;
    color: #000000;
    background-color: lightgray;
    border: 1.8px solid lightgray;
    border-radius: 3px;
    padding: 0px 3px 0px;
}
.card-status {
    background-color: #525252;
    color: #eee;
    font-size: 12px;
    font-weight: bold;
    margin: auto;
    padding: 2px 10px;
    margin-left: 5px;
    margin-right: 5px;
    width: 65px;
    text-align: center;
}
.reviewer-info {
    font-size: 12px;
    line-height: 22.5px;
    height: 25px;
    color: white;
    background-color: #44546A;
    border: 1.8px solid #44546A;
    border-radius: 3px;
    padding: 0px 3px;
}
.extra-info-data {
    display: flex;
}
.extra-info-data.like-comment {
    margin-top: 8px;
}
.light-box {
    position: relative;
    width: 17px;
    height: 22px;
    cursor: pointer;
    top: 3px;
    z-index: 1;
    background-image: url("/assets/img/icon_light_gray.svg");
    background-repeat: no-repeat;
    transition: 0.25s all ease-in-out !important;
}
.light-box:hover {
    background-image: url("/assets/img/icon_light_y.svg");
    background-repeat: no-repeat;
    width: 20.5px;
    height: 28px;
}
.extra-info-icon {
    width: 22px;
    height: 22px;
}
.extra-info-score {
    font-size: 14px;
    color: #b2b0aa;
    margin: 0 10px 0 5px;
    align-self: end;
}
.extra-info-grant-score {
    align-self: start;
    display: flex;
    flex-flow: column;
    text-align: center;
}
.extra-info-grant-score-title {
    font-size: 10px;
    border: solid 1px #000000;
    border-radius: 5px;
    padding: 2px;
    margin: 0;
}
.extra-info-grant-score-body {
    font-size: 16px;
    font-weight: 500;
}

/* modal */
.js_cardModal {
    position: fixed;
    z-index: 7777;
    display: none;
    background: #fff;
    top: 10%;
    left: 15%;
    padding: 0 10px 16px 10px;
    width: 70%;
}
.js_cardModal_top {
    margin-bottom: 20px;
}
.modal_bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 6666;
    display: none;
    width: 100%;
    height: 120%;
    background-color: rgba(0, 0, 0, 0.25);
}
.modal_title_box {
    text-align: center;
    padding-top: 18px;
}
.modal_title {
    color: #585858;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(transparent 70%, yellow 70%);
    padding-bottom: 10px;
}
.js_modal_close {
    position: absolute;
    top: 10px;
    right: 0;
    color: #585858;
}
.modal_outer {
    position: relative;
    width: 60px;
    cursor: pointer;
    display: inline-block;
}
.modal_inner {
    width: inherit;
    text-align: center;
}
.modal_inner label {
    font-size: 0.8em;
    line-height: 4em;
    text-transform: uppercase;
    color: #585858;
    transition: all 0.3s ease-in;
    opacity: 0;
    cursor: pointer;
    margin-bottom: 0;
}
.modal_inner:before,
.modal_inner:after {
    position: absolute;
    content: "";
    height: 1px;
    width: inherit;
    background: #585858;
    left: 0;
    transition: all 0.3s ease-in;
}
.modal_inner:before {
    top: 50%;
    transform: rotate(45deg);
}
.modal_inner:after {
    bottom: 50%;
    transform: rotate(-45deg);
}
.modal_outer:hover label {
    opacity: 1;
}
.modal_outer:hover .modal_inner:before,
.modal_outer:hover .modal_inner:after {
    transform: rotate(0);
}
.modal_outer:hover .modal_inner:before {
    top: 0;
}
.modal_outer:hover .modal_inner:after {
    bottom: 0;
}
.modal_no_cards {
    color: #585858;
    font-size: 24px;
    text-align: center;
    margin: 76px auto;
}
@media screen and (max-width: 767px) {
    .card-body.flex .card-wrap {
        width: 100%;
        max-width: none;
        margin-bottom: 26px;
    }
    .js_cardModal {
        position: fixed;
        z-index: 7777;
        display: none;
        background: #fff;
        top: 10%;
        left: 0;
        padding: 0 10px 50px 10px;
        width: 100%;
    }
    .modal_title_box {
        color: #585858;
        text-align: center;
        padding-top: 18px;
    }
    .js_modal_close {
        position: relative;
        text-align: center;
    }
    .modal_title {
        font-size: 18px;
    }
}

/* swiper.js */
.card-container {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
    position: relative;
    width: 100%;
}
.swiper-top {
    margin-bottom: 0px;
}
.swiper-wrapper {
    margin-top: 10px;
}
.swiper-slide {
    transition: 0.3s all ease-in-out !important;
}
/* .swiper-slide:hover {
    margin-top: -4px;
} */
/* 前への矢印 */
.swiper-button-prev {
    left: -6px !important;
}

/* 次への矢印 */
.swiper-button-next {
    right: -6px !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 24px !important;
}

/* 募集 */
.variety-recruitment {
    font-size: 12.5px;
    background: #63b537;
    color: #fff;
}
/* 投稿 */
.variety-post {
    font-size: 12.5px;
    background: #f1b02e;
    color: #fff;
}
/* 掲示板*/
.variety-black {
    font-size: 12.5px;
    background: #000010;
    color: #fff;
}
/* サンキューレター */
.variety-thanks {
    font-size: 12.5px;
    background: #f42987;
    color: #fff;
}
.to-message {
    font-size: 14px;
    font-weight: bold;
    margin-left: 72px;
}





/***********************
 プロジェクト カードデザイン
 ************************/
 .variety-project {
    font-size: 12.5px;
    background: #375fb5;
    color: #fff;
}
.card-progress {
    margin-bottom: 5px;
    text-align: right;
}
.card-progress span {
    display:inline-block;
    border: solid 3px #375fb5;
    padding:2px;
    font-weight: bold;
    font-size:14px;
    color:#000000;
}
/* プロジェクトゴール設定 */
.goal-overlay {
    width: 28px;
    height: 28px;
    z-index: 2;
    transition: 0.5s;
    background-image: url(/assets/img/icon_flag-solid.svg);
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 8px;
    opacity: 0.7;
}
.goal-overlay:after {
    display: block;
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    right: 48px;
    bottom: 38px;
    border-radius: 50%;
}
.goal-overlay:hover {
    width: 30px;
    height: 30px;
}
.goal-hidden {
    width: 100%;
    z-index: 2;
    padding: 5px 10px 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
    background-color: rgba(255, 255, 255, 0.95);
}
.goal-show {
    opacity: 1;
    visibility: visible;
}
.goal-title {
    font-size: 14px;
    font-weight: bold;
}
.goal-badge {
    margin-right: 3px;
    font-size: 0.9rem;
    font-weight: normal;
    color: black;
    padding: 5px;
    margin-bottom: 4px;
    border: 1px solid #ccc;
    background:rgb(236, 236, 236);
    border-radius: 4px;
}
/* プロジェクトカード残日数 */
.remaining-days {
    display: inline-block;
    border:solid 1px #666;
    border-radius: 3px;
    padding:3px;
    font-size: 14px;
}
/* プロジェクトカード タスク数のアイコン表示調整 */
.tasks {
    opacity: 0.4;
}
