/* ==========================================================================
   新着情報（trends）— 詳細ページ
   Zenn + Fluent Design inspired — シンプル・今風・控えめ
   ========================================================================== */

/* ── 記事タイトル（h1）
 * --------------------------------------------------------- */
.c-postTitle__ttl {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.5;
    color: rgba(0, 0, 0, .85);
    letter-spacing: -0.01em;
}

/* ── 日付・メタ
 * --------------------------------------------------------- */
.p-articleMetas {
    padding-bottom: 14px;
    border-bottom: 1px solid #e4edf4;
    margin-bottom: 32px;
}
.p-articleMetas .c-postMeta {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ── アイキャッチ
 * --------------------------------------------------------- */
.p-articleThumb {
    margin-bottom: 36px;
    border-radius: 8px;
    overflow: hidden;
}
.p-articleThumb__img {
    border-radius: 8px;
}

/* ── 本文
 * --------------------------------------------------------- */
.post_content {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(0, 0, 0, .82);
}

/* ── h2 — Zenn風のborder-bottomのみ
 * --------------------------------------------------------- */
.post_content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: rgba(0, 0, 0, .88);
    line-height: 1.5;
    margin: 56px 0 20px 0 !important;
    padding: 0 0 8px 0 !important;
    border: none;
    border-bottom: 1px solid #d6e3ed;
    background: none !important;
    border-radius: 0 !important;
}
.post_content h2::before,
.post_content h2::after {
    display: none !important;
    content: none !important;
}

/* ── h3 — 装飾なし、太さで区別
 * --------------------------------------------------------- */
.post_content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(0, 0, 0, .85);
    line-height: 1.5;
    margin-top: 44px;
    margin-bottom: 14px;
    padding: 0;
    border: none;
    background: none;
}
.post_content h3::before,
.post_content h3::after {
    display: none !important;
    content: none !important;
}

/* ── h4
 * --------------------------------------------------------- */
.post_content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(0, 0, 0, .72);
    margin-top: 28px;
    margin-bottom: 12px;
    padding: 0;
    border: none;
    background: none;
}

/* ── 目次 — すっきりカード
 * --------------------------------------------------------- */
.post_content .p-toc {
    background: #f7f9fb !important;
    border: 1px solid #e4edf4 !important;
    border-radius: 8px !important;
    margin: 28px 0 !important;
}

/* ── BOX（capbox）
 * --------------------------------------------------------- */
.post_content .swell-block-capbox.cap_box {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 28px;
    margin-bottom: 28px;
    box-shadow: none;
    background: #fff;
}

.post_content .cap_box .cap_box_ttl {
    background: #f7f9fb;
    color: rgba(0, 0, 0, .82);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 16px;
    border-bottom: 1px solid #e4edf4;
    border-radius: 0;
    margin: 0;
}
.post_content .cap_box .cap_box_ttl::before {
    display: none !important;
}

.post_content .cap_box .cap_box_content {
    padding: 16px 20px;
    background: #fff;
    font-size: 0.92rem;
}

/* ── ブロック引用
 * --------------------------------------------------------- */
.post_content blockquote {
    border-left: 3px solid #d6e3ed;
    background: #f7f9fb;
    padding: 16px 20px;
    margin: 24px 0;
    color: rgba(0, 0, 0, .65);
    font-style: normal;
    border-radius: 0 6px 6px 0;
}
.post_content blockquote::before,
.post_content blockquote::after {
    display: none !important;
}

/* ── テーブル（Two-Tone: block-styles.css の共通スタイルを使用） ── */

/* ── リスト
 * --------------------------------------------------------- */
.post_content ul,
.post_content ol {
    margin: 16px 0;
    padding-left: 1.5em;
}
.post_content li {
    margin-bottom: 6px;
}

/* ── 画像
 * --------------------------------------------------------- */
.post_content .wp-block-image img {
    border-radius: 8px;
}

/* ── 画像キャプション
 * --------------------------------------------------------- */
.post_content figcaption {
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 6px;
}

/* ── SNSシェアボタン
 * --------------------------------------------------------- */
.c-shareBtns {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e4edf4;
}

/* ── SWELLデフォルトの関連記事を非表示
 * --------------------------------------------------------- */
.single-trends .l-articleBottom__section.-related {
    display: none !important;
}

/* ── 関連ニュース（トップページ風 2カラム）
 * --------------------------------------------------------- */
.aind-trends-related {
    margin: 56px 0 0;
    padding: 0;
    line-height: 1.6;
}

.aind-trends-related__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d5db;
}

.post_content .aind-trends-related__heading,
.aind-trends-related__heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: none !important;
    background: none !important;
    border-radius: 0 !important;
}
.post_content .aind-trends-related__heading::before,
.post_content .aind-trends-related__heading::after,
.aind-trends-related__heading::before,
.aind-trends-related__heading::after {
    display: none !important;
    content: none !important;
}

.aind-trends-related__more {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}
.aind-trends-related__more:hover {
    color: #2563eb;
}

.aind-trends-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.aind-trends-related__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    color: #1a1a2e;
    border-bottom: 1px solid #f1f5f9;
}
.aind-trends-related__card:nth-child(odd) {
    padding-right: 20px;
}
.aind-trends-related__card:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid #f1f5f9;
}
.aind-trends-related__card:hover {
    color: #1a1a2e;
}

.aind-trends-related__thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}
.aind-trends-related__thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aind-trends-related__badge {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    padding: 1px 4px;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.aind-trends-related__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.aind-trends-related__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aind-trends-related__date {
    font-size: 11px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.aind-trends-related__relative {
    font-size: 11px;
    color: #64748b;
}

.post_content .aind-trends-related__title,
.aind-trends-related__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.post_content .aind-trends-related__title::before,
.post_content .aind-trends-related__title::after {
    display: none !important;
    content: none !important;
}
.aind-trends-related__card:hover .aind-trends-related__title {
    color: #2563eb;
}

/* ── レスポンシブ
 * --------------------------------------------------------- */
@media (max-width: 768px) {
    .c-postTitle__ttl {
        font-size: 1.35rem;
    }

    .post_content h2 {
        font-size: 1.18rem;
        margin-top: 40px;
    }

    .post_content h3 {
        font-size: 1.02rem;
    }

    .aind-trends-related__grid {
        grid-template-columns: 1fr;
    }
    .aind-trends-related__card:nth-child(even) {
        padding-left: 0;
        border-left: none;
    }
}
