@charset "UTF-8";
:root {
  --primary: #1e293b;
  --surface: #ffffff;
  --background: #f8fafc;
  --border: #cbd5e1;
  --text-main: #0f172a;
  --text-sub: #64748b;
  --lvl-4: #ff2800; /* 危険 (31以上) */
  --lvl-3: #fc9701; /* 厳重警戒 (28~31) */
  --lvl-2: #faf500; /* 警戒 (25~28) */
  --lvl-1: #a1d2ff; /* 注意 (21~25) */
  --lvl-0: #218cff; /* ほぼ安全 (21未満) */
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 8px auto;
  padding: 0 10px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
  flex-direction: row;
  gap: 6px;
}

.header-title-area {
  display: flex;
  flex-direction: column;
}
.header-title-area .title {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.2rem;
}
.header-title-area .title .rsklogo {
  max-width: 55px;
  width: auto;
  max-height: 28px;
  height: auto;
}
.header-title-area .title .br {
  display: block;
}

.header-action-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.header-source-link {
  font-size: 0.6rem;
  color: var(--text-sub);
  text-decoration: underline;
}
.header-source-link:hover {
  color: var(--primary);
}

.btn-info-modal {
  background-color: var(--surface);
  color: #2563eb;
  border: 1px solid #93c5fd;
  padding: 3px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.btn-info-modal:hover {
  background-color: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}
.btn-info-modal:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-info-icon {
  font-size: 0.85em;
}

h1 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
}

.timestamp {
  font-size: 0.6rem;
  color: var(--text-sub);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.day-tabs-container {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.tab-btn {
  flex: 1;
  padding: 6px 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sub);
  background-color: #e2e8f0;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}
.tab-btn:hover {
  background-color: #cbd5e1;
}
.tab-btn.active {
  color: var(--primary);
  background-color: var(--surface);
  border-bottom: 1px solid var(--surface);
  font-weight: 800;
}

.tab-panel {
  border-top-left-radius: 0;
}

.panel-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.panel-header-container .panel-header {
  margin-bottom: 0;
}

.panel-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.table-panel-header {
  margin-top: 16px;
  margin-bottom: 8px;
}

.location-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.location-header-row .panel-header {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.location-header-row .location-controls {
  margin-bottom: 0;
  flex-grow: 1;
}

select.location-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;
}
select.location-select:focus {
  outline: 2px solid #3b82f6;
  border-color: transparent;
}

/* 案A：ステータスカードのレイアウト調整 */
.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--background);
}

.status-card-sublabel {
  font-size: 0.75rem;
  color: var(--text-sub);
  display: block;
  margin-bottom: 2px;
}

.status-value-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.status-value-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.status-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0.3px 0.3px 0.3px rgba(68, 68, 68, 0.4);
}

.status-unit-wbgt {
  font-size: 0.7rem;
  color: var(--text-sub);
  font-weight: 600;
}

.status-value-sub {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-sub);
}

.status-label-temp {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.status-temp-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-sub);
}

.status-unit-temp {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.status-divider {
  color: var(--border);
  font-size: 1.2rem;
  font-weight: 300;
}

/* 🏷️ バッジエリア（上にアイコン、下にテキストバッジ） */
.status-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@keyframes sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(6deg);
  }
}
.status-badge-icon {
  width: 45px;
  height: 45px;
  -o-object-fit: contain;
     object-fit: contain;
  animation: sway 2.5s ease-in-out infinite;
  transform-origin: center bottom;
}

.status-badge {
  padding: 4px 10px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: default;
  box-shadow: none;
  text-align: center;
}

/* 📊 グラフのカスタム凡例スタイル (2段・実線/点線) */
.chart-legend-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-sub);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.legend-line {
  display: inline-block;
  width: 22px;
  height: 0;
  vertical-align: middle;
}

.line-wbgt-actual {
  border-top: 2.5px solid #0f172a;
}

.line-wbgt-forecast {
  border-top: 2.5px dashed #0f172a;
}

.line-temp-actual {
  border-top: 1.8px solid #ea580c;
}

.line-temp-forecast {
  border-top: 1.8px dashed #ea580c;
}

.chart-container {
  position: relative;
  height: 180px;
  margin-bottom: 16px;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
}
.forecast-table th,
.forecast-table td {
  border: 1px solid var(--border);
  padding: 5px 2px;
  font-size: 0.7rem;
  vertical-align: middle;
}
.forecast-table th {
  background-color: var(--background);
  color: var(--text-sub);
  font-weight: 600;
}
.forecast-table th.col-item {
  min-width: 40px;
}
.forecast-table {
  /* 1列目（「項目」列）の固定スタイル */
}
.forecast-table th:first-child,
.forecast-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: var(--background);
}
.forecast-table td.row-label {
  font-weight: 600;
  background-color: var(--background);
  text-align: center;
  color: var(--text-sub);
}
.forecast-table td.row-label-wbgt {
  font-weight: 700;
  background-color: var(--background);
  text-align: center;
}
.forecast-table td.cell-empty {
  color: var(--text-sub);
}

