/* ================================================================
   募集要項一覧ページ (description_list_page)
   Figma: node-id=1245:6328
================================================================ */


/* ---- ページ全体 ---- */

.dl-page {
    padding: 40px 0 160px;
}

.dl-page-title {
    margin: 0;
    font-size: 50px;
    font-weight: 800;
    color: #191919;
    letter-spacing: 0.08em;
    line-height: 1.2;
}


/* ---- カテゴリータブ ---- */

.dl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 64px;
    justify-content: center;
    align-items: center;
}

.dl-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-decoration: none;
    color: #191919;
    background: #f4f4f4;
    transition: background 0.2s, color 0.2s;
    opacity: 1;
    cursor: pointer;
}

.dl-tab:hover {
    background: #e8e8e8;
    opacity: 1;
}

.dl-tab.is-active {
    background: #ff0024;
    color: #ffffff;
}

.dl-tab.is-active:hover {
    background: #e0001f;
    opacity: 1;
}


/* ---- カードグリッド ---- */

.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 372px));
    row-gap: 40px;
    column-gap: 0;
    justify-content: space-between;
    margin-bottom: 42px;
}


/* ---- 求人カード ---- */

.dl-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 32px;
    overflow: hidden;
    max-width: 372px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-decoration: none;
    color: #191919;
}

.dl-card:hover {
    opacity: 1;
}

.dl-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 0 auto;
}


/* タイトル左の赤いアクセントライン */

.dl-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #191919;
    letter-spacing: 0.08em;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dl-card-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 20px;
    border-radius: 10px;
    background: #ff0024;
    flex-shrink: 0;
}

.dl-card-summary {
    margin: 0;
    font-size: 14px;
    color: #191919;
    letter-spacing: 0.7px;
    line-height: 1.5;
}


/* ---- カードフッター (メタ情報 + リンク) ---- */

.dl-card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.dl-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dl-card-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #191919;
    letter-spacing: 1.12px;
    line-height: 1.5;
    white-space: normal;
}

.dl-card-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.dl-card-meta-value {
    display: block;
    flex: 1;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}

.dl-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}


/* ---- 詳しく見るリンク ---- */

.dl-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #ff0024;
    text-decoration: none;
    letter-spacing: 1.4px;
    line-height: 1;
    width: max-content;
    margin-top: auto;
    margin-left: auto;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.dl-card-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #ff0024;
    border-radius: 100px;
    transition: width 0.6s ease;
}

.dl-card:hover .dl-card-link::after {
    width: 200%;
}

.dl-card-link svg {
    flex-shrink: 0;
}

.dl-card:hover .dl-card-link svg {
    transform: scale(1.2,1.2);
}


/* ---- ページネーション ---- */

.dl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 42px;
}

.dl-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #191919;
    border-radius: 4px;
    font-size: 14px;
    color: #191919;
    text-decoration: none;
    background: #ffffff;
    transition: background 0.2s, color 0.2s;
    opacity: 1;
}

.dl-page-btn:hover {
    background: #f0f0f0;
    opacity: 1;
}

.dl-page-btn.is-current {
    background: #191919;
    color: #ffffff;
    border-color: #191919;
}


/* ---- 総件数 ---- */

.dl-total {
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
    text-align: right;
}


/* ================================================================
   レスポンシブ
================================================================ */

@media screen and (max-width: 1240px) {
    .dl-grid {
        grid-template-columns: repeat(2, minmax(0, 372px));
        justify-content: space-around;
    }
}

@media screen and (max-width: 840px) {
    .dl-grid {
        grid-template-columns: minmax(0, 372px);
        justify-content: center;
        row-gap: 16px;
    }
}

@media screen and (max-width: 1024px) {
    .dl-page-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .dl-page {
        padding: 40px 0 80px;
    }
    .dl-page-title-wrap {
        margin-bottom: 32px;
    }
    .dl-tabs {
        margin-bottom: 32px;
    }
    .dl-tab {
        font-size: 12px;
        padding: 12px;
    }
    .dl-card {
        max-width: none;
        padding: 28px 0;
    }
    .dl-card-body {
        padding: 0 28px;
    }
    .dl-card-footer {
        padding: 0 28px;
    }
}