@charset "UTF-8";

.target-heading {
  padding: 0.875rem 1.25rem;
  line-height: 0.5;
  font-size: 14px;
  color: #C3C2C1;
  background: #F1EFEB;
  /*box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.2) inset;*/
  /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);*/
}

.target-title1 {
  width: 88%;
/*
  width: 80%;
  height: 110px;
*/
  padding: 0.875rem 1.25rem;
  font-size: 1.5rem;
  color: #000000;
  background: #E1DDD5;
}

.target-copyright {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
  color: #85807F;
  background: #E1DDD5;
  box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.2) inset;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.container1 {
  display: flex;
  margin: 30px;
  /*width: 80%;*/
  background: #E1DDD5;
  /*background: #FFFFFF;*/  /* temp */
  gap: 0px;
}

#container2 {
  display: grid;
  /*grid-template-rows: 100px 50px;*/
  grid-template-rows: 80px 50px;
  /*grid-template-columns: 250px 1fr;*/
  grid-template-columns: 300px 1fr;
}

#container3 {
  display: grid;
  /*grid-template-rows: 100px 50px;*/
  /*grid-template-rows: 60px 30px;*/
  grid-template-rows: 50px;
  /*grid-template-columns: 300px 50px 50px 1fr;*/
  grid-template-columns: 300px 65px 25px 20px;
}

.item1 {
  margin: 10px;
  padding: 10px;
  height: 100%;
}

.item2 {
  /*margin: 10px;
  padding: 10px;*/
}

.item3 {
  margin: 10px;
  padding: 10px;
  /*height: 240px;*/
  height: 254px;
}

#co2_itemD0 {
  /*grid-row: 1 / 3;
  grid-column: 2 / 3;*/
  background: white;
  //color: #fff;
  //font-size: 1.6rem;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}
.co2 {
  background: white;
  justify-content: center;
  text-align: center;
}

#indicator_1 {
  background: #92D050;
}
#indicator_2 {
  background: #F5821F;
}
#indicator_3 {
  background: #FF0000;
}

.canvas {
  background: white;
}

#target-title3_1 {
  background: #333333;
  color: #fff;
  /*font-size: 1.6rem;*/
  font-size: 18px;
  /*height: 120px;*/
  height: 40px;  /* temp120px; */
  justify-content: center;
  text-align: center;
}

/**/
#target-title3_2 {
  background: #333333;
  height: 60px;
  color: #fff;
  font-size: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}
/**/

#itemA {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

#itemB {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

#itemC {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  background: #ffa500;
  color: #fff;
  font-size: 3.4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

#itemD0 {
  /*grid-row: 1 / 3;
  grid-column: 2 / 3;*/
  background: #333333;
  color: #fff;
  font-size: 1.6rem;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

#itemD1 {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  background: #92D050;
  color: #fff;
  font-size: 3.4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

#itemD2 {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  background: #F5821F;
  color: #fff;
  font-size: 3.4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

#itemD3 {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  background: #FF0000;
  color: #fff;
  font-size: 3.4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

.left-column {
  float: left;
  width: 50%; /* 要素の幅を50%に定義 */
}

.right-column {
  float: right;
  width: 50%; /* 要素の幅を50%に定義 */
}

.box{
  text-align: center;
}


/* レスポンシブ対応 整理中 */
body {
  font-family: "Noto Sans JP", sans-serif;
}

.box_graph {
  display: block;
  margin: 0;
}


/* 見出し関連 */
.head-sec-title {
  position: relative;
  margin-left: 10px;
}
  
.head-sec-title-line {
  position: absolute;
  top: 2px;
  display: inline-block;
  width: 30px;
  border-top: solid 5px #FF5A5A;
}

.head-sec-title-text {
  display: inline-block;
  padding-left: 40px;
  font-size: 20px;
}

#graph1, #graph2, #campus_detail {
  /* ページ内リンクの位置調整 */
  padding-top: 90px;
  margin-top: -90px;
}


/* 法政大学全体のCO2排出量 と キャンパス毎の電力使用量 */
.container1_graph .item1 {
  margin: 0;
}

.container1_graph canvas {
  /* グラフのpadding */
  padding-right: 10px;
}


/* 各キャンパスの電力使用量を2段組みにする */
.Overall_image {
  padding-top: 70px;
  /* ページ内リンクの位置調整 */
  margin-top: -70px;
  margin-bottom: 35px;
}

.container1 {
  display: block; /* flex 解除用 */
  margin: 10px;
  overflow: hidden;
}

.container1 .item2 canvas.canvas {
  background-color:#E1DDD5 !important;
}

.container1 .item3 {
  height: 130px;
  padding: 0;
}

#container2 {
  /* grid-template-rows: 80px 70px; */
  /* grid-template-rows: 15px 45px; */
  grid-template-rows: 25px 45px;
}

