/* ========================================
   会社カード修正用CSS
   ======================================== */

/* ロゴサイズ調整と背景透過 */
.company-card .company-logo-placeholder {
    padding: 1.5rem 1rem 1rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.company-card .company-logo-placeholder img {
    width: 60px !important; /* 80px → 60px に縮小 */
    height: 60px !important;
    object-fit: contain !important;
    background: transparent !important;
    mix-blend-mode: normal;
    display: block !important;
    margin: 0 auto !important;
}

.company-card .company-logo-placeholder i {
    font-size: 2.5rem !important; /* 3rem → 2.5rem に縮小 */
}

/* 会社名表示幅の修正 */
.company-card .company-logo-placeholder p {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important; /* nowrapを解除 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: clip !important; /* ellipsisを解除 */
    overflow: visible !important;
    padding: 0 0.5rem;
    margin-top: 0.75rem !important;
    font-size: 0.9rem;
    line-height: 1.3;
    text-align: center;
}

/* カードヘッダーの調整 */
.company-card .card-header {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 1rem;
}

/* 色付き会社名を非表示 */
.company-card .card-body h4.company-name {
    display: none !important;
}

/* カードボディの調整（会社名が非表示になった分） */
.company-card .card-body {
    padding-top: 1.25rem;
}

/* 特徴・強みリストのスタイル改善 */
.company-card .feature-list,
.company-card ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.company-card .feature-list li,
.company-card ul li {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #495057;
}

.company-card .feature-list li:last-child,
.company-card ul li:last-child {
    margin-bottom: 0;
}

/* バッジの位置調整 */
.company-card .badge {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-card .company-logo-placeholder img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .company-card .company-logo-placeholder i {
        font-size: 2rem !important;
    }
    
    .company-card .company-logo-placeholder p {
        font-size: 0.85rem;
    }
}

/* 統計情報エリアの設立日表示調整 */
.company-stats .stat-item {
    margin-bottom: 0.5rem;
    text-align: center;
}

.company-stats .stat-item:last-child {
    margin-bottom: 0;
}

.company-stats .stat-item strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 統計情報グリッドレイアウト調整 */
.company-stats .stat-item small {
    font-size: 0.7rem;
    margin-top: 0.2rem;
    display: block;
}

/* 統計情報を縦並びに変更 */
.company-stats .row .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0.25rem 0;
}