.menu-icon {
  display: block;
}

.header-right {
  display: none;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-column,
.right-column {
  width: 50%;
}

@media (max-width: 320px) {
  body {
    font-size: 14px;
  }

  .header-right,
  .menu-icon {
    display: none;
  }

  .menu-icon {
    display: block;
  }
}

@media (min-width: 321px) and (max-width: 480px) {
  body {
    font-size: 12px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .heading {
    flex-direction: column;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .menu-icon {
    display: inline-block;
    cursor: pointer;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 16px;
  }
}


body {
  margin: 0;
  font-family: "Avenir Next";
}

/* ヘッダー内のコンテナー */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

/* ヘッダー内のコンテナー */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ヘッダー左側の要素 */
.header-left {
  display: flex;
  align-items: center;
}

/* ロゴ画像 */
.header-logo img {
  max-height: 50px;
  max-width: 250px;
}

/* ヘッダー右側の要素 */
.header-right {
  display: flex;
}

.header-btn {
  margin-right: 20px;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

@media (max-width: 480px) {
  .header-right {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .mobile-menu {
    display: none;
  }

  .menu-icon.opened+.mobile-menu {
    display: block;
  }
}


/* 右側のボタン */
.header-btn {
  color: #666666;
  font-size: 14px;
  font-weight: 600;
  margin-left: 20px;
  margin-right: 20px;
  text-decoration: none;
}

/* 電気のお申込みはこちらボタン */
.btn02 {
  background-color: #DDA300;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 15px;
  text-decoration: none;
}

.main {
  display: flex;
  flex-direction: column;
}

.main-header {
  background-color: #dbdada;
  padding: 120px 0 40px 0;
  width: 100%;
  /* 追加: main-headerの幅を100%に設定 */
  text-align: center;
  /* 追加: テキストや内容を中央に配置 */
  display: flex;
  /* 追加: フレックスボックスを使用 */
  justify-content: center;
  /* 追加: ボタンを水平方向の中央に配置 */
  flex-wrap: wrap;
  /* 追加: 複数のボタンがある場合に折り返しを許可 */
}

.button02 {
  display: inline-block;
  padding: 15px 40px;
  background-color: #fff;
  color: seagreen;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
  line-height: 1;
  border: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease-out;
  /* margin-bottom: 10px; */
  text-align: center;
  /* ボタン内の文字を中央寄せにする */
}

.button02:not(:last-child) {
  margin-right: 30px;
  /* 各ボタンの右側に30pxのマージンを追加 */
}

.button02:hover,
.button02:focus {
  background-color: rgb(81, 147, 98);
  color: rgb(255, 255, 255);
}

.info-container {
  z-index: 100;
  /* 追加: z-indexを高く設定して他の要素の上に表示 */
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2em;
  margin-top: 0px;
  padding: 50px 0 0px 0;
  text-align: center;
  text-shadow: 1px 1px #fff;
  color: #3c6e38;
}

.chart {
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 0;
  /* 左右のマージンを自動に設定して中央に配置 */
  position: relative;
  overflow: hidden;
}

.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  /* カレンダーウィジェットとボタンの間隔を調整 */
}

.center-container input[name="daterange"] {
  width: 290px; /* 好みに応じて適切な幅を指定してください */
  height: 40px;
  font-size: 18px;
  text-align: center; /* テキストを中央に配置 */
  display: block;
  margin: 0 auto; /* 左右のマージンを自動で設定して中央に配置 */
}


.update-btn {
  background-color: #004d12;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 15px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.update-btn:hover {
  background-color: #c0f0ca;
}


input[type=date] {
  font-size: 18px;
}

.totals {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%; /* 追加：コンテナの幅を100%に設定 */
}

.total-box {
  flex: 1;
  margin: 5px;
  align-items: center;
  padding: 8px; /* パディングを0に設定 */
  border: 1px solid #ccc;
  border-radius: 5px;
  position: relative;
  min-width: 100px; /* 必要に応じて調整：ボックスの最小幅 */
  display: flex; /* この行を追加して、フレックスボックスとして表示します */
  flex-direction: column; /* この行を追加して、子要素を縦に並べます */
  justify-content: flex-start; /* この行を追加して、子要素を上下に均等に配置します */
}

.consumptions {
  background-color: rgba(39, 121, 245, 0.3); /* 供給電力量 */
}

.generations {
  background-color: rgba(252, 77, 139, 0.3); /* 受電量 */
}

.fit_generations {
  background-color: rgba(237, 197, 0, 0.3); /* FIT受電量 */
}

.post_fit_generations {
  background-color: rgba(139, 203, 124, 0.3); /* 卒FIT受電量 */
}

.non_fit_generations {
  background-color: rgba(42, 165, 152, 0.3); /* 非FIT受電量 */
}

.market_sales_powers {
  background-color: rgb(245, 161, 6, 0.3); /* 市場販売電力量 */
}

.market_procurement_powers {
  background-color: rgba(147, 64, 253, 0.3); /* 市場調達電力量 */
}

.total-label {
  text-align: center;
  margin: 0; /* デフォルトのマージンを0に設定 */
  padding: 0; /* 必要に応じてパディングを設定 */
  font-size: 1em; /* フォントサイズを調整 */
}

#totalConsumptions {
  margin: 10px;
  font-weight: bold;
  font-size: 1.8em; /* 文字サイズを大きく設定 */
}

#totalGenerations {
  margin: 10px;
  font-weight: bold;
  font-size: 1.8em; /* 文字サイズを大きく設定 */
}

#totalFitGenerations {
  margin: 10px;
  font-weight: bold;
  font-size: 1.8em; /* 文字サイズを大きく設定 */
}

#totalPostFitGenerations {
  margin: 10px;
  font-weight: bold;
  font-size: 1.8em; /* 文字サイズを大きく設定 */
}

