/* 人材紹介事業ページ専用CSS */
/* セクション共通 */
.page-biz-staffing section {
    border-bottom: 1px solid #171717;
    padding: 0px 20px 100px 20px;
    margin-bottom: 80px;
}

.page-biz-staffing section:last-child {
    margin-bottom: 136px;
}

/* Recruitment Staffing Section */
.page-biz-staffing .recruitment-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-biz-staffing .recruitment-text {
    flex: 1.4;
}

.page-biz-staffing .recruitment-visual {
    flex: 1;
    text-align: center;
}

/* Service Features Section */
.page-biz-staffing .features-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.page-biz-staffing .feature-item {
    width: 30%;
    position: relative;
    box-sizing: border-box;
    text-align: center;
}

.page-biz-staffing .feature-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8.2%;
    width: 1px;
    height: 100%;
    background-color: #171717;
}

.page-biz-staffing .feature-number {
    font-family: var(--font-family-Cormorant-Infant);
    width: 72px;
    height: 72px;
    color: #171717;
    border: 1px solid #171717;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-biz-staffing .feature-title {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 20px;
    color: #171717;
}

.page-biz-staffing .feature-title span {
    text-decoration: underline;
    font-weight: 800;
}

.page-biz-staffing .feature-image {
    margin: 20px 0;
    height: 220px;
    overflow: hidden;
}

.page-biz-staffing .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-biz-staffing .feature-description {
    font-size: 13px;
    line-height: 1.6;
}

/* Flow Sections */
.page-biz-staffing .flow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-biz-staffing .flow-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #D9D9D9;
    padding: 30px 60px;
    position: relative;
}

.page-biz-staffing .flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #D9D9D9;
    z-index: 1;
}

.page-biz-staffing .flow-icon {
    max-width: 260px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F1F3;
}

.page-biz-staffing .flow-icon img {
    width: 100%;
    object-fit: contain;
}

.page-biz-staffing .flow-content {
    flex: 1;
}

.page-biz-staffing .flow-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #171717;
    display: flex;
    align-items: center;
}

.page-biz-staffing .flow-title span {
    font-family: var(--font-family-Cormorant-Infant);
    font-size: 13px;
    font-weight: bold;
    padding: 5px 10px;
    background: #171717;
    color: #fff;
    margin-right: 10px;
}

.page-biz-staffing .flow-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #171717;
}

.page-biz-staffing .flow-description a:hover{
    opacity: 0.7;
}

/* Flow CTA */
.page-biz-staffing .flow-cta {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 30px;
}

.page-biz-staffing .btn {
    width: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #888888;
    padding: 25px 15px;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.page-biz-staffing .btn-primary {
    background: #171717;
    color: #fff;
}

.page-biz-staffing .btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}

.page-biz-staffing .btn-secondary {
    background: #888888;
}

.page-biz-staffing .btn-secondary:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}

/* Temporary Staffing Section */
.page-biz-staffing .temporary-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-biz-staffing .temporary-text {
    flex: 1.4;
}

.page-biz-staffing .temporary-visual {
    text-align: center;
    flex: 1;
}

/* Job Change & Staffing Section */
.page-biz-staffing .job-change-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 20px;
}

.page-biz-staffing .job-change-grid:last-of-type {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 0;
}

.page-biz-staffing .job-change-grid img {
    display: block;
    width: 100%;
    height: auto;
}

.page-biz-staffing .job-change-item {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-biz-staffing .job-change-item:hover {
    transform: translateY(-5px);
    opacity: 0.7;
}
/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .page-biz-staffing .development-content,
    .page-biz-staffing .service-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .page-biz-staffing .features-grid,
    .page-biz-staffing .numbers-grid,
    .page-biz-staffing .column-grid,
    .page-biz-staffing .training-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .page-biz-staffing .track-record-grid {
        grid-template-columns: 1fr;
    }
    
    .page-biz-staffing .challenge-flow {
        flex-direction: column;
        gap: 30px;
    }
    
    .page-biz-staffing .challenge-flow::before,
    .page-biz-staffing .challenge-flow::after {
        display: none;
    }

    .page-biz-staffing .feature-image {
        height: 17vw;
    }
}
@media (max-width: 960px) {
    .page-biz-staffing section {
        padding: 0 0 60px 0;
        margin-bottom: 50px;
    }

    .page-biz-staffing section:last-child {
        margin-bottom: 96px;
    }

    .page-biz-staffing .section-subtitle {
        padding-left: 17.39px;
    }

    .page-biz-staffing .recruitment-content,
    .page-biz-staffing .temporary-content {
        display: block;
        width: 100%;
    }

    .page-biz-staffing .recruitment-visual img,
    .page-biz-staffing .temporary-visual img {
        width: 100%;
    }

    .page-biz-staffing .recruitment-description,
    .page-biz-staffing .temporary-description {
        margin-bottom: 30px;
    }
    
    .page-biz-staffing .flow-item {
        text-align: center;
        gap: 20px;
        padding: 10px;
    }

    .page-biz-staffing .flow-description,
    .page-biz-staffing .flow-title,
    .page-biz-staffing .feature-description {
        font-size: 13.5px;
        text-align: left;
    }

    .page-biz-staffing .job-change-grid:last-child .job-change-item,
    .page-biz-staffing .job-change-grid:last-child img {
        width: 100%;
    }

    .page-biz-staffing .job-change-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-bottom: 20px;
    }

    .page-biz-staffing .flow-cta {
        gap: 20px;
    }

    .page-biz-staffing .btn {
        font-size: 16px;
    }
}

