/* =============================================
   GP Custom Blog Card - Main Card Sync Design
   ============================================= */

.gp-blog-card {
    margin: 2.5em 0;
    max-width: 100%;
    /* トップページと共通のフォント感 */
    font-family: 'Inter', "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif !important;
    letter-spacing: 0.02em;
}

.gp-card-link {
    display: flex;
    background-color: #1a1a1a; /* .inside-article の背景色と同期 */
    border: 1px solid rgba(243, 166, 140, 0); /* 通常時は枠線を消して静謐に */
    border-radius: 12px; /* カードの角丸を12pxに同期 */
    overflow: hidden;
    text-decoration: none !important;
    color: #f7f8f9 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); /* 影の深さを同期 */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    top: 0;
}

/* --- ホバーアクション：トップページのカードと完全に同期 --- */
.gp-card-link:hover {
    top: -1px; /* 1pxだけ浮く控えめな動き */
    background-color: #2a2e33 !important; /* ホバー時の背景色を同期 */
    border: 1px solid rgba(243, 166, 140, 0.3) !important; /* 控えめなサーモンピンク枠 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 1; /* 変数を使わず、トップページ同様の挙動に */
}

/* --- 画像エリア：著作権配慮（トリミングなし）を維持しつつ同期 --- */
.gp-card-thumb {
    flex: 0 0 35%;
    max-width: 280px;
    min-width: 140px;
    background-color: #262626; /* 画像がない場合のダミー色と同期 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.gp-card-thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 160px;
    object-fit: contain; /* 同一性保持権のためトリミング禁止を継続 */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* ホバー時のズーム：1.02倍（呼吸するような微かな動き）に同期 */
.gp-card-link:hover .gp-card-thumb img {
    transform: scale(1.02) !important;
}

/* --- コンテンツエリア --- */
.gp-card-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* タイトル設定 */
.gp-card-title {
    font-weight: 600;
    font-size: 1.125rem; /* 記事カードのサイズに同期 */
    line-height: 1.4;
    margin-bottom: 8px;
    color: #ffffff !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 記事内カードなので2行でスッキリと */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.4s ease;
}

/* 抜粋文：14px, 1.6line-height で同期 */
.gp-card-excerpt {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #cccccc !important;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* メタ情報（ドメイン）：カテゴリラベルの雰囲気を継承 */
.gp-card-meta {
    font-size: 0.75rem;
    color: #f3a68c; /* サーモンピンク */
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.4s ease;
}

.gp-card-meta::before {
    content: "";
    width: 12px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

/* スマホ対応 */
@media screen and (max-width: 560px) {
    .gp-card-link {
        flex-direction: column;
    }
    .gp-card-thumb {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* トップページ画像と比率を同期 */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}