#container2 {
  /* grid-template-columns: 300px 1fr; */
  grid-template-columns: 250px 1fr;
}

#container2 #itemA span {
  font-size: 19px;
}

#container2 .itemA_date {
  font-size:17px;
}

#container2 .itemB_val {
  line-height: 1;
  font-size:32px;
}

#container2 .itemB_unit {
  font-size:18px;
}

#container2 .power_usage_val {
  font-size: 28px;
}

#container2 .percent_unit {
    font-size: 14px;
}

#container2 #itemD2 {
  font-size:22px;
}

#container2 #itemD3 {
  font-size:2.4rem;
}

#container3 {
  /* grid-template-columns: 300px 65px 25px 20px; */
  /* grid-template-columns: 300px 65fr 25fr 20fr; */
  grid-template-columns: 250px 65fr 25fr 20fr;
  grid-template-rows: 30px;
}

.power_usage_val {
  font-weight: bold;
}

.percent_unit {
  font-size: 16px;
}


/* グラフを縮小する */
/* 特大デバイス（ワイド・デスクトップ, 1280px 以上） */
@media (min-width: 1280px) {
  .bgblue {padding: 20px 40px 0px;}

  .box_graph {
    display: inline-block;
  }


  /* 見出し関連 */
  .head-sec-title-line {
    position: absolute;
    top: 1px;
    display: inline-block;
    width: 30px;
    border-top: solid 5px #FF5A5A;
  }

  .head-sec-title-text {
    display: inline-block;
    padding-left: 40px;
    font-size: 22px;
  }

  #graph1, #graph2, #campus_detail {
    /* ページ内リンクの位置調整 */
    padding-top: 45px;
    margin-top: -45px;
  }
  

  /* 法政大学全体のCO2排出量 と キャンパス毎の電力使用量 */
  .container1_graph {
    /* グラフの大きさ調整 */
    width: 990px;
    /* width: 980px; */
    /* width: 650px; */
    height: 400px;
  }

  .container1_graph canvas {
    /* グラフのpadding */
    padding: 10px;
    padding-right: 20px;
  }

  /* .item1 { */
  .container1_graph .item1 {
    /* width: 930px; */
    /* height: 500px; */
    margin: 0;
  }

  #canvas_graph1, #canvas_graph2 {
    width: 930px;
    height: 500px;
  }


  /* 各キャンパスの電力使用量 */
  .Overall_image {
    position: relative;
    display: inline-block;
    /* ページ内リンクの位置調整 */
    padding-top: 45px;
    margin-top: -45px;
    margin-bottom: 0px;
  }

  .container1 {
    /* flex では chart.js のレスポンシブが効かない？ */
    /* display: flex; */
    /* width: 1200px; */
    
    /* キャンパスの電力使用量のグラフ背景領域の調整用 */
    /* width: 1000px; */
    /* width: 960px; */
    width: 970px;
    height: 215px;
  }

  .container1 .item2 {
    /* PC版 */
    display: inline-block;
    /* キャンパスの電力使用量のグラフ領域の調整用 */
    width: 590px;
    /* width: 565px; */
    /* width: 580px; */
    /* width: 780px; */
    /* height: 250px; */
    /* margin-top: 5px; */

    /* margin-bottom: 20px; */
    vertical-align: top;
    position: absolute !important;
    /* right: -22px; */
    right: -12px;
  }

  .container1 .item2 canvas.canvas {
    background-color: transparent !important;
  }

  .container1 .item3 {
    display: inline-block;
    width: 370px;
    /* width: 390px; */
    /* height: 240px; */
    /* height: 215px; */
    height: 190px;
    /* padding: 10px 0px; */
    padding: 0px;
    vertical-align: top;
  }

  .container1 #itemD0 {
    font-size: 2rem;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  
  #container2 {
    grid-template-rows: 50px 65px;
  }

  #container2 .itemA_date {
    font-size:22px;
  }
  
  #container2 .itemB_val {
    line-height: 1;
    /* font-size:38px; */
    font-size:43px;
  }
  
  #container2 .itemB_unit {
    font-size:18px;
  }

  #container2 .power_usage_val {
    font-size: 48px;
  }

  #container2 .percent_unit {
    font-size: 20px;
  }

  #container2 #itemD2 {
    font-size:3.4rem;
  }

  #container2 #itemD3 {
    font-size:3.4rem;
  }

  #container3 {
    grid-template-rows: 30px;
  }
} 
/* 超特大デバイス (よりワイドな・デスクトップ, 1400px 以上）-xxl */
@media (min-width: 1400px) { 
  #canvas_graph1, #canvas_graph2 {
    /* width: 1540px; */
    /* height: 500px; */
    width: 100%;
  }
} 