/* =========================================================
   簡易見積インデックス　カード一覧
   既存 estimate-v2 / try のテイストに統一
   - アクセント: オレンジ #f08200
   - 見出し: M PLUS Rounded 1c
   ========================================================= */

.ev2-index-wrap {
    padding: 24px 0 56px;
    font-family: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
}

.ev2-index-intro {
    margin-bottom: 24px;
}

.ev2-index-title {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 800;
    font-size: 26px;
    text-align: center;
    margin: 8px 0 4px;
    color: #333;
}

.ev2-index-lead {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 28px;
}

/* グリッド。Bootstrap3の .row/.col を使いつつ高さを揃える */
.ev2-index-grid {
    display: flex;
    flex-wrap: wrap;
}
.ev2-index-col {
    display: flex;
    min-width: 0;
    margin-bottom: 24px;
}

/* カード本体（リンク全体） */
.ev2-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;   /* flexアイテムの縮小を許可 */
    max-width: 100%;
}
.ev2-card:hover,
.ev2-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(240, 130, 0, 0.18);
    text-decoration: none;
    color: inherit;
}

/* サムネ */
.ev2-card__thumb {
    position: relative;
    width: 100%;
    padding-top: 62%; /* 横長のアスペクト比を固定 */
    background: #f7f7f7;
}
.ev2-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ev2-card__noimg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    color: #bbb;
    font-size: 13px;
    letter-spacing: 0.05em;
}

/* 本文 */
.ev2-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 16px 20px;
}
.ev2-card__title {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    font-size: 17px;
    margin: 0 0 8px;
    color: #333;
    line-height: 1.4;
    /* 金額強調と同系の波線下線をタイトルに軽く効かせる */
    text-decoration: underline;
    text-decoration-color: #f0820066;
    text-decoration-style: wavy;
    text-underline-offset: 4px;
}
.ev2-card__catch {
    flex: 1 1 auto;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* ボタン（既存 .btn-primary をオレンジに寄せる。丸みと押下アクションを try に統一） */
.ev2-card__btn.btn-primary {
    display: block;
    width: 100%;
    background: #f08200;
    border-color: #f08200;
    border-radius: 999px;
    font-weight: 700;
    padding: 10px 12px;
    font-size: 15px;
    box-shadow: 0 3px 0 #c96c00;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}
.ev2-card:hover .ev2-card__btn.btn-primary {
    background: #ff8f0d;
}
.ev2-card:active .ev2-card__btn.btn-primary {
    transform: translateY(3px);
    box-shadow: 0 0 0 #c96c00;
}

/* 太陽光カードの識別（必要なら装飾を追加できるフック） */
.ev2-card--solar .ev2-card__title {
    text-decoration-color: #f0820088;
}

/* スマホ */
@media (max-width: 767px) {
    .ev2-index-title {
        font-size: 22px;
    }
    .ev2-card__thumb {
        padding-top: 63%;
    }
}

.ev2-card .ev2-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;  /* テーマのimg指定を打ち消す */
}

/* =========================================================
   太陽光カード（全幅・横並び）
   ========================================================= */
@media (min-width: 768px) {
    .ev2-card--solar {
        flex-direction: row;
        align-items: stretch;
    }
    .ev2-card--solar .ev2-card__thumb {
        flex: 0 0 42%;
        width: 42%;
        padding-top: 0;          /* 縦横比固定を解除 */
        min-height: 320px;
    }
    .ev2-card--solar .ev2-card__body {
        flex: 1 1 auto;
        justify-content: center;
        padding: 24px 32px;
    }
    .ev2-card--solar .ev2-card__title {
        font-size: 24px;
    }
    .ev2-card--solar .ev2-card__catch {
        font-size: 15px;
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    .ev2-card--solar .ev2-card__btn.btn-primary {
        max-width: 320px;
    }
}