/* ========================================
   Weather
======================================== */
.weather-wind__table th,
.weather-wind__table td,
.weather-wind__temp,
.weather-wind__wind,
.weather-wind__rain,
.weather-wind__label {
  color: #222;
}

.weather-wind__label {
  color: #666;
}
/* section */
.p-top-weather {
  margin-top: 80px;
}

.p-top-weather__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.p-top-weather__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.p-top-weather__titles {
  flex: 1 1 auto;
}

.p-top-weather__en {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.p-top-weather__ja {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}

.p-top-weather__lead {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.p-top-weather__icon {
  flex: 0 0 auto;
}

.p-top-weather__body {
  margin-top: 32px;
}

/* weather main */
.p-top-weather__weather {
  margin-top: 0;
}

/* tabs */
.p-top-weather__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.p-top-weather__tab {
  appearance: none;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #222;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.p-top-weather__tab.is-active {
  color: #fff;
  background: #006aa9;
  border-color: #006aa9;
}

/* panels */
.weather-tab-panel {
  display: none;
}

.weather-tab-panel.is-active {
  display: block;
}

/* wind */
.weather-wind {
  position: relative;
}

.weather-wind__viewport {
  width: 100%;
  overflow: hidden;
}

.weather-wind__tables {
  display: flex;
  transition: transform 0.4s ease;
}

.weather-wind__table {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.weather-wind__table th,
.weather-wind__table td {
  border: 1px solid #d9d9d9;
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.5;
}

.weather-wind__table th {
  font-weight: 700;
  background: #f5f5f5;
}

.weather-wind__rowhead {
  width: 110px;
  background: #fafafa;
  font-weight: 700;
}

.weather-wind__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.weather-wind__temp {
  display: block;
  font-weight: 700;
}

.weather-wind__wind {
  display: block;
  margin-top: 4px;
}

.weather-wind__rain {
  display: block;
  font-weight: 700;
}

.weather-wind__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.weather-wind__arrow {
  appearance: none;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #222;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.weather-wind__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

/* utility */
.weather-loading,
.weather-error {
  padding: 16px;
  border: 1px solid #d9d9d9;
  font-size: 14px;
}

/* responsive */
@media (max-width: 767px) {
  .p-top-weather {
    margin-top: 56px;
  }

  .p-top-weather__head {
    flex-direction: column;
    gap: 16px;
  }

  .p-top-weather__ja {
    font-size: 22px;
  }

  .p-top-weather__lead {
    font-size: 13px;
  }

  .p-top-weather__body {
    margin-top: 24px;
  }

  .p-top-weather__tabs {
    gap: 6px;
    margin-bottom: 16px;
  }

  .p-top-weather__tab {
    padding: 10px 14px;
    font-size: 13px;
  }

  .weather-wind__table th,
  .weather-wind__table td {
    padding: 8px 4px;
    font-size: 12px;
  }

  .weather-wind__rowhead {
    width: 84px;
    font-size: 12px;
  }

  .weather-wind__label {
    font-size: 10px;
  }
}

/* ========================================
   Weather live
======================================== */
.weather-live {
  width: 100%;
  max-width: 500px;
}

.weather-live__head {
  margin-bottom: 12px;
}

.weather-live__time {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.weather-live__viewer {
  position: relative;
  border: 1px solid #d9d9d9;
  background: #fff;
  overflow: hidden;
  width: 100%;
  height: auto;
}


.weather-live__image {
  display: block;
  width: 100%;
  height: auto;
}

.weather-live__legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  margin-top: 0;
  text-align: left;
}

.weather-live__legend img {
  display: block;
  width: 100%;
  height: auto;
}

.weather-live__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.weather-live__btn {
  appearance: none;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #222;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.weather-live__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.weather-live__slider-wrap {
  margin-top: 12px;
  width: 100%;
}

.weather-live__slider-wrap input[type="range"] {
  width: 100%;
}

.weather-live__slider {
  position: relative;
  width: 100%;
  height: 28px;
  user-select: none;
}

.weather-live__slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 2px;
  background: #cfcfcf;
}

.weather-live__slider-handle {
  position: absolute;
  top: 4px;
  width: 18px;
  height: 18px;
  border: 1px solid #006aa9;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  appearance: none;
  padding: 0;
}

.weather-live__scale {
  position: relative;
  height: 38px;
  margin-top: 8px;
}

.weather-live__scale::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #cfcfcf;
}

.weather-live__tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 8px;
  background: #cfcfcf;
  transform: translateX(-50%);
}

.weather-live__scale-item {
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.weather-live__scale-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 1px;
  height: 8px;
  background: #cfcfcf;
  transform: translateX(-50%);
}

.weather-live__scale-item.is-now {
  color: #cfcfcf;
  font-weight: 700;
}

@media (max-width: 767px) {
  .weather-live__slider {
    height: 24px;
  }

  .weather-live__slider-track {
    top: 10px;
  }

  .weather-live__slider-handle {
    top: 2px;
    width: 16px;
    height: 16px;
  }
  .weather-live__scale-item {
    font-size: 9px;
  }
  .weather-live__scale {
    height: 34px;
  }
  .weather-live__time {
    font-size: 9px;
  }

  .weather-live__btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .weather-live__viewer {
    width:100%;
  }
}
/* ========================================
   TOP weather - wind
======================================== */
.p-top-weather {
  margin-top: 40px;
}

.p-top-weather__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.p-top-weather__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.p-top-weather__tab {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.p-top-weather__tab.is-active {
  background: #006aa9;
  border-color: #006aa9;
  color: #fff;
}

.weather-tab-panel {
  display: none;
}

.weather-tab-panel.is-active {
  display: block;
}

.weather-wind {
  position: relative;
}

.weather-wind__viewport {
  overflow: hidden;
  width: 100%;
}

.weather-wind__tables {
  display: flex;
  transition: transform 0.4s ease;
}

.weather-wind__table {
  flex: 0 0 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.weather-wind__table th,
.weather-wind__table td {
  border: 1px solid #d9d9d9;
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
}

.weather-wind__table th {
  background: #f5f5f5;
  font-weight: 700;
}

.weather-wind__rowhead {
  width: 110px;
  background: #fafafa;
  font-weight: 700;
}

.weather-wind__label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.weather-wind__temp {
  font-weight: 700;
  display: block;
}

.weather-wind__wind {
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}

.weather-wind__rain {
  font-weight: 700;
}

.weather-wind__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  color:#fff;
}

.weather-wind__arrow {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.weather-wind__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}


@media (max-width: 767px) {
  .weather-wind__table th,
  .weather-wind__table td {
    font-size: 12px;
    padding: 8px 4px;
  }

  .weather-wind__rowhead {
    width: 84px;
    font-size: 12px;
  }

  .weather-wind__label {
    font-size: 10px;
  }
}

.weather-nowcast {
  width: 100%;
  max-width: 500px;
}

.weather-nowcast__viewer {
  position: relative;
  border: 1px solid #d9d9d9;
  background: #fff;
  overflow: hidden;
  width: 100%;
}

.weather-nowcast__image {
  display: block;
  width: 100%;
  height: auto;
}

.weather-nowcast__legend {
  margin-top: 8px;
}

.weather-nowcast__legend img {
  display: block;
  width: 100%;
  max-width: 311px;
  height: auto;
}

.weather-nowcast__controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.weather-nowcast__scale {
  position: relative;
  height: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.weather-nowcast__scale-item {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