.cell-lvl-4 {
  background-color: var(--lvl-4);
  color: #fff;
  font-weight: 700;
}

.cell-lvl-3 {
  background-color: var(--lvl-3);
  color: #fff;
  font-weight: 700;
}

.cell-lvl-2 {
  background-color: var(--lvl-2);
  color: #000;
  font-weight: 700;
}

.cell-lvl-1 {
  background-color: var(--lvl-1);
  color: #000;
}

.cell-lvl-0 {
  background-color: var(--lvl-0);
  color: #fff;
}

.table-icon {
  width: 35px;
  height: 35px;
  -o-object-fit: contain;
     object-fit: contain;
  vertical-align: middle;
}

.table-icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.table-icon-label {
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  max-height: 70vh;
  border-radius: 8px;
  position: relative;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffffff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-sub);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 10;
}
.modal-close:hover {
  background-color: var(--background);
}

.modal-body {
  overflow-y: auto;
}
.modal-body h2 {
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  color: var(--primary);
}
.modal-body h2:first-of-type {
  margin-top: 0;
}
.modal-body p {
  font-size: 0.7rem;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-main);
}

.modal-note {
  font-size: 0.6rem;
  color: var(--text-sub);
  margin-top: 4px;
  line-height: 1.4;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 10px;
  margin-bottom: 6px;
}
.modal-table th,
.modal-table td {
  border: 1px solid var(--border);
  padding: 6px;
  text-align: left;
}
.modal-table th {
  background-color: var(--background);
  text-align: center;
}

.text-center {
  text-align: center;
}

.text-bold {
  font-weight: bold;
}

.w-18 {
  width: 18%;
}

.w-20 {
  width: 20%;
}

.w-30 {
  width: 30%;
}

.is-hidden {
  display: none !important;
}

/* モーダル最下部ボタン用スタイル */
.modal-link-button-container {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 8px;
}

.modal-link-button {
  display: inline-block;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}
.modal-link-button:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

@media (min-width: 768px) {
  .container {
    margin: 12px auto;
    padding: 0 16px;
  }
  header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .header-source-link {
    font-size: 0.75rem;
  }
  .header-title-area .title .rsklogo {
    max-width: 90px;
    max-height: 46px;
  }
  .header-title-area .title .br {
    display: inline;
  }
  .btn-info-modal {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
  .timestamp {
    font-size: 0.75rem;
  }
  .panel {
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .tab-btn {
    font-size: 0.85rem;
    padding: 8px 6px;
  }
  .status-card {
    padding: 10px 16px;
  }
  .status-value {
    font-size: 2.2rem;
  }
  .status-temp-value {
    font-size: 1.4rem;
  }
  .status-badge-icon {
    width: 50px;
    height: 50px;
  }
  .forecast-table th,
  .forecast-table td {
    padding: 6px 4px;
    font-size: 0.8rem;
  }
  .table-icon-label {
    font-size: 0.6rem;
  }
  .chart-container {
    height: 200px;
  }
  .chart-legend-container {
    font-size: 0.7rem;
  }
}
.footer {
  font-size: 0.9em;
  background-color: var(--main-color);
  padding: 1rem;
  color: var(--text-sub);
}
@media (any-hover: hover) {
  .footer a:hover {
    transition-duration: 0.3s;
    opacity: 0.8;
  }
}
.footer a:focus-visible {
  transition-duration: 0.3s;
  opacity: 0.8;
}

@media screen and (min-width: 768px) {
  .pc-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .pc-footer > * + *::before {
    content: "";
    display: inline-block;
    inline-size: 1.3ex;
    aspect-ratio: 1;
    border-block-start: 1px solid;
    border-inline-end: 1px solid;
    rotate: 45deg;
    margin-inline: 0.3em 0.6em;
  }
  .pc-footer__last {
    text-indent: -1.6em;
    padding-left: 1.6em;
  }
  .pc-footer span {
    display: ruby;
  }
}
@media screen and (max-width: 768px) {
  .pc-footer {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .sp-footer {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .sp-footer {
    display: flex;
    justify-content: center;
  }
  .sp-footer li {
    padding: 0.8em;
  }
  .sp-footer a {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.5em;
    font-size: 0.9em;
  }
}
.sp-footer img {
  width: 2.5rem;
  height: 2.5rem;
}

.snsbtn {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-block: 1rem 1.7rem;
}
@media screen and (min-width: 768px) {
  .snsbtn {
    margin-block: 1.1rem 1rem;
  }
}
.snsbtn a {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.copyright {
  font-size: 0.75em;
  text-align: center;
}/*# sourceMappingURL=style.css.map */