
body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0 auto;
  padding: 0;
  background: none !important;
  background-color: #FFFFFF !important;
  text-align: center;
  max-width: 100%;
  height: 200vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-size: 4vw;
  font-weight: bold;
  line-height: 1.2;
  color: #333;
}

.box15, .box16, .box17, .box18 {
  padding: 0.5em 1em;
  max-width: 82vw;
  width: 82vw;
  height: 3vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: repeating-linear-gradient(
      -45deg,
      #f0f8ff,
      #f0f8ff 3px,
      #e9f4ff 3px,
      #e9f4ff 7px
  );
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  margin-top: 10px;
}

#search-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  margin-left: 10px
  margin-light: 10px
}

#search-inputs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  
}

#status-message {
  margin-top: 5px;
  font-size: 3.5vw;
  color: red;
  text-align: center;
}

#name-input {
  flex: 1;
  min-width:10rem; max-width:12rem;
  padding: 8px;
  font-size: 3.5vw;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}

#search-button {
  background: linear-gradient(45deg, #4caf50, #81c784);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 3.5vw;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.3s ease;
}

#search-button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #45a049, #66bb6a);
}

#results {
  text-align: center;
  height: 200vh;
  overflow-y: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 空セル非表示用 */
.empty-cell {
  display:none;
  border: none !important;
  background: none !important;
}

#info-container {
  width: 90%;
  margin-bottom: 10px;
  margin-top: 0px !important;
  display: flex;
  flex-direction: column;
  padding-left: 10px !important;
}

#period-visitor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 5vw;
  margin-bottom: 5px;
  padding-left: 10px;
}

#period {
  text-align: left;
  font-size: 3.5vw;
  margin-bottom: 3px;
}

#visitor-count.left-align-under {
  text-align: left;
  font-size: 5vw !important;
}

#member-info {
  text-align: left;
  padding: 5px 10px;
  font-size: 5vw;
  margin-top: 5px;
}

.table {
  display: grid;
  width: 90%;
  grid-auto-rows: 9vw;
  border-collapse: collapse;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
  margin-left: 5vw;
  margin-right: auto;
  justify-content: start;
  margin-bottom: 35px;
}

.table div {
  border: 0.5px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-sizing: border-box;
}

.header {
  font-weight: bold;
  background-color: #d0ebff;
  font-size: 2.5vw;
  text-align: center;
  word-break: keep-all;
  white-space: pre-line;
  height: 10vw;
}

.data {
  background-color: white;
  font-size: 3vw;
  justify-content: flex-end;
  text-align: right !important;
  padding-right: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: flex-end;
}

/* グラフ関連：円グラフは残す */
#pie-chart {
  display: block;
  width: 85vw;
  max-width: calc(90vw - 5vw);
  margin-left: 10vw !important;
  margin-right: auto;
  margin-top: -60px !important;
  margin-bottom: 20px;
}

#pie-chart {
  display: block;
  margin-left: 5vw;
  margin-right: auto;
}

.setumei p1 {
  font-size: 3vw;   /* スマホなら画面幅に応じたサイズ */
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-left: 5vw;
  margin-bottom: 30px;
  margin-top: -30px !important;
}

/* Loading */
.loading-area {
  display: flex;
  flex-direction: column;   /* ← 縦並びにする */
  align-items: center;      /* 中央揃え */
  justify-content: center;
  text-align: center;
}

.loading-bar {
  width:80%; height:0.75rem;
  background:#f2f2f2;
  border-radius:8px;
  overflow:hidden; border:1px solid #ddd;
  margin-bottom: 8px; /* バーとテキストの間隔 */
}

.loading-fill {
  width:0%; height:100%;
  background: linear-gradient(90deg,#ff8b8b,#ff3b3b);
  transition: width 0.3s ease;
}

.loading-text {
  font-size: 1.1em;
  color: #444;
}

/* 更新状況 */
#update-row {
  margin: 0 auto 1rem;
  text-align: left;
  width: 90%;
}
#update-label { font-size: 0.9rem; color:#666; }
#update-status { font-size: 1rem; font-weight:600; margin-top:0.3rem; }

