/**
 * base
 */
@media screen and (min-width: 767px) {
    .custom-main.project {
        background-color: #F4F4F4;
        padding-bottom: 250px;
    }
}
@media screen and (max-width: 767px) {
    .custom-main.project {
        background-color: #F4F4F4;
        padding-bottom: 195px;
    }
}
/**
 * wrapper
 */
/* sp */
@media screen and (max-width: 767px) {
    .project .project-wrapper {
        width: 100%;
        padding:  38px 4%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
}
/* tab */
@media screen and (min-width: 767px) and (max-width: 1440px) {
    .project .project-wrapper {
        width: 100%;
        padding:  55px 5% 0;
        display: flex;
        margin: 0 auto;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
}
/* pc */
@media screen and (min-width: 1440px) {
    .project .project-wrapper {
        width: 100%;
        max-width: 1440px;
        padding:  55px 72px 0;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
}

/**
 * page title
 */
@media screen and (min-width: 767px) {
    .project-page-title {
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: end;
    }
    .project-page-title-main {
        margin: 0;
        padding: 0;
        width: 307px;
        height: 54px;
    }
    .project-page-title-main img {
        width: 100%;
        height: 100%;
    }
}
@media screen and (max-width: 767px) {
    .project-page-title {
        padding: 0 0 0 10px;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: baseline;
    }
    .project-page-title-main {
        margin: 0;
        padding: 0;
        width: auto;
        height: 30px;
    }
    .project-page-title-main img {
        width: 100%;
        height: 100%;
    }
}

/**
 * inner wrapper
 */
/* sp */
@media screen and (max-width: 767px) {
    .project .project-wrapper-inner {
        width: 100%;
        padding:  32px 0 0;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
}
/* tab over */
@media screen and (min-width: 767px) {
    .project .project-wrapper-inner {
        width: 100%;
        padding:  68px 6.86% 0;
        display: flex;
        margin: 0 auto;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
}

/**
 * project-card
 */
/* tab over */
@media screen and (min-width: 767px) {
    .project-cards {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 760px;
        background-color: white;
        margin: 28px 0 0 0;
        box-shadow: 0px 7px 8px rgba(64, 64, 64, 0.25);
    }
    
    .project-cards:first-of-type {
        margin: 0;
    }
    
    .project-cards p {
        margin: 0;
        padding: 0;
    }
    /* 上部オレンジ線 */
    .project-cards-upper-line {
        width: 100%;
        height: 17px;
        margin: 0;
        padding: 0;
        background-color: #FF5701;
    }
    /* cardsのwrapper */
    .project-cards-wrapper {
        margin: 0;
        padding: 39px 43px 30px 35px;
        width: 100%;
    }
    /* cards header */
    .project-cards-header {
        width: 100%;
        display: flex;
        min-height: 144px;
    }
    .project-cards-header-image {
        width: 34.16%;
        min-width: 200px;
        min-height: 144px;
        max-height: 144px;
        height: 144px;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .project-cards-header-image .non-image::after {
        content: 'No Image';
        color: white;
        display: block;
        position: absolute;
        top: calc(50% - calc(min(4.5vw, 2rem) * 0.5) - 2px);
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        text-align: center;
        font-weight: 700;
        font-size: min(4.5vw, 2rem);
    }
    .project-cards-header-content {
        width: 65.84%;
        height: 100%;
        padding: 11px 43px 0 26px;
        margin: 0;
    }
    .project-cards-header-content-title {
        margin: 0 0 8px 0;
        width: 100%;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }
    .project-cards-header-content-title p {
        font-size: 0.9375rem;
        font-weight: 700;
        color: #FF5701;
        width: 100%;
    }
    .project-cards-header-content-text {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .project-cards-header-content-text p {
        font-weight: 700;
        font-size: 1.125rem;
        line-height: 2rem;
    }
    /* cards body */
    .project-cards-body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-top: 20px;
        border-top: 1px solid #C1C1C1;
        margin: 20px 0 0 0;
    }
    /* body ul */
    .project-cards-body-content {
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    /* body li */
    .project-cards-body-content-item {
        width: 100%;
        min-height: 30px;
        margin: 0;
        padding: 0;
    }
    .project-cards-body-content-item-detail {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    /* item title */
    .project-cards-body-content-item-detail-title {
        flex-basis: 96px;
        min-width: 96px;
        padding-right: 7px;
        position: relative;
    }
    .project-cards-body-content-item-detail-title::after {
        display: block;
        position: absolute;
        content: "";
        width: 2px;
        height: 13px;
        background-color: #000;
        top: calc(50% - 6.5px);
        right: 0;
    }
    
    .project-cards-body-content-item-detail-title p {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        /* color: #8F8F8F; */
    }
    /* item text */
    .project-cards-body-content-item-detail-text {
        padding-left: 14px;
        flex-grow: 2;
        word-break: break-all;
    }
    /* item text 2行で3点マークにするモノ */
    .project-cards-body-content-item-detail-text.line-clamp-2 {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    /* item text default */
    .project-cards-body-content-item-detail-text.default p {
        font-size: 1rem;
        font-weight: 700;
        line-height: 30px;
        letter-spacing: 0.05em;
        /* color: #8F8F8F; */
    }
    /* item text orange */
    .project-cards-body-content-item-detail-text.orange p {
        font-size: 1rem;
        font-weight: 700;
        line-height: 30px;
        letter-spacing: 0.05em;
        color: #FF5701;
    }
    /* item text 人数 */
    .project-cards-body-content-item-detail-text.people-cont p::after {
        content: "人";
        font-size: 1rem;
        font-weight: 700;
        line-height: 30px;
        letter-spacing: 0.05em;
    }
    
    /* item text 報償金額 */
    .project-cards-body-content-item-detail-text.in-tax-yen p::before {
        /* content: "￥"; */
        font-size: 1rem;
        font-weight: 700;
        line-height: 30px;
        letter-spacing: 0.05em;
    }
    .project-cards-body-content-item-detail-text.in-tax-yen p::after {
        /* content: "(税込み)"; */
        font-size: 1rem;
        font-weight: 700;
        line-height: 30px;
        letter-spacing: 0.05em;
    }
    
    /* item text 交通費 */
    .project-cards-body-content-item-detail-text.transportation p::before {
        /* content: "支給あり(上限"; */
        font-size: 1rem;
        font-weight: 700;
        line-height: 30px;
        letter-spacing: 0.05em;
    }
    .project-cards-body-content-item-detail-text.transportation p::after {
        /* content: "円 / 月まで)" */
        font-size: 1rem;
        font-weight: 700;
        line-height: 30px;
        letter-spacing: 0.05em;
    }
    
    
    /* cards footer */
    .project-cards-footer {
        width: 100%;
        padding: calc(30px - 6px) 0 0 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    .project-cards-footer-button-area {
        width: 100%;
        padding: 0;
        margin: 0;
        display: flex;
    }
    .project-cards-footer-button-area.pub-page a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 49px;
        padding: 0;
        margin: 0 10px 0;
        font-size: 1.125rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        background-color: #FF5701;
        color: white;
    }
    .project-cards-footer-button-area.pub-page button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 49px;
        padding: 0;
        margin: 0 10px 0;
        font-size: 1.125rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        background-color: #00D0EE;
        color: white;
        border: none;
    }
    .project-cards-footer-button-area.my-page a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 49px;
        padding: 0;
        margin: 0;
        font-size: 1.125rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        background-color: #FF5701;
        color: white;
    }
}
/* sp */
@media screen and (max-width: 767px) {
    .project-cards {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 760px;
        background-color: white;
        margin: 28px 0 0 0;
        box-shadow: 0px 7px 8px rgba(64, 64, 64, 0.25);
    }
    
    .project-cards:first-of-type {
        margin: 0;
    }
    
    .project-cards p {
        margin: 0;
        padding: 0;
    }
    /* 上部オレンジ線 */
    .project-cards-upper-line {
        width: 100%;
        height: 6px;
        margin: 0;
        padding: 0;
        background-color: #FF5701;
    }
    /* cardsのwrapper */
    .project-cards-wrapper {
        margin: 0;
        padding: 20px 18px 21px 16px;
        width: 100%;
    }
    /* cards header */
    .project-cards-header {
        height: 100%;
        width: 100%;
        display: flex;
        min-height: none;
        align-items: center;
    }
    .project-cards-header-image {
        width: 40.19%;
        min-width: 125px;
        min-height: 76px;
        max-height: 144px;
        height: 20.26vw;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .project-cards-header-image .non-image::after {
        content: 'No Image';
        color: white;
        display: block;
        position: absolute;
        top: calc(50% - calc(min(4.5vw, 2rem) * 0.5) - 2px);
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        text-align: center;
        font-weight: 700;
        font-size: min(4.5vw, 2rem);
    }

    .project-cards-header-content {
        width: 59.81%;
        height: 100%;
        padding: 0px 0px 0 8px;
        margin: 0;
    }
    .project-cards-header-content-title {
        margin: 0 0 11px 0;
        width: 100%;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }
    .project-cards-header-content-title p {
        font-size: 0.875rem;
        font-weight: 700;
        color: #FF5701;
        width: 100%;
    }
    .project-cards-header-content-text {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .project-cards-header-content-text p {
        font-weight: 700;
        font-size: 0.875rem;
        line-height: 1.125rem;
    }
    /* cards body */
    .project-cards-body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid #C1C1C1;
        margin-top: 21px;
    }
    /* body ul */
    .project-cards-body-content {
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    /* body li */
    .project-cards-body-content-item {
        width: 100%;
        min-height: 24px;
        margin: 0;
        padding: 0;
    }
    .project-cards-body-content-item-detail {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    /* item title */
    .project-cards-body-content-item-detail-title {
        flex-basis: 71px;
        min-width: 71px;
        padding-right: 6px;
        position: relative;
    }
    .project-cards-body-content-item-detail-title::after {
        display: block;
        position: absolute;
        content: "";
        width: 2px;
        height: 13px;
        background-color: #000;
        top: calc(50% - 6.5px);
        right: 0;
    }
    .project-cards-body-content-item-detail-title p {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        /* color: #8F8F8F; */
    }
    /* item text */
    .project-cards-body-content-item-detail-text {
        padding-left: 14px;
        flex-grow: 2;
        word-break: break-all;
    }
    /* item text 2行で3点マークにするモノ */
    .project-cards-body-content-item-detail-text.line-clamp-2 {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    /* item text default */
    .project-cards-body-content-item-detail-text.default p {
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 24px;
        letter-spacing: 0.05em;
        /* color: #8F8F8F; */
    }
    /* item text orange */
    .project-cards-body-content-item-detail-text.orange p {
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 24px;
        letter-spacing: 0.05em;
        color: #FF5701;
    }
    /* item text 人数 */
    .project-cards-body-content-item-detail-text.people-cont p::after {
        content: "人";
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 24px;
        letter-spacing: 0.05em;
    }
    
    /* item text 報償金額 */
    .project-cards-body-content-item-detail-text.in-tax-yen p::before {
        /* content: "￥"; */
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 24px;
        letter-spacing: 0.05em;
    }
    .project-cards-body-content-item-detail-text.in-tax-yen p::after {
        /* content: "(税込み)"; */
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 24px;
        letter-spacing: 0.05em;
    }
    
    /* item text 交通費 */
    .project-cards-body-content-item-detail-text.transportation p::before {
        /* content: "支給あり(上限"; */
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 24px;
        letter-spacing: 0.05em;
    }
    .project-cards-body-content-item-detail-text.transportation p::after {
        /* content: "円 / 月まで)"; */
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 24px;
        letter-spacing: 0.05em;
    }
    
    
    /* cards footer */
    .project-cards-footer {
        width: 100%;
        padding: 11px 0 0 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    .project-cards-footer-button-area {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .project-cards-footer-button-area.pub-page a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 49px;
        padding: 0;
        margin: 0;
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        background-color: #FF5701;
        color: white;
    }
    .project-cards-footer-button-area.pub-page button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 49px;
        padding: 0;
        margin: 10px 0 0;
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        background-color: #00D0EE;
        color: white;
        border: none;
    }
    .project-cards-footer-button-area.my-page a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 49px;
        padding: 0;
        margin: 0;
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        background-color: #FF5701;
        color: white;
    }
}

/**
 * scroll arrow
 */
 /* 全画面表示にする為コメントアウト */
/* @media screen and (min-width: 1440px) {
    .project-wrapper .upper-scroll {
        position: fixed;
        right: calc(50vw - 720px + 39px);
        z-index: 1;
    }
}
@media screen and (min-width: 767px) and (max-width: 1440px) {
    .project-wrapper .upper-scroll {
        position: fixed;
        right: 2.7%;
        z-index: 1;
    }
}
@media screen and (max-width: 767px) {
    .project-wrapper .upper-scroll {
        position: fixed;
        right: 22px;
        z-index: 1;
    }
} */
/* 案件がない場合のテキスト */
.no-project-text {
    font-weight: 700;
    font-size: 1.25rem;
    padding-left: 10px;
}

/* ページネーション配色変更 */
.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover {
    background-color: #00D0EE;
    border-color: #00D0EE;
    font-weight: 700;
}

/**
 * 送信確認モーダル
 */
 #project_list_confirm_modal {
    display: none;
 }
.project-list-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}
.project-list-confirm-modal .confirm-modal-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4%;
}

/* モーダル本体 */
/* tab over */
@media screen and (min-width: 767px) {
    .project .confirm-modal-main {
        margin: 0;
        padding: 0;
        background-color: white;
        width: 600px;
        border-radius: 20px;
        z-index: 9999;
    }
    .project .confirm-modal-main-content {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 45px 50px 25px 50px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    .project .confirm-modal-main-content-text {
        margin: 0 0 20px 0;
    }
    .project .confirm-modal-main-content-text p {
        font-weight: 700;
        font-size: 1.2rem;
        text-align: center;
        margin: 0;
    }
    .project .confirm-modal-main-content-submit,
    .project .confirm-modal-main-content-cancel
    {
        width: 100%;
        padding: 0;
        margin: 0 0 20px 0;
    }
    /* 送信ボタン */
    .project .confirm-modal-main-content-submit button {
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.1em;
        color: #FBFBFB;
        background-color: #00D0EE;
        width: 100%;
        border: none;
        height: 80px;
        border-radius: 10px;
    }
    /* キャンセルボタン */
    .project .confirm-modal-main-content-cancel button {
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.1em;
        color: #FBFBFB;
        background-color: gray;
        width: 100%;
        border: none;
        height: 80px;
        border-radius: 10px;
    }
}
/* sp */
@media screen and (max-width: 767px) {
    .project .confirm-modal-main {
        margin: 0;
        padding: 0;
        background-color: white;
        width: 600px;
        height: 230px;
        border-radius: 20px;
        z-index: 9999;
    }
    .project .confirm-modal-main-content {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 25px 25px 25px 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    .project .confirm-modal-main-content-submit,
    .project .confirm-modal-main-content-cancel
    {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    /* 送信ボタン */
    .project .confirm-modal-main-content-submit button {
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.1em;
        color: #FBFBFB;
        background-color: #00D0EE;
        width: 100%;
        border: none;
        height: 60px;
        border-radius: 10px;
    }
    /* キャンセルボタン */
    .project .confirm-modal-main-content-cancel button {
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.1em;
        color: #FBFBFB;
        background-color: gray;
        width: 100%;
        border: none;
        height: 60px;
        border-radius: 10px;
    }
}

/* モーダルグレーアウト箇所 */
.project .confirm-modal-gray {
    display: block;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    opacity: 0.5;
    width: 100vw;
    height: 100vh;
}
.project-cards-footer button[disabled] {
    opacity: 0.5;
}