@charset "utf-8";

[v-cloak] {
  opacity: 0;
}

.trans {
  opacity: 0;
}

.trans.ready {
  opacity: 1;
}

body {
  background-color: #eaecef;
}

.pageTitle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 38px;
}

.pageTitle:before {
  width: 28px;
  height: 42px;
}

.pageTitle .textLink {
  text-align: left;
  font-size: 1.2rem;
}

.pageTitle .area {
  color: #0c419a;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1em;
}

.warning {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 30px;
}

.warning__block {
  position: relative;
  padding: 10px 25px 10px 10px;
  border-radius: 4px;
  border: 3px solid #fff;
  background-color: #f2e700;
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 25%);
  cursor: pointer;
}

.warning__block::before {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 9px;
  height: 9px;
  transform: translateY(-50%) rotate(45deg);
  border-right: solid 2px #0d0000;
  border-top: solid 2px #0d0000;
  content: "";
}

.warning__text {
  padding-left: 19px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.6rem;
  background-image: url("https://gvs.weathernews.jp/s/rain/img/icon_exclamation.svg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section.livecam {
  margin-block: 30px;
}

@media (min-width: 770px) {
  .section.livecam {
    width: 640px;
    margin-inline: auto;
  }
}

.section .switch {
  width: auto;
  margin-inline: 10px;
  padding: 5px;
  border-radius: 4px;
  background-color: #eef1f8;
  box-shadow: 0 2px 2px 0 rgb(0 0 0 / 15%) inset;
}

@media (min-width: 770px) {
  .section .switch {
    width: 640px;
    margin-inline: auto;
  }
}

.section .switch__item {
  color: #101010;
  border-radius: 4px;
  font-size: 1.6rem;
  padding-block: 5px;
}

.section .switch__item.on {
  color: #fff;
  background-color: #438fec;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 25%);
}

.card:has(.card__head) {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.card:has(.card__link) {
  display: flex;
  flex-direction: column;
  padding-block: 5px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__head:is(.livecam *) {
  margin-inline: 10px;
}

.card__head h2 {
  color: #303030;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1em;
}

.card__head p {
  color: #303030;
  font-size: 12px;
  line-height: 1em;
}

.card__block-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card__block-item p {
  color: #303030;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.8rem;
}

.card__block-item p[data-rank] {
  padding: 4px 11px;
  font-size: 1.4rem;
  line-height: 1.8rem;
  border-radius: 4px;
}

.card__block-item p[data-rank="2"] {
  background: #ff5;
}

.card__block-item p[data-rank="3"] {
  color: #fff;
  background: #ae2317;
}

.card__note {
  color: #303030;
  font-size: 1.2rem;
}

.section__list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 10px;
  overflow-x: scroll;
}

.section__link {
  min-width: 153px;
  width: calc((100% / 3) - 4px);
  background-color: #fff;
  border: 1px solid #dfe4f0;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 4px 2px;
}
.section__link-name {
  color: #1f59ba;
  font-size: 15px;
  font-weight: 600;
  line-height: 17px;
  overflow: hidden;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section__link figure {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}
.section__link figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: bottom;
}
.section__link-date {
  color: #303030;
  font-size: 10px;
  line-height: 13px;
  text-align: right;
}
.search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  border-radius: 100vmax;
  border: 2px solid #fff;
  background-color: #eef1f8;
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 15%);
  color: #3569c0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1em;
}
.search span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("https://gvs.weathernews.jp/s/rain/img/icon_search.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

.card__link {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding-block: 10px;
  padding-right: 20px;
  border-bottom: 1px solid #ccc;
}
.card__link::before {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg) translateY(-50%);
  border-top: solid 2px #0d0000;
  border-right: solid 2px #0d0000;
  content: "";
}
.card__link-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ecf4fb;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
}
.card__link-icon.pro {
  background-image: url("https://gvs.weathernews.jp/s/rain/img/icon_pro.svg");
}
.card__link-icon.bousai {
  background-image: url("https://gvs.weathernews.jp/s/rain/img/icon_bousai.svg");
}
.card__link-icon.map {
  background-image: url("https://gvs.weathernews.jp/s/rain/img/icon_map.svg");
}
.card__link-icon.risk {
  background-image: url("https://gvs.weathernews.jp/s/rain/img/icon_risk.svg");
}
.card__link-icon.warning {
  margin: 0;
  background-image: url("https://gvs.weathernews.jp/s/rain/img/icon_warning.svg");
}
.card__link-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.card__link-text p:first-child {
  color: #101010;
  font-size: 1.6rem;
  font-weight: 600;
}
.card__link-text p:last-child {
  color: #606060;
  font-size: 1.2rem;
  line-height: 1em;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlayContent {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 20px;
  max-height: 80vh; /* 画面の80%の高さに制限 */
  display: flex;
  flex-direction: column;
}

.scroll-container {
  overflow-y: auto; /* 縦方向のスクロールを有効化 */
  overflow-x: hidden;
  max-height: calc(80vh - 40px); /* パディングを考慮した高さ */
  -webkit-overflow-scrolling: touch; /* iOS でのスムーズスクロール */
}

/* スクロールバーのカスタマイズ（オプション） */
.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#doshaCard {
  margin-top: 15px;
}

.no__prec {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: bold;
  padding: 10px;
  border-radius: 8px;
  top: 20%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  min-width: 280px;
  text-align: center;
  z-index: 1;
}

.block__lv02:has(.searchButton) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media screen and (min-width: 770px) {
  .block__lv02:has(.pageTitle) {
    max-width: none;
  }
}

.pageTitle {
  margin-bottom: 0 !important;
}

.pageTitle .title {
  color: #2274ff;
  font-size: 13px;
  font-weight: 600;
}

.searchButton {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #1f59ba;
  background-color: #fff;
  background-image: url("https://gvs.weathernews.jp/s/rain/img/icon_search_title.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  box-shadow: 0 0 4px 0 rgb(0 0 0 / 13%);
  cursor: pointer;
}
