/* =========================================================================
   ASOLAB internal blog card (oEmbed iframe stylesheet)
   ========================================================================= */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: transparent;
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", -apple-system, sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* The <a> fills the iframe entirely so every pixel is clickable.
   Padding on the <a> reserves space for the hover box-shadow so it
   isn't clipped at the iframe's measured height. */
body { padding: 0; }

a { text-decoration: none; color: inherit; }

.blog-card {
    display: block;
    padding: 6px 4px 12px;
    margin: 0;
    width: 100%;
}

.blog-card__inner {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    width: 100%;
    position: relative;
}

.blog-card:hover .blog-card__inner {
    border-color: #1a1a1a;
    box-shadow: 0 6px 18px rgba(15, 23, 41, 0.10);
}

/* === Thumbnail === */
.blog-card__thumb {
    position: relative;
    overflow: hidden;
    background: #f4f2ee;
    aspect-ratio: 16 / 9;
}
.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms ease;
}
.blog-card:hover .blog-card__thumb img { transform: scale(1.05); }

.blog-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4f2ee, #f0f0f0);
}

.blog-card__type {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(15, 23, 41, 0.78);
    backdrop-filter: blur(4px);
    padding: 3px 7px;
    border-radius: 3px;
}

/* === Body === */
.blog-card__body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
    justify-content: center;
}

.blog-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    color: #888;
}
.blog-card__cat {
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.04em;
}
.blog-card__date {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.blog-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 200ms ease;
}
.blog-card:hover .blog-card__title { color: #1a1a1a; }

.blog-card__excerpt {
    font-size: 0.74rem;
    line-height: 1.55;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    color: #999;
    margin-top: 2px;
}
.blog-card__favicon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}
.blog-card__sitename { letter-spacing: 0.02em; color: #888; }
.blog-card__more {
    margin-left: auto;
    font-weight: 600;
    color: #1a1a1a;
}

/* === Mobile === */
@media (max-width: 600px) {
    .blog-card__inner {
        grid-template-columns: 110px 1fr;
        border-radius: 8px;
    }
    .blog-card__thumb { aspect-ratio: 4 / 3; }
    .blog-card__body { padding: 8px 10px; gap: 3px; }
    .blog-card__top { font-size: 0.62rem; gap: 8px; }
    .blog-card__title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin: 0;
    }
    .blog-card__excerpt { display: none; }
    .blog-card__meta {
        font-size: 0.58rem;
        margin-top: 0;
    }
    .blog-card__type { font-size: 0.55rem; padding: 2px 5px; }
    .blog-card__favicon { width: 11px; height: 11px; }
}
