/* =========================================================
   注目のAI企業セクション（横スクロール）
   ========================================================= */
.aind-co {
    margin-top: 48px;
}

.aind-co__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d5db;
}

.aind-co__heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.aind-co__more {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}

.aind-co__more:hover {
    color: #2563eb;
}

/* ===== ナビ（すべて見る + 矢印） ===== */
.aind-co__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aind-co__arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
}

.aind-co__arrow:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1a1a2e;
}

.aind-co__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ===== ベントウグリッド ===== */
.aind-co__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.aind-co__top-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.aind-co__bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

/* ===== カード共通（横型：info左 + thumb右） ===== */
.aind-co__card {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: #1a1a2e;
    background: #fff;
    padding: 0 0 0 14px;
    gap: 0;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease, background 0.15s ease;
    position: relative;
    overflow: hidden;
}

.aind-co__card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #1a1a2e;
}

/* 左：企業情報 */
.aind-co__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px 10px 0;
}

/* ロゴ */
.aind-co__logo {
    height: 16px;
    max-width: 80px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    margin-bottom: 1px;
}

/* 企業名 */
.aind-co__name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.aind-co__card:hover .aind-co__name {
    color: #2563eb;
}

/* タグ */
.aind-co__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.aind-co__tag {
    font-size: 9px;
    font-weight: 500;
    color: #94a3b8;
    background: none;
    padding: 0;
    white-space: nowrap;
}

.aind-co__tag::after {
    content: '·';
    margin-left: 3px;
    color: #d1d5db;
}

.aind-co__tag:last-child::after {
    display: none;
}

/* キャッチ */
.aind-co__catch {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右：アイキャッチ（台形クリップ） */
.aind-co__thumb {
    position: relative;
    width: 90px;
    flex-shrink: 0;
    overflow: hidden;
    align-self: stretch;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}
.aind-co__thumb-overlay {
    position: absolute;
    inset: 0;
    opacity: .65;
    mix-blend-mode: multiply;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--brand), #4f46e5 20%) 0%,
        var(--brand) 40%,
        color-mix(in srgb, var(--brand), #0ea5e9 25%) 70%,
        color-mix(in srgb, var(--brand), #1e293b 35%) 100%
    ) !important;
}


.aind-co__thumb>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== フィーチャーカード固有 ===== */
.aind-co__card--featured {
    padding: 0 0 0 18px;
    gap: 0;
}

.aind-co__card--featured .aind-co__logo {
    height: 20px;
    max-width: 100px;
}

.aind-co__card--featured .aind-co__name {
    font-size: 16px;
}

.aind-co__card--featured .aind-co__info {
    padding: 16px 16px 16px 0;
}

.aind-co__card--featured .aind-co__thumb {
    width: 140px;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

.aind-co__card--featured .aind-co__tag {
    font-size: 10px;
}

/* ===== スライドアニメーション ===== */
@keyframes aindSlideRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes aindSlideLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
.aind-co__grid { overflow: hidden; }

/* 小カードの高さを固定し、スライド・列・テキスト量によるばらつきを消す */
.aind-co__card:not(.aind-co__card--featured) {
    height: 105px !important;
    overflow: hidden;
}
/* グリッド自体の行の高さも固定（105px） */
.aind-co__bottom {
    grid-auto-rows: 105px;
}
.aind-co__top-right {
    grid-template-rows: 105px 105px !important;
}

/* テキストが長すぎてはみ出すのを防ぐ */
.aind-co__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aind-co__tags {
    height: 16px;
    overflow: hidden;
}
