/* ==========================================================
   SCOPE: マーケット解説コンポーネント
     - .market-commentary-card (トップページ用カード)
     - .mc-archive-* (アーカイブページ用)
     - .mc-genre-tag, .mc-related-link
   DEPENDS: base.css
   NOTE: IMPERIAL SERIF型デザイン。新聞社説風の品格あるカード。
   CREATED: 2026-03-05
   ========================================================== */

/* ============================================================
   1. トップページ用マーケット解説カード
   ============================================================ */
.market-commentary-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #c9a84c;
    border-radius: 2px 6px 6px 2px;
    padding: 20px 22px;
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.market-commentary-card:hover {
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.12);
}

.commentary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.commentary-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #c9a84c;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.commentary-date {
    font-size: 0.78rem;
    color: #888;
    letter-spacing: 0.05em;
}

.commentary-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 8px;
}

.commentary-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.commentary-link {
    font-size: 0.82rem;
    font-weight: bold;
    color: #8b6914;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.commentary-link:hover {
    color: #c9a84c;
}

/* 見出しリスト（トップページカード内・最大3件） */
.commentary-headlines {
    margin: 14px 0 10px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.commentary-headline-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.commentary-headline-item:hover {
    opacity: 0.7;
}

.commentary-headline-date {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    min-width: 28px;
}

.commentary-headline-text {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.commentary-archive-link {
    display: block;
    text-align: right;
    font-size: 0.78rem;
    font-weight: bold;
    color: #8b6914;
    text-decoration: none;
    margin-top: 6px;
    transition: color 0.2s;
}

.commentary-archive-link:hover {
    color: #c9a84c;
}

/* ============================================================
   2. アーカイブページ用
   ============================================================ */

/* ページヘッダー */
.mc-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.mc-archive-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c9a84c;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mc-archive-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.mc-archive-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

/* 個別記事カード */
.mc-article {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 25px;
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mc-article-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.mc-article-date {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.mc-article-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    border-left: 4px solid #c9a84c;
    padding-left: 12px;
}

/* ジャンルタグ */
.mc-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.mc-genre-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #8b6914;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 3px;
    padding: 3px 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.mc-genre-tag:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: #c9a84c;
}

/* 記事内チャットセクション */
.mc-article .chat-section {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

/* 関連リンクボタン */
.mc-related-links {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.mc-related-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: bold;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.mc-related-link:hover {
    border-color: #c9a84c;
    color: #8b6914;
    background: rgba(201, 168, 76, 0.05);
}

/* ============================================================
   3. モバイル最適化
   ============================================================ */
@media screen and (max-width: 768px) {
    /* トップページカード */
    .market-commentary-card {
        padding: 16px 14px;
    }

    .commentary-title {
        font-size: 1rem;
    }

    .commentary-excerpt {
        font-size: 0.85rem;
    }

    /* アーカイブ */
    .mc-archive-title {
        font-size: 1.4rem;
    }

    .mc-article {
        padding: 20px 15px;
    }

    .mc-article-title {
        font-size: 1.1rem;
    }

    /* base.css の .main-content div リセットから保護 */
    .main-content .market-commentary-card {
        padding: 16px 14px !important;
    }

    .main-content .mc-article {
        padding: 20px 15px !important;
    }
}
