/* =========================
   検索フォーム
========================= */

.mtg-search-form{

margin-bottom:30px;

padding:20px;

background:#ffffff;

border-radius:10px;

box-shadow:0 2px 8px rgba(0,0,0,.08);

}

.mtg-search-form table{

width:100%;

border-collapse:collapse;

}

.mtg-search-form td{

padding:8px;

vertical-align:middle;

}

.mtg-search-form input[type=text],
.mtg-search-form select{

width:100%;

max-width:320px;

padding:8px;

border:1px solid #ccc;

border-radius:6px;

}

/* =========================
   カード一覧
========================= */

.mtg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* =========================
   カード
========================= */

.mtg-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: .2s;
}

.mtg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.mtg-card img {
    width: 100%;
    display: block;
}

.mtg-card-body {
    padding: 15px;
}

.mtg-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.mtg-card-set {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.mtg-card-rarity {
    display: inline-block;
    padding: 3px 8px;
    background: #f2f2f2;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.mtg-card-stock {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.mtg-card-button .button {
    width: 100%;
    text-align: center;
}

/* =========================
   画面幅が狭いPC・タブレット
========================= */

@media (max-width: 1100px) {
    .mtg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================
   スマホ
========================= */

@media (max-width: 768px) {
    .mtg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mtg-card-title {
        font-size: 15px;
    }
}