/* クロストークページのスタイル */
.crosstalk-page {
    position: relative;
}

.crosstalk-page .container {
    position: relative;
    max-width: 1104px;
}

/* クロストークグリッド */
.crosstalk-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* クロストークカード */
.crosstalk-card {
    position: relative;
    width: 100%;
    border-radius: 60px 60px 0 60px;
    overflow: hidden;
    background: #fff;
}

.crosstalk-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.crosstalk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #000;
    border-radius: 60px 60px 0 60px;
    pointer-events: none;
    z-index: 10;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 155px),
        calc(100% - 590px) calc(100% - 155px),
        calc(100% - 590px) 100%,
        0 100%
    );
}

.crosstalk-card-inner {
    position: relative;
    min-height: 480px;
    border-radius: 60px 60px 0 60px;
}

/* 写真エリア（全体の背景） */
.crosstalk-photo-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden !important;
}

.crosstalk-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 60px 60px 0 60px;
    transition: transform 0.3s ease;
}

.crosstalk-card:hover .crosstalk-photo {
    transform: scale(1.05);
}

/* 番号（写真の左下） */
.crosstalk-number {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 195px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Afacad', sans-serif;
    line-height: 0.7;
    padding: 0 0 0 28px;
    color: #FFFFFF;
    z-index: 2;
}

/* コンテンツエリア（右下に重なる白背景） */
.crosstalk-content {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 590px !important;
    height: 155px;
    background-color: #fff;
    padding: 30px 40px 0;
    border-top-left-radius: 30px;
    border-left: 1px solid #000;
    border-top: 1px solid #000;
    box-sizing: border-box !important;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    max-width: unset;    
}

/* タイトル */
.crosstalk-title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.67;
    margin-bottom: 5px;
    color: #000;
}

/* タグエリア */
.crosstalk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.crosstalk-tag {
    display: inline-block;
    padding: 0;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

@media (min-width: 992px) {
    .recruit_wrapper {
        margin-top: -200px;
        padding: 340px 0 170px;
    }
}

/* レスポンシブ対応 - スマホ */
@media (max-width: 991px) {
    .crosstalk-grid {
        gap: 30px;
        margin-bottom: 40px;
    }

    .crosstalk-card {
        border-radius: 45px 45px 0 0;
        background-color: transparent;
        overflow: visible;
    }

    .crosstalk-card::before {
        display: none;
    }

    .crosstalk-card-inner {
        min-height: auto;
        border-radius: 0;
    }

    .crosstalk-photo-wrapper {
        height: auto;
        overflow: hidden;
        border-bottom: none;
    }

    .crosstalk-photo {
        width: 100%;
        height: auto;
        border-radius: 0;
        border-radius: 45px 45px 0 0;
        border: 1px solid #000;
    }

    .crosstalk-number {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 10px;
        font-size: 105px;
        padding: 0 0 0 0;
        line-height: 0.6;
    }

    .crosstalk-content {
        position: relative;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        padding: 30px 20px;
        border-top-left-radius: 0;
        border-left: none;
        border-top: none;
        background-color: transparent;
    }

    .crosstalk-title {
        font-size: 18px;
        line-height: 1.67;
        margin-bottom: 20px;
    }

    .crosstalk-tags {
        gap: 8px;
    }

    .crosstalk-tag {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .crosstalk-number {
        font-size: 105px;
        bottom: 0;
        left: 5px;
    }

    .crosstalk-title {
        font-size: 18px;
    }

    .crosstalk-content {
        padding: 25px 15px;
    }
}
