/* =========================
   ヘッダの株価、指数のタイムラインのCSS
========================= */
.market-ticker {
    background: linear-gradient(90deg,#071827,#0b2030);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: hidden !important;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: flex !important;
    width: max-content !important;
    display: inline-block;
    padding: 8px 0;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-right: 40px;
    font-size: 14px;
}

.ticker-name {
    font-weight: 700;
    color: #e6eef6;
}

.ticker-price {
    font-weight: 600;
    color: #ffffff;
}

.ticker-change {
    font-weight: 600;
}

/* 上昇 */
.ticker-item.up .ticker-change {
    color: #06d6a0;
}

/* 下落 */
.ticker-item.down .ticker-change {
    color: #ef476f;
}

/* スクロール */
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
/* =========================
   ヘッダーの分析ボタン押下時の砂時計CSS
========================= */
/* モーダル背景 */
#loadingModal {
    display: none; /* 初期は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

/* モーダル中身 */
#loadingModalContent {
    background: #fff;
    padding: 20px 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #021014;
}

/* 砂時計アニメーション */
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid #06d6a0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}