/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


/* コンテナ全体のスタイル */
.custom-news-container {
    width: 100%;
    border-top: 1px solid #ddd;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* 各行のスタイル */
.news-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #ddd;
    gap: 20px;
}

/* 日付 */
.news-date {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    flex: 0 0 130px;          /* ← min-width ではなく flex で固定 */
}

/* カテゴリー */
.news-category {
    font-size: 13px;
    padding: 2px 12px;
    border: 1px solid #4a6da7;
    color: #4a6da7;
    flex: 0 0 140px;          /* ← width ではなく flex で固定 */
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;   /* ← padding込みで140pxに収める */
}

/* タイトル */
.news-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    flex: 1;                  /* 残りの幅を全て使う（これは元のままOK） */
    min-width: 0;             /* ← 長いテキストがはみ出すのを防止 */
    line-height: 1.5;
}
.news-title:hover {
    text-decoration: underline;
}

/* --- 特定のカテゴリーで色を変えたい場合 --- */
/* 例：プレスリリース(cat-press)は青、決算(cat-financial)はグレーなど */
.news-category.cat-news { border-color: #4a6da7; color: #4a6da7; }
.news-category.cat-financial { border-color: #666; color: #666; }

/* スマホ対応 */
@media (max-width: 768px) {
    .news-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .news-date {
        min-width: auto;
        margin-right: 10px;
    }
    .news-title {
        width: 100%;
        flex: none;
    }
}