/* グラフのレスポンシブ対応 */
#myChart {
  width: 90vw; /* 横幅を画面の90%にフィット */
  height: 500px; /* 縦の大きさを固定 */
  max-width: 100%;
  margin: 0 auto;
}

#header {
  font-size: 1.5em;
  color: #333;
  white-space: nowrap; /* 長い学校名が折り返されないように */
}

body {
  font-family: sans-serif;
  margin: 20px;
  text-align: center; /* 全体を中央揃え */
}

table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  text-align: center;
  border: 1px solid #ccc;
  min-width: 600px;
}

.table-container {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
}

th, td {
  padding: 8px;
  border: 1px solid #ccc;
}

th {
  background-color: #f0f0f0;
  font-weight: bold;
}

.data-type-select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

#schoolName {
  display: inline-block;
  margin-bottom: 10px;
}

.table-note {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
  text-align: left;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* テーブル行のホバー効果 */
table tbody tr:hover {
  background-color: #e6f7ff;
  cursor: pointer;
}

/* スマホ画面用の調整 */
@media screen and (max-width: 768px) {
  #header-container {
    flex-direction: column; /* スマホ画面では縦並び */
    align-items: center; /* 中央揃え */
  }
  #header {
    font-size: 1.2em;
  }
  .data-type-select {
    font-size: 14px;
  }
  table th, table td {
    font-size: 14px;
  }
}

.column-wrap {
  padding: 0 !important;
}

/* 中央に重ねて表示するヒント */
.scroll-hint {
  display: none; /* 初期状態は非表示 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7); /* ← 透明度のある暗めの黒 */
  color: #fff;
  font-size: 16px;               /* ← 大きめの文字サイズ */
  padding: 10px 20px;
  border-radius: 6px;
  z-index: 10;
  pointer-events: none;
  animation: scrollHintFade 2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes scrollHintFade {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}


.button-3 {
    /* display: flex; */
    display: inline-block;
    justify-content: center;
    align-items: center;
    width: 250px;
    margin: 20px;
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgb(0 0 0 / 25%), 0 2px 3px -2px rgb(0 0 0 / 15%);
    background-color: #2589d0;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

@media screen and (min-width: 641px) {
  .button-3 {
    margin: 20px; /* 画面幅が641px以上のときのmargin */
  }
}

.button-3:hover {
    background-color: #1579c0;
}

/* ボタンの色が変わらないようにする */
/* .no-color-change {
  color: #fff;
} */