/* アイコン下のテキスト用 */
.IconText {
    margin: 0 auto;
    text-align: center;
}

/* 日別は天気アイコンの横幅に合わせて横幅を定義 */
#Weather10Day .IconText {
    width: 3.75vw;
    max-width: 45px;
}

/* 時間別は文字列の折り返しを防止 */
.Weather24Hour .IconText {
    display: flex;
    width: 3em;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

@media screen and (max-width: 1050px) {
    /* 横幅が狭いと他の文字に被るため対策 */
    .Weather24Hour .IconText {
        white-space: normal;
    }
}

@media screen and (max-width: 767px) {
    @media screen and (max-aspect-ratio: 11/10) {
        /* スマホ表示時に地点が存在していない場合、現在地のボタンが極端に小さくなるのを対策 */
        #WeatherArea #LocationList{
            min-height: 45px;
        }

        #WeatherArea #LocationList #LocationListBlock {
            height: 100%;
        }

        /* スマホ表示時に地点の横幅が安定しないのを対策 */
        #WeatherArea #LocationList .LocationBox {
            min-width: max-content;
        }

        /* スマホ表示時は時間別の過去の予報は最新1件を除いて非表示にする */
        .Past:not(.LatestPast) {
            display: none;
        }

        /* スマホ表示時は横幅を変更する */
        #Weather10Day .IconText {
            width: 12vmin;
            max-width: 12vmin;
        }

        /* 時間別は文字列の折り返しを防止 */
        .Weather24Hour .IconText {
            width: 100%;
            max-width: 10vmin;
        }
    }
}
