/* HAZU News Tracker - フロントエンドスタイル */

/* ---- ラッパー ---- */
.hazu-nt-news-wrap {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    border-radius: 0 6px 6px 0;
}

.hazu-nt-news-wrap .hazu-nt-news-title {
    margin: 0 0 14px;
    font-size: 1.1em;
    color: #2271b1;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- タブナビゲーション ---- */
.hazu-nt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid #dde0e4;
}

.hazu-nt-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}

.hazu-nt-tab:hover {
    color: #2271b1;
}

.hazu-nt-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.hazu-nt-tab-count {
    display: inline-block;
    background: #dde0e4;
    color: #555;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1.4;
}

.hazu-nt-tab.active .hazu-nt-tab-count {
    background: #2271b1;
    color: #fff;
}

/* ---- タブパネル ---- */
.hazu-nt-tab-panel {
    display: none;
}

.hazu-nt-tab-panel.active {
    display: block;
}

/* ---- ニュースリスト ---- */
.hazu-nt-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hazu-nt-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e4e8;
    align-items: flex-start;
}

.hazu-nt-news-item:last-child { border-bottom: none; }

/* YouTube サムネイル */
.hazu-nt-thumb-link { flex-shrink: 0; }
.hazu-nt-thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.hazu-nt-news-body { flex: 1; min-width: 0; }

.hazu-nt-news-meta {
    margin: 0 0 4px;
    font-size: 0.8em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hazu-nt-source-name { font-weight: 600; }
.hazu-nt-date { color: #999; }

.hazu-nt-news-title-item {
    margin: 0 0 4px;
    font-size: 0.95em;
    line-height: 1.4;
}

.hazu-nt-news-title-item a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}
.hazu-nt-news-title-item a:hover { text-decoration: underline; }

/* AI要約テキスト（機種情報タブのみ表示） */
.hazu-nt-summary {
    margin: 4px 0 0;
    font-size: 0.85em;
    color: #555;
    line-height: 1.5;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid #f0a500;
}

/* データなし */
.hazu-nt-empty {
    padding: 20px 0;
    color: #999;
    font-size: 0.9em;
    text-align: center;
}

/* ---- レスポンシブ ---- */
@media (max-width: 600px) {
    .hazu-nt-news-wrap { padding: 14px 16px; }
    .hazu-nt-tab { padding: 6px 10px; font-size: 0.85em; }
    .hazu-nt-news-item { flex-direction: column; }
    .hazu-nt-thumb { width: 100%; height: auto; max-width: 240px; }
}
