@charset "UTF-8";

/* ==========================================
   名刺デザイン一覧 固有スタイル
   ========================================== */

/* パンくずリスト */
.breadcrumb {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 4%;
    font-size: 0.85rem;
    color: #777777;
}
.breadcrumb a {
    color: var(--theme-accent);
}

/* デザイングリッドレイアウト */
.design-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* デザインカード共通 */
.design-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #d7e3ef);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.design-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--theme-accent);
}

/* カード内バッジ */
.design-badge {
    background-color: var(--problem-bar-bg, #f0f5fa);
    color: var(--theme-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color, #d7e3ef);
}

/* 横型名刺の画像枠 (256x190) */
.design-img-wrap {
    width: 256px;
    height: 190px;
    margin: 0 auto 20px;
    background-color: #f4f7f9;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e1e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.design-img {
    width: 256px;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* テキスト要素 */
.design-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 10px;
}

.design-desc {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.5;
}

/* ------------------------------------------
   縦型名刺（442x594）専用スタイル
   ------------------------------------------ */
.design-card.is-vertical .design-img-wrap {
    width: 193px;         /* 横長カードと並んだ際にバランスの良い幅に調整 */
    height: 260px;        /* 442:594 の比率を維持 */
    aspect-ratio: 442/594;
}

.design-card.is-vertical .design-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */
@media (max-width: 1200px) {
    .design-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 横型画像の縮小対応 */
    .design-img-wrap {
        max-width: 100%;
        height: auto;
        aspect-ratio: 256/190;
    }
    .design-img {
        width: 100%;
        height: auto;
    }
    /* 縦型画像の縮小対応 */
    .design-card.is-vertical .design-img-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 442/594;
    }
}

@media (max-width: 992px) {
    .design-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .design-grid {
        grid-template-columns: 1fr;
    }
}