/* ================================================
   特許カード表示用CSS
   ================================================ */

.patent-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .patent-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .patent-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .patent-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.patent-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.patent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #c8960c;
}

.mini-chart-small {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.verified-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.score-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
}

.synergy-banner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.patent-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
}

.patent-tag-femtech {
    background-color: #fce7f3;
    color: #be185d;
}

.patent-tag-healthcare {
    background-color: #dcfce7;
    color: #166534;
}

.patent-tag-golf {
    background-color: #fef3c7;
    color: #92400e;
}

.patent-tag-sports {
    background-color: #e0e7ff;
    color: #3730a3;
}

.patent-tag-manufacturing {
    background-color: #f3f4f6;
    color: #374151;
}

.patent-tag-ai {
    background-color: #fee2e2;
    color: #991b1b;
}

.patent-tag-foodtech {
    background-color: #fed7aa;
    color: #c2410c;
}

.patent-tag-pet {
    background-color: #fef3c7;
    color: #92400e;
}

.patent-tag-environment {
    background-color: #d1fae5;
    color: #065f46;
}

.patent-tag-sdgs {
    background-color: #d1fae5;
    color: #065f46;
}

.deal-type-license {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.deal-type-transfer {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.deal-type-joint {
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.remaining-years {
    font-size: 11px;
    font-weight: 500;
}

.remaining-low {
    color: #dc2626;
}

.remaining-medium {
    color: #d97706;
}

/* ランクバッジスタイル（4段階: S/A/B/その他） */
.rank-badge {
    display: inline-block;
    font-weight: 600;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 11px;
}

.rank-badge-s {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    border: 2px solid #fef3c7;
}

.rank-badge-a {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.rank-badge-b {
    background: #60a5fa;
    color: white;
    font-weight: 600;
    font-size: 11px;
    border-radius: 5px;
    padding: 4px 10px;
}

.rank-badge-other {
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
    font-size: 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
}

/* ── Patent card interior (patent_list.php) ─────────── */

.patent-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.patent-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.patent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.patent-card-applicant {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.patent-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 14px;
    flex: 1;
}

.patent-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #192f60;
    margin: 0;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.patent-card-summary {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.patent-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
}

.patent-card-highlight {
    background: #f8fafc;
    border-left: 3px solid #c8960c;
    border-radius: 0 6px 6px 0;
    padding: 8px 10px;
}

.patent-card-catchcopy {
    font-size: 12.5px;
    font-weight: 600;
    color: #192f60;
    font-style: italic;
    margin: 0 0 3px;
    line-height: 1.4;
}
.patent-card-catchcopy:only-child { margin-bottom: 0; }

.patent-card-market {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.patent-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
}

.patent-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.meta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1.5;
}

.meta-badge-univ {
    color: #0369a1;
    border-color: #bae6fd;
    background: #f0f9ff;
}

.meta-badge-corp {
    color: #5b21b6;
    border-color: #ddd6fe;
    background: #f5f3ff;
}
