:root {
  --bg-color: #C8C2AA;
  --text-color: #4D493E;
  --header-footer-bg: #4444449c;
  --header-footer-text: #FFFFFF;
  --window-bg: rgba(236, 236, 236, 0.6);
  --border-color: #696969;
  --shadow-color: #4a4a4a;
  --alert-text-color: red;
  --warning-text-color: yellow;
  --brackets-text-color: rgb(255, 255, 255);
  --chart-bg-color: #FFFFFF; /* グラフの背景色（ライトモード） */
}

body.dark-mode {
  --bg-color: #3c6176;
  --text-color: #e0e0e0;
  --header-footer-bg: #1f1f1f;
  --header-footer-text: #e0e0e0;
  --window-bg: rgba(50, 50, 50, 0.6);
  --border-color: #444444;
  --shadow-color: #000000;
  --alert-text-color: #ff7961;
  --warning-text-color: #ffb74d;
  --brackets-text-color: #e0e0e0;
  --chart-bg-color: #808080; /* グラフの背景色（ダークモード） */
}

body.dark-mode .g1, body.dark-mode .g2 {
  color: black;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-left: 1vh;
  padding-right: 1vh;
  background-color: var(--bg-color);
  background-size: 4px 4px;
  background-image: linear-gradient(90deg, transparent, transparent 3px, rgba(0, 0, 0, 0.07) 4px), linear-gradient(transparent, transparent 3px, rgba(0, 0, 0, 0.07) 4px);
  color: var(--text-color);
}

.no-bullets {
  list-style-type: none;
  padding-left: 0; /* 左側のインデントもなくしたい場合 */
}


/* ベースボタンスタイル */
#themeToggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* トグルサークルのスタイル */
#themeToggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* ダークモード時のボタンスタイル */
body.dark-mode #themeToggle {
  background-color: #333;
}

/* ダークモード時のトグルサークルの位置 */
body.dark-mode #themeToggle::before {
  transform: translateX(30px);
}









header {
  background-color: var(--header-footer-bg);
  height: 5vh;
  color: var(--header-footer-text);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-bottom ul {
  padding: 0;
  list-style: none;
}

.header-top {
  list-style: none;
}

footer {
  background-color: var(--header-footer-bg);
  color: var(--header-footer-text);
  text-align: center;
  padding: 10px;
}

.window2 {
  background-color: var(--window-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  box-shadow: 0 0 20px 5px var(--shadow-color);
  margin: 20px auto;
  width: 90%;
}

.titlebar2 {
  background: var(--window-bg);
  border-bottom: 1px solid var(--border-color);
  height: 2vh; 
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

p.windowtitle {
  flex-grow: 1;
  font-size: 12px;
  text-align: center;
  color: var(--text-color);
}

.buttons2 {
  display: flex;
  align-items: center;
}

.buttons2 div {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
}

.buttons2 .close2 {
  background: #ff5f57;
  border: 1px solid #e45952;
}

.buttons2 .hide2 {
  background: #ffbd2d;
  border: 1px solid #e1a73e;
}

.buttons2 .full2 {
  background: #27c93f;
  border: 1px solid #2bac2d;
}

.VDP {
  display: flex;

}

.g1 {

  width: 50%;
  height: 50%;
}

.g2 {

  width: 50%;
  height: 50%
}

.notification1 {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  padding: 10px;
}

.alert-text {
  color: rgb(255, 2, 2); /* 初期の色を黒に指定 */
  margin-right: 10px; /* テキストと括弧の間にスペースを追加 */
}

.warning-text {
  color: rgb(252, 156, 0); /* 初期の色を黒に指定 */
  margin-right: 10px; /* テキストと括弧の間にスペースを追加 */
}

.brackets, .alarm1, .warning1 {
  color: black; /* 初期の色を黒に指定 */
  margin-right: 10px; /* 括弧と値の間にスペースを追加 */
}

.notification1 .alarm1 span,
.notification1 .warning1 span {
  color: black; /* 初期の色を黒に指定 */
}

#popup {
  display: flex;
  padding: 20px;
  justify-content: space-around;
}

.download-button, .confirm-button, .hide-button {
  background-color: #008CBA;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 10px;
}

.download-button:hover, .confirm-button:hover, .hide-button:hover {
  background-color: #005f5f;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #f9f9f9;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 20px;
}

.close, .close2, .close-calendar {
  color: #f30e0e;
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 28px;
  width: 30px;
  height: 30px;
  text-align: center;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #f30e0e;
}

.close:hover, .close2:hover, .close-calendar:hover {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
}

.tab {
  list-style: none;
  padding: 0;
  display: flex;
  border-radius: 15px;
  overflow: hidden;
}

.tab li {
  flex: 1;
}

.tab a {
  text-align: center;
  display: block;
  padding: 10px 20px;
  background-color: #E9E9E9;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.tab a:hover {
  background-color: #C6C6C6;
}

.tab li.active a {
  background-color: #007BFF;
  color: #FFF;
}

.area {
  display: none;
  opacity: 0;
}

.table-container {
  flex: 1;
  overflow-x: auto;
}
.area.is-active {
  display: block;
  animation-name: displayAnime;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

.wrapper .tab li a {
  font-size: 16px; 
}
.circle {
  border: 2px solid blue;
  border-radius: 50%;
  display: inline-block;
  padding: 2px;
  line-height: 1;
}

@keyframes displayAnime {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

table {
  color: rgb(38, 197, 165);
  width: 100%;
  border-collapse: collapse;
  background-color: #232323;
}

/* テーブルのスタイル */
.table-container table {
  width: auto;
  min-width: 100%;
  height: 100%;
  border-collapse: collapse;
  background-color: #232323;
  color: rgb(38, 197, 165);
}

table, th, td {
  border: 1px solid rgb(250, 246, 246);
}

th, td {
  padding: 10px;
  text-align: left;
}

#imgModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 1000;
}

#imgModal img {
  max-width: 80%;
  max-height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@font-face {
  font-family: "segu";
  src: url("digital-7.ttf") format("truetype");
}

/* Landscape orientation */
@media (orientation: landscape) {

}

/* Max width 768px (Tablet and mobile) */
@media (max-width: 768px) {
  th, td {
    /* 既存のスタイル */
    padding: 10px;
    text-align: left;
    /* 新しいスタイル */
    white-space: nowrap;
    
}

th:nth-child(1), td:nth-child(1) {
    width: 100px; /* 種別 */
}

th:nth-child(2), td:nth-child(2) {
    width: 150px; /* 日時 */
}

  .window2 {
    width: 90%;
    margin: 10px auto;
  }
  
  .wrapper .tab li a {
    font-size: 10px; /* 好きなサイズに変更してください */
  }

}

/* Min width 1024px (Desktop) */
@media (min-width: 1024px) {

.window2 {
width: 90%;
margin: 20px auto;
}

.window2 canvas {
width: 100%;
height: auto;
}
.modal-content {
width: 50%;
}
.popup {
justify-content: space-around;
}
footer {
text-align: center;
padding: 10px;
}
}


@media screen and (max-width: 600px) {
  .button60hz {
    padding: 4px 10px !important;
    font-size: 12px !important;
  }
}
