/* ======================================
   週間天気予報 - ツールチップスタイル
   ====================================== */

/* 日付ヘッダー */
.date-header {
    position: relative;
}

/* 精度インジケーター */
.accuracy-indicator {
    font-size: 11px;
    margin-top: 3px;
    font-weight: bold;
}

.high-accuracy {
    color: #4caf50;
}

.low-accuracy {
    color: #757575;
}

/* 広域予報のセル */
.forecast-cell {
    background-color: #fafafa !important;
    cursor: help;
    transition: background-color 0.2s;
    position: relative;
    min-width: 100px;
    max-width: 120px;
}

.forecast-cell:hover {
    background-color: #fff3cd !important;
}

/* ツールチップラッパー */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
    word-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
}

/* ツールチップ */
.tooltip {
    visibility: hidden;
    width: 235px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    position: fixed;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, visibility 0s 0.3s;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
    white-space: wrap;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip,
.forecast-cell:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* セル全体でホバー検知 */
.forecast-cell:hover .tooltip-wrapper .tooltip {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* 警告アイコン（インライン） */
.warning-icon-inline {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 2px;
    color: #757575;
}

/* テーブルのセル調整 */
.WeatherTableBox table td {
    position: relative !important;
    overflow: visible !important;
}

/* 天気行のセル - 幅固定と改行対応 */
.WeatherTableBox .WeatherTd td {
    min-width: 100px;
    max-width: 120px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal !important;
}

/* テーブル全体の設定 */
.WeatherTableBox table {
    table-layout: fixed;
}

.WeatherTableBox .WeatherTd td {
    width: 100px;
}

.WeatherTableBox table {
    position: relative !important;
    overflow: visible !important;
}

.WeatherTableBox {
    overflow: visible !important;
}

#weather {
    overflow: visible !important;
}

/* 広域予報の日付セル */
.forecast-date {
    background-color: #fafafa;
}
