/* ===== ISA contents04 (共通) ===== */

.contents04__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 10px 70px 70px;
}

/* カード */
.contents04__card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-top: 6px solid #198fce;
    transition: all .3s ease;
    height: 170px;
    overflow: hidden;
}

.contents04__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
}

/* テキスト部分 */
.contents04__content {
    flex: 1;
    padding: 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 152px;
}

.contents04__subheading {
    font-size: .9rem;
    color: #198fce;
    margin: 0 0 6px;
    letter-spacing: normal;
    font-weight: 700;
}

.contents04__heading {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

/* 画像 + 矢印ラッパー */
.contents04__image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* 画像は右端にぴったり */
.contents04__image {
    width: 145px;
    display: block;
    object-fit: cover;
    /* 任意：最大幅・高さが必要なら指定（コメントアウト）
    width: 240px; height: auto;
    */
}

/* 丸矢印（固定） */
.contents04__arrow {
    position: absolute;
    left: -34px;
    bottom: -8px;
    transform: translateY(-50%);
    width: 20px;
    background-size: 14px 14px;
    transition: transform .3s ease, border-color .3s ease;
}

.contents04__card:hover .contents04__arrow {
    transform: translateY(-50%) translateX(4px);
}

/* ヒーロー曲線（必要なら） */
.hero-curve {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 80px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 60%);
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
    .contents04 {
        padding-bottom: 13px;
    }
    .contents04__card {
        margin-bottom: 0;
        height: inherit;
    }
    .contents04__grid {
        grid-template-columns: repeat(1, 1fr);
        margin: 30px 40px;
    }
    .contents04__subheading {
        font-size: clamp(13px, 3.3vw, 28px);
    }
    .contents04__heading {
        font-size: clamp(15px, 2.2vw, 44px);
        line-height: 1.2;
    }
    .contents04__image-wrapper {
        width: 23%;
    }
    .contents04__arrow {
        position: absolute;
        left: -33%;
        bottom: -6px;
        width: 38px;
        height: 38px;
    }
    .contents04__arrow img {
        width: 90%;
    }
}

@media (max-width: 640px) {
    .contents04__grid {
        grid-template-columns: 1fr;
        margin: 24px 16px;
    }
    .contents04__content {
        padding: 8px 16px;
        min-width: 0;
    }
    .contents04__arrow {
        width: clamp(20px, 1vw + 8px, 34px);
        height: clamp(20px, 1vw + 8px, 34px);
    }
}
