* {
  box-sizing: border-box;
}

#side-nav {
  display: none;
}

#contents-in,
#contents {
  width: 100%;
}

.img-text,
.col-area {
  width: auto;
}

body {
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

@media print {
  body {
    background: white;
  }
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

@media print, screen and (min-width: 769px) {
  h1.title {
    width: 100%;
    font-size: 195%;
  }
}

.update {
  display: none;
}

.alert-section {
  background-color: #fdebeb;
  margin-bottom: 40px;
}

@media print, screen and (min-width: 769px) {
  .alert-section {
    padding: 30px 40px 40px 40px;
    margin-top: 10px;
    border-radius: 6px;
  }
}

@media screen and (max-width: 768px) {
  .alert-section {
    padding: 30px 20px;
    margin-top: 20px;
    border-radius: 12px;
  }
}

.alert-section.hidden {
  display: none;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-header {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
  }
}

.alert-section .alert-title {
  text-align: center;
  font-weight: bold;
  color: #980000;
  margin: 0;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-title {
    font-size: 280%;
  }
}

@media screen and (max-width: 768px) {
  .alert-section .alert-title {
    font-size: 175%;
  }
}

.alert-section .alert-timestamp {
  font-weight: bold;
  color: #980000;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-timestamp {
    font-size: 115%;
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 768px) {
  .alert-section .alert-timestamp {
    font-size: 100%;
    text-align: center;
    margin-bottom: 20px;
  }
}

.alert-section .alert-message-title {
  text-align: center;
  color: #980000;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-message-title {
    font-size: 140%;
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 768px) {
  .alert-section .alert-message-title {
    font-size: 115%;
    margin-bottom: 30px;
  }
}

.alert-section .alert-message {
  color: #b71c1c;
}

.alert-section .alert-message .warning-list {
  display: flex;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-message .warning-list {
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .alert-section .alert-message .warning-list {
    flex-direction: column;
    gap: 20px;
  }
}

.alert-section .alert-message .warning-list .tank-name {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  background-color: #b93c15;
}

.alert-section .alert-message .warning-list .tank-name::before {
  content: "";
  background: url(../img_sub/icon_pin_green.png) left center/contain no-repeat;
  flex-shrink: 0;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-message .warning-list .tank-name {
    gap: 10px;
    width: 290px;
    min-height: 60px;
    font-size: 125%;
    padding: 15px;
    border-radius: 6px;
  }
  .alert-section .alert-message .warning-list .tank-name::before {
    width: 16px;
    height: 22px;
  }
}

@media screen and (max-width: 768px) {
  .alert-section .alert-message .warning-list .tank-name {
    gap: 10px;
    width: 610px;
    min-height: 120px;
    font-size: 130%;
    padding: 30px;
    margin: 0 auto;
    border-radius: 12px;
  }
  .alert-section .alert-message .warning-list .tank-name::before {
    width: 32px;
    height: 44px;
  }
}

.alert-section .alert-message .warning-list .tank-name .tank-level {
  margin-left: auto;
}

.alert-section .alert-tips {
  background-color: white;
  padding: 15px;
  margin: 0 auto;
  text-align: center;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-tips {
    width: 600px;
    margin-top: 30px;
    border-radius: 10px;
  }
}

@media screen and (max-width: 768px) {
  .alert-section .alert-tips {
    width: 610px;
    margin-top: 40px;
    border-radius: 20px;
  }
}

.alert-section .alert-tips .alert-tips-title {
  font-weight: bold;
  color: #980000;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-tips .alert-tips-title {
    font-size: 140%;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 768px) {
  .alert-section .alert-tips .alert-tips-title {
    font-size: 120%;
    margin-bottom: 20px;
  }
}

.alert-section .alert-tips .alert-tips-list {
  list-style: disc;
  width: fit-content;
  margin: 0 auto;
  text-align: left;
}

.alert-section .alert-tips .alert-tips-list li {
  color: #333;
  position: relative;
}

@media print, screen and (min-width: 769px) {
  .alert-section .alert-tips .alert-tips-list li {
    font-size: 115%;
    margin-bottom: 5px;
  }
}

@media screen and (max-width: 768px) {
  .alert-section .alert-tips .alert-tips-list li {
    font-size: 105%;
    margin-bottom: 10px;
  }
}

#apiURL {
  display: none;
}

.summary-title {
  background-color: #e3efbf;
}

@media print, screen and (min-width: 769px) {
  .summary-title {
    padding: 10px 15px;
    font-size: 155%;
    border-radius: 4px;
  }
}

@media screen and (max-width: 768px) {
  .summary-title {
    padding: 28px 25px 23px;
    font-size: 155%;
    border-radius: 8px;
  }
}

.update-info {
  text-align: right;
  font-size: 100%;
}

@media print, screen and (min-width: 769px) {
  .update-info {
    padding: 10px 0 20px;
  }
}

@media screen and (max-width: 768px) {
  .update-info {
    padding: 25px 0;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards-grid .card-error {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
}

.cards-grid .card-error .card-error-text {
  font-size: 18px;
  color: #333;
  margin: 0;
}

.cards-grid .card-nodata {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  background-color: #fff;
  border: 2px solid #656565;
  border-radius: 8px;
}

.cards-grid .card-nodata .card-nodata-text {
  font-size: 18px;
  color: #333;
  margin: 0;
}

.card {
  background-color: white;
  padding: 0;
  overflow: hidden;
}

@media print, screen and (min-width: 769px) {
  .card {
    border-radius: 0 0 10px 10px;
  }
}

@media screen and (max-width: 768px) {
  .card {
    border-radius: 0 0 20px 20px;
  }
}

.card.status-warning {
  border: 1px solid #b93c15;
  border-top: 4px solid #b93c15;
  background-color: #fdebeb;
}

@media screen and (max-width: 768px) {
  .card.status-warning {
    border: 2px solid #b93c15;
    border-top: 8px solid #b93c15;
  }
}

.card.status-caution {
  border: 1px solid #f79e11;
  border-top: 4px solid #f79e11;
  background-color: #fffede;
}

@media screen and (max-width: 768px) {
  .card.status-caution {
    border: 2px solid #f79e11;
    border-top: 8px solid #f79e11;
  }
}

.card.status-good {
  border: 1px solid #2060c1;
  border-top: 4px solid #2060c1;
  background-color: #dff4fb;
}

@media screen and (max-width: 768px) {
  .card.status-good {
    border: 2px solid #2060c1;
    border-top: 8px solid #2060c1;
  }
}

.card .card-header {
  padding: 15px 20px 0 20px;
}

.card .card-title {
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
}

@media print, screen and (min-width: 769px) {
  .card .card-title {
    font-size: 150%;
  }
}

@media screen and (max-width: 768px) {
  .card .card-title {
    font-size: 115%;
  }
}

.card .card-body {
  padding: 20px;
}

.status-badge {
  display: inline-block;
  border-radius: calc(infinity * 1px);
  font-weight: bold;
}

@media print, screen and (min-width: 769px) {
  .status-badge {
    font-size: 100%;
    padding: 6px 16px;
  }
}

@media screen and (max-width: 768px) {
  .status-badge {
    font-size: 90%;
    padding: 10px 25px;
  }
}

.status-badge.warning {
  background-color: #b93c15;
  color: #fff;
}

.status-badge.caution {
  background-color: #f79e11;
  color: #333;
}

.status-badge.good {
  background-color: #2060c1;
  color: #fff;
}

.water-level {
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1;
}

@media print, screen and (min-width: 769px) {
  .water-level {
    font-size: 210%;
  }
}

@media screen and (max-width: 768px) {
  .water-level {
    font-size: 135%;
  }
}

.thresholds {
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 10px;
  color: #656565;
  line-height: 1.3;
}

.thresholds .thresholds-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}

@media print, screen and (min-width: 769px) {
  .thresholds .thresholds-title {
    font-size: 125%;
  }
}

@media screen and (max-width: 768px) {
  .thresholds .thresholds-title {
    font-size: 90%;
  }
}

.thresholds .threshold-item {
  display: flex;
  padding: 2px 0;
}

@media print, screen and (min-width: 769px) {
  .thresholds .threshold-item {
    font-size: 110%;
  }
}

@media screen and (max-width: 768px) {
  .thresholds .threshold-item {
    font-size: 90%;
  }
}

.supply-areas {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #656565;
}

.supply-areas .supply-areas-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

@media print, screen and (min-width: 769px) {
  .supply-areas .supply-areas-title {
    font-size: 115%;
  }
}

@media screen and (max-width: 768px) {
  .supply-areas .supply-areas-title {
    font-size: 90%;
  }
}

.supply-areas .supply-areas-title::before {
  content: "";
  background: url(../img_sub/icon_pin_red.png) left center/cover no-repeat;
  flex-shrink: 0;
}

@media print, screen and (min-width: 769px) {
  .supply-areas .supply-areas-title::before {
    width: 16px;
    height: 22px;
  }
}

@media screen and (max-width: 768px) {
  .supply-areas .supply-areas-title::before {
    width: 32px;
    height: 44px;
  }
}

.supply-areas .supply-areas-list {
  font-size: 100%;
  color: #656565;
  line-height: 1.4;
}

@media print, screen and (min-width: 769px) {
  .supply-areas .supply-areas-list {
    font-size: 100%;
  }
}

@media screen and (max-width: 768px) {
  .supply-areas .supply-areas-list {
    font-size: 90%;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Animations */
@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.4);
  }
}

@keyframes shake {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}
