a.nav-btn, button.nav-btn {
  font-size: 1em;
  font-family: inherit;
  font-weight: 500;
  vertical-align: middle;
  line-height: 1.2;
}
.user-info-ws {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 100px;
}
.ws-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e57373; /* デフォルト赤 */
  border: 1.5px solid #fff;
  box-shadow: 0 0 2px #8882;
  margin-left: 2px;
}
.ws-indicator.ws-connected {
  background: #43a047;
}
.ws-indicator.ws-disconnected {
  background: #e57373;
}
@media (max-width: 420px), (max-height: 900px) {
  html, body {
    font-size: 15px;
  }
  header {
    padding: 8px 2vw 6px 2vw;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  header h1 {
    font-size: 1.1em;
  }
  header nav a {
    margin-left: 8px;
    font-size: 0.98em;
  }
  #user-info {
    font-size: 0.95em;
  }
  main {
    max-width: 99vw;
    padding: 4px 1vw 12px 1vw;
    border-radius: 8px;
  }
  section {
    margin-bottom: 14px;
  }
  table {
    font-size: 0.95em;
    border-radius: 4px;
  }
  th, td {
    padding: 3px 1px;
    font-size: 0.93em;
  }
  button, select {
    font-size: 0.97em;
    padding: 4px 6px;
    border-radius: 4px;
  }
  h2 {
    font-size: 1.05em;
    margin: 8px 0 6px 0;
  }
}
body {
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  background: #f7f7fa;
  margin: 0;
  padding: 0;
}
header {
  background: #2c3e50;
  color: #fff;
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body {
  font-family: 'Segoe UI', 'Hiragino Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #e0f7fa 0%, #b3e5fc 100%);
  min-height: 100vh;
}

header {
  background: linear-gradient(90deg, #00bcd4 0%, #2196f3 100%);
  color: #fff;
  padding: 8px 10px 6px 10px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
}
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-size: 1.7em;
  margin: 0 0 2px 0;
  letter-spacing: 1px;
  font-weight: 600;
}
#user-info.user-info-small {
  font-size: 0.92em;
  color: #e1f5fe;
  margin-left: 12px;
  min-width: 80px;
  text-align: right;
}
.main-nav-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px 0;
}
.nav-btn {
  background: linear-gradient(90deg, #fff 0%, #e0e7ef 100%);
  color: #1976d2;
  font-weight: 500;
  border: 1.5px solid #90caf9;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 1em;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(33,150,243,0.04);
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
}
.nav-btn:hover {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #42a5f5;
}

main {
  max-width: 600px;
  margin: 24px auto 0 auto;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(33,150,243,0.08);
  padding: 18px 12px 32px 12px;
}

section {
  margin-bottom: 22px;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: #e3f2fd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(33,150,243,0.07);
}
th, td {
  border: 1px solid #b3e5fc;
  padding: 8px 4px;
  text-align: center;
  font-size: 1em;
}
th {
  background: #4fc3f7;
  color: #fff;
  font-weight: 600;
}
tr:nth-child(even) td {
  background: #e1f5fe;
}

button, select {
  padding: 8px 16px;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  background: linear-gradient(90deg, #4fc3f7 0%, #81d4fa 100%);
  color: #01579b;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(33,150,243,0.08);
  margin: 2px 0;
  transition: background 0.2s, color 0.2s;
}
button:hover, select:hover {
  background: linear-gradient(90deg, #29b6f6 0%, #4fc3f7 100%);
  color: #0288d1;
}
button:disabled {
  background: #b3e5fc;
  color: #90a4ae;
  cursor: not-allowed;
}

input, select {
  outline: none;
  border: 1px solid #b3e5fc;
  background: #e1f5fe;
}

/* タイルデザインの削除 */
.tile-container {
    display: none;
}
.tile {
    display: none;
}

/* スマートフォン対応 */
@media (max-width: 600px) {
  .tile {
    padding: 0.8rem;
  }
  .tile h2 {
    font-size: 1rem;
  }
  .tile p {
    font-size: 0.8rem;
  }
}

@media (max-width: 700px) {
  main {
    max-width: 98vw;
    padding: 8px 2vw 24px 2vw;
  }
  header {
    padding: 8px 2vw 0 2vw;
    font-size: 1em;
  }
  .header-row1, .header-row2 {
    flex-direction: row;
    gap: 6px;
  }
  th, td {
    font-size: 0.95em;
    padding: 5px 2px;
  }
  button, select {
    font-size: 0.98em;
    padding: 6px 8px;
  }
  h1 {
    font-size: 1.1em;
  }
}