#totalNonFitGenerations {
  margin: 10px;
  font-weight: bold;
  font-size: 1.8em; /* 文字サイズを大きく設定 */
}

#totalMarketSalesPower {
  margin: 10px;
  font-weight: bold;
  font-size: 1.8em; /* 文字サイズを大きく設定 */
}

#totalMarketProcurementPower {
  margin: 10px;
  font-weight: bold;
  font-size: 1.8em; /* 文字サイズを大きく設定 */
}

.total-unit {
  position: absolute; 
  bottom: 0px; 
  right: 10px; 
  font-size: 0.8em;
  margin-left: 5px; /* この行を追加して、左にマージンを設定します */
}


#chartDiv {
  height: auto;
  min-height: 500px;
  /* 最小の高さを設定して、内容に応じて高さが変わるようにします */
  width: 100%;
}


footer {
  background-color: #dcf5ff;
  height: 50px;
}

li {
  list-style: none;
  float: left;
}

.container {
  padding: 0 15px;
  margin: 0 auto;
}

span {
  color: seagreen;
}

.info-container {
  text-align: center;
}

.message-wrapper {
  text-align: center;
  padding: 0px 120px 50px;
  background-color: #f6efd9;
  /* margin-bottom: 30px; */
}

.message-wrapper img {
  margin-top: 50px;
  width: 80%;
}

.introduction {
  text-align: center;
  padding: 30px 30px;
}

.left-column {
  display: inline-block;
  float: left;
  background-color: rgb(251, 214, 176);
  opacity: 0.6;
  width: 45%;
  height: 200px;
  border: 3px solid rgb(146, 145, 145);
  padding: 10px 10px 50px 10px;
  margin-bottom: 10px;
}

.right-column {
  display: inline-block;
  float: right;
  background-color: rgb(164, 213, 199);
  opacity: 0.6;
  width: 45%;
  height: 200px;
  border: 3px solid rgb(146, 145, 145);
  padding: 10px 10px 50px 10px;
  margin-bottom: 10px;
}

.button01 {
  display: inline-block;
  padding: 15px 40px;
  background-color: #fff;
  color: seagreen;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
  line-height: 1;
  border: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease-out;
  margin-bottom: 10px;
  display: block;
  /* ボタンのスタイルを指定 */
}

.button01:hover,
.button01:focus {
  background-color: #fff28e;
  color: seagreen;
}

/* btn messageクラスのボタンをページの中央に表示 */
.btn.message {
  display: block;
  /* ブロック要素として表示 */
  margin-top: 100px;
  margin-left: auto;
  /* 左側のマージンを自動に設定 */
  margin-right: auto;
  /* 右側のマージンを自動に設定 */
  max-width: 300px;
  /* 例として300pxを設定。必要に応じて調整してください。 */
  text-align: center;
  /* テキストを中央寄せにする */
  /* その他のbtn.messageのスタイルをここに追加 */
}

