:root {
    --text-color: #333;
    --castime-white: #ffffff;
    --shadow-brightcolor: #fff;
    --shadow-darkcolor: #c6c9cc;
    --castimeColor: rgba(0, 154, 227);
    --castimeColorHover: rgba(0, 154, 227, 0.8);
    --castimeColorActive: rgba(0, 154, 227, 0.6);
}

.flex {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    width: 100%;
}

/* 導入企業カルーセルエリア */
.introductory-company {
    position: relative;
    margin: 40px auto;
}

.company-slider {
    overflow: hidden;
    position: relative;
    max-width: 1140px;
    padding: 40px 0;
    margin: 0 auto;
}

.company-card {
    flex-shrink: calc(100% / 3);
    flex-grow: 1;
    overflow: hidden;
    height: auto;
    border-radius: 15px;
    background: var(--castime-white);
    border: 3px solid var(--text-color);
    box-shadow: 5px 5px 0px var(--text-color);
    transition: all 0.3s ease;
}

.company-card:hover {
    box-shadow: none;
    transform: translateY(2px) scale(0.98);
}

.company-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.company-card-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.company-logo {
    max-width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
}

.company-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.company-industry,
.company-employees,
.company-method {
    width: 30%;
    font-weight: bold;
    font-size: 12px;
    background: var(--castimeColor);
    color: var(--castime-white);
    padding: 4px 10px;
    border-radius: 30px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.interview-button {
    display: none;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #fd3a3a;
    color: var(--castime-white);
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 25px;
    padding: 8px 0px;
    transition: all 0.3s ease;
}

.interview-button:hover {
    background: #b10003;
}

.company-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #ffe607;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    padding: 10px 0px;
    transition: all 0.3s ease;
}

.company-card-button:hover {
    background: var(--castimeColor);
    color: var(--castime-white);
}

.company-industry svg,
.company-employees svg,
.company-method svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    border: #666;
    fill: var(--castime-white);
}

.company-card-media {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    min-height: 250px;
    border-radius: 10px;
    margin: 10px;
}

.company-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 1;
    z-index: 1;
}

/* 画像ロードエラー時のプレースホルダー表示 */
.company-card-media::before {
    content: "画像準備中";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    z-index: 0;
}

.company-card:hover .company-card-media img {
    transform: scale(1.05);
}

.company-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.company-card-title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
    border-bottom: 1px solid #cecece;
}

.company-card-lead {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.company-card-link {
    align-self: flex-start;
    display: inline-block;
    padding: 8px 20px;
    background-color: #0066cc;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

/* ナビゲーションボタン位置調整 */
.swiper-navigation-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-350px);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--castimeColor);
    border: 1px solid var(--castimeColor);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--castimeColor);
    color: var(--castime-white);
    border: 1px solid var(--castime-white);
}

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

.swiper-button-prev {
    left: calc(50% - 220px);
}

.swiper-button-next {
    right: calc(50% - 220px);
}

/* ページネーション */
.swiper-pagination {
    position: relative;
    margin-top: 20px;
    bottom: 0;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--castime-white);
    opacity: 0.7;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background: #0066cc;
    opacity: 1;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .company-card-header {
        padding: 0px;
    }

    .company-logo {
        max-width: 80px;
        height: 30px;
    }

    .company-card {
        flex-shrink: 0;
    }

    .company-card-title {
        font-size: 16px;
    }

    .company-card-content {
        padding: 15px;
    }

    .company-card-link {
        padding: 6px 15px;
        font-size: 13px;
    }

    .company-slider {
        padding: 30px 10px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        transform: translateY(-180px);
        width: 40px;
        height: 40px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .company-industry,
    .company-employees,
    .company-method {
        width: 40%;
    }

    .company-card-media {
        min-height: 200px;
    }

    .company-industry {
        font-size: 10px;
        padding: 3px 8px;
    }

    .company-card-lead {
        font-size: 13px;
    }

    .company-slider {
        padding: 20px 5px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        transform: translateY(-250px);
        width: 50px;
        height: 50px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }

    .swiper-button-prev {
        left: 5px;
    }

    .swiper-button-next {
        right: 5px;
    }
}