@charset 'UTF-8';

/*
GENERAL STYLING
================================================ */

body {
	color: #555;
}
p {
    line-height: 1.7;
}

main {
    padding-top: 10vh;
    /* color:var(--white); */
    /* color:#323E27; */
    /* color:#1E3D41; */
    color:var(--font);
}

h2.title {
    margin-left: 0;
    margin-top: 2rem;
    font-size: 1.5rem;
    line-height: 1.5;
}
h2.title::after {
    content: '';
    display: block;
    height: 5px;
    width: 10rem;
    background: #d0bea2;
    margin: 1rem 1rem 1rem 0;
}

h3.title {
    padding: 0.4em 0.5em;
    color: #494949;
    border-left: solid 5px var(--black);
    font-size:1.3rem;
    margin:1.5rem auto;
}

section .wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 概要ページ */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/img_works.jpg');
    background-size: cover;
    background-position: center;
}
.transparent-button {
    display: inline-block;
    font-size: 24px;
    color: var(--east-bay-dark);
    text-decoration: none;
    border: 1px solid #fff;
    /* border-radius: 10px; */
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s, color 0.3s;
}

.transparent-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.normal-button {
    height:7vh;
    padding:10px;
    color: var(--timberwolf);
    background:var(--east-bay-dark);
    text-align: center;
    border-radius: 0.3rem;
  }

  .normal-button:hover {
    /* opacity: 0.8; */
    color: var(--east-bay-dark);
    background:var(--grey-4);
  }

@media screen and (max-width: 768px) {
    .button-container {
        flex-direction: column;
        height: 50vh;
    }
    .transparent-button {
        margin:20px;
        padding: 30px 60px;
    }
}
@media screen and (min-width: 768px) {
    .button-container {
        height: 60vh;
    }
    .transparent-button {
        margin: 0 50px;
        padding: 30px 60px;
    }
}

/* Contents */
.sub-bg {
    background-color: var(--background2);
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 1rem;
}

.content.zeb-def{
    align-items: flex-start;
}

.home-text {
    margin-bottom: 2rem;
}

.home-text .only {
    width:100%;
}

.flex-reverse .home-chart {
    margin: 0 2vw 0 0;
}
.home-chart p {
    text-align: center;
}

/*-- works-box --*/
.works-box-container {
    position:relative;
    top:0%;
    left:0%;
    width: 100%;
    padding:10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.works-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15%;
    height: 30%;
    border-radius: 50%;
    background-color: var(--east-bay-dark);
    color:var(--timberwolf);
    z-index: 999;
    text-align: center;
    padding: 2em 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
    opacity: 0.9;
}

.works-box {
    width: 45%!important;
    display: flex;
    align-items: center;
    justify-content: center;
    color:var(--font);

    padding: 3.5em 1em 1em;
    position:relative;

    background: white;
    border-top: solid 5px var(--grey-9);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);

    opacity: 0.9;

    margin: 1em auto;
}

.works-box .works-title {
    background-color: var(--grey-7);
    font-size: 1em;
    color: #fff;
    padding:10px;
    text-align: center;
    width:100%;
    position:absolute;
    /* border-radius: 5%; */
    top:0;
    left:0;
}

#energySavingChart {
    background-color: var(--white);
}

.explain {
    margin-top: 1rem;
    margin-left: 2rem;
    li {
        margin-bottom: 1rem;
        list-style: disc;
        line-height:normal;
    }
    p {
        margin-left: 1rem;
        text-align: left;
    }
}

.flow {
    margin-top: 1rem;
    margin-left: 2rem;
    li{
        margin-bottom: 1rem;
        list-style: decimal; 
    }
}

/* Styling for mobile devices */
@media (max-width: 600px) {

    .content .works-4 {
        width: 100%;
        .home-text.only {
            flex-direction: column;
            align-items: center;
            padding:20px 10px;
            margin: 0 auto;
        }
    }

    .content {
        flex-direction: column;
        align-items: flex-start;
    }

    .works-box {
        width: 90%!important;
    }

    .works-circle {
        display: none;
    }

    .chart-area {
        width:80vw;
        height: 70vh;
    }

}

/*
DESKTOP SIZE
================================================ */
@media (min-width: 600px) {
    .sp-size {
        display:none;
    }

    section .wrapper {
        padding: 0 5rem;
    }

    .title {
        font-size: 1.875rem;
    }

    .flex-reverse {
        flex-direction: row-reverse;
    }

    .home-text {
        width: 30vw;
        /* margin-bottom: 2rem; */
        margin-top:5vh;
    }

    .home-text.only {
        width: 100vw;
    }
    
    .home-chart {
        width: 70vw;
        /* margin-top:19vh; */
        margin-top:5vh;
    }

    .chart-area {
        width:60vw;
        height: 70vh;
    }
}