@media (max-width: 895px) {
    .page-biz-staffing .features-grid {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .page-biz-staffing .feature-item {
        width: 47%;
    }

    .page-biz-staffing .feature-item:not(:last-child)::after {
        display: none;
    }

    .page-biz-staffing .feature-image {
        height: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-biz-staffing .job-change-grid {
        gap:10px;
        padding-bottom: 10px;
    }

    .page-biz-staffing .job-change-grid:last-of-type {
        grid-template-columns: repeat(1, 1fr);
        gap:10px
    }

    .page-biz-staffing .flow-cta {
        gap: 10px;
    }

    .page-biz-staffing .btn {
        font-size: 15px;
        width: 49%;
        padding: 20px 15px;
    }

    .page-biz-staffing .flow-description {
        font-size: 13px;
    }

    .page-biz-staffing .recruitment-description,
    .page-biz-staffing .temporary-descriptio,
    .page-biz-staffing .flow-description,
    .page-biz-staffing .feature-description {
        font-size: 14px;
    }
}

@media (min-width: 641px) {
    .page-biz-staffing .sp-item {
        display: none;
    }

    .page-biz-staffing .sp-item-none {
        display: block;
    }
}

@media (max-width: 640px) {
    .page-biz-staffing .sp-item {
        display: block;
    }

    .page-biz-staffing .sp-item-none {
        display: none;
    }

    .page-biz-staffing .section-subtitle {
        font-size: 14px;
        padding-left: 16.75px;
    }

    .page-biz-staffing .features-grid {
        flex-direction: column;
    }

    .page-biz-staffing .feature-item {
        width: 100%;
    }

    .page-biz-staffing .job-change-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .page-biz-staffing .flow-item {
        flex-direction: column;
    }

    .page-biz-staffing .flow-title {
        justify-content: center;
    }

    .page-biz-staffing .feature-item:last-child .feature-image {
        margin-bottom: 0;
    }

    .page-biz-staffing .flow-item {
        padding: 20px 10px;
    }

    .page-biz-develop .track-record-content h4 {
        font-size: 14px;
    }

    .page-biz-staffing .recruitment-description,
    .page-biz-staffing .temporary-descriptio,
    .page-biz-staffing .flow-description,
    .page-biz-staffing .feature-description {
        font-size: 13px;
    }

    .page-biz-staffing .flow-title{
        font-size: 15px;
    }

    .page-biz-staffing .staffing-flow-section .flow-grid .flow-item:first-child .flow-description a{
        padding: 15px;
        font-size: 1rem;
        margin-top: 10px;
        width: 100%;
        min-height: unset;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: #888888;
        text-decoration: none;
    }

    .page-biz-staffing .staffing-flow-section .flow-grid .flow-item:first-child .flow-description a span{
        display: none;
    }
}

@media (max-width: 599px) {
    .page-biz-staffing .flow-cta {
        flex-direction: column;
    }

    .page-biz-staffing .btn {
        font-size: 14px;
        width: 100%;
        min-height: 85px;
    }
}

@media (max-width: 480px) {
    .page-biz-staffing .section-subtitle {
        font-size: 12px;
        padding-left: 14.82px;
        margin-bottom: 1.5rem;
    }

    .page-biz-staffing section {
        padding: 0 0 40px 0;
        margin-bottom: 30px;
    }

    .page-biz-staffing section:last-child {
        margin-bottom: 76px;
    }

    .page-biz-staffing .btn {
        min-width: auto;
        width: 100%;
    }

    .page-biz-staffing .flow-title {
        flex-direction: column;
    }

    .page-biz-staffing .flow-title span {
        margin-right: 0px;
        margin-bottom: 10px;
    }
}