.message {
  display: inline-block;
  margin: 50px auto;
  padding: 15px 40px;
  background-color: rgb(81, 147, 98);
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
  line-height: 1;
  border: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.message:active {
  box-shadow: none;
  position: relative;
  top: 7px;
}

.top_about_box {
  margin: 50px auto 100px;
  /* text-align: center; */
}

.top_about_box div {
  display: inline-block;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  width: 100%;
}

.top_about_box div img {
  display: block;
  margin: 0 auto 40px;
  max-width: 300px;
}

.top_about_box div p {
  display: block;
  font-size: 16px;
  line-height: 1.8em;
  margin: 0 auto;
  max-width: 780px;
  text-align: justify;
  text-indent: 1em;
}

.swiper {
  height: 400px;
  width: 60%;
}

.swiper-slide img {
  width: 100%;
  /* 画像の幅を親要素の幅に合わせる */
  height: 100%;
  /* 画像の高さを親要素の高さに合わせる */
  object-fit: contain;
  /* 画像がコンテナに収まるようにする */
}

/* swiper-button-prevとswiper-button-nextのボタンの色を変更 */
.swiper-button-prev::after,
.swiper-button-next::after {
  color: rgb(81, 147, 98);
}

/* スライド内のキャプションのスタイル */
.slide-caption {
  position: absolute;
  /* 絶対位置指定 */
  top: 15%;
  /* スライドの下から10%の位置に配置 */
  right: 15%;
  /* スライドの左から10%の位置に配置 */
  color: white;
  /* 文字色を白に設定 */
  background-color: rgba(0, 0, 0, 0.5);
  /* 背景色を半透明の黒に設定 */
  padding: 0 5px;
  /* 内側の余白を設定 */
  border-radius: 5px;
  /* 角を丸くする */
}

.slide-caption h3 {
  font-size: 18px;
  /* フォントサイズを設定 */
  color: rgba(46, 46, 46, 0.7);
}

/* 「発電所」のスタイル */
.slide-caption.generation {
  background-color: rgba(251, 214, 176, 0.8);
  /* 背景色を設定 */
}

/* 「需要家」のスタイル */
.slide-caption.consumption {
  background-color: rgba(164, 213, 199, 0.8);
  /* 背景色を設定 */
}

.page-top-arrow {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 99;
}

.page-top-arrow img {
  width: 65px;
  height: 65px;
}



footer .footer_box02 {
  padding: 40px 0;
  background: #3c6e38;
}

.inner_box {
  max-width: 1152px;
  margin: auto;
  padding: 0 16px;
}

footer .footer_box02 .inner_box>div {
  padding: 0 100px 0 100px;
  display: table;
}

footer .footer_box02 .inner_box>div>* {
  display: table-cell;
  vertical-align: top;
}

footer .footer_box02 .inner_box>div address {
  padding: 0 100px 0 150px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-family: "メイリオ";
}

footer .footer_box02 .inner_box>div #company-name {
  font-size: 12px;
  color: #fff;
  line-height: 1;
  float: right;
}

footer .footer_box02 .inner_box>div #copyright {
  font-size: 12px;
  color: #fff;
  line-height: 1;
  float: right;
}

.totals-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%; /* 追加：コンテナの幅を100%に設定 */
}

.total-box-ppa {
  flex: 1;
  margin: 5px;
  max-width: 250px;
  max-height: 150px;
  align-items: center;
  padding: 8px; /* パディングを0に設定 */
  border: 1px solid #ccc;
  border-radius: 5px;
  position: relative;
  display: flex; /* この行を追加して、フレックスボックスとして表示します */
  flex-direction: column; /* この行を追加して、子要素を縦に並べます */
  justify-content: center;
}

#date-picker-container {
  margin-left: 10px; 
}

#total-ppa {
  height: 15px;
  display: flex; 
  flex-direction: column;
  font-size: 9px;
}

#co2-exp {
  height: 30px;
  display: flex; 
  flex-direction: column;
  font-size: 9px;
}

#tree-exp {
  height: 30px;
  display: flex; 
  flex-direction: column;
  font-size: 9px;
}

#power-chart {
  height: auto;
  max-height: 350px;
  /* 最小の高さを設定して、内容に応じて高さが変わるようにします */
  width: 100%;
}