﻿/*通常モード old*/
/*.bg-w {
    height: max-content;
    color: #fff;
    background: linear-gradient(to right, rgba(68, 114, 196, 0.7),rgba(44, 200, 137, 0.7)), url(/images/background/bgWhite.png);
}*/

/*① bg:木目調 / hf:白 txt:グレー*/
/*
    .bg-w {
        height: max-content;
        color: #fff;
        background-image: url(/images/background/bgWood.png);
        background-size: contain;
    }

    .header-w, .footer-w {
        color: #AFABAB;
        background-color: #fff;
    }
*/

/*② bg:木目調 / hf:白 txt:チャコール */
/* 
    .bg-w {
        height: max-content;
        color: #fff;
        background-image: url(/images/background/bgWood.png);
        background-size: contain;
    }

    .header-w, .footer-w {
        color: #595757;
        background-color: #fff;
    }
*/

/*③ bg:木目調 / hf:チャコール txt:白 */

    .bg-w {
        height: max-content;
        color: #595757;
        background-image: url(/images/background/bgWood.png);
        background-size: contain;
    }

    .header-w, .footer-w {
        color: #fff;
        background-color: #595757;
    }


/*④ bg:チャコール / hf:木目調 txt:白 */
/*
    .bg-w {
        height: max-content;
        color: #fff;
        background-color: #595757;
    }

    .header-w, .footer-w {
        color: #fff;
        background-image: url(/images/background/bgWood.png);
        background-size: contain;
    }
*/

/*⑤ bg:チャコール / hf:木目調 txt:チャコール */
/*
    .bg-w {
        height: max-content;
        color: #fff;
        background-color: #595757;
    }

    .header-w, .footer-w {
        color: #595757;
        background-image: url(/images/background/bgWood.png);
        background-size: contain;
    }
*/

/*モード切替*/
    .bg-mode + label::before {
    content: "";
    display: inline-block;
    background-size: contain;
    width: 40px;
    height: 35px;
    background-image: url(/images/background/iconWhite.png);
}
.bg-mode{
    display: none;
}

/*ダークモード*/
.bg-b {
    height: max-content;
    color: #fff;
    background: linear-gradient(to right, rgba(68, 114, 196, 0.5),rgba(44, 200, 137, 0.5)), url(/images/background/bgBlack.png);
}
.header-b {
    background-color: #00001a;
}
.footer-b{
    background-color: #00001a;
}
.bg-mode:checked + label::before {
    background-image: url(/images/background/iconBlack.png);
}


.home-top {
    margin-top: 60px;
}

.home-bottom{
    margin-bottom: 60px;
}

.battery-per {
    position: relative;
}

.battery-box {
    position: relative;
    display: inline-block; 
}

    .battery-box img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .battery-box .lbl-batteryname {
        position: absolute;
        top: 50%;
        left: 30%;
        transform: translate(-50%, -50%);
    }

@media (min-height: 841px) {
    .home-top{
        padding-top: 5rem;
    }

    .lbl-batteryname {
        font-size: 25px;
        
    }

    .battery-per {
        height: 300px;
    }

        .battery-per img {
            width: 120px;
            margin-top: 3rem;
        }

    .layer2 {
        position: absolute;
        top: -40px;
        z-index: -1;
    }

    .per-text {
        font-size: 40px;
    }

    #chartdiv {
        height: 350px;
    }

    .my-battery {
        margin-top: 0;
    }

    .lbl-mode {
        font-size: 1rem;
    }

    .updated {
        font-size: 18px;
    }
}

@media (min-height: 671px) and (max-height: 840px) {
    .home-top {
        padding-top: 5rem;
    }

    .lbl-batteryname{
        font-size: 25px;
        margin-bottom: 1rem;
    }

    .battery-per{
        height: 250px;
    }

        .battery-per img {
            width: 110px;
            margin-top: 3rem;
        }

    .layer2 {
        position: absolute;
        top: -40px;
        z-index: -1;
    }

    .per-text {
        font-size: 35px;
    }

    #chartdiv {
        height: 320px;
    }

    .my-battery{
        margin-top: 1rem;
    }

    .lbl-mode{
        font-size: 1rem;
    }

    .updated {
        font-size: 15px;
    }
}

@media (max-height: 670px) {
    .home-top {
        padding-top: 1rem;
    }

    .lbl-batteryname {
        font-size: 20px;
    }

    .battery-per {
        height: 270px;
    }

        .battery-per img {
            width: 110px;
            margin-top: 3.5rem;
        }

    .layer2 {
        position: absolute;
        top: -30px;
        z-index: -1;
    }

    .per-text{
        font-size: 35px;
    }

    #chartdiv {
        height: 320px;
    }

    .my-battery {
        margin-top: 0.3rem;
    }

    .lbl-mode {
        font-size: 0.9rem;
    }

    .updated {
        font-size: 13px;
    }
}

.message-box {
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 3rem;
    padding: 1rem;
}

.img-message{
    width: 50px;
}

.bg-tab {
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.15);
}

/**/
.data-icon:hover {
    transform: translate(0,2px);
}

/* 太陽光発電中 */
/* 点滅アニメーション */
@keyframes blinking {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.blink {
    animation: blinking 1s linear infinite alternate;
}

/* 再起動 */
.touch-restart {
    position: relative;
    display: inline-block;
}

.hand-restart {
    position: absolute;
    bottom: 3%;
    left: 43%;
    width: 20%;
    animation: tapHandRestart 1.5s infinite;
}

/* 再起動 アニメーション */
@keyframes tapHandRestart {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    30% {
        transform: translate(-5px, 5px) scale(0.95);
        opacity: 0.9;
    }

    60% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

/* 詳細ポップアップ説明 */
.touch-area {
    position: relative;
    display: inline-block;
}

.hand-anim {
    position: absolute;
    bottom: 10%;
    left: 45%;
    width: 20%;
    animation: tapHand 1.5s infinite;
}

/* 詳細ポップアップ説明 アニメーション */
@keyframes tapHand {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    30% {
        transform: translate(-5px, 5px) scale(0.95);
        opacity: 0.9;
    }

    60% